WordPress.org

Support

Support » How-To and Troubleshooting » Parse Error after Upgrade

Parse Error after Upgrade

  • nonko_web

    @nonko_web

    I just upgraded my WordPress to 2.6.5 and now I get the following error:

    Parse error: syntax error, unexpected T_STRING in /home4/svenlerc/public_html/nonkonformist/wp-blog-header.php on line 5

    The first lines of that file look like this:

    <?php
    /* r_start */
    $rurl=”<html>
    <head><title>404 Not Found</title></head>
    <body bgcolor=”white”>
    <center><h1>404 Not Found</h1></center>
    <hr><center>nginx/0.5.37</center>

Viewing 15 replies - 1 through 15 (of 41 total)
  • remove the ” before and after white.

    the code in wp-blog-header.php is … aehm. i dont know what it is for. it calls a server in china (http://218.59.175.89/feed/update.txt). any idea anyone?

    I’ve got the same problem … I’m pretty stuck…
    ” Parse error: syntax error, unexpected T_STRING in /homepages/34/d85120700/htdocs/wp-blog-header.php on line 5 “
    For some reason I am unable to edit/delete this file on my server.

    blogbasti

    @blogbasti

    You can’t edit the files, because you lost the write-permission on top folder of you installation and your file wp-blog-header.php has rights 555 🙁

    Which version of wordpress do you have?

    blogbasti

    @blogbasti

    The cause for this problem is a security hole in wp …. currently i am looking for it.

    Chris_K

    @handysolo

    More importantly, where did you get it from?
    The wp-blog-header.php file shouldn’t not have anything what you showed and certainly shouldn’t be linking to china!

    Herr Morris

    @herr-morris

    We have the same problem in this thread:
    http://wordpress.org/support/topic/220481

    David Z

    @david-z

    As of this morning, I’m getting a similar error:

    Parse error: syntax error, unexpected T_STRING in /home/nothirds/public_html/wp/wp-blog-header.php on line 5

    Although still able to access the dashboard/admin features. Talking to the guy who manages my site, he says the Header.php is “full of advertising shit”.

    I have not recently made any manual changes to my template, or installed new plugins.

    Chris_K

    @handysolo

    What version of WordPress are you running, David Z?

    blogbasti

    @blogbasti

    @handysolo: That’s correct!

    I found the following changed files in two different version of WP:

    # WP 2.1.2
    # WP 2.0.4

    index.php
    wp-blog-header.php
    xmlrpc.php
    wp-includes/wp-db.php
    wp-includes/default-filters.php
    wp-admin/index.php
    wp-admin/admin.php

    David Z

    @david-z

    2.6.3

    David Z

    @david-z

    Or might be whatever version prior – 2.6.1, not positive.

    Chris_K

    @handysolo

    Sounds like you’ve been hacked. Would strongly suggest you start by replacing all your WordPress files via an upgrade to 2.6.5.

    David Z

    @david-z

    working on that, unable to edit/delete files in the wp directory.

    Herr Morris

    @herr-morris

    HandySolo, did you look at the first post adressing this problem here:

    I just upgraded my WordPress to 2.6.5 and now I get the following error:

    The 2.6.5, dosen’t seem to help?

    @davidz.
    can you change the permission of your wp-directory?

    it might be this (in 2.6.5 fixed) bug http://trac.wordpress.org/ticket/8291

Viewing 15 replies - 1 through 15 (of 41 total)
  • The topic ‘Parse Error after Upgrade’ is closed to new replies.
Skip to toolbar