Jump to content

Error 500 - Cannot access community


andavis

Recommended Posts

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?

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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?

 

Link to comment
Share on other sites

  • 1 month later...

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.

Link to comment
Share on other sites

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
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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