Parse error: syntax error, unexpected T_VARIABLE – Solved

Parse error: syntax error, unexpected T_VARIABLE” error on WordPress Blog?

If you are facing this or even a blank white screen when you try to login to your wordpress blog, you could have been hacked.

Need A Solution For The “Parse error: syntax error, unexpected T_VARIABLE” error on WordPress Blogs or other PHP sites?

This PHP code error is running rampant through the internet and we just got done fixing several clients blogs that had issues with this this same T_VARIABLE Parse syntax error.

Tracking down all the pieces was quite a chore but we have come up with a solution:

  1. The first step is to eliminate the infection that is allowing this to happen by using the free version of  Super Spyware Cleaner or another good anti spyware program to scan your entire system, the likelihood is great that you have been hit with a backdoor.bot or trojan dot Daonol – using the Super Spyware Cleaner to eliminate these or any variations from all of your workstations and computers that you have used to access your wordpress blog is the first step.
  2. Change your logins and passwords immediately
  3. Download a clean copy of WordPress 2.7.1 to your clean uninfected machine
  4. Using an FTP program copy your wp-config file out of wordpress root and eliminate the code that has been injected in the header section save a copy of your cleaned wp-config file to upload later.
  5. FTP all the contents of the fresh copy of WordPress 2.7.1  overwriting your current WordPress installation.
  6. Within your active theme, you will need to remove the injected code out of both the function.php and the index.php as well and ftp the clean copies into your themes folder.
  7. This php injected script has also been found in some of the plugin’s as well, Cforms and WordPress Back Up are two we are aware of that can be affected.

This is an extensive process, but can be handled within an hour or two if you find yourself at the mercy of the T_VARIABLE error, please feel free to contact us.

We are charging $100.00 for this service to get your blog back up and running, if you are interested please email us at info at designandpromote dot com.

We strongly urge you to go through and change login’s and passwords to any accounts that you may have with hosting providers and personal information to help eliminate the continuation of this particular issue

Parse error: syntax error, unexpected T_VARIABLE – Solved

Parse error: syntax error, unexpected T_VARIABLE” error on WordPress Blog?

If you are facing this or even a blank white screen when you try to login to your wordpress blog, you could have been hacked.

Need A Solution For The “Parse error: syntax error, unexpected T_VARIABLE” error on WordPress Blogs or other PHP sites?

This PHP code error is running rampant through the internet and we just got done fixing several clients blogs that had issues with this this same T_VARIABLE Parse syntax error.

Tracking down all the pieces was quite a chore but we have come up with a solution:

  1. The first step is to eliminate the infection that is allowing this to happen by using the free version of  Super Spyware Cleaner or another good anti spyware program to scan your entire system, the likelihood is great that you have been hit with a backdoor.bot or trojan dot Daonol – using the Super Spyware Cleaner to eliminate these or any variations from all of your workstations and computers that you have used to access your wordpress blog is the first step.
  2. Change your logins and passwords immediately
  3. Download a clean copy of WordPress 2.7.1 to your clean uninfected machine
  4. Using an FTP program copy your wp-config file out of wordpress root and eliminate the code that has been injected in the header section save a copy of your cleaned wp-config file to upload later.
  5. FTP all the contents of the fresh copy of WordPress 2.7.1  overwriting your current WordPress installation.
  6. Within your active theme, you will need to remove the injected code out of both the function.php and the index.php as well and ftp the clean copies into your themes folder.
  7. This php injected script has also been found in some of the plugin’s as well, Cforms and WordPress Back Up are two we are aware of that can be affected.

This is an extensive process, but can be handled within an hour or two if you find yourself at the mercy of the T_VARIABLE error, please feel free to contact us.

We are charging $100.00 for this service to get your blog back up and running, if you are interested please email us at info at designandpromote dot com.

We strongly urge you to go through and change login’s and passwords to any accounts that you may have with hosting providers and personal information to help eliminate the continuation of this particular issue

8 Comments

  • Frank J says:

    April 3, 2009 at 9:50 am

    Simply by over-writing the content in your wp-content folder will fix this issue.

    • Design & Promote
      Design & Promote says:

      April 3, 2009 at 11:44 am

      There are more details than that, it does seem to infiltrate some of the plugins as well.. Cforms and WP back up are some of them that we are aware of. It blasts a bunch of code into the top of each page that it infiltrates. We have found the success in overwriting that of all the folders with a clean copy of WP.

      The other ones, you can manually delete it out or deactivate the plugins and delete them and use fresh copies.

      If you simply overwrite wp files without scanning for these backdoor.bots you will continue to have an issue.

  • Atar G says:

    April 3, 2009 at 11:46 am

    There’s a lot more reasons than this one why this particular php error might appear – this is just one possibility.

    • admin
      admin says:

      April 3, 2009 at 2:23 pm

      That is correct, there can be other reasons this error message occurs, but in this particular instance, on WordPress Blogs, as we stated in our post, we became aware of the similarities. We were asked for assistance on several blogs that were faced with this particular error. After extensive research we discovered the vulnerabilities and began to recognize a pattern.

      We were unable to find a complete explanation online of how to fix this particular situation and realized there may be a need for step by step instructions on how we resolved the issue in this instance.

  • Joel Brady says:

    April 4, 2009 at 8:45 pm

    Thanks for posting this, my site kept getting hacked and I could not figure out how. I found a password backdoor program on my computer that my antivirus program did not catch.

    I would never have thought about that if I didn’t see this post. I have been ok for 48 hours now so lets cross our fingers and hope this is solved once and for all.

  • RickH says:

    May 6, 2009 at 10:50 am

    Of all the solutions I’ve read about for this hack, this one makes the most sense. My own problems with hacking of many of my sites more or less coincided with a virus infection on one of my workstations – something which nothing I found would remove.

    Since then I’ve had sites hacked over and over again. I actually read about this suggestion elsewhere (about the password backdoor virus) and took the plunge and completely reformatted the hdd on the workstation in question. Then went thru the cleanup process, with PW change.

    We’ll see if it fixes the problem.

  • Design & Promote
    Design & Promote says:

    May 9, 2009 at 9:38 pm

    Good Luck to you there. Since FTP passwords are sent in clear text this could also be another way of someone getting in using a port sniffer on #21

  • Verona says:

    December 26, 2010 at 8:05 pm

    Should this error be handled the same way? Parse error: syntax error, unexpected T_STRING

    Thank you!

Search Engine Optimization

seo-company-chicago-ilAt Design & Promote, we are SEO experts. We have the skills, the expertise and the resources to create a customized SEO campaign for your website that will allow you to dominate the search engines, draw more visitors to your website, and convert those visitors into sales.

blue-learn-more

Web Design & Development

featured-innovativeWe custom design innovative, hard-working websites that you can proudly stand behind as the online face of your business. We hone in on three key elements for maximum impact: visibility, usability, and converting visitors into customers.

purple-learn-more

Branding & Graphic Design

brand-guidelines-creationWe know that your brand needs cohesion in order to be effective. That’s why we focus on your complete brand identity. Whether we’re designing your logo, brochure or electronic newsletter, we create brand assets that complement and interact with each other.

red-learn-more

Custom Photography

custom-photography-chicago-ilWe offer custom photography services to compliment your design & branding campaigns. From meet the staff photos to virtual office tours, we can provide you with beautiful photos to convey your message!

learn-more-orange

Internet Marketing

social-media-marketing-chicagoDesign & Promote specializes in social media marketing, and online promotional techniques that put your brand everywhere it needs to be.

green-learn-more