Title: PHP Parse error: syntax error, unexpected T_FUNCTION
Last modified: March 12, 2017

---

# PHP Parse error: syntax error, unexpected T_FUNCTION

 *  Resolved [johnph88](https://wordpress.org/support/users/johnph88/)
 * (@johnph88)
 * [9 years ago](https://wordpress.org/support/topic/php-parse-error-syntax-error-unexpected-t_function/)
 * I migrated to live server with PHP ver. 5.2.17 and PayPal WP Button Manager (
   ver. 1.0.3 = latest) throws following : [09-Mar-2017 09:38:54] PHP Parse error:
   syntax error, unexpected T_FUNCTION, expecting ‘)’ in /…/wp-content/plugins/paypal-
   wp-button-manager/admin/partials/autoload.php on line 7
 * On my localhost [PHP 5.6.25] PayPal WP Button Manager works perfectly.
    An upgrade
   of PHP is out of my control. I’m on shared hosting [http://www.doteasy.com](http://www.doteasy.com).
 * Tell me this can be fixed ! — I started to love your plugin.
    TxRgrds, John

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

 *  Plugin Contributor [angelleye](https://wordpress.org/support/users/angelleye/)
 * (@angelleye)
 * [9 years ago](https://wordpress.org/support/topic/php-parse-error-syntax-error-unexpected-t_function/#post-8915126)
 * Unfortunately, if you can’t update PHP on the server in question you won’t be
   able to use this plugin. You will need to get PHP updated one way or another (
   maybe move the site to a new server) in order for the plugin to function.
 *  Thread Starter [johnph88](https://wordpress.org/support/users/johnph88/)
 * (@johnph88)
 * [9 years ago](https://wordpress.org/support/topic/php-parse-error-syntax-error-unexpected-t_function/#post-8923034)
 * to give an update
 * [http://www.doteasy.com](http://www.doteasy.com) upgraded to PHP Version 7.0.16
 * PayPal WP Button Manager is working beautiful.
 * Happy Coding !
 * Rgrds, John
 *  Plugin Contributor [angelleye](https://wordpress.org/support/users/angelleye/)
 * (@angelleye)
 * [9 years ago](https://wordpress.org/support/topic/php-parse-error-syntax-error-unexpected-t_function/#post-8923311)
 * Glad to hear it! Thanks for the update.

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

The topic ‘PHP Parse error: syntax error, unexpected T_FUNCTION’ is closed to new
replies.

 * ![](https://s.w.org/plugins/geopattern-icon/paypal-wp-button-manager_dbe3f5.svg)
 * [PayPal WP Button Manager](https://wordpress.org/plugins/paypal-wp-button-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/paypal-wp-button-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/paypal-wp-button-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/paypal-wp-button-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/paypal-wp-button-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/paypal-wp-button-manager/reviews/)

## Tags

 * [unexpected T_function](https://wordpress.org/support/topic-tag/unexpected-t_function/)

 * 3 replies
 * 2 participants
 * Last reply from: [angelleye](https://wordpress.org/support/users/angelleye/)
 * Last activity: [9 years ago](https://wordpress.org/support/topic/php-parse-error-syntax-error-unexpected-t_function/#post-8923311)
 * Status: resolved