• Hi there,

    On version 2.1, the composer php version is currently >= 7.2 and not 7.0. That currently trigger a fatal error.

    Best regards,
    Thomas B.

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author WP Media

    (@wp_media)

    Hey @never09

    Sorry to hear about the trouble you have!

    Can you send me the full Fatal error message you got, please? That way, we will be able to analyze it and see what can be done.

    Thanks!
    Marko

    Thread Starter Thomas Blanchard

    (@never09)

    Fatal error: Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 7.2.0". You are running 7.0.33-0+deb9u12. in /home/webmaster/public_html/www/wp-content/plugins/imagify/vendor/composer/platform_check.php on line 24

    Here’s the error we get when we did the upgrade from 2.0 to 2.1.

    I have the same issue.

    1. The notes say php 7.0 is required but, throws a php 7.2 error after upgrading.
    2. The plugin should not allow you to update if you meet have the minimum requirement.

    This is on version 6.1.1 btw. Hope this helps.

    Plugin Author WP Media

    (@wp_media)

    Hey everyone,

    Thanks for your patience!

    Just to let you know we are investigating this further and will get back to you as soon as possible.

    Best Regards
    Marko

    Plugin Author WP Media

    (@wp_media)

    Hey @never09 and @thinkwired

    Thanks for your patience!

    We are checking this and it would be good to know for which Composer dependencies you got this error. The ones that we added don’t set an explicit requirement for PHP7.2 so it would be good to check further details.

    Is there any chance to check that?

    Thanks
    Marko

    Thread Starter Thomas Blanchard

    (@never09)

    Hey @wp_media,

    I don’t know which dependency need this version but you can see in imagify/vendor/composer/platform_check.php that a php version 7.2 or higher is required.

    I think this file and line can cause this error when composer install on the release : https://github.com/wp-media/imagify-plugin/blob/develop/composer.json#L35

    Best regards,
    Thomas

    Plugin Author WP Media

    (@wp_media)

    Hi @never09

    Thanks for your patience!

    Please make sure to uograde your PHP version as that is the safest way to resolve the problem.

    Best Regards

    Marko

    Thread Starter Thomas Blanchard

    (@never09)

    Hi @wp_media

    I know but for retro-compatibility, please make sure to change the php requirement version for other people to 7.2 or higher. This will prevent upgrade notice for WordPress sites that not use php 7.2 or higher.

    The line to update: https://github.com/wp-media/imagify-plugin/blob/develop/imagify.php#L8

    Best regards,
    Thomas

    Exactly, It should have never allowed the upgrade to begin with. If the requirement is 7.2 then you need to ensure the server is running 7.2 before proceeding to upgrade. Why would you allow the upgrade when the environment doesn’t meet the minimum requirements?

    The result is a fatal error. The only way out of it was to delete the plugin folder from the directory.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Fatal error on version 2.1’ is closed to new replies.