News:

Join the Facebook Fan Page.

Main Menu

php, error, line 51,

Started by jamesNorth, June 27, 2022, 06:01:10 PM

Previous topic - Next topic

jamesNorth

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.

Oldiesmann

That means your Settings.php file is messed up. You can use the repair_settings.php file from the Tools section of the downloads page to fix it. See https://wiki.simplemachines.org/smf/Repair_settings.php for more information on that tool.
Michael Eshom
Christian Metal Fans

Sir Osis of Liver

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
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

jamesNorth

Thank you for the replies,

most grateful  :)   

Kindred

Also, it appears that your host may have deleted the querystring.php file

Who is your host service?
Сл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."

SpacePhoenix

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

Arantor

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.

Kindred

Ah, thanks.  It was early and it looked so much like this stupid hosts who remove files
Сл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."

Arantor

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.

Advertisement: