Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Contributor Steve Grunwell

    (@stevegrunwell)

    Steve (great name, by the way!),

    When upgrading PHP versions, the individual modules aren’t necessarily upgraded as well, so you’ll want to ensure the same packages you were using with PHP 7.0 are installed on your server for PHP 7.2.

    First, I’d start by trying to explicitly enable the module by running phpenmod mcrypt, then restarting PHP-FPM and your web server.

    If the mcrypt module can’t be found, you may find yourself needing to install it: in a Debian-based environment (such as Ubuntu), you can run dkpg -l | grep php to retrieve a list of all installed packages that contain the slug “php”.

    Then, for each item you see that starts with “php7.0-” (e.g. php7.0-mcrypt), I’d recommend installing the corresponding “php7.2-” prefixed version, then restart PHP-FPM (if applicable) and your web server (from the request headers, it appears to be Apache).

    Put together, it will look something like this:

    $ sudo apt-get update
    $ sudo apt-get install php7.2-mcrypt
    $ sudo service php7.2-fpm restart
    $ sudo service apache restart
    Thread Starter SteveSWG

    (@steveswg)

    Hi Steve,

    My hosting provider says that the mcrypt extension was deprecated in PHP 7.1.

    I am using PHP 7.2. Is there a workaround?

    Regards,

    -steve

    Plugin Contributor Steve Grunwell

    (@stevegrunwell)

    Steve,

    You’re absolutely correct —?the mcrypt library has been deprecated and later removed from PHP. My apologies for this oversight.

    Fortunately, the mcrypt dependency is only meant for servers running PHP < 7.0, as PHP 7.0 introduced the random_bytes() function. As a result, the status page will (falsely) report there being an error, but functionality should be unaffected.

    I’ve created a new GitHub issue to ensure the status check accounts for the server’s PHP version in the next release of the plugin.

    Thank you for bringing this to our attention!

    Thread Starter SteveSWG

    (@steveswg)

    Hi Steve,

    You are welcome and thanks for your follow-up.

    I can confirm that I can still import an AirStory document into my WordPress account (WP 4.9.4 & PHP 7.2).

    Regards,
    Steve Williams

    Issue Solved when installing php7.2-mcrypt
    I was also facing the same issue. Check this link Issue in installing php7.2-mcryptto get the right solution for installing it in PHP

    Plugin Contributor Steve Grunwell

    (@stevegrunwell)

    Mcrypt is no longer necessary for PHP 7.0 and above, so there’s no reason to use PECL-based work-arounds to force it to install. The latest version of the Airstory plugin (1.1.5) removes this check for servers running PHP 7.0 or higher.

    Release notes: https://github.com/liquidweb/airstory-wp/releases/tag/v1.1.5

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘AirStory with PHP 7.2 / mcrypt extension missing’ is closed to new replies.