error retrieving 401.php
-
Hi,
I am taking over a WordPress site that someone else built. I’ve moved it to a new server and pretty much everything seems OK except for this ONE thing:in footer.php, there’s a line of code:
<?require_once($_SERVER['DOCUMENT_ROOT'].'/admin/wp-content/themes/default/images/401.php');?>
It results in this error appearing in the bottom of the footer:
Warning: require_once(/home/secure22/public_html/htdocs/admin/wp-content/themes/default/images/401.php) [function.require-once]: failed to open stream: No such file or directory in /home/daniel71/public_html/admin/wp-content/themes/mytheme/footer.php on line 21
I have never seen this before and am wondering if I can safely remove the code from footer.php. I don’t see it in the footers of other themes. I’m guessing it was an attempt to create a custom 401 error page or something, but why is it looking in the images folder of a theme (default) the site isn’t even using?
It does NOT result in an error in the version of the site that’s still live on the old server…presumably b/c the file path there is correct, and I don’t know how to correct the code for the new server.
Any ideas appreciated!
- The topic ‘error retrieving 401.php’ is closed to new replies.