In PHP logs I keep getting errors like this:
does not exist: /home/user/domains/domain/public_html/wp-index.php, referer: .php
File does not exist: /home/user/domains/domain/public_html/blog/wp-index.php, referer: .php
However, the referrers don't exist either, so I'm not sure where to track the problem down. What is causing the error? The blog itself seems to work fine. I'm just trying to eliminate the errors in the log.
WordPress 5.5.1
Not sure what to tag this question with.
[ed]
I could not find any instances of the string "wp-index.php" in my blog folder.
Here's a screenshot of the log. Is it an PHP error log or access log?
In PHP logs I keep getting errors like this:
does not exist: /home/user/domains/domain/public_html/wp-index.php, referer: http://domain/wp-index.php
File does not exist: /home/user/domains/domain/public_html/blog/wp-index.php, referer: http://domain/blog/wp-index.php
However, the referrers don't exist either, so I'm not sure where to track the problem down. What is causing the error? The blog itself seems to work fine. I'm just trying to eliminate the errors in the log.
WordPress 5.5.1
Not sure what to tag this question with.
[ed]
I could not find any instances of the string "wp-index.php" in my blog folder.
Here's a screenshot of the log. Is it an PHP error log or access log?
Share Improve this question edited Oct 11, 2020 at 4:37 posfan12 asked Oct 8, 2020 at 21:01 posfan12posfan12 1177 bronze badges 4 |1 Answer
Reset to default 1To investigate the issue, you can follow these steps:
- Check site URL in settings - General, WordPress Address (URL) and Site Address (URL) If you have WordPress in a directory, make sure the installation process is right based on https://wordpress/support/article/giving-wordpress-its-own-directory/
- Check .htaccess file to make sure there is no wrong rule. Check the documentation link on step 1.
- Re-install WordPress from admin dashboard - Updates.
wp-index.php
isn't a WP file, and are you sure this is a PHP error log and not an Apache/Nginx access log? Those could just be 404's from bots probing your site – Tom J Nowell ♦ Commented Oct 8, 2020 at 21:33