parse error, unexpected T_STRING in comments.php on line 164 (1 post)

  1. Ryan S
    Posted 6 years ago #

    Hello Friends,

    Just wanted to share with you... This issue has been resolved...

    Parse error: parse error, unexpected T_STRING in /home/user/public_html/wp-admin/includes/comments.php on line 164

    Recently I upgraded my wordpress blog to wordpress 2.8 from 2.7.1. I uploaded all the new files to the server except wp-contents folder, because it contained my themes and plugins. After I had the new files on the server, I browsed the URL: http://mysite.com/wp-admin to complete the upgrade. However, I received the above mentioned error.

    I rechecked and uploaded this file(comments.php) again to the sever. This was a fresh file downloaded with the wordpress installation package. So this should not produce any issue. However, I was still receiving the same error.

    Then I looked into the file, at the mentioned line. I found this:

    add_filter( 'comment_author', 'floated_admin_avatar' );

    There was a space between the single quote and the opening brace. Also, at the end, between the ending brace and the single quote.

    I deleted that space and reuploaded the file. This time, the error was gone and the installation was completed.

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.