• yourbudweiser

    (@yourbudweiser)


    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)
  • threadi

    (@threadi)

    Which theme do you use? Does this also happen without any active plugins?

    the5krunner

    (@the5krunner)

    have you tried updating php? looks like you might be on version 7.2 and there are version 8.X. it’s not a wordpress option but rather an option at your hosting company’s side, perhaps in CPANEL.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘PHP Fatal error: Failed opening required file’ is closed to new replies.