• actual comunicacion

    (@actual-comunicacion)


    Good afernoon,

    My website has been working correctly but now, when trying to load it, a blank page with the following message appears:

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

    If a access the subdomain url, that page works (actual.puntorojo.es), but nothing else does, can you help me?

    Thank you in advance.

    Ana

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • That file should have <?php at the very top.

    Also your text editor might have concatenated it into one line.

    <?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__ ) . './actual/wp-blog-header.php' ); 
    Thread Starter actual comunicacion

    (@actual-comunicacion)

    Thank you for your answer.

    What you say makes sense, but I don’t know which file it belongs to, I can’t find it. Do you have any idea?

    Thank you,

    Ana

    You or somebody edited index.php to change the path to './actual/wp-blog-header.php'.

    Thread Starter actual comunicacion

    (@actual-comunicacion)

    I have found the file now, but it already has the <?php at the very top, so I don’t know what the problem might be…

    Thread Starter actual comunicacion

    (@actual-comunicacion)

    It hasn’t been edited, this is what the index.php says:

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

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

The topic ‘Error WP_USE_THEMES’ is closed to new replies.