Forums

Parse error: parse error, unexpected T_VARIABLE in config.php file (4 posts)

  1. CoachFletch
    Member
    Posted 7 months ago #

    My blog was working just fine for a week. Using WP 2.7.1

    I now receive this error when I try to log in to the admin area and when I view my blog.

    Parse error: parse error, unexpected T_VARIABLE in /home/content/d/a/l/dalefletcher3/html/new/wp-config.php on line 1

    Any solutions or explanation on why this may have occured?

    Thanks

  2. esmi
    Member
    Posted 7 months ago #

    Could be a hack or could just be a corrupted file. I've had the latter happen ion rare occasions for no obvious reason. Do you have a copy of your original wp-config file? Or could you re-create it using the wp-config-sample file that's bundled in with the WP download?

  3. CoachFletch
    Member
    Posted 7 months ago #

    I am suspecting it is a hack. I looked at the directories and files with my FTP and I have found 20 files that have the exact same code as the config file.

    Dale

  4. designandpromote
    Member
    Posted 7 months ago #

    I had the same problem on 15 of the blogs I manage. I found that my client has a spyware program that phoned home his password and some script must have added the bad code to the blog. It took me a bit to figure out the solution but here's the cure. http://www.designandpromote.com/parse-error-syntax-error-unexpected-t_variable-solved/

Reply

You must log in to post.

About this Topic