Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
andavis Posted September 20, 2023 Posted September 20, 2023 I am getting a HTTP ERROR 500 and the page is down. From the server log I cann see: [20-Sep-2023 03:27:27 UTC] PHP Fatal error: Uncaught Error: Call to undefined function set_magic_quotes_runtime() in /home/nginx/domains/xxxxxx.com/public/initdata.php:382 Stack trace: #0 /home/nginx/domains/xxxxxx.com/public/showthread.php(28): require_once() #1 {main} thrown in /home/nginx/domains/xxxxxx.com/public/initdata.php on line 382 I tried the recovery mode solution: But but I still cannot see the a login page (HTTP ERROR 500) Is there any other suggestion to this?
Adlago Posted September 20, 2023 Posted September 20, 2023 Disable 3rd party plugins. It is possible that some php is not working correctly.
andavis Posted September 20, 2023 Author Posted September 20, 2023 I cannot even access the site and the ACP. How can I disable them?
teraßyte Posted September 20, 2023 Posted September 20, 2023 What Invision Community & PHP versions are you using? Seems like the server is using the wrong PHP version. The file initdata.php is from IP.Board 3.x, the file in 4.x is called init.php.
Adlago Posted September 20, 2023 Posted September 20, 2023 6 minutes ago, andavis said: I cannot even access the site and the ACP. How can I disable them? Try in address bar: yoursite/admin/ for log
andavis Posted September 20, 2023 Author Posted September 20, 2023 16 minutes ago, teraßyte said: What Invision Community & PHP versions are you using? Seems like the server is using the wrong PHP version. The file initdata.php is from IP.Board 3.x, the file in 4.x is called init.php. Can I delete initdata.php from server?
teraßyte Posted September 20, 2023 Posted September 20, 2023 (edited) 29 minutes ago, andavis said: Can I delete initdata.php from server? You can delete it, but only if you are using Invision Community 4.x. If you're still using the old IP.Board 3.x version it's a required file. Edited September 20, 2023 by teraßyte
Adlago Posted September 20, 2023 Posted September 20, 2023 1 hour ago, andavis said: Uncaught Error: Call to undefined function set_magic_quotes_runtime This function was DEPRECATED in PHP 5.3.0, and REMOVED as of PHP 7.0.0. Which version of IPS are you using? To use recovery mode, you are probably running version 4.x.x Which PHP version are you using - check in your server, it should be above 7.x.x and even above 8.0.0 What does your host support say about this condition of yours? Miss_B 1
Miss_B Posted September 20, 2023 Posted September 20, 2023 @andavis, this looks to be a php incompatibility issue by looking at the error message. To add to the above, what was the latest change made either to the forum or the server prior to this error happning? Adlago and Jim M 2
Marc Posted September 21, 2023 Posted September 21, 2023 showthread.php is something old from an old migration. Try removing that and see if that resolves the issue
andavis Posted October 23, 2023 Author Posted October 23, 2023 In some way the problem is that "something" is changing all the index.php files in the server. After restoring the /index.php and the /admin/index.php files I get this fix issue in my ACP. Quote Some of the source files for Invision Community have been modified. /home/nginx/domains/michanikos.gr/public/admin/convertutf8/index.php /home/nginx/domains/michanikos.gr/public/admin/install/index.php /home/nginx/domains/michanikos.gr/public/admin/upgrade/index.php /home/nginx/domains/michanikos.gr/public/api/graphql/index.php /home/nginx/domains/michanikos.gr/public/api/index.php /home/nginx/domains/michanikos.gr/public/oauth/authorize/index.php /home/nginx/domains/michanikos.gr/public/oauth/callback/index.php /home/nginx/domains/michanikos.gr/public/oauth/token/index.php You should download an unmodified copy of those files and upload them to your server. Once that is done, check if the problem persists. How can I get protected? Who can access and change this files? I have the latest IPS version.
Randy Calvert Posted October 23, 2023 Posted October 23, 2023 (edited) If you are running the latest version of the IPB software, it’s either going to be a hosting issue or something else installed on your site doing this. If there was a mass software issue, it would be impacting literally everyone else. As noted earlier, showthread.php is not part of the default IPB software. You might want to remove ANYTHING not part of the default software. Edited October 23, 2023 by Randy Calvert
andavis Posted October 23, 2023 Author Posted October 23, 2023 I am not sure which files I have to delete, that they are not longer needed. Can I hire someone to do this for me?
Miss_B Posted October 23, 2023 Posted October 23, 2023 3 hours ago, andavis said: Who can access and change this files? If you haven't edited those files yourself, you can ask your host to check their logs and see who accessed them and how. You can also check the ftp logs and see if there was any unusal activity around the time that those files were modified.
Marc Posted October 23, 2023 Posted October 23, 2023 If files are genuinely being changed on your server, the reality is only your hosting company is going to be able to assist you here
Recommended Posts