• Hello, when I type in my url I get this error message:

    nt 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(‘./wp-blog-header.php’); ?>

    Does anyone have any idea what’s causing this? I’ve tried reloading a new theme but it doesn’t make any difference.

    Thanks,
    Cassie.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Phil

    (@owendevelopment)

    Open up your index.php in your ROOT WordPress install:

    eg, http://www.yourdomain.com/index.php

    Make sure to ensure it is EXACTLY 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('./wp-blog-header.php');
    ?>

    Not having the <?php at the start for example can really mess everything up.

    Hope this helps.

    Phil

    Thread Starter womenswaytowealth

    (@womenswaytowealth)

    Thanks Phil, I’ve replaced the existing index.php code with this (and tried adding it to the top of the index.php file) but still get the same error message. Any other suggestions please?

    Many thanks,
    Cassie.

    Phil

    (@owendevelopment)

    Have you got a link to post for this domain?

    Phil

    (@owendevelopment)

    Otherwise, try this for the ROOT index.php (backup the current one and reinstate if this doesn’t work)

    <?php
    
    define('WP_USE_THEMES', true);
    
    require('./wp-blog-header.php');
    ?>

    …basically stripped all the comments out and just leaving the important stuff in there.

    Thread Starter womenswaytowealth

    (@womenswaytowealth)

    Thank you for your help. The site is working now (with some technical help)!

    Phil

    (@owendevelopment)

    Glad it’s sorted for you. 🙂

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Error message re: php file when typing in url’ is closed to new replies.