Ready to get started?Download WordPress


error in index.php (1 post)

  1. joelchr
    Posted 7 years ago #

    I tried to include the blog into my website, but found an error on line 4;

    "Warning: require(./wp-blog-header.php) [function.require]: failed to open stream: No such file or directory in /home/jqedssax/public_html/blogg/index.php on line 4

    Fatal error: require() [function.require]: Failed opening required './wp-blog-header.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/jqedssax/public_html/blogg/index.php on line 4"

    In the index.php is says:

    /* Short and sweet */
    define('WP_USE_THEMES', true);

    Notice the "./". It shouldn't be there, because the wp-blog-header.php is in the same directory as index.php. So the index.php should look like this:

    /* Short and sweet */
    define('WP_USE_THEMES', true);

    It also works well with the "original" site (non-included). As it did before.

    (I'm sorry for my bad grammar. Non-english)

Topic Closed

This topic has been closed to new replies.

About this Topic