Title: Getting a PHP version error message
Last modified: September 1, 2016

---

# Getting a PHP version error message

 *  Resolved [sarahwentfishing](https://wordpress.org/support/users/sarahwentfishing/)
 * (@sarahwentfishing)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/getting-a-php-version-error-message/)
 * On the site leannaturalbeef.com/newsite I am trying to activate this pluggin,
   and I get this error message.
 * The plugin could not be activated. The minimum PHP version required for this 
   plugin is 5.4.0. You are running 5.2.17.
 * When I talked to my webhost, A2 hosting, they assure me I am running 5.5. Not
   sure why this is happening. Any ideas?
 * [https://wordpress.org/plugins/woocommerce-gateway-paypal-powered-by-braintree/](https://wordpress.org/plugins/woocommerce-gateway-paypal-powered-by-braintree/)

Viewing 1 replies (of 1 total)

 *  [Patrick Rauland](https://wordpress.org/support/users/bftrick/)
 * (@bftrick)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/getting-a-php-version-error-message/#post-7530995)
 * Hello there,
 * We’re doing a simple PHP version compare function.
 *     ```
       if (version_compare(PHP_VERSION, '5.4.0', '<')) {
           throw new Braintree_Exception('PHP version >= 5.4.0 required');
       }
       ```
   
 * This is from the Braintree SDK (code they provide and we implement). I’d reach
   out to your hosts again and point them to the line of code that’s doing a simple
   PHP compare.
 * your-wordpress-site/wp-content/plugins/woocommerce-gateway-paypal-powered-by-
   braintree/braintree_sdk/lib/Braintree.php
 * line 11.
 * I hope that helps! 🙂

Viewing 1 replies (of 1 total)

The topic ‘Getting a PHP version error message’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce-gateway-paypal-powered-by-braintree/assets/icon-
   256x256.png?rev=3234800)
 * [Braintree for WooCommerce Payment Gateway](https://wordpress.org/plugins/woocommerce-gateway-paypal-powered-by-braintree/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-gateway-paypal-powered-by-braintree/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-gateway-paypal-powered-by-braintree/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-gateway-paypal-powered-by-braintree/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-gateway-paypal-powered-by-braintree/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-gateway-paypal-powered-by-braintree/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Patrick Rauland](https://wordpress.org/support/users/bftrick/)
 * Last activity: [9 years, 10 months ago](https://wordpress.org/support/topic/getting-a-php-version-error-message/#post-7530995)
 * Status: resolved