• Resolved angleseykayaker

    (@angleseykayaker)


    Hi everyone, I’m new here, but I’ve read reams of info on this problem and tried lots of fixes but as yet, my site still is broken.

    I created a page called ‘blog’ in my site and set this as my page to display posts as I want a blog running alongside my website. Whenever I go to http://www.monactive.co.uk/blog, all I get is a white screen. I changed my theme to one of the default themes and the page worked – it showed some garbled text i put there as a test post, but when I change back to my customized TwentyTwelve theme, the problem returns. It’s not an issue with plugins, as I’ve tried disabling all, some or one at a time and this didn’t have any effect.

    Can anyone help?

    Thanks in advance

    AngleseyKayaker

Viewing 11 replies - 1 through 11 (of 11 total)
  • It’s probable that you have a PHP error somewhere in your customisation.

    • How heavily did you customise it?
    • Did you / can you check your server logs for any logged errors.

    You could also try adding:

    define( 'WP_DEBUG', true);

    to your wp-config.php and note any displayed errors.

    Thread Starter angleseykayaker

    (@angleseykayaker)

    Hi, thanks for your reply. I already have a static front paged, what I was trying to do was have the blog page seperately and it seems I created it in exactly the same way as described in that link. However, it doesn’t work within the TwentyTwelve theme

    Thread Starter angleseykayaker

    (@angleseykayaker)

    From my hosting error log:

    monactive.co.uk [Wed Jan 22 21:51:39 2014] [error] [client 78.144.84.189:36028] AH01215: PHP Warning: require(./path-to-your-blog/wp-blog-header.php): failed to open stream: No such file or directory in /home/sites/monactive.co.uk/public_html/wp-content/themes/twentytwelve/index.php on line 2
    monactive.co.uk [Wed Jan 22 21:51:39 2014] [error] [client 78.144.84.189:36028] AH01215: PHP Fatal error: require(): Failed opening required ‘./path-to-your-blog/wp-blog-header.php’ (include_path=’.:/usr/share/pear53:/usr/share/php:/usr/share/ZendFramework’) in /home/sites/monactive.co.uk/public_html/wp-content/themes/twentytwelve/index.php on line 2

    Thread Starter angleseykayaker

    (@angleseykayaker)

    All I’ve done from a customisation point of view is change site title, tagline and header image. Defined which menu to use for navigation then defined static front page and posts page. All options rather than customisations in my opinion.

    Do you really have path-to-your-blog in your index file?

    Thread Starter angleseykayaker

    (@angleseykayaker)

    I do, this comes before any other text in the index.php

    <?php
    require(‘./path-to-your-blog/wp-blog-header.php’);
    ?>

    You should replace ‘path-to-your-blog’ to the actual path of your blog.

    As far as i can see from your error message, your blog is located a the root of your server, so you should replace this line by

    <?php
    require(‘./wp-blog-header.php’);
    ?>

    This should do the trick.

    Thread Starter angleseykayaker

    (@angleseykayaker)

    Polychrome, you’re a genius, thanks. That and I’m a newbie idiot!

    Thanks, all sorted now

    Glad I could help !

    Why was the index.php originally modified? WP core files should never be changed.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Simple fix, anyone?’ is closed to new replies.