View Full Version : install.php problem
When I run install.php, I get the following error:
Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in D:\***\***\***\config.php on line 16
DB file imported
What am I doing wrong?
Thanks!
are you installing this on a local machine? what version is your sql? number and type.
are you installing this on a local machine? what version is your sql? number and type.
I'm not installing on a local machine, no. I'm using MySQL version 4.1.
blank
01-23-2007, 11:32 PM
that happens because there is a query in config.php. It's a warning, ignore that one.. It doesn't mean anything went wrong.
But I assume it means the installation didn't complete, that part of the script didn't run, because when I go to index.php the page displays, but there's the following written at the top of the page:
Warning: fopen(cache/guests.php): failed to open stream: No such file or directory in D:\***\***\***\functions\stats_cache.php on line 10
Warning: fwrite(): supplied argument is not a valid stream resource in D:\***\***\***\functions\stats_cache.php on line 11
Warning: fclose(): supplied argument is not a valid stream resource in D:\***\***\***\functions\stats_cache.php on line 11
Warning: fopen(cache/totalgames.php): failed to open stream: No such file or directory in D:\***\***\***\functions\stats_cache.php on line 15
Warning: fwrite(): supplied argument is not a valid stream resource in D:\***\***\***\functions\stats_cache.php on line 16
Warning: fclose(): supplied argument is not a valid stream resource in D:\***\***\***\functions\stats_cache.php on line 16
Warning: fopen(cache/totalplays.php): failed to open stream: No such file or directory in D:\***\***\***\functions\stats_cache.php on line 20
Warning: fwrite(): supplied argument is not a valid stream resource in D:\***\***\***\functions\stats_cache.php on line 21
Warning: fclose(): supplied argument is not a valid stream resource in D:\***\***\***\functions\stats_cache.php on line 21
Warning: fopen(cache/topusers.php): failed to open stream: No such file or directory in D:\***\***\***\functions\top_players.php on line 25
Warning: fwrite(): supplied argument is not a valid stream resource in D:\***\***\***\functions\top_players.php on line 26
Warning: fclose(): supplied argument is not a valid stream resource in D:\***\***\***\functions\top_players.php on line 27
blank
01-25-2007, 11:49 AM
those errors are totally different, that looks like you didn't chmod 777 the cache directory.
mersindost
02-03-2007, 11:02 AM
Hi. İm sorry.im not know english.but i will try :)
have not much code in install.php i think must have lot of code in install.php
code:
<?php
require_once("config.php");
$file = file_get_contents("freecade.sql");
$lines = explode(";", $file);
foreach ($lines as $line) {
if (trim($line)!="") {
$line = str_replace("%time%", time(), $line);
mysql_query($line) or die("<b>".$line." - ".mysql_error()."</b>");
}
}
@unlink("freecade.sql");
?>
DB file imported
----------------------
And error message:
Access denied for user 'user'@'localhost' (using password: YES)
All chmod 777
where is problem?
blank
02-04-2007, 07:48 PM
Access denied for user 'user'@'localhost'
that means you haven't put the right info in config.php to log into your MySQL server.
downtr
02-05-2007, 09:31 AM
set chmod 777 of cache
vBulletin® v3.7.3, Copyright ©2000-2010, Jelsoft Enterprises Ltd.