Fatal error on version 2.1
-
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.
-
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!
MarkoFatal 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 24Here’s the error we get when we did the upgrade from 2.0 to 2.1.
I have the same issue.
- The notes say php 7.0 is required but, throws a php 7.2 error after upgrading.
- 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.
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
MarkoHey @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
MarkoHey @wp_media,
I don’t know which dependency need this version but you can see in
imagify/vendor/composer/platform_check.phpthat 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,
ThomasHi @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
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,
ThomasExactly, 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.
The topic ‘Fatal error on version 2.1’ is closed to new replies.