Preface:
I uploaded all PHP-Nuke 6.0 files to web directory, chmoded files (php,gif, html, etc. to 666, and directories to 777).
Then, configured config.php.
After this i succesfully connected to SQL DB, ran the database test, and went to INDEX.PHP and receiveid THIS:
Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in
nuke/includes/sql_layer.php on line 301
Warning: main(language/lang-.php) [function.main]: failed to create stream: No such file or directory in
nuke/mainfile.php on line 75
Warning: main() [function.main]: Failed opening 'language/lang-.php' for inclusion (include_path='.:') in
nuke/mainfile.php on line 75
Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in
/includes/sql_layer.php on line 301
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in
/includes/sql_layer.php on line 357
Warning: head(themes//theme.php) [function.head]: failed to create stream: No such file or directory in
nuke/header.php on line 31
Warning: head() [function.head]: Failed opening 'themes//theme.php' for inclusion (include_path='.:') in
nuke/header.php on line 31
Fatal error: Call to undefined function: themeheader() in /www/data/nuke/header.php on line 47
Hepl, please.
Mindozza.
Wizarium Nuke Soldier
Joined: Jan 15, 2003
Posts: 26
Location: USA
Posted:
Fri Jan 24, 2003 1:21 pm
Try dropping the entire DB via phpMyAdmin. I've had trouble with installing when I've already got the DB named. When the DB already exists to begin with, it generates the same error on line 301. In that part of the code, there is a check whether or not the DB exists, and if it doesn't, it issues a CREATE query. If it does exist, sometimes it generates errors...
Upload the files to the same directory as config.php
Direct your browser to nukesql.php
Wait till it finishes
Go back to index.php and all ur errors will ahve gone
ArtificialIntel
Guest
Posted:
Fri Jan 24, 2003 2:01 pm
Thanks for advice, but stll, doesn't work
Maybe there is a problem, because i use the same MySQL DB for another programme (phpbb).
But during SQL DB test chosed to create new DB tables with anothe prefix that it is used with phpbb.
In config file prefixes are "nuke", and in phpbb - "fibase".
Later I also tried to delete the "fibase" tables, and replace them with new "nuke" prefix tables for php-nuke, but then i received only one error : Fatal error:
Fatal error: Call to undefined function: sql_query() in /www/data/nuke/nukesql.php on line 430
What could you suggest?
Thanks for previous advice, but still doesn't work
Mindozza.
Upload the files to the same directory as config.php
Direct your browser to nukesql.php
Wait till it finishes
Go back to index.php and all ur errors will ahve gone
ArtificialIntel
ArtificialIntel
Joined: Jan 31, 2004
Posts: -88
Posted:
Fri Jan 24, 2003 2:32 pm
make sure the database uname and password are correct. Also check the database type - it's case sensitive.
ArtificialIntel
Wizarium Nuke Soldier
Joined: Jan 15, 2003
Posts: 26
Location: USA
Posted:
Fri Jan 24, 2003 5:36 pm
ArtificialIntel wrote:
Now for the experts advice.
wtf is THAT supposed to mean?
Zhen-Xjell Nuke Cops Founder
Joined: Nov 14, 2002
Posts: 5939
Posted:
Fri Jan 24, 2003 6:33 pm
I'm sure it was purely by accident. If you check the posting time, it seems that AI took time in writing his reply before posting and he didn't read your post. Gosh knows I do that on occasion myself, open a post, and take several minutes to draft up a reply... (like I'm watching Stargate SG-1 right now).
_________________ Paul Laudanski, Microsoft MVP Windows-Security
CastleCops: [de] [en] [wiki]
Wizarium Nuke Soldier
Joined: Jan 15, 2003
Posts: 26
Location: USA
Posted:
Fri Jan 24, 2003 7:12 pm
Right... oh yeah, I can totally see that...
Such a nice community... surely someone wouldn't be that arrogant.
Thanks for straightening that out Zhen.
Zhen-Xjell Nuke Cops Founder
Joined: Nov 14, 2002
Posts: 5939
Posted:
Fri Jan 24, 2003 7:17 pm
Trying to be optimistic... lets wait for AI to come around and respond. Then I'm sure we'll be able to sort things out maturely. We're humans, its not a perfect world, but that doesn't preclude the fact that we can't fix errors in judgement.
_________________ Paul Laudanski, Microsoft MVP Windows-Security
CastleCops: [de] [en] [wiki]
ArtificialIntel
Joined: Jan 31, 2004
Posts: -88
Posted:
Sat Jan 25, 2003 6:08 am
Zhen was right, I took about 10 mins doing that reply I think. I was thinking about the modules tweak I was doing @ the same time.
However, on reflection, Wizarium might benefit from not making the assumption that he did. The reason why I told them to check to see if they'd created the tables was because at no point in their original post did they mention that they'd done it.
I might phone my ISP @ some point, cause there's no way my connection is going @ the full 1Mb that we're paying for here, which is another reason why my replys are sometimes delayed.
ArtificialIntel
chatserv General
Joined: Jan 12, 2003
Posts: 3128
Location: Puerto Rico
Posted:
Sat Jan 25, 2003 4:52 pm
mindozza check the follwing things:
1-download the connection test script from our downloads section, see if it connects and lists your database tables which may start with nuke in their names.
2-if the script could connect, then the settings for $dbhost, $dbname, $dbuname and $dbpass should be ok, so check the setting for $dbtype, it should be MySQL and it is case sensitive, which means that if you change it to mysql, Mysql or similar, it won't work.
3-make sure you uploaded images in binary mode, php, html and text files in ascii mode.
4-if that all checks ok, then try reuploading the files as one or more of them could have become corrupted while uploading.
Hope that helps.
_________________ Feed a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime.
ScriptHeaven | NukeResources
Thanks Chatserv Guest
Posted:
Sun Jan 26, 2003 11:22 am
It worked out.
The problem was that images were uploaded in ASCI mode.
Now evrthng is Ok.
The real problem is that i did not find in Install manual this information, si i decided to upload all the files in ASCI mode.
Thanks.
Mindozza.
chatserv wrote:
mindozza check the follwing things:
1-download the connection test script from our downloads section, see if it connects and lists your database tables which may start with nuke in their names.
2-if the script could connect, then the settings for $dbhost, $dbname, $dbuname and $dbpass should be ok, so check the setting for $dbtype, it should be MySQL and it is case sensitive, which means that if you change it to mysql, Mysql or similar, it won't work.
3-make sure you uploaded images in binary mode, php, html and text files in ascii mode.
4-if that all checks ok, then try reuploading the files as one or more of them could have become corrupted while uploading.
Hope that helps.
chatserv General
Joined: Jan 12, 2003
Posts: 3128
Location: Puerto Rico
Posted:
Sun Jan 26, 2003 11:34 am
Glad that i could be of help to you, i do understand your point, just keep in mind ascii/binary upload are unix standards which are one of the first things you should know when dealing with ftp uploads, but in all fairness i guess adding a simple line in the install file mentioning this would not hurt anyone. congrats on getting the site up and good luck with it.
_________________ Feed a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime.
ScriptHeaven | NukeResources
ArtificialIntel
Joined: Jan 31, 2004
Posts: -88
Posted:
Sun Jan 26, 2003 11:37 am
I'll add it to the Guide 2night.
ArtificialIntel
nuke fan Guest
Posted:
Thu May 15, 2003 1:00 pm
Hi, every body.
I change my host and I try to use a reserve copy of nuke db, and recive this error:
Quote:
Warning: head(themes/Nuke_Nuke_goto/theme.php) [function.head]: failed to create stream: No such file or directory in /home/kidsbgc/public_html/header.php on line 31
Warning: head() [function.head]: Failed opening 'themes/Nuke_Nuke_goto/theme.php' for inclusion (include_path='') in /home/kidsbgc/public_html/header.php on line 31
Fatal error: Call to undefined function: themeheader() in /home/kidsbgc/public_html/header.php on line 47
You can post new topics in this forum You can 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