Title: PHP Parse error
Last modified: November 17, 2016

---

# PHP Parse error

 *  [block](https://wordpress.org/support/users/brandanhadlock/)
 * (@brandanhadlock)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/php-parse-error-13/)
 * The Paypal for Woocommerce plugin on our website had to be disabled because of
   an error causing the website to cease working. The error is “PHP Parse error:
   syntax error, unexpected T_FUNCTION, expecting ‘)’ in /home2/…/wp-content/plugins/
   paypal-for-woocommerce/classes/wc-gateway-paypal-express-angelleye.php on line
   1681” When the plugin is active, the website displays an http 500 error. The 
   plugin version is 1.2.4. Please help. Thank you.

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

 *  Plugin Contributor [angelleye](https://wordpress.org/support/users/angelleye/)
 * (@angelleye)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/php-parse-error-13/#post-8450324)
 * Are you running current versions of WordPress and WooCommerce? Can you verify
   what PHP version your site is running on?
 *  Thread Starter [block](https://wordpress.org/support/users/brandanhadlock/)
 * (@brandanhadlock)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/php-parse-error-13/#post-8450661)
 * Angelleye, somehow the site started working again. It is running PHP 5.2.17 so
   I’ll have to check with my host about upgrading that. Otherwise, I guess don’t
   worry about this for now. Thanks.

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

The topic ‘PHP Parse error’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/paypal-for-woocommerce_dce4f5.svg)
 * [PayPal for WooCommerce](https://wordpress.org/plugins/paypal-for-woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/paypal-for-woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/paypal-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/paypal-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/paypal-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/paypal-for-woocommerce/reviews/)

## Tags

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

 * 2 replies
 * 2 participants
 * Last reply from: [block](https://wordpress.org/support/users/brandanhadlock/)
 * Last activity: [9 years, 6 months ago](https://wordpress.org/support/topic/php-parse-error-13/#post-8450661)
 * Status: not resolved