PHP Fatal error: require_once(): Failed opening required '/QueryString.php' (include_path='.:/opt/alt/php74/usr/share/pear') in /xxxxxxxxxxxxxx/index.php on line 51"
Hi team
Im stuck here,
any clues how to fix this 500 error much appreciated
This is what was reported to me
There are a few more errors that wont break the website, but they will lead to that
[27-Jun-2022 21:39:17 UTC] PHP Notice: Undefined variable: boarddir in *********/index.php on line 47 [27-Jun-2022 21:39:17 UTC] PHP Notice: Undefined variable: sourcedir in /**********/xHere/index.php on line 51 [27-Jun-2022 21:39:17 UTC] PHP Warning: require_once(/QueryString.php): failed to open stream: No such file or directory in /home/skiflmnr4msh/public_html/xHere/index.php on line 51
All of them from the code in the .index file.
That means your Settings.php file is messed up. You can use the repair_settings.php file from the Tools (https://download.simplemachines.org/index.php?tools) section of the downloads page to fix it. See https://wiki.simplemachines.org/smf/Repair_settings.php for more information on that tool.
You must upgrade ASAP to at least 2.0.19, or 2.1.2. 1.1 branch went eol over four years ago and is unsupported, and will not work in currently supported php versions.
https://www.simplemachines.org/community/index.php?topic=534915
https://www.simplemachines.org/community/index.php?topic=559497
Thank you for the replies,
most grateful :)
Also, it appears that your host may have deleted the querystring.php file
Who is your host service?
Quote from: Kindred on June 28, 2022, 05:02:00 AMAlso, it appears that your host may have deleted the querystring.php file
Who is your host service?
Not sure if there's another thread somewhere where the person's host had deleted the querystring.php file
Quote from: Kindred on June 28, 2022, 05:02:00 AMAlso, it appears that your host may have deleted the querystring.php file
Who is your host service?
No, it really looks like it's missing the $sourcedir from an empty Settings.php file as the leading / is still there, and /QueryString.PHP is unlikely to exist on any system.
Ah, thanks. It was early and it looked so much like this stupid hosts who remove files
The main files that get deleted are Subs-Auth and Subs-Post because they look sUsPiCiOuS due to the hashing and encoding algorithms they use.