NukeXchange Network

          

Nuke Sites Link Directory
Nuke Fixes · NukeForums · NukeZone Hosting · NukeUnited · Nuke Sites · Nuke Skins · NukeLance
Nuke Resources
 :: Home  :: Downloads  :: Your Account  :: Forums  :: Advertise :: 
Login or Register
Main Menu
General
 Main
 AvantGo
 Banner_Clients
 cfaq
 Donations
 Downloads
 Forums
 Members_List
 Private_Messages
 Search
 Stories_Archive
 Submit_News
 Surveys
 Topics
 Web_Links
 Your_Account

Your Account
 Login
 Register
 Lost Pass

Modules
Quick Links
· CMS Focus
· Domain Names
. Game Quest
· Learning Linux
. MateMaker
· NukeFixes
· NukeForums
· NukeLance
· Nuke Sites
· Nuke Skins
· NukeZone Hosting
. SearchDevil
Other Options

Download Resources
· Nuke Downloads
· Add a Link
· New Files
· Top Rated
· Most Popular

Web Site Resources
· Nuke Sites
· Add A Site
· New Sites
· Top Rated
· Most Popular

Support
· NukeZone Hosting
· NukeSkins.com
· NukeForums.com
· phpnuke.org
· NukeFixes.com
Information
NukeForums
·decompressing EN-Book-Nuke.tar.tar
·How to allow spaces/gaps/"-" in allowed usernames
·How to Setup PHPNUKE on win2k
·cannot save changes
·voting?
·Nuke forum picture problem
·How to change smtp port on wampserver and windows
·yet another 301 redirect problem
·Image display? - newbie
·php nuke help

read more...
Top10 Links
· 1: Nuke Forums
· 2: PHPNukeFiles
· 3: NukeSkins
· 4: Nuke Templates
· 5: EcomJunk
· 6: MDesign
· 7: Windows Installation: PHP
· 8: FLASH-FOR-NUKE
· 9: Dezina
· 10: Global Dream News Sharing Portal!
Site Visitors
User Login:

Nickname:
Password:
Security Code: Security Code
Type Security Code Here:

Members List Membership:
Latest: qwertz
Today: 2
Yesterday: 0
Overall: 15102

Visitation:
Guests: 470
Members: 0
Total: 470


You are Anonymous user. You can register for free by clicking here
Sponsor Links
Game Quest Online - Games and more!
Game Quest Online - Games and more!

NukeResources :: View topic - Invalid argument supplied for foreach
NukeResources Forum Index

NukeResources Forum Index -> Bug Reports -> Invalid argument supplied for foreach
Post new topic  Reply to topic    View previous topic :: View next topic 
Invalid argument supplied for foreach
PostPosted: Wed Aug 20, 2003 5:22 pm Reply with quote
hpstg
Resource Seeker
Resource Seeker
 
Joined: Aug 10, 2003
Posts: 7




I recently downloaded phpNuke 6.7.

I have an account on Coolfreepages.com, and they say they support php4 and MySql

I run nukesql.php for the 6.7, and I set up the database normally.

The problem is that on the top of the index.php page I get the following:

Warning: Invalid argument supplied for foreach() in /users/ionichost.com/hpstg/mainfile.php on line 42

Warning: Invalid argument supplied for foreach() in /users/ionichost.com/hpstg/mainfile.php on line 57

Warning: Cannot add header information - headers already sent by (output started at /users/ionichost.com/hpstg/mainfile.php:42) in /users/ionichost.com/hpstg/mainfile.php on line 165


I can't understand what is going on. It allows me to create the Super Account, but even if I log on using it, it won't allow me to change anything on the administration panel, as it asks for a Username and Password again.

Help please! I'm a total newbie! Crying or Very sad
View user's profile Send private message
PostPosted: Wed Aug 20, 2003 5:59 pm Reply with quote
chatserv
Site Admin
Site Admin
 
Joined: Apr 21, 2002
Posts: 1732
Location: Puerto Rico




PHP-Nuke 6.5 and newer require php 4.1.0 or better.

_________________
NukeResources | ScriptHeaven
View user's profile Send private message Visit poster's website
PostPosted: Wed Aug 20, 2003 9:56 pm Reply with quote
hpstg
Resource Seeker
Resource Seeker
 
Joined: Aug 10, 2003
Posts: 7




First of all, thank you for the fast reply.

The question is, how can I know what version of php runs on the server?
View user's profile Send private message
PostPosted: Thu Aug 21, 2003 3:55 am Reply with quote
chatserv
Site Admin
Site Admin
 
Joined: Apr 21, 2002
Posts: 1732
Location: Puerto Rico




Copy this to a blank file:
Code:
<?php
phpinfo();
?>

save it as info.php, upload it and point your browser to it.

_________________
NukeResources | ScriptHeaven
View user's profile Send private message Visit poster's website
PostPosted: Thu Aug 21, 2003 7:23 am Reply with quote
hpstg
Resource Seeker
Resource Seeker
 
Joined: Aug 10, 2003
Posts: 7




Thanks again for the help man!

I did just as you said, I uploaded the info.php file to the root of my ftp, and I got this:

Fatal error: Call to undefined function: phpinfo() in /users/ionichost.com/hpstg/info.php on line 2

The provider (Coolfreepages.com) says it provides php4 support.
View user's profile Send private message
PostPosted: Thu Aug 21, 2003 9:58 am Reply with quote
chatserv
Site Admin
Site Admin
 
Joined: Apr 21, 2002
Posts: 1732
Location: Puerto Rico




From their faq:

Why I can not run functions mail() and phpinfo()
For security reasons those functions and all sockets functions are disabled. Please do not use it in your PHP programs.

I think they use php 4.0.6

_________________
NukeResources | ScriptHeaven
View user's profile Send private message Visit poster's website
PostPosted: Thu Aug 21, 2003 1:36 pm Reply with quote
hpstg
Resource Seeker
Resource Seeker
 
Joined: Aug 10, 2003
Posts: 7




So, what version of phpNuke should I use, in order to work good on php 4.06?
View user's profile Send private message
PostPosted: Thu Aug 21, 2003 2:06 pm Reply with quote
chatserv
Site Admin
Site Admin
 
Joined: Apr 21, 2002
Posts: 1732
Location: Puerto Rico




PHP-Nuke 6.0 should work, just be aware that since they don't offer mail() support (much like most free hosts) any function that requires sending emails will not work, like sending the password to anyone using the lost password feature, notification on replies to posts or private messages, etc...

_________________
NukeResources | ScriptHeaven
View user's profile Send private message Visit poster's website
PostPosted: Thu Aug 21, 2003 2:19 pm Reply with quote
hpstg
Resource Seeker
Resource Seeker
 
Joined: Aug 10, 2003
Posts: 7




Thank you! Thank you!

I' ll donwload it, and upload the files again. I've got work for the night it seems Laughing
View user's profile Send private message
Invalid argument supplied for foreach
 NukeResources Forum Index -> Bug Reports
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 4 Hours  
Page 1 of 1  

  
  
 Post new topic  Reply to topic     



Powered by phpBB © 2001-2005 phpBB Group.     Theme created by Vjacheslav Trushkin.
There have been 139 unique hit(s) in the past 24 hours.
Forums ©
NukeZone Hosting - Fast, Affordable and Dependable


Best viewed with a Browser
All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2001 - 2007 by NukeResources.com
You can syndicate our news using the file .backend.php or ultramode.txt
PHP-Nuke Copyright © 2004 by Francisco Burzi. This is free software, and you may redistribute it under the GPL. PHP-Nuke comes with absolutely no warranty, for details, see the license.
Page Generation: 0.27 Seconds

:: Eos phpbb2 style by Cyberalien :: PHP-Nuke theme by www.nukemods.com ::