You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been using this tool a while ago with great success, however I can't deploy it out of the box at the moment.
My server has several PHP versions installed, so I can choose the one I need for each or my Vhost. The default php version is 8.1, but one of my wp site is still running on php 7.4.
when it try to deploy this tool on this wp site I get this error message :
Dependency resolution completed in 0.001 seconds
Your requirements could not be resolved to an installable set of packages.
Problem 1
- typisttech/image-optimize-command[0.1.0, 0.1.1, 0.1.2, 0.2.0, 0.3.0] require php ^7.1 -> your php version (8.1.14) does not satisfy that requirement.
- typisttech/image-optimize-command[0.3.1, 0.4.0, 0.4.1, 0.4.2] require php ^7.2 -> your php version (8.1.14) does not satisfy that requirement.
- Root composer.json requires typisttech/image-optimize-command @stable -> satisfiable by typisttech/image-optimize-command[0.1.0, 0.1.1, 0.1.2, 0.2.0, 0.3.0, 0.3.1, 0.4.0, 0.4.1, 0.4.2].
Running update with --no-dev does not mean require-dev is ignored, it just means the packages will not be installed. If dev requirements are blocking the update you have to resolve those problems.
---
Error: Package installation failed (Composer return code 2).
Reverted composer.json.
As I understand your tool check for my php version, and get the default php version the serve use, not the php version that is used by the vhost i'm deploying it into.
Plus the error message says it should be above 7.2, not the it could not be 8+
I guess I can tweak your code to change the requirement but, isn't there any classier way to deploy it for a site in the above context ?
Thank's in advance for your feedback
The text was updated successfully, but these errors were encountered:
Hi there,
I've been using this tool a while ago with great success, however I can't deploy it out of the box at the moment.
My server has several PHP versions installed, so I can choose the one I need for each or my Vhost. The default php version is 8.1, but one of my wp site is still running on php 7.4.
when it try to deploy this tool on this wp site I get this error message :
As I understand your tool check for my php version, and get the default php version the serve use, not the php version that is used by the vhost i'm deploying it into.
Plus the error message says it should be above 7.2, not the it could not be 8+
I guess I can tweak your code to change the requirement but, isn't there any classier way to deploy it for a site in the above context ?
Thank's in advance for your feedback
The text was updated successfully, but these errors were encountered: