Closed sidm1983 closed 4 years ago
Actually, I just found the override. It is in my composer.json
file.
Here is the contents of my composer.json
file:
{
"require": {
"craftcms/cms": "3.5.5",
"craftcms/redactor": "2.7.1",
"shennyg/azure-blob-remote-volume": "1.0.2",
"vlucas/phpdotenv": "^3.4.0"
},
"require-dev": {
"yiisoft/yii2-shell": "^2.0.3"
},
"autoload": {
"psr-4": {
"modules\\": "modules/"
}
},
"config": {
"sort-packages": true,
"optimize-autoloader": true,
"platform": {
"php": "7.0"
}
},
"scripts": {
"post-root-package-install": [
"@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
]
}
}
Not sure why my config.platform.php
setting is set to 7.0 there. Should I remove this or should I change it to 7.2
? Are there any other issues I need to worry about from the composer error output in my original issue description above?
Totally up to you but you may just want to remove it. I think I added that in to limit the crazy amount of variables we plugin devs have to factor in, since we don't have any control over consumer's environments. Plus EOL for 7.1 was December 2019.
Anyways, looks good from your environment since you are on 7.4.
Hope this helps! Let me know if there's anything else I can help with. Closing the issue for now but I can reopen it if needed.
No worries @dsmrt! Thank you for that. Will remove it and try again. Hopefully, it works with no PHP version override. Also, I don't think it was added in because of this SAML plugin. Doing a git blame on the file showed that it was overridden way before I installed this plugin. Perhaps, something Craft CMS or some other plugin added in. Anyway, will let you know if I encounter any more issues. Thanks for the quick response. 🙏🏽🙌🏽😊
@dsmrt, just wanted to report back that I ended up changing the config.platform.php
setting to 7.3
instead of removing it. I was able to install the plugin successfully. Thank you for your help with this. Closing this ticket now.
Great to hear! Let me know if you have any other questions.
When I try to install SAML SSO Service Provider plugin version 2.3.1 in my local dev instance of Craft CMS Pro version 3.5.5 (using the built-in plugin store in the admin control panel), I get the following error almost immediately:
Composer was unable to install the updates due to a dependency conflict.
It looks like my version number is getting overridden by the
config.platform.php
file, but I don't see that file in my project directory. I am using Nitro/Multipass for local development. Is this an issue with Craft CMS or with the plugin not supporting the latest version of Craft CMS. I am happy to raise this with the Craft CMS team if this is an issue on their side. I just need to know how to troubleshoot and resolve this issue. I am very new to PHP and Craft CMS, so any help or guidance you can give me would be greatly appreciated.Thank you! 🙏