Skip to content

magento man

Error after upgrading Magento 2.4.3 to 2.4.5

After upgrading Magento from 2.4.3 to 2.4.4 (or 2.4.5), I cannot run any Magento CLI command. For example, setup upgrade command: bin/magento setup:upgrade generates the errors: Interface “ZendStdlibJsonSerializable” not found#0 /var/www/magento2/vendor/composer/ClassLoader.php(571): include() #1 /var/www/magento2/vendor/composer/ClassLoader.php(428): ComposerAutoloadincludeFile() #2 [internal function]: ComposerAutoloadClassLoader->loadClass() #3… Read More »Error after upgrading Magento 2.4.3 to 2.4.5

Observer display return to frontend

I would like to display the result from Observer to every page, any way I can do it? app/code/MyVendor/GeoIp/Observer/GeoObserver.php <?php namespace MyModuleGeoIpObserver; use MagentoFrameworkEventObserver; use MagentoFrameworkEventObserverInterface; use MyModuleGeoIpHelperGeoLocation; use MagentoFrameworkViewLayoutInterface; class GeoObserver implements ObserverInterface { public function __construct( GeoLocation $helperGeoLocation,… Read More »Observer display return to frontend