What would cause WP 4.5 to load a PHP file from parent directory?
-
I have a problem that I can’t figure out. I have a WordPress installation stored in a sub-directory below the root (it is a backup of the live version in the root directory which is currently broken – it may have been hacked or somehow damaged). The path to this sub-directory is: /public_html/staging
The admin in the sub-directory is accessible and appears to be working fine. Also the home page of the website in the sub-directory is working fine but any other page on the website generates the following warning and fatal error (I removed the root directory name for security/privacy):
Warning: require_once(/home/********/public_html/wp-admin/setup-config.php): failed to open stream: No such file or directory in /home/********/public_html/wp-config.php on line 94 Fatal error: require_once(): Failed opening required '/home/********/public_html/wp-admin/setup-config.php' (include_path=':/usr/local/php54/lib/php') in /home/********/public_html/wp-config.php on line 94
Looking at the warning and error, it seems like instead of looking at files in /public_html/staging where I believe it should be looking, it is trying to use the bad files in the root folder (public_html).
I’ve looked in the admin under general settings and it is indeed set to [domain]/staging (or /public_html/staging) so I don’t know why WordPress would be reading the files in the root which I know are all messed up.
I have the WP 4.5. Theme is Avada 3.9.4 (latest version released yesterday for compatibility with WP 4.5) and I updated all of my plugins to their latest versions.
I have no idea where to begin to fix this. Any suggestions?
- The topic ‘What would cause WP 4.5 to load a PHP file from parent directory?’ is closed to new replies.