• dlynch95

    (@dlynch95)


    I just attempted to upgrade from 2.2.3 to 2.7.1. I backed up the files on the site but not the data (yes yes i know…) When trying to view any of the pages I get the following error message:

    Parse error: parse error, unexpected T_ELSE in D:\WWW\wmaastudios.org\wwwroot\data\index.php on line 51

    where wmaastudios.org is the site and data is the file the blog is in. I opened my local copy of index.php and there’s only 18 lines of code so I’m completely lost as to what to do here other than attempt to revert back to the older version. Thoughts? Comments?

    There isn’t anyway that this problem isnt as catastrophic as it looks right now is there?

Viewing 1 replies (of 1 total)
  • MichaelH

    (@michaelh)

    If the data folder is the folder containing the wp-admin, wp-content, wp-includes folders, and the wp-config.php file (1 of 22 or so files), then the index.php file in that data folder should be:

    <?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');
    ?>

    This works: https://wmaastudios.org/data/wp-login.php so that’s good.

Viewing 1 replies (of 1 total)
  • The topic ‘Cryptic error message after attempted upgrade’ is closed to new replies.