• Resolved deirdre

    (@deirdre)


    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 [email protected]:production/(site).git
    ! [remote rejected] master -> master (pre-receive hook declined)
    error: failed to push some refs to ‘[email protected]:production/(site).git’

    https://www.ads-software.com/plugins/twitter/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Niall Kennedy

    (@niallkennedy)

    Are you deploying into a WP Engine 5.5 instance? The first few errors reference lines where a PHP trait is defined or used.
    https://wpengine.com/2014/11/21/php-5-5-upgrade-available-wp-engine-customers/

    Thread Starter deirdre

    (@deirdre)

    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

    (@niallkennedy)

    The Twitter plugin for WordPress requires PHP 5.4 or greater. A trait 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 mentions you can open a ticket to request a migration to the new environment.

    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

    (@deirdre)

    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.