Jump to content

Recommended Posts

Posted

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?

Posted
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?

Posted (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 by teraßyte
Posted
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?

 

  • 1 month later...
Posted

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.

Posted (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 by Randy Calvert
Posted
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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...