Support

PHP 7

Posted: April 26, 2016 at 3:20 pm

Viewing 4 reply threads


wmnf

April 26, 2016 at 3:20 pm

We are testing on PHP 7 and getting the following error when trying to activate the Braintree Gateway add-on.


wmnf

April 26, 2016 at 3:20 pm

Sorry, here is the error:

The Braintree Gateway plugin was deactivated! This plugin requires the PHP version >= 5.4.0 , and a following list of PHP extensions to be enabled: cURL, XMLWriter, OpenSSL, HASH, DOM.


Tony

  • Support Staff

April 27, 2016 at 2:29 am

Hi there,

It wll be down to the server config and the modules enabled within PHP 7 on your server.

The add-on checks for:


version_compare( PHP_VERSION, '5.4.0', '<' )
|| ! extension_loaded( 'mbstring' )
|| ! function_exists( 'json_decode' )
|| ! extension_loaded( 'curl' )
|| ! extension_loaded( 'hash' )
|| ! extension_loaded( 'dom' )
|| ! extension_loaded( 'openssl' )
|| ! extension_loaded( 'xmlwriter' )

If any of those conditions are not met the add-on will deactivated.

If you have SSH access to the server you can run:

php -m

To view a list of all modules on your server, find which of the extensions listed above are not shown on that list and enable them either within PHP.ini or if your host provides a settings page for PHP you may be able to do if from there.

If you are unsure I would recommend contacting your host and provide them with the above list, requesting they enable any required modules on your site.

  • This reply was modified 8 years, 5 months ago by Tony. Reason: Fix code formatting


wmnf

April 27, 2016 at 7:57 am

Thanks, it was mbstring I was missing. You should add all those to the error message.


Tony

  • Support Staff

April 28, 2016 at 5:58 am

I agree and have created a ticket for this to be added in the further.

I’m sorry for any trouble this caused.

Viewing 4 reply threads

The support post ‘PHP 7’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso