Hi
magento 2.2.2
PHP 7.1
Live store for example mydomain.com
Test environment is beta.mydomain.com
Earlier today I tryed to update my magento store (test environment) from 2.2.2 to 2.2.6. Readiness passed but I was stuck in the update pending a ages... So I cancelled the update before it had started... So I googled a while and learned that it is the corn job that do the cronjob....
That made me think I needed to update the cronjob commands as the cronjobs are targeting live store - So I changed the cronjob
Second time I tryed the readiness check it complained about non-writing folders
Third time I ran it failed totally, meaning all tests failed
Is there a trick to fix this? some kind of log I need to clean or somehting before I try readiness again?
Hi @Loginname
i understand , as you are facing issues on upgrading magento version from the backend of the system using system wizard , instead of that have you tried to upgrade magento 2 version using command line ?
You can use below commands to upgrade your magento 2 version :
composer require magento/product-community-edition 2.2.6 --no-update composer update rm -rf <Magento install dir>/var/cache/ rm -rf <Magento install dir>/var/page_cache/ rm -rf <Magento install dir>/var/generation/
rm -rf <Magento install dir>/generated php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy -f
php bin/magento cache:clean
php bin/magento cache:flush
It will helps you to upgrade your magento 2 version
hope it helps
Can you explain a bit about what this is:
composer require magento/product-community-edition 2.2.6 --no-update composer update
I know it is data required by the composer, but where do I download and place the magento update file (I mean the compressed file containing the updates)? Or those composer this automatically? (composer has it defined)...
Where do I get this composer file, I'm checking here
(but there are many links (not easy to see what to I should chose, but looking at magento 2. open source update)
Audun
Hi @Loginname
Well, you need to run this commands from your SSH (command line) tool
as your magento 2 is installed and working , so composer is already installed in your server/system - so you don't need to modify/add anything into composer file
you just need to open your SSH command line terminal and go to the root directory of magento 2 - and then run the commands which i have given above
once all commands run successfully - your magento 2 version gets updated !
Hope it helps
I get this error when running the php bin/magento setup:di:compile command
TemplateMonster\Megamenu\Plugin\Block\Topmenu Incompatible argument type: Required type: \Magento\Catalog\Model\ResourceModel\Category\StateDependentCollectionFactory. Actual type: \Magento\Catalog\Model\ResourceModel\Category\CollectionFactory; File: /home/audun/beta.mydomain.com/app/code/TemplateMonster/Megamenu/Plugin/Block/Topmenu.php Total Errors Count: 1 [Magento\Framework\Validator\Exception] Error during compilation setup:di:compile
Just checked with TemplateMonster, they say I get the error because template not compatible 2.2.6
ok, so now I will read a bit aobut how to apply secuirty patches as that should be possible
Hi,
I have ran into this error on my site. Were you ever able to find a fix for this or will I need to contact the plugin developer and get them to update the plugin.
Thanks,
Adrian