• Resolved gkosovic

    (@gkosovic)


    Can anyone make sense out of this error message?

    Warning: require(./wp/wp-blog-header.php) [function.require]: failed to open stream: No such file or directory in /home/content/31/8187731/html/wp/index.php on line 17

    Fatal error: require() [function.require]: Failed opening required ‘./wp/wp-blog-header.php’ (include_path=’.:/usr/local/php5/lib/php’) in /home/content/31/8187731/html/wp/index.php on line 17

    I’ve been developing a WordPress site in my :mydomain.com/wp, the content of which is intended to replace the HTML site currently in the root of :my domain.com. Now I’m trying to make the changes needed to make the WP installation in the *wp* subdirectory the active content. It appears that an obstacle in getting this done is the error message reported above.

    See http://www.isi-companies.com.

    Perhaps you could also straighten me out on this related matter:
    I understand that I need to copy .htaccess and index.php from the *wp* folder to the root. Correct?
    Also that LIne 17 of the index.php that ends up in the root needs to be modified to read [backtick]require(‘./wp/wp-blog-header.php’);[backtick]. Corrrect? (Sorry, I don;t have a clue what a backtick is.)
    Does Line 17 of the index.php in the *wp* folder remain [backtick]require(‘./wp-blog-header.php’);[backtick]?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi There:

    You’re basically moving a WordPress installation from a sub-dir to your root dir.

    I’m hoping you read through this documentation.

    For the most part, if you follow this along, make yourself a check list and do it step by step, you should be able to get everything working.

    Thread Starter gkosovic

    (@gkosovic)

    Thanks for giving this your attention, ronmerk.

    Actually, I’m leaving the WordPress installation where it is, in a root subdirectory called wp.

    I will follow the directions offered but I’m still mystified by this index.php error mssage that keeps coming up. Can you shed any light on it for me? Here it is, as reported at the top of my original post:

    Warning: require(./wp/wp-blog-header.php) [function.require]: failed to open stream: No such file or directory in /home/content/31/8187731/html/wp/index.php on line 17

    Fatal error: require() [function.require]: Failed opening required ‘./wp/wp-blog-header.php’ (include_path=’.:/usr/local/php5/lib/php’) in /home/content/31/8187731/html/wp/index.php on line 17

    Thread Starter gkosovic

    (@gkosovic)

    Issues resolved on all fronts. Error problem with index.php went away. A light supper, a cold beer and some time away from the iMac all contributed but thanks mostly to ronmerk.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Missing file or directory on line 17 of index.php’ is closed to new replies.