[wp-trac] [WordPress Trac] #52420: core file "wp-load.php" getting wiped out
WordPress Trac
noreply at wordpress.org
Tue Feb 2 09:42:04 UTC 2021
#52420: core file "wp-load.php" getting wiped out
--------------------------+-----------------------------
Reporter: whbtechs | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 5.6
Severity: critical | Keywords:
Focuses: |
--------------------------+-----------------------------
Hello,
We've discovered a strange bug with a WP instance. All of sudden the WP
websites start throwing out the 500 Internal Server Error.
The local error log files contain the following records:
======================================================================================
Uncaught Error: Call to undefined function wp() in
/home/username/public_html/wp-blog-header.php:16
======================================================================================
Looking at the WP core files, we can see that the "wp-load.php" file is
completely empty:
=============================
0 wp-load.php
4.0K cgi-bin
4.0K index.php
4.0K wp-blog-header.php
4.0K wp-comments-post.php
4.0K wp-config.php
4.0K wp-config-sample.php
4.0K wp-cron.php
4.0K wp-links-opml.php
4.0K xmlrpc.php
8.0K readme.html
8.0K wp-activate.php
8.0K wp-trackback.php
=============================
A temporary solution that we found consists of uploading the "wp-load.php"
file from a fresh WP installation archive and assigning the immutable bit
on the file using "chattr"
We don't know what process or change causes the core file code wiped out.
Can you please look into it and let us know if it's a global problem with
the WP instance or it's a local problem?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/52420>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list