Skip to content

Magento upgrade from 2.4.2-p1 to 2.4.5-p1 problems

I upgraded my magento store from 2.4.2-p1 to 2.4.5-p1 and changed php version from 7.4 to 8.1 and I ran “composer update” successfully, then upgrade,compile and deploy static content.
Now i have a problem with the topsearch it doesnt show me search recommendations and that is the error in (system.log)
“/public_html/vendor/magento/framework/Data/Structure.php(329): MagentoFrameworkDataStructure->_insertChild(‘header-wrapper’, ‘top.search.byca…’, NULL, ‘topSearch’)”

And when i tried to install cron jobs I got this error in (magento.cron.log)
“Fatal error: Composer detected issues in your platform: Your Composer dependencies require a PHP version “>= 8.1.0”. You are running 7.4.33. in /public_html/vendor/composer/platform_check.php on line 24″
although when I checked the php version in cpanel MultiPHP Manager it was 8.1 also I ran php -v in terminal and it showed 8.1