Title: Parse error: syntax error, unexpected &#8216;class&#8217;&#8230;..
Last modified: February 1, 2019

---

# Parse error: syntax error, unexpected ‘class’…..

 *  Resolved [terislater](https://wordpress.org/support/users/terislater/)
 * (@terislater)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-class-2/)
 * Plugin update gives me this error. My whole site has crashed, and I can’t rollback
   the plugin because I can’t get into my wordpress admin either! Please HELP.
 * Parse error: syntax error, unexpected ‘class’ (T_CLASS), expecting identifier(
   T_STRING) or variable (T_VARIABLE) or ‘{‘ or ‘$’ in /home3/teri1975/public_html/
   wp-content/plugins/official-facebook-pixel/integration/FacebookWordpressIntegrationBase.
   php on line 38
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fparse-error-syntax-error-unexpected-class-2%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 5 replies - 1 through 5 (of 5 total)

 *  [alissit](https://wordpress.org/support/users/alissit/)
 * (@alissit)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-class-2/#post-11156708)
 * Hi Teri, I had started the other thread that I then closed. This is what I did:
   
   Disable plugins from cpanel: [https://www.wpbeginner.com/plugins/how-to-deactivate-all-plugins-when-not-able-to-access-wp-admin/](https://www.wpbeginner.com/plugins/how-to-deactivate-all-plugins-when-not-able-to-access-wp-admin/)
 * Then go back into your admin dashboard and re-enable plugins.
 * However I found the issue to be that the PHP version we were running is no longer
   supported by this plugin. We updated to 5.6 (stable). That solved the issue.
   
   In fact when we started to re-enable all the plugins, we found that there were
   a number that were throwing errors due to the PHP version.
 * This plugin needs to update their docs though, it clearly states that it is supported
   in PHP version 5.3 and up. That’s clearly not the case.
 *  Thread Starter [terislater](https://wordpress.org/support/users/terislater/)
 * (@terislater)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-class-2/#post-11157656)
 * Thanks. To be honest, your reply is a little over my head – I have no idea how
   to update PHP (or even how to know what version mine is).
 * To help others: I went into my cPanel and deleted the plugin file from my wp 
   content>plugins folder. After I did that, all access was restored. I guess now
   I don’t have the plugin, but it seems my site is still running the pixel. I’m
   just going to leave it for now. Thanks [@alissit](https://wordpress.org/support/users/alissit/)
   for the link to access the admin, I’ll save that for future use!
 *  [lannister2](https://wordpress.org/support/users/lannister2/)
 * (@lannister2)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-class-2/#post-11157848)
 * Terislater: Go into your cPanel, go to Software or Advanced and choose ‘PHP Selector’
   here there is a dropdown where you can choose between the different PHP versions.
   If you switch from 5.4 to 5.6 it should be solved. Then you can log into your
   backend and install the Facebook Pixel plugin again and it will work like a charm.
   I did this, it worked for me and changing PHP version will have no effect on 
   your site and you can always switch back to 5.4 if it has.
 *  Thread Starter [terislater](https://wordpress.org/support/users/terislater/)
 * (@terislater)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-class-2/#post-11157962)
 * Thanks!!
 *  Plugin Author [Facebook](https://wordpress.org/support/users/facebook/)
 * (@facebook)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-class-2/#post-11196014)
 * Hi,
 * Thanks for reaching out and flagging this. We have fixed that to support PHP 
   5.3+ and please update the latest plugin.
 * Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Parse error: syntax error, unexpected ‘class’…..’ is closed to new replies.

 * ![](https://ps.w.org/official-facebook-pixel/assets/icon.svg?rev=3158868)
 * [Meta pixel for WordPress](https://wordpress.org/plugins/official-facebook-pixel/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/official-facebook-pixel/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/official-facebook-pixel/)
 * [Active Topics](https://wordpress.org/support/plugin/official-facebook-pixel/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/official-facebook-pixel/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/official-facebook-pixel/reviews/)

 * 5 replies
 * 4 participants
 * Last reply from: [Facebook](https://wordpress.org/support/users/facebook/)
 * Last activity: [7 years, 3 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-class-2/#post-11196014)
 * Status: resolved