WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] PHP Fatal error: load_template() (2 posts)

  1. DickRaney
    Member
    Posted 5 years ago #

    I am getting errors that I don't understand in my error log. They seem to show that theme.php (line 822) is trying to load /wp-content/themes/default/sidebar.php

    I don't understand this because I am not using the default theme. The site is working fine (I think) but these errors have me wondering what is going on???

    Here is a section from my error log with the real domain name modified for privacy:

    [client 66.249.70.97] PHP Warning: load_template(/var/www/vhosts/mydomain.com/httpdocs/wp-content/themes/default/sidebar.php): failed to open stream: No such file or directory in /var/www/vhosts/mydomain.com/httpdocs/wp-includes/theme.php on line 822
    [client 66.249.70.97] PHP Fatal error: load_template(): Failed opening required '/var/www/vhosts/mydomain.com/httpdocs/wp-content/themes/default/sidebar.php' (include_path='.:/usr/share/pear') in /var/www/vhosts/mydomain.com/httpdocs/wp-includes/theme.php on line 822
    [client 66.249.67.107] PHP Warning: load_template(/var/www/vhosts/mydomain.com/httpdocs/wp-content/themes/default/sidebar.php): failed to open stream: No such file or directory in /var/www/vhosts/mydomain.com/httpdocs/wp-includes/theme.php on line 822
    [client 66.249.67.107] PHP Fatal error: load_template(): Failed opening required '/var/www/vhosts/mydomain.com/httpdocs/wp-content/themes/default/sidebar.php' (include_path='.:/usr/share/pear') in /var/www/vhosts/mydomain.com/httpdocs/wp-includes/theme.php on line 822

    I would appreciate any help in tracking down and fixing these errors.

    Thanks!!

  2. DickRaney
    Member
    Posted 5 years ago #

    I think I figured it out myself. I never did customize the 404 template and it was calling the sidebar(). Since my theme didn't have a template called sidebar.php it seems that WordPress tried looking for it in the default theme.

Topic Closed

This topic has been closed to new replies.

About this Topic