Hitman™ Posted January 11, 2008 Share Posted January 11, 2008 When i try to install this mafia game i downloaded i get the following error wen installing the db tables Write Config... Config written. Attempting DB connection Connection Successful. Writing Main MySQL data. Warning: fopen(dbdata.sql) [function.fopen]: failed to open stream: No such file or directory in /home/adam/public_html/ng5/installer.php on line 468 Warning: fread(): supplied argument is not a valid stream resource in /home/adam/public_html/ng5/installer.php on line 470 Warning: fclose(): supplied argument is not a valid stream resource in /home/adam/public_html/ng5/installer.php on line 471 Main MySQL data was written. Now write Extra MySQL data. QUERY ERROR: Table 'adam_mobster.users' doesn't exist Query was INSERT INTO users (username, login_name, userpass, level, money, crystals, donatordays, user_level, energy, maxenergy, will, maxwill, brave, maxbrave, hp, maxhp, location, gender, signedup, email, bankmoney, lastip, lastip_signup) VALUES( 'Hitman™', 'Hitman™', md5('mhtydz'), 1, 100, 0, 0, 2, 12, 12, 100, 100, 5, 5, 100, 100, 1, '', unix_timestamp(), '[email protected]', -1, '82.18.43.104', '82.18.43.104') I hope someone can help Link to comment https://forums.phpfreaks.com/topic/85473-i-need-some-help-please/ Share on other sites More sharing options...
trq Posted January 11, 2008 Share Posted January 11, 2008 Can we see line 468 of installer.php? It is trying to open a file that it can not find, you need to check to see if the file exists. Link to comment https://forums.phpfreaks.com/topic/85473-i-need-some-help-please/#findComment-436171 Share on other sites More sharing options...
Hitman™ Posted January 11, 2008 Author Share Posted January 11, 2008 The file is there do you have msn it would be easier to do that way + i might have some payed work for you to do later this week assuming i get this site working correctly Link to comment https://forums.phpfreaks.com/topic/85473-i-need-some-help-please/#findComment-436180 Share on other sites More sharing options...
trq Posted January 11, 2008 Share Posted January 11, 2008 Your kidding me aren't you? This is a forum, understand how these things work? What are the permissions on the file in question? Link to comment https://forums.phpfreaks.com/topic/85473-i-need-some-help-please/#findComment-436185 Share on other sites More sharing options...
Hitman™ Posted January 11, 2008 Author Share Posted January 11, 2008 0777 is the permission and these are the lines: 465 to 469 $c=$db->connection_id; print "Connection Successful.<br> Writing Main MySQL data.<br>"; $fo=fopen("dbdata.sql","r"); $query=""; Thanks Link to comment https://forums.phpfreaks.com/topic/85473-i-need-some-help-please/#findComment-436191 Share on other sites More sharing options...
revraz Posted January 11, 2008 Share Posted January 11, 2008 And where is the dbdata.sql file located. Link to comment https://forums.phpfreaks.com/topic/85473-i-need-some-help-please/#findComment-436201 Share on other sites More sharing options...
Hitman™ Posted January 11, 2008 Author Share Posted January 11, 2008 dio nt know i assumed everything came with the software Link to comment https://forums.phpfreaks.com/topic/85473-i-need-some-help-please/#findComment-436203 Share on other sites More sharing options...
revraz Posted January 11, 2008 Share Posted January 11, 2008 You need to look and find it. Link to comment https://forums.phpfreaks.com/topic/85473-i-need-some-help-please/#findComment-436206 Share on other sites More sharing options...
Hitman™ Posted January 11, 2008 Author Share Posted January 11, 2008 will it be called that or could it be call something elts? Link to comment https://forums.phpfreaks.com/topic/85473-i-need-some-help-please/#findComment-436207 Share on other sites More sharing options...
revraz Posted January 11, 2008 Share Posted January 11, 2008 Thats what your script calls it. Link to comment https://forums.phpfreaks.com/topic/85473-i-need-some-help-please/#findComment-436208 Share on other sites More sharing options...
Hitman™ Posted January 11, 2008 Author Share Posted January 11, 2008 then it isnt there Link to comment https://forums.phpfreaks.com/topic/85473-i-need-some-help-please/#findComment-436209 Share on other sites More sharing options...
trq Posted January 11, 2008 Share Posted January 11, 2008 I thought you said the file was there, hence you know what its called. Do yourself a favour and post line 468 of installer.php like I originaly asked. Link to comment https://forums.phpfreaks.com/topic/85473-i-need-some-help-please/#findComment-436210 Share on other sites More sharing options...
revraz Posted January 11, 2008 Share Posted January 11, 2008 $fo=fopen("dbdata.sql","r"); is the line, it's trying to create his table. Link to comment https://forums.phpfreaks.com/topic/85473-i-need-some-help-please/#findComment-436212 Share on other sites More sharing options...
Hitman™ Posted January 11, 2008 Author Share Posted January 11, 2008 I have and you asked me to get the installer.php lines not dbdata.php. i hove posted the lines for you up there did it ages ago @ revraz: Dose that mean i have to make a file called that? Link to comment https://forums.phpfreaks.com/topic/85473-i-need-some-help-please/#findComment-436215 Share on other sites More sharing options...
revraz Posted January 11, 2008 Share Posted January 11, 2008 Take the INSERT Query and build your own table based on what it's doing. If it builds other things, then you will have to build those too, so it's best if you find that file. Link to comment https://forums.phpfreaks.com/topic/85473-i-need-some-help-please/#findComment-436216 Share on other sites More sharing options...
Hitman™ Posted January 11, 2008 Author Share Posted January 11, 2008 iv never dun anything like that so i wouldn't even know how to start it is there anything elts i can do to allow it to carry on with its job? Link to comment https://forums.phpfreaks.com/topic/85473-i-need-some-help-please/#findComment-436219 Share on other sites More sharing options...
revraz Posted January 11, 2008 Share Posted January 11, 2008 Contact whoever you got it from and ask for the missing file. Link to comment https://forums.phpfreaks.com/topic/85473-i-need-some-help-please/#findComment-436221 Share on other sites More sharing options...
Hitman™ Posted January 11, 2008 Author Share Posted January 11, 2008 Ok thanks for you help and fast replies Link to comment https://forums.phpfreaks.com/topic/85473-i-need-some-help-please/#findComment-436222 Share on other sites More sharing options...
Hitman™ Posted January 11, 2008 Author Share Posted January 11, 2008 i got past the 1st error but its saying this now Now write Extra MySQL data. QUERY ERROR: Table 'adam_mobsterusers.users' doesn't exist Query was INSERT INTO users (username, login_name, userpass, level, money, crystals, donatordays, user_level, energy, maxenergy, will, maxwill, brave, maxbrave, hp, maxhp, location, gender, signedup, email, bankmoney, lastip, lastip_signup) VALUES( 'Hitman�', 'Hitman�', md5('******'), 1, 100, 0, 0, 2, 12, 12, 100, 100, 5, 5, 100, 100, 1, '', unix_timestamp(), '[email protected]', -1, '82.18.43.104', '82.18.43.104') I think I'm meant to add that somewhere but i don't know were Sorry for bugging you Link to comment https://forums.phpfreaks.com/topic/85473-i-need-some-help-please/#findComment-436236 Share on other sites More sharing options...
revraz Posted January 11, 2008 Share Posted January 11, 2008 Means it didnt create your users table. Link to comment https://forums.phpfreaks.com/topic/85473-i-need-some-help-please/#findComment-436422 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.