When I try to install an extension or update magento through the setup wizard i get a component dependency error ¿How can i fix it?
Im using the following versions:
- Magento versión 2.3.4
- PHP 7.3.16 - The mamemory limit is set to 786M, the hosting service doesnt allow me to change it.
This is the info from the Composer.json
{
"name": "magento/project-community-edition",
"description": "eCommerce Platform for Growth (Community Edition)",
"type": "project",
"license": [
"OSL-3.0",
"AFL-3.0"
],
"config": {
"preferred-install": "dist",
"sort-packages": true
},
"require": {
"magento/product-community-edition": "2.3.4",
"mageplaza/magento-2-spanish-language-pack": "dev-master",
"mageplaza/module-core": "^1.4"
},
"require-dev": {
"allure-framework/allure-phpunit": "~1.2.0",
"dealerdirect/phpcodesniffer-composer-installer": "^0.5.0",
"friendsofphp/php-cs-fixer": "~2.14.0",
"lusitanian/oauth": "~0.8.10",
"magento/magento-coding-standard": "~4.0.0",
"magento/magento2-functional-testing-framework": "2.5.3",
"pdepend/pdepend": "2.5.2",
"phpcompatibility/php-compatibility": "^9.3",
"phpmd/phpmd": "@stable",
"phpunit/phpunit": "~6.5.0",
"sebastian/phpcpd": "~3.0.0",
"squizlabs/php_codesniffer": "~3.4.0"
},
"conflict": {
"gene/bluefoot": "*"
},
"autoload": {
"psr-4": {
"Magento\\Framework\\": "lib/internal/Magento/Framework/",
"Magento\\Setup\\": "setup/src/Magento/Setup/",
"Magento\\": "app/code/Magento/",
"Zend\\Mvc\\Controller\\": "setup/src/Zend/Mvc/Controller/"
},
"psr-0": {
"": [
"app/code/",
"generated/code/"
]
},
"files": [
"app/etc/NonComposerComponentRegistration.php"
],
"exclude-from-classmap": [
"**/dev/**",
"**/update/**",
"**/Test/**"
]
},
"autoload-dev": {
"psr-4": {
"Magento\\Sniffs\\": "dev/tests/static/framework/Magento/Sniffs/",
"Magento\\Tools\\": "dev/tools/Magento/Tools/",
"Magento\\Tools\\Sanity\\": "dev/build/publication/sanity/Magento/Tools/Sanity/",
"Magento\\TestFramework\\Inspection\\": "dev/tests/static/framework/Magento/TestFramework/Inspection/",
"Magento\\TestFramework\\Utility\\": "dev/tests/static/framework/Magento/TestFramework/Utility/"
}
},
"version": "2.3.4",
"minimum-stability": "stable",
"repositories": [
{
"type": "composer",
"url": "https://repo.magento.com/"
}
],
"extra": {
"magento-force": "override"
}
}Here are my cron jobs config:
/usr/local/php71/bin/php-cli /home/u341-wdqwzfycrqte/www/highlandsmeats.com/public_html/bin/magento setup:cron:run >> /home/u341-wdqwzfycrqte/www/highlandsmeats.com/public_html/var/log/setup.cron
/usr/local/php71/bin/php-cli /home/u341-wdqwzfycrqte/www/highlandsmeats.com/public_html/update/cron.php >> /home/u341-wdqwzfycrqte/www/highlandsmeats.com/public_html/var/log/update.cron.log
/usr/local/php71/bin/php-cli /home/u341-wdqwzfycrqte/www/highlandsmeats.com/pu/usr/local/php71/bin/php-cli /home/u341-wdqwzfycrqte/www/highlandsmeats.com/public_html/bin/magento cron:run | grep -v 'Ran jobs by schedule' >> /home/u341-wdqwzfycrqte/www/highlandsmeats.com/public_html/var/log/magento.cron.log
All of them are set to * * * * *(every minute)
1: Check the php.ini has memory_limit (mine is 2G)
2: look in the .htaccess file --of all places, seriously
in .htaccess there are 2 places that memory_limit is also overridden, either remove them or change them to 2G as well
Or
Try to increase the PHP value 'max_execution_time' to 120
Or
Change the memory limit in both file .htaccess and php.ini to 2G