cancel
Showing results for 
Search instead for 
Did you mean: 

Can't edit block after Upgrade Magento 2.4.6-p3 -> 2.4.6-p8

SOLVED

Can't edit block after Upgrade Magento 2.4.6-p3 -> 2.4.6-p8

I can't edit blocks after I upgraded my Magento installation on a testing instance from 2.4.6-p3 to 2.4.6-p8

What could be the reason? Any hints where I can start investigating? I already tried to search through the logs in ./var/logs but no hints to the problem.

I am clueless right now.

I also tried: bin/magento setup:db-schema:upgrade with no success.

What I did:

#!/bin/bash
set -euxo pipefail

php bin/magento maintenance:enable
php bin/magento cache:clean

php bin/magento deploy:mode:set developer
php bin/magento cron:remove
php bin/magento cron:run --group=consumers
# Check if any cron jobs are still running
while pgrep -f 'bin/magento queue' >/dev/null; do
  echo "Waiting for cron jobs to complete..."
  sleep 10
done

composer require-commerce magento/product-community-edition 2.4.6-p8 --no-update --interactive-root-conflicts --force-root-updates
composer update

[ -d var/cache ] && rm -rf var/cache/*
[ -d var/page_cache ] && rm -rf var/page_cache/*
[ -d generated/code ] && rm -rf generated/code/*

php bin/magento cache:flush
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy -f

php bin/magento deploy:mode:set production
php bin/magento cron:install

php bin/magento maintenance:disable
php bin/magento cache:clean

After clicking "Save" it hangs here:
2024-12-22_18-51-06.png

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Can't edit block after Upgrade Magento 2.4.6-p3 -> 2.4.6-p8

rm -rf vendor
composer install
bin/magento setup:upgrade 
bin/magento setup:static-content:deploy -f 
bin/magento setup:di:compile 
bin/magento cache:flush

Running this inside the magento directory removed the problem for me... for now.

But some comments in the linked github page suggest, that it might come back and make rerunning these commands neccessary until Magento fixes the underlying problem.

https://magento.stackexchange.com/questions/375913/cant-edit-block-after-upgrade-magento-ce-2-4-6-p3...

View solution in original post

1 REPLY 1

Re: Can't edit block after Upgrade Magento 2.4.6-p3 -> 2.4.6-p8

rm -rf vendor
composer install
bin/magento setup:upgrade 
bin/magento setup:static-content:deploy -f 
bin/magento setup:di:compile 
bin/magento cache:flush

Running this inside the magento directory removed the problem for me... for now.

But some comments in the linked github page suggest, that it might come back and make rerunning these commands neccessary until Magento fixes the underlying problem.

https://magento.stackexchange.com/questions/375913/cant-edit-block-after-upgrade-magento-ce-2-4-6-p3...