Joshua Posted March 22, 2010 Share Posted March 22, 2010 I'm taking over the FreedomCity Project and would like to get all the bugs worked out first before i delve into anything new. The first bug I've encountered is on the Forums on the site. When you click forums the list of options for various differant forums pop up to select. Once you select a forum you'd like to visit it chucks out this error Warning: mysql_query() [function.mysql-query]: Access denied for user 'nobody'@'localhost' (using password: NO) in /home/~~~~~~~/_forum.php on line 22 Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in /home/~~~~~~~~~/forum.php on line 22 Access denied for user 'nobody'@'localhost' (using password: NO) On Line 22 of forum.php is the very first mysql_query, obviously it's not connecting with the host. I looked through forum.php and _forum.php and there is nothing being included that connects with the actual database. So i took the liberty of including the safe.php and function file. Then it connected but gave me a cannot resend session output, session in connect.php and one in forum.php. However there is no "session" bit in either forum.php nor _forum.php so i'm at a loss of why it's doing that >< Quote Link to comment Share on other sites More sharing options...
srachit Posted March 22, 2010 Share Posted March 22, 2010 You could buy dayo's forum, if I am right his game is coded in GL so he would have a copy of the forums he is selling for GL Quote Link to comment Share on other sites More sharing options...
Dayo Posted March 22, 2010 Share Posted March 22, 2010 if i remember correctly your db details are located in safe.php, if not look at the included files in top.php Quote Link to comment Share on other sites More sharing options...
Djkanna Posted March 22, 2010 Share Posted March 22, 2010 Now if it's set up remotely like Mc Codes where there is like a globals file that has everything in one place including a configed linked in then check that query make sure there is a connection identifier on the end of it ;) Quote Link to comment Share on other sites More sharing options...
Dayo Posted March 22, 2010 Share Posted March 22, 2010 top.php is the gobal file (global.php) merged with the template safe.php has all the varables like $username $money etc ... Quote Link to comment Share on other sites More sharing options...
Djkanna Posted March 23, 2010 Share Posted March 23, 2010 So then include top.php and add the connection identifier in this 'query' see if that sorts it :) Quote Link to comment Share on other sites More sharing options...
Joshua Posted March 23, 2010 Author Share Posted March 23, 2010 Aye but I browsed the "top.php" file and it's just a blank file :\ If i include the safe.php file, it's double session starting via the connec file. However if I dont include safe.php it doesnt connect at all Which is strange, because the session stuff is linked through connect.php that's linked through safe.php But neither safe nor connect are anywhere else in forums until I add them, so meh! Quote Link to comment Share on other sites More sharing options...
Dayo Posted March 23, 2010 Share Posted March 23, 2010 then you have edited the base script so without seeing the scripts i dont know, what is at the top of every main fie? Quote Link to comment Share on other sites More sharing options...
Taxed Posted March 23, 2010 Share Posted March 23, 2010 Ill fix these ltittle errors immortal. You cant really compare the source to the orgininal GL as its been massivley upgraded and a lot of changes made. Quote Link to comment Share on other sites More sharing options...
Joshua Posted March 23, 2010 Author Share Posted March 23, 2010 aye I've noticed that, I'm just working on learning the ins and outs of this engine trying to graduate past mccodes as I really like how this engine is set up other than a few MRES's on integers and some of the ereg, most of which I've replaced with preg >,< It's coded very well. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.