Title: Parse error: syntax error, unexpected T_VARIABLE in /functions.php on line 192
Last modified: August 20, 2016

---

# Parse error: syntax error, unexpected T_VARIABLE in /functions.php on line 192

 *  [hes2013](https://wordpress.org/support/users/hes2013/)
 * (@hes2013)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_variable-in-functionsphp-on-line-192/)
 * Hi, I have, since this morning, the following error showing up on my website:
 * Parse error: syntax error, unexpected T_VARIABLE in /home/content/xx/xxxxx/html/
   websites/xxxxxxxx/wp-includes/functions.php on line 192
 * and this is the line of code in the php file:
 *  $mm = substr( $mysqlstring, 8, 2 ); // Mysql string Month
 * Any one can help?

Viewing 15 replies - 1 through 15 (of 35 total)

1 [2](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_variable-in-functionsphp-on-line-192/page/2/?output_format=md)
[3](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_variable-in-functionsphp-on-line-192/page/3/?output_format=md)
[→](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_variable-in-functionsphp-on-line-192/page/2/?output_format=md)

 *  [t04st3d161](https://wordpress.org/support/users/t04st3d161/)
 * (@t04st3d161)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_variable-in-functionsphp-on-line-192/#post-3360894)
 * We are experiencing the same issues since yesterday.
 * Both on the home pages and on the backend dashboard..
 * Any ideas?
 *  [Riversatile](https://wordpress.org/support/users/riversatile/)
 * (@riversatile)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_variable-in-functionsphp-on-line-192/#post-3360895)
 * Hi,
 * Did you test to deactivate all plugins to see what’s happening ?
 *  [t04st3d161](https://wordpress.org/support/users/t04st3d161/)
 * (@t04st3d161)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_variable-in-functionsphp-on-line-192/#post-3360896)
 * I cannot deactive any plugins, as the backend prompts the same error?
 * Parse error: syntax error, unexpected T_VARIABLE in /home/user/public_html/domain.
   co.za/wp-includes/functions.php on line 192
 *  [t04st3d161](https://wordpress.org/support/users/t04st3d161/)
 * (@t04st3d161)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_variable-in-functionsphp-on-line-192/#post-3360899)
 * Seems lots of users are experiencing this since upgrading to 3.5 –
 * [http://wordpress.org/support/topic/help-site-crashed?replies=24](http://wordpress.org/support/topic/help-site-crashed?replies=24)
 *  [Riversatile](https://wordpress.org/support/users/riversatile/)
 * (@riversatile)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_variable-in-functionsphp-on-line-192/#post-3360904)
 * OK, in this case, [do the following step to deactivate your plugins when you’re not able to access the WordPress administrative section](http://codex.wordpress.org/FAQ_Troubleshooting#How_to_deactivate_all_plugins_when_not_able_to_access_the_administrative_menus.3F).
 *  [eystevens](https://wordpress.org/support/users/eystevens/)
 * (@eystevens)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_variable-in-functionsphp-on-line-192/#post-3360938)
 * Its a hack. It’s happening everywhere. You can upload with a fresh copy of function.
   php, but it will continue to reinfect every hour or so. There is some discussion
   here: [http://wordpress.org/support/topic/help-site-crashed?replies=31](http://wordpress.org/support/topic/help-site-crashed?replies=31)
 * I think I finally figured mine out.
 * 1) On all my infected sites, I found a new file named 169b171bbdffdf3759850fef45515c67
   among my root files. It looked strange so I deleted it, just in case.
 * 2) Made sure I had backed up copies of MySql database. Also, downloaded necessary
   copies of any uploaded post images and theme revisions.
 * 3) Deleted ALL OTHER FILES.
 * 4) Manually reinstalled with a completely fresh version of WP 3.5.
 * 5) Created a NEW wp-config.php file. Mine had a ton of extra code in it that 
   I assume was infected.
 * 6) Changed host password and WP passwords.
 * So far, so good. I’ve gone about 10 hours without getting hacked, so I think 
   it worked.
 * Good luck!
 *  Thread Starter [hes2013](https://wordpress.org/support/users/hes2013/)
 * (@hes2013)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_variable-in-functionsphp-on-line-192/#post-3360966)
 * Where was that infected file located, I cant find a similar file, i cant access
   my WP admin, same error… If I disable plugins renaming the foolder nothing changes.
 *  [filmcafe](https://wordpress.org/support/users/filmcafe/)
 * (@filmcafe)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_variable-in-functionsphp-on-line-192/#post-3360974)
 * Really annoyed with this hack! Four sites I’m hosting in the same server were
   affected.
 * I replaced wp-includes/functions.php with the stock file and deleted the nonsense
   from the first line of wp-config.php <?Blah$Blah*Blah…. ?> down to the real WordPress
   <? tag.
 * Seems to have done the trick.
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_variable-in-functionsphp-on-line-192/#post-3360975)
 * You need to start working your way through these resources:
    [http://codex.wordpress.org/FAQ_My_site_was_hacked](http://codex.wordpress.org/FAQ_My_site_was_hacked)
   [http://wordpress.org/support/topic/268083#post-1065779](http://wordpress.org/support/topic/268083#post-1065779)
   [http://smackdown.blogsblogsblogs.com/2008/06/24/how-to-completely-clean-your-hacked-wordpress-installation/](http://smackdown.blogsblogsblogs.com/2008/06/24/how-to-completely-clean-your-hacked-wordpress-installation/)
   [http://ottopress.com/2009/hacked-wordpress-backdoors/](http://ottopress.com/2009/hacked-wordpress-backdoors/)
 * Unless you completely de-louse your site, the hacker will just walk straight 
   back in again.
 *  [Shan](https://wordpress.org/support/users/shan-last-shreds-of-sanity/)
 * (@shan-last-shreds-of-sanity)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_variable-in-functionsphp-on-line-192/#post-3361003)
 * It’s that dang eval(gzinflate(base64_decode hack again.
 * I cleaned a client’s site twice in October because it kept coming back. It will
   infect nearly every PHP file you have on all your domains. Themes, core files..
   everything.
 * If you’re infected like this SWITCH HOSTS because your current one is not keeping
   you safe. My current client is on GoDaddy — big surprise — and I’m switching 
   her to HostGator. You know, a real host. LOL
 * Nearly ANY host out there is better than GoDaddy. So just say no to them and 
   save yourselves a lot of trouble & frustration.
 *  [aureliustjin](https://wordpress.org/support/users/aureliustjin/)
 * (@aureliustjin)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_variable-in-functionsphp-on-line-192/#post-3361053)
 * Guys, I had the same porblems and the quick fix was to replace the functions.
   php with a new version of functions.php. That only worked for a bit and then 
   the same problem occured.
 * My web host found a missing close on line 191.
 * Here is his response:
 * “Hello again,
 * So, I have been researching this issue for a great amount of time during my
    
   shift, and think I figured it out.
 * Going back to the error you provided:
 * “Parse error: syntax error, unexpected T_VARIABLE in
    /home/aurelius/public_html/
   wp-includes/functions.php on line 192″
 * I checked out functions.php, line 192 to be exact. That line looked good, but
   
   line 191 appeared to have some issues:
 *  if ( doubl// Mysql string Year
 * When I saw that, and no closing parenthesis, I closed it, so it looks like
    this:
 *  if ( doubl)// Mysql string Year
 * Now, the site resolves again.”
 * It’s been over 48 hours and I’ve yet to experience the same problem as I did 
   before.
 * Give it a try.
 *  [infiniteprospects](https://wordpress.org/support/users/infiniteprospects/)
 * (@infiniteprospects)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_variable-in-functionsphp-on-line-192/#post-3361072)
 * THANK YOU Aurelius!!! That worked and my site was down for a week! [http://blog.infiniteprospects.com](http://blog.infiniteprospects.com)
   Short of backing up everything and re-coding, wasn’t sure what I was going to
   do and when it would be back up and running. You are THE MAN!!!
 * To everyone else in this discussion that thought this was a hack and not a syntax
   error, did you try this fix?
 * > “My web host found a missing close on line 191.
   > Here is his response:
   > “Hello again,
   > So, I have been researching this issue for a great amount of time during my
   > 
   > shift, and think I figured it out.
   > Going back to the error you provided:
   > “Parse error: syntax error, unexpected T_VARIABLE in
   >  /home/aurelius/public_html/
   > wp-includes/functions.php on line 192″
   > I checked out functions.php, line 192 to be exact. That line looked good, but
   > 
   > line 191 appeared to have some issues:
   > if ( doubl// Mysql string Year
   > When I saw that, and no closing parenthesis, I closed it, so it looks like
   > 
   > this:
   > if ( doubl)// Mysql string Year
   > Now, the site resolves again.”
   > It’s been over 48 hours and I’ve yet to experience the same problem as I did
   > before.
   > Give it a try.
 *  [Shan](https://wordpress.org/support/users/shan-last-shreds-of-sanity/)
 * (@shan-last-shreds-of-sanity)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_variable-in-functionsphp-on-line-192/#post-3361073)
 * I do believe it’s a hack because I went into my client’s core files and found
   the same gibberish I found on another client’s site in October that got her black
   listed by Google.
 * This is the beginning of the injection code hack:
 * `<?php eval(gzinflate(base64_decode('`
 * In some cases, it could be a missing closing tag, but in my client’s case, it’s
   an injection hack.
 *  [Mark Ratledge](https://wordpress.org/support/users/songdogtech/)
 * (@songdogtech)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_variable-in-functionsphp-on-line-192/#post-3361074)
 * > To everyone else in this discussion that thought this was a hack and not a 
   > syntax error….
 * **[@infiniteprospects](https://wordpress.org/support/users/infiniteprospects/):**
   _It is a hack_ and not a simple php error. Look at [http://sitecheck.sucuri.net/results/infiniteprospects.com](http://sitecheck.sucuri.net/results/infiniteprospects.com)
 *  [infiniteprospects](https://wordpress.org/support/users/infiniteprospects/)
 * (@infiniteprospects)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_variable-in-functionsphp-on-line-192/#post-3361075)
 * SongDog – that is not my blog site – that’s my website. Sucuri.net says there
   is malware on that AND my blog…
 * This site says the site blog.infiniteprospects.com is clean…
    [Security Check](http://www.UnmaskParasites.com/security-report/)
 * Domain clean by Google Safe Browsing: blog.infiniteprospects.com – reference
   
   Domain clean by Norton Safe Web: blog.infiniteprospects.com – reference Domain
   clean on Phish tank: blog.infiniteprospects.com – reference Domain clean on the
   Opera browser: blog.infiniteprospects.com – reference Domain clean by SiteAdvisor:
   blog.infiniteprospects.com – reference Domain clean on Sucuri IP/URL malware 
   blacklist: blog.infiniteprospects.com – reference Domain clean by the Sucuri 
   Malware Labs blacklist: blog.infiniteprospects.com – reference Domain clean on
   Yandex (via Sophos): blog.infiniteprospects.com – reference

Viewing 15 replies - 1 through 15 (of 35 total)

1 [2](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_variable-in-functionsphp-on-line-192/page/2/?output_format=md)
[3](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_variable-in-functionsphp-on-line-192/page/3/?output_format=md)
[→](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_variable-in-functionsphp-on-line-192/page/2/?output_format=md)

The topic ‘Parse error: syntax error, unexpected T_VARIABLE in /functions.php on
line 192’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 35 replies
 * 12 participants
 * Last reply from: [Swan1305](https://wordpress.org/support/users/swan1305/)
 * Last activity: [13 years, 3 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_variable-in-functionsphp-on-line-192/page/3/#post-3361162)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
