Title: Parse error: syntax error, unexpected &#8216;class&#8217;
Last modified: January 30, 2019

---

# Parse error: syntax error, unexpected ‘class’

 *  Resolved [alissit](https://wordpress.org/support/users/alissit/)
 * (@alissit)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-class/)
 * Our site has crashed overnight and we’re getting:
    Parse error: syntax error,
   unexpected ‘class’ (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE)
   or ‘{‘ or ‘$’ in /home1/***/public_html/***********/wp-content/plugins/official-
   facebook-pixel/integration/FacebookWordpressIntegrationBase.php on line 38
 * We’re running PHP version 5.4.45 and from what I understand static::class is 
   not compatible with versions under 5.6?
 * Any suggestions of what we can do? I can’t even reach the admin dashboard to 
   disable the plugin.
    -  This topic was modified 7 years, 3 months ago by [alissit](https://wordpress.org/support/users/alissit/).
 * 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%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [lannister2](https://wordpress.org/support/users/lannister2/)
 * (@lannister2)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-class/#post-11152290)
 * Watching this, as I am having the exact same issue. I had to log in via FTP and
   delete the plugin to get my site working again. I am running Avada theme.
 *  [That Tactic Guy](https://wordpress.org/support/users/tacticgames/)
 * (@tacticgames)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-class/#post-11153076)
 * Ditto, Were you able to fix this in the end or should this plugin just be be 
   uninstalled?
 *  [Michiel Vredeveldt](https://wordpress.org/support/users/michiel-vredeveldt/)
 * (@michiel-vredeveldt)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-class/#post-11153647)
 * Same issue here. Did a rollback on updating and it works for now..
 *  [Bryce Jacobson](https://wordpress.org/support/users/drivenfaroff/)
 * (@drivenfaroff)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-class/#post-11153967)
 * Had this issue on a site as well. Ended up bumping the sites PHP version from
   5.4.X to 5.6.X and that seemed to fix it. Please update your plugin docs to say
   that it requires PHP 5.6.X + if that’s the case. It still says works with 5.3.
 *  [terislater](https://wordpress.org/support/users/terislater/)
 * (@terislater)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-class/#post-11155950)
 * I started a new thread to report the same issue. Watching for an update! Site
   is DOWN.
 *  Thread Starter [alissit](https://wordpress.org/support/users/alissit/)
 * (@alissit)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-class/#post-11156673)
 * I marked it resolved because all we needed to do was update the PHP version. 
   5.4 is no longer supported.
    When I did manage to get the site up and working
   again, we found it wasn’t just the Facebook Pixel that was causing problems. 
   A number of our plugins are no longer working on the 5.4 PHP version.
 * But yes, they need to update the docs. It does state that it’s compatible from
   5.3 and up.
    -  This reply was modified 7 years, 3 months ago by [alissit](https://wordpress.org/support/users/alissit/).
 *  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/#post-11196006)
 * Hi,
 * Thanks for reaching out and flagging this. We have fixed that to support PHP 
   5.3+ and please update the latest plugin.
 * Thanks!
    -  This reply was modified 7 years, 3 months ago by [Facebook](https://wordpress.org/support/users/facebook/).

Viewing 7 replies - 1 through 7 (of 7 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/)

 * 7 replies
 * 7 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/#post-11196006)
 * Status: resolved