News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

boarddir error

Started by cybercrypt13, December 22, 2016, 09:46:47 AM

Previous topic - Next topic

cybercrypt13

I haven't made any changes but our server ran out of disk space last night.  I fixed that issue but now when I attempt to open our forum it comes up with a 500 error.  Digging into the logs it shows error in php that says $boarddir doesn't exist.  Where does this get set and why would it all of the sudden not be set?

Thanks,

Glenn

ziycon

Can you post the errors your seeing?

cybercrypt13

Sorry:

PHP Notice:  Undefined variable: boarddir in /var/www/twincommandergroup.com/index.php on line 44

cybercrypt13

Here is the entire block of errors but it all seems to be related to $boarddir not existing.

[22-Dec-2016 14:52:43 UTC] PHP Notice:  Undefined variable: boarddir in /var/www/twincommandergroup.com/index.php on line 44
[22-Dec-2016 14:52:43 UTC] PHP Notice:  Undefined variable: boarddir in /var/www/twincommandergroup.com/index.php on line 46
[22-Dec-2016 14:52:43 UTC] PHP Notice:  Undefined variable: sourcedir in /var/www/twincommandergroup.com/index.php on line 50
[22-Dec-2016 14:52:43 UTC] PHP Warning:  require_once(/QueryString.php): failed to open stream: No such file or directory in /var/www/twincommandergroup.com/index.php on line 50
[22-Dec-2016 14:52:43 UTC] PHP Fatal error:  require_once(): Failed opening required '/QueryString.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/twincommandergroup.com/index.php on line 50

cybercrypt13

I hardcoded boarddir and sourcedir to where my source is and added "/Sources" to the sourcedir variable.  Now I'm not getting any php errors but I am getting error that it can't connect to the database.  Which has me wondering where it stores the database information to begin with.  I am totally confused as to how all of this has gotten messed up.

thanks,

Glenn

ziycon

I would suggest putting a fresh copy of the SMF files onto your server and go from there, this wont affect your data, use the same version SMF files that you have already.

Uninstall all mods first and then place the fresh files on the server.

Kindred

actually, before you do that -- check... is your Settings.php file still there?  Is it an empty file?
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

cybercrypt13


Illori

do you have a settings_bak.php file? if so copy it to Settings.php. DO NOT rename the existing file, you want to use to create the new file.

cybercrypt13

It is also empty.   Is there somewhere I can get an example of the file that I can fill out the missing data from?  I assume this is my entire problem but I do not know why it went missing.

Thanks,

Glenn

cybercrypt13

Thank you for pointing out that file.  I found the parameters in a google search and manually entered them all again and I'm back up and running.

Thanks again and have a Merry Christmas,

Glenn

Advertisement: