verbb / postie

A Craft Commerce shipping calculator plugin.
Other
12 stars 18 forks source link

Cant install in PHP 7.3 #57

Closed juanjosezg closed 2 years ago

juanjosezg commented 3 years ago

I am trying to install the plugin using craft admin, and also via composer and i got this message

(7.0) does not satisfy that requirement.

My PHP version is 7.3.22

engram-design commented 3 years ago

Can you let me know the content of your composer.json file? I believe it might be restricting packages that can be installed to support a minimum of 7.0 - which is the default requirement imposed by Craft.

However, the latest Postie versions require PHP 7.1+.

You might have it like:

"config":{  
    "optimize-autoloader": true,
    "platform": {
       "php": "7.0"
   }
},

And should be changed to

"config":{  
    "optimize-autoloader": true,
    "platform": {
       "php": "7.1"
   }
},

Whilst you might have PHP 7.3 installed, to Composer, you're saying to restrict packages that must support a min of PHP 7.0, so this would be the reason for the error.

If you can double check that value and let me know?

engram-design commented 2 years ago

Closing due to inactivity.