• Hi. I’m getting the following error at the first time I load my site, but a hard refresh allows the site to direct to the subdirectory.

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

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

    Fatal error: require(): Failed opening required ‘/home1/csikycom/public_htmlpup/wp-blog-header.php’ (include_path=’.:/opt/php70/lib/php’) in /home1/csikycom/public_html/index.php on line 17

    It looks like there should be a / between public_html and pup:

    /home1/csikycom/public_html/pup/wp-blog-header.php

    Thoughts?

    • This topic was modified 6 years, 5 months ago by rharrison2018.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator keesiemeijer

    (@keesiemeijer)

    Did you edit the index.php file?

    
    /home1/csikycom/public_html/index.php
    

    If so, post the content of that file here

    Thread Starter rharrison2018

    (@rharrison2018)

    Yeah. I was attempting to copy then update the index.php into the parent_html folder, and keep the wp- elements in public_html/pup

    <?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__ ) . '/pup/wp-blog-header.php' );
    Moderator keesiemeijer

    (@keesiemeijer)

    The leading slash in /pup/wp-blog-header.php seems to be correct. Strange it is missing from the require.

    /home1/csikycom/public_htmlpup/wp-blog-header.php

    Can you try again with de-activating all plugins and maybe switching to the default theme.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Works on Second Load’ is closed to new replies.