FoxyCart / foxyshop

FoxyShop - WordPress plugin for FoxyCart
GNU General Public License v2.0
10 stars 8 forks source link

Add support for PHP 7 by replacing mcrypt with openssl #35

Closed rielmedia closed 3 years ago

rielmedia commented 5 years ago
Deprecated: Function mcrypt_encrypt() is deprecated in [ROOT_DIR]\wp-content\plugins\foxyshop\tools-page.php on line 226

Seeing this error after upgrading to PHP 7. Is there an update coming soon for this? I have a client who insists on using the Foxycart platform and the Foxyshop plugin saved me days worth of development time. I would hate to have to switch at this point in the development process.

adamjudd commented 5 years ago

@rielmedia,

Thanks for posting this issue ticket.

The mcrypt functions are currently just used for the import/export of plugin settings functionality found on the tools page.

As such - you should be fine to ignore the deprecation notices for now, but we'll definitely be working at updating the code to support the openssl equivalents so it can continue to work without issue in PHP 7.1+

rielmedia commented 5 years ago

Thanks for the quick response! Looking forward to the next update.

i-make-robots commented 5 years ago

FYI, do NOT attempt to install mcrypt by installing php5-dev alongside php7.2. It will break your php install as long as php5 is active. (oops.)