Move WWW to Staging, receive Wordfence error
-
Hi,
I moved my https://www.example.com site to staging.example.com. This involved copying the contents of /home/example/public_html to /home/example/staging.example.com
When I load staging.example.com, I receive the error:
Warning: Unknown: failed to open stream: No such file or directory in Unknown on line 0
Fatal error: Unknown: Failed opening required ‘/home/example/public_html/wordfence-waf.php’ (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in Unknown on line 0
I have replaced the contents of /home/example/staging.example.com/wordfence-waf.php with:
<?php // Before removing this file, please verify the PHP ini setting <code>auto_prepend_file</code> does not point to this. if (file_exists('/home/example/staging.example.comu/wp-content/plugins/wordfence/waf/bootstrap.php')) { define("WFWAF_LOG_PATH", '/home/example/staging.example.com/wp-content/wflogs/'); include_once '/home/example/staging.example.com/wp-content/plugins/wordfence/waf/bootstrap.php'; } ?>
however, the error remains.
I have searched the database and files in /home/example/staging.example.com for instances of
public_html
and fine nothing.I have cleared the browser cache and the issue remains. There is no server cache or CDN.
Help appreciated.
- The topic ‘Move WWW to Staging, receive Wordfence error’ is closed to new replies.