• Resolved tigerdog

    (@tigerdog)


    I’m using a modified Tropical Breeze theme. Having a problem with the sidebar not showing up on my Pages (in either IE or FF). The error message I get at the bottom of each Page is as follows:

    Warning: comments_template(/home/streetta/public_html/wp-content/themes/tropical-breeze): failed to open stream: Success in /home/streetta/public_html/wp-includes/comment-functions.php on line 24

    Fatal error: comments_template(): Failed opening required ‘/home/streetta/public_html/wp-content/themes/tropical-breeze’ (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /home/streetta/public_html/wp-includes/comment-functions.php on line 24

    My blog is http://streettalkblog.com and the sidebar is fine on everything except the Pages. I haven’t got the least clue what to do or what the error message means. Help please?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Silly suggestion, but have you made sure that “page.php” doesn’t have any junk in front of the very first <?php opener? In a previous file, I had an unnecessary carriage return and I got stream errors…clearing out that extra stuff fixed it…

    Of course, the problem might not be in page.php — especially if you haven’t touched it…That’s just the first thing that comes to mind…

    Edit: Looks like something in comment-functions.php or a file that loads prior to that…but you probably already figured that out…

    Thread Starter tigerdog

    (@tigerdog)

    No I hadn’t figured that out (I’m so clueless), but thanks for the suggestion. I went back and looked again and discovered that the Tropical Breeze theme does not have a pages.php file. I tried publishing the page.php from other themes to see what would happen and the sidebar then shows up– but not in the right place. So it appears that the lack of that page specifically written for Tropical Breeze is the problem. I wouldn’t have discovered that without your help.

    Unfortunately I don’t have a clue how to hack a different theme’s page.php so it will work properly with Tropical Breeze, so I’m still stuck. Any suggestions?

    Look this page over first Pages#Page_Templates.

    Then what I would do is copy the contents of your index.php file into the new page template that you create using the instructions in the codex. From there, you can tweak what you do, and don’t want in the content.

    Thread Starter tigerdog

    (@tigerdog)

    I found a post that helped a lot at http://wordpress.org/support/topic/36245

    1. This error might be caused by an old (pre-1.5) call for the comments.php template. Check if you have this line in your index.php:
    <?php comments_template( is_single() ); // Get wp-comments.php template ?>
    change it to
    <?php comments_template(); // Get wp-comments.php template ?>

    I made that change and the sidebar now shows up in my Pages. The color and background that sets the sidebar apart from the rest of the Page is gone (it’s all one white page), but I can live with that since it doesn’t affect the main body of my blog (only affects the Pages).

    So I guess this issue is mainly resolved. Thanks for your help.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Sidebar missing from Pages’ is closed to new replies.