PHP Fatal error: Failed opening required file
-
I’m not seeing any errors on the frontend, I am not using a child theme and the file exists at the path specified in the error below. Notice how the error message is missing the theme name in the required file.
PHP Fatal error: ?require(): Failed opening required ‘/home/xxx/public_html/wp-content/themes//inc/custom-header.php’ (include_path=’.:/opt/cpanel/ea-php72/root/usr/share/pear’) in /home/xxx/public_html/wp-content/themes/theme_name/functions.php on line 517
Functions.php line 517:
require get_template_directory() . '/inc/custom-header.php';
What could be the reason why the error messaage is missing the theme name and why would I get this error of the file exists at the specified path?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘PHP Fatal error: Failed opening required file’ is closed to new replies.