Title: WP Engine won&#039;t deploy this plugin due to syntax errors
Last modified: August 22, 2016

---

# WP Engine won't deploy this plugin due to syntax errors

 *  Resolved [deirdre](https://wordpress.org/support/users/deirdre/)
 * (@deirdre)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/wp-engine-wont-deploy-this-plugin-due-to-syntax-errors/)
 * remote: – info: checking wp-content/plugins/twitter/src/Twitter/Cards/Components/
   Creator.php …
    remote: PHP Parse error: syntax error, unexpected T_STRING in –
   on line 33 remote: – warning: syntax Error Found in wp-content/plugins/twitter/
   src/Twitter/Cards/Components/Creator.php … remote: – info: checking wp-content/
   plugins/twitter/src/Twitter/Cards/Components/Description.php … remote: PHP Parse
   error: syntax error, unexpected T_STRING in – on line 33 remote: – warning: syntax
   Error Found in wp-content/plugins/twitter/src/Twitter/Cards/Components/Description.
   php … remote: – info: checking wp-content/plugins/twitter/src/Twitter/Cards/Components/
   MultipleImages.php … remote: PHP Parse error: syntax error, unexpected T_STRING
   in – on line 33 remote: – warning: syntax Error Found in wp-content/plugins/twitter/
   src/Twitter/Cards/Components/MultipleImages.php … remote: – info: checking wp-
   content/plugins/twitter/src/Twitter/Cards/Components/SingleImage.php … remote:
   PHP Parse error: syntax error, unexpected T_STRING in – on line 33 remote: – 
   warning: syntax Error Found in wp-content/plugins/twitter/src/Twitter/Cards/Components/
   SingleImage.php … remote: – info: checking wp-content/plugins/twitter/src/Twitter/
   Cards/Gallery.php … remote: PHP Parse error: syntax error, unexpected T_USE, 
   expecting T_FUNCTION in – on line 37 remote: – warning: syntax Error Found in
   wp-content/plugins/twitter/src/Twitter/Cards/Gallery.php … remote: – info: checking
   wp-content/plugins/twitter/src/Twitter/Cards/Photo.php … remote: PHP Parse error:
   syntax error, unexpected T_USE, expecting T_FUNCTION in – on line 37 remote: –
   warning: syntax Error Found in wp-content/plugins/twitter/src/Twitter/Cards/Photo.
   php … remote: – info: checking wp-content/plugins/twitter/src/Twitter/Cards/Product.
   php … remote: PHP Parse error: syntax error, unexpected T_USE, expecting T_FUNCTION
   in – on line 37 remote: – warning: syntax Error Found in wp-content/plugins/twitter/
   src/Twitter/Cards/Product.php … remote: – info: checking wp-content/plugins/twitter/
   src/Twitter/Cards/Summary.php … remote: PHP Parse error: syntax error, unexpected
   T_USE, expecting T_FUNCTION in – on line 37 remote: – warning: syntax Error Found
   in wp-content/plugins/twitter/src/Twitter/Cards/Summary.php … remote: – info:
   checking wp-content/plugins/twitter/src/Twitter/WordPress/Shortcodes/Share.php…
   remote: PHP Parse error: syntax error, unexpected T_OBJECT_OPERATOR in – on line
   202 remote: – warning: syntax Error Found in wp-content/plugins/twitter/src/Twitter/
   WordPress/Shortcodes/Share.php … remote: – info: checking wp-content/plugins/
   twitter/src/Twitter/WordPress/Shortcodes/Tracking.php … remote: – failed: we 
   detected a PHP syntax failure. To [git@git.wpengine.com](https://wordpress.org/support/topic/wp-engine-wont-deploy-this-plugin-due-to-syntax-errors/git@git.wpengine.com?output_format=md):
   production/(site).git ! [remote rejected] master -> master (pre-receive hook 
   declined) error: failed to push some refs to ‘git@git.wpengine.com:production/(
   site).git’
 * [https://wordpress.org/plugins/twitter/](https://wordpress.org/plugins/twitter/)

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

 *  Plugin Author [Niall Kennedy](https://wordpress.org/support/users/niallkennedy/)
 * (@niallkennedy)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/wp-engine-wont-deploy-this-plugin-due-to-syntax-errors/#post-5938462)
 * Are you deploying into a WP Engine 5.5 instance? The first few errors reference
   lines where a PHP trait is defined or used.
    [http://wpengine.com/2014/11/21/php-5-5-upgrade-available-wp-engine-customers/](http://wpengine.com/2014/11/21/php-5-5-upgrade-available-wp-engine-customers/)
 *  Thread Starter [deirdre](https://wordpress.org/support/users/deirdre/)
 * (@deirdre)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/wp-engine-wont-deploy-this-plugin-due-to-syntax-errors/#post-5938473)
 * That’s an interesting question. From the actual deployed WP install:
 * WordPress Version 4.1.1
    PHP Version 5.3.2-1ubuntu4.29
 * However, when using git push, it goes through an intermediate syntax check step,
   and that step may be using 5.5.
 *  Plugin Author [Niall Kennedy](https://wordpress.org/support/users/niallkennedy/)
 * (@niallkennedy)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/wp-engine-wont-deploy-this-plugin-due-to-syntax-errors/#post-5938483)
 * The Twitter plugin for WordPress requires PHP 5.4 or greater. A [trait](http://php.net/manual/en/language.oop5.traits.php)
   is a feature added in PHP 5.4. WP Engine is protecting you from yourself by pointing
   out the existence of a `trait` in the code you are trying to push, which will
   not work in PHP 5.3.2.
 * You should be able to request WP Engine update your site to its PHP 5.5 environment.
   [The WP Engine blog post announcing PHP 5.5 support](http://wpengine.com/2014/11/21/php-5-5-upgrade-available-wp-engine-customers/)
   mentions you can open a ticket to request a migration to the new environment.
 *  [ehoanshelt](https://wordpress.org/support/users/ehoanshelt/)
 * (@ehoanshelt)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/wp-engine-wont-deploy-this-plugin-due-to-syntax-errors/#post-5938486)
 * Hey everyone!
 * Eric from WP Engine here. Just wanted to confirm Niall statement that this looks
   like a PHP 5.3.2 incompatibility. If you would like to be moved to a PHP 5.5 
   server, just put in a request to support and we’ll move you over. 🙂
 * Thanks!
    Eric
 *  Thread Starter [deirdre](https://wordpress.org/support/users/deirdre/)
 * (@deirdre)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/wp-engine-wont-deploy-this-plugin-due-to-syntax-errors/#post-5938488)
 * Aha! Thanks to both of you. (I feel like an idiot now. Thought I was on 5.4 because,
   doh, my other server is.)

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

The topic ‘WP Engine won't deploy this plugin due to syntax errors’ is closed to
new replies.

 * ![](https://ps.w.org/twitter/assets/icon-256x256.png?rev=1590182)
 * [Twitter](https://wordpress.org/plugins/twitter/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/twitter/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/twitter/)
 * [Active Topics](https://wordpress.org/support/plugin/twitter/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/twitter/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/twitter/reviews/)

## Tags

 * [syntax error](https://wordpress.org/support/topic-tag/syntax-error/)
 * [twitter](https://wordpress.org/support/topic-tag/twitter/)

 * 5 replies
 * 3 participants
 * Last reply from: [deirdre](https://wordpress.org/support/users/deirdre/)
 * Last activity: [11 years, 2 months ago](https://wordpress.org/support/topic/wp-engine-wont-deploy-this-plugin-due-to-syntax-errors/#post-5938488)
 * Status: resolved