Title: Failed to activate: syntax error
Last modified: January 7, 2017

---

# Failed to activate: syntax error

 *  [ellers](https://wordpress.org/support/users/ellers/)
 * (@ellers)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/failed-to-activate-syntax-error/)
 * Hi all,
 * Installation worked but activation failed with this error:
 *     ```
       Parse error: syntax error, unexpected T_STRING in /usr/local/pem/vhosts/106719/webspace/siteapps/694/htdocs/wp-content/plugins/gravity-forms-stripe/includes/class-gfp-stripe.php on line 1042
       ```
   
 * The line in question:
 * `PPP\Stripe\Stripe::setApiKey( $api_key );`
 * The backslashes look weird to me but I’m not a PHP expert.
 * GravityForms works 100% fine on the site.
    - Versions:
    - Gravity Forms Stripe: Version 1.9.2.9
    - Gravity Forms: Version 2.1.1
 * Any ideas?
    Thanks!

Viewing 1 replies (of 1 total)

 *  Thread Starter [ellers](https://wordpress.org/support/users/ellers/)
 * (@ellers)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/failed-to-activate-syntax-error/#post-8628281)
 * Hmm. Just noticed “PHP Version 5.2.17”. Wonder if that is the problem given the“\”(
   backslash) namespace syntax was apparently introduced in PHP 5.3…

Viewing 1 replies (of 1 total)

The topic ‘Failed to activate: syntax error’ is closed to new replies.

 * ![](https://ps.w.org/gravity-forms-stripe/assets/icon-256x256.jpg?rev=1368417)
 * [Gravity Forms + Stripe](https://wordpress.org/plugins/gravity-forms-stripe/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/gravity-forms-stripe/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/gravity-forms-stripe/)
 * [Active Topics](https://wordpress.org/support/plugin/gravity-forms-stripe/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/gravity-forms-stripe/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/gravity-forms-stripe/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [ellers](https://wordpress.org/support/users/ellers/)
 * Last activity: [9 years, 3 months ago](https://wordpress.org/support/topic/failed-to-activate-syntax-error/#post-8628281)
 * Status: not resolved