• Hi Everyone,

    I have exhausted all of my possibilities and searched this support forum for hours, now I feel I must ask for some help as I think I might be going slightly crazy.

    I have used a method of putting WordPress into its own obscurely named directory for added security.

    Now I am receiving an error which is detailed below.

    The admin area works fine.

    \Warning: require(/home/hdwbnb/public_html./uniquephrase/wp-blog-header.php): failed to open stream: No such file or directory in /home/hdwbnb/public_html/index.php on line 17

    Warning: require(/home/hdwbnb/public_html./uniquephrase/wp-blog-header.php): failed to open stream: No such file or directory in /home/hdwbnb/public_html/index.php on line 17

    Fatal error: require(): Failed opening required ‘/home/hdwbnb/public_html./uniquephrase/wp-blog-header.php’ (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /home/hdwbnb/public_html/index.php on line 17\

    I have tried removing and renaming the file, my index.php code looks like this:

    \<?php
    /**
    * Front to the WordPress application. This file doesn’t do anything, but loads
    * wp-blog-header.php which does and tells WordPress to load the theme.
    *
    * @package WordPress
    */

    /**
    * Tells WordPress to load the WordPress theme and output it.
    *
    * @var bool
    */
    define(‘WP_USE_THEMES’, true);

    /** Loads the WordPress Environment and Template */
    require( dirname( __FILE__ ) . ‘../uniquephrase/wp-blog-header.php’ );}
    \

    If any one has any ideas about this I would be over the moon.

    Thanks.

    Fathernugen.

Viewing 1 replies (of 1 total)
  • Thread Starter fathernugen

    (@fathernugen)

    Sorry I felt bad about not understading the backticks. Herer is the code from the above post, posted properly.

    Warning: require(/home/hdwbnb/public_html./uniquephrase/wp-blog-header.php): failed to open stream: No such file or directory in /home/hdwbnb/public_html/index.php on line 17
    
    Warning: require(/home/hdwbnb/public_html./uniquephrase/wp-blog-header.php): failed to open stream: No such file or directory in /home/hdwbnb/public_html/index.php on line 17
    
    Fatal error: require(): Failed opening required '/home/hdwbnb/public_html./uniquephrase/wp-blog-header.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/hdwbnb/public_html/index.php on line 17
    <?php
    /**
    * Front to the WordPress application. This file doesn't do anything, but loads
    * wp-blog-header.php which does and tells WordPress to load the theme.
    *
    * @package WordPress
    */
    
    /**
    * Tells WordPress to load the WordPress theme and output it.
    *
    * @var bool
    */
    define('WP_USE_THEMES', true);
    
    /** Loads the WordPress Environment and Template */
    require( dirname( __FILE__ ) . '../uniquephrase/wp-blog-header.php' );
Viewing 1 replies (of 1 total)
  • The topic ‘WordPress in Separate directory won't load after upgrade’ is closed to new replies.