Simple Machines Community Forum

SMF Support => SMF 1.1.x Support => Topic started by: imperialstar on December 08, 2010, 03:20:24 PM

Title: undefined error
Post by: imperialstar on December 08, 2010, 03:20:24 PM
I am getting this error message when i try to access my forum. Can anybody tell me is this related to the server attacks or is it something else. Cheers

Notice: Undefined variable: sourcedir in /home/lomondfl/public_html/smf/index.php on line 54

Warning: require_once(/QueryString.php) [function.require-once]: failed to open stream: No such file or directory in /home/lomondfl/public_html/smf/index.php on line 54

Fatal error: require_once() [function.require]: Failed opening required '/QueryString.php' (include_path='.:/usr/lib/php:/usr/local/lib/php:/usr/local/Zend/Framework/library') in /home/lomondfl/public_html/smf/index.php on line 54
Title: Re: undefined error
Post by: Kindred on December 08, 2010, 03:26:15 PM
the server attacks have nothing at all to do with any problems on your own site. Please ask for support with your site in the support section for your version.
Title: Re: undefined error
Post by: MrPhil on December 08, 2010, 10:38:30 PM
This is a very old and very well known bug in SMF. When you have a database problem, it can result in the Settings.php file being emptied out (0 size). Simply copy your Settings_bak.php file over your empty Settings.php file and you'll be in business. Make your Settings.php file "read only" (444 on a Linux server) to keep it from happening again. If your Settings_bak.php file is also empty or corrupted, you'll have to download and run repair_settings.php to rebuild your Settings.php file.
Title: Re: undefined error
Post by: imperialstar on December 10, 2010, 08:34:47 PM
MrPhil you are a star, i'm back in business  ;D

Thanks for your advice  ;)