• Each time I click one of the Categories or Archives links i get this error:

    PHP Fatal error: main(): Failed opening required ‘./wp-blog-header.php’ (include_path=’.;c:\php4\pear’) in D:\ensimdata\landiej-nl\Inetpub\wwwroot\wordpress\index.php on line 4 .

    I haven’t changed anything in index.php, looks like this:
    <?php
    /* Short and sweet */
    define(‘WP_USE_THEMES’, true);
    require(‘./wp-blog-header.php’);
    ?>

    What should I do?

Viewing 6 replies - 1 through 6 (of 6 total)
  • First, get your site design out of tables. Second, get your site out of an iframe. Third, validate your site and fix the errors. In the state it is currently in, it cannot even be validated.

    Go step by step and clean these things up. If your site is in WordPress version 1.2, consider upgrading. I believe you might find some of your errors during this process and help your site tremendously. Currently, in the form that it stands, it won’t work in all browsers and it is not very friendly to search engines.

    Thread Starter landiej

    (@landiej)

    The errors I’m having here are not errors on my homepage, but errors here: https://www.landiej.nl/wordpress/index.php

    Just a wordpress blog with the boredom template… Besides the FTP-server it has nothing to do with my homepage yet.

    Try changing your index.php get header info to this:

    <?php
    /* Don't remove this line. */
    require('./wp-blog-header.php');
    include(get_template_directory() . '/header.php');
    ?>

    Change it in the Theme folder of the theme you are using.

    Thread Starter landiej

    (@landiej)

    That doesn’t work, but I’m not sure if I did it right:

    I replaced
    <?php get_header(); ?>

    with
    <?php
    /* Don’t remove this line. */
    require(‘./wp-blog-header.php’);
    include(get_template_directory() . ‘/header.php’);
    ?>

    in the index.php of my template. Please correct me if I’m doing something stupid ?? Not that much experienced with php.. ??

    Are you using version 1.2 or 1.5?

    Thread Starter landiej

    (@landiej)

    I use version 1.5.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Categories and Archives links not working!’ is closed to new replies.