cancel
Showing results for 
Search instead for 
Did you mean: 

Update to 2.4.4-p1 multiple errors

Update to 2.4.4-p1 multiple errors

Hello, after update it looked everything ok.

I have as template I run is Porto 4.0.2

But after I modified some products, the admin does not load the products anymore and I get "

Something went wrong with processing the default view and we have restored the filter to its original state.

If I look into debug.log I find multiple errors.

the de:

 

[2022-08-25T14:41:05.522546+00:00] main.CRITICAL: InvalidArgumentException: Unable to serialize value. Error: Malformed UTF-8 characters, possibly incorrectly encoded in /var/www/html/magento2/vendor/magento/fram
ework/Serialize/Serializer/Json.php:26
Stack trace:
#0 /var/www/html/magento2/vendor/magento/module-re-captcha-customer/Plugin/Block/Account/InjectRecaptchaInAuthenticationPopup.php(69): Magento\Framework\Serialize\Serializer\Json->serialize()
#1 /var/www/html/magento2/vendor/magento/framework/Interception/Interceptor.php(146): Magento\ReCaptchaCustomer\Plugin\Block\Account\InjectRecaptchaInAuthenticationPopup->afterGetJsLayout()
#2 /var/www/html/magento2/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Customer\Block\Account\AuthenticationPopup\Interceptor->Magento\Framework\Interception\{closure}()
#3 /var/www/html/magento2/generated/code/Magento/Customer/Block/Account/AuthenticationPopup/Interceptor.php(23): Magento\Customer\Block\Account\AuthenticationPopup\Interceptor->___callPlugins()
#4 /var/www/html/magento2/vendor/magento/module-customer/view/frontend/templates/account/authentication-popup.phtml(17): Magento\Customer\Block\Account\AuthenticationPopup\Interceptor->getJsLayout()
#5 /var/www/html/magento2/vendor/magento/framework/View/TemplateEngine/Php.php(71): include('...')
#6 /var/www/html/magento2/vendor/magento/framework/View/Element/Template.php(263): Magento\Framework\View\TemplateEngine\Php->render()
#7 /var/www/html/magento2/generated/code/Magento/Customer/Block/Account/AuthenticationPopup/Interceptor.php(131): Magento\Framework\View\Element\Template->fetchView()
#8 /var/www/html/magento2/vendor/magento/framework/View/Element/Template.php(293): Magento\Customer\Block\Account\AuthenticationPopup\Interceptor->fetchView()
#9 /var/www/html/magento2/vendor/magento/framework/View/Element/AbstractBlock.php(1095): Magento\Framework\View\Element\Template->_toHtml()
#10 /var/www/html/magento2/vendor/magento/framework/View/Element/AbstractBlock.php(1099): Magento\Framework\View\Element\AbstractBlock->Magento\Framework\View\Element\{closure}()
#11 /var/www/html/magento2/vendor/magento/framework/View/Element/AbstractBlock.php(660): Magento\Framework\View\Element\AbstractBlock->_loadCache()
#12 /var/www/html/magento2/generated/code/Magento/Customer/Block/Account/AuthenticationPopup/Interceptor.php(338): Magento\Framework\View\Element\AbstractBlock->toHtml()
#13 /var/www/html/magento2/vendor/magento/framework/View/Layout.php(578): Magento\Customer\Block\Account\AuthenticationPopup\Interceptor->toHtml()
#14 /var/www/html/magento2/vendor/magento/framework/View/Layout.php(555): Magento\Framework\View\Layout->_renderBlock()
#15 /var/www/html/magento2/generated/code/Magento/Framework/View/Layout/Interceptor.php(149): Magento\Framework\View\Layout->renderNonCachedElement()
#16 /var/www/html/magento2/vendor/magento/framework/View/Layout.php(510): Magento\Framework\View\Layout\Interceptor->renderNonCachedElement()
#17 /var/www/html/magento2/generated/code/Magento/Framework/View/Layout/Interceptor.php(140): Magento\Framework\View\Layout->renderElement()
#18 /var/www/html/magento2/vendor/magento/framework/View/Layout.php(606): Magento\Framework\View\Layout\Interceptor->renderElement()
#19 /var/www/html/magento2/vendor/magento/framework/View/Layout.php(557): Magento\Framework\View\Layout->_renderContainer()
#20 /var/www/html/magento2/generated/code/Magento/Framework/View/Layout/Interceptor.php(149): Magento\Framework\View\Layout->renderNonCachedElement()
#21 /var/www/html/magento2/vendor/magento/framework/View/Layout.php(510): Magento\Framework\View\Layout\Interceptor->renderNonCachedElement()
#22 /var/www/html/magento2/generated/code/Magento/Framework/View/Layout/Interceptor.php(140): Magento\Framework\View\Layout->renderElement()
#23 /var/www/html/magento2/vendor/magento/framework/View/Layout.php(606): Magento\Framework\View\Layout\Interceptor->renderElement()
#24 /var/www/html/magento2/vendor/magento/framework/View/Layout.php(557): Magento\Framework\View\Layout->_renderContainer()
#25 /var/www/html/magento2/generated/code/Magento/Framework/View/Layout/Interceptor.php(149): Magento\Framework\View\Layout->renderNonCachedElement()
#26 /var/www/html/magento2/vendor/magento/framework/View/Layout.php(510): Magento\Framework\View\Layout\Interceptor->renderNonCachedElement()
#27 /var/www/html/magento2/generated/code/Magento/Framework/View/Layout/Interceptor.php(140): Magento\Framework\View\Layout->renderElement()
#28 /var/www/html/magento2/vendor/magento/framework/View/Layout.php(606): Magento\Framework\View\Layout\Interceptor->renderElement()
#29 /var/www/html/magento2/vendor/magento/framework/View/Layout.php(557): Magento\Framework\View\Layout->_renderContainer()
#30 /var/www/html/magento2/generated/code/Magento/Framework/View/Layout/Interceptor.php(149): Magento\Framework\View\Layout->renderNonCachedElement()
#31 /var/www/html/magento2/vendor/magento/framework/View/Layout.php(510): Magento\Framework\View\Layout\Interceptor->renderNonCachedElement()
#32 /var/www/html/magento2/generated/code/Magento/Framework/View/Layout/Interceptor.php(140): Magento\Framework\View\Layout->renderElement()
#33 /var/www/html/magento2/vendor/magento/framework/View/Layout.php(606): Magento\Framework\View\Layout\Interceptor->renderElement()
#34 /var/www/html/magento2/vendor/magento/framework/View/Layout.php(557): Magento\Framework\View\Layout->_renderContainer()
#35 /var/www/html/magento2/generated/code/Magento/Framework/View/Layout/Interceptor.php(149): Magento\Framework\View\Layout->renderNonCachedElement()
#36 /var/www/html/magento2/vendor/magento/framework/View/Layout.php(510): Magento\Framework\View\Layout\Interceptor->renderNonCachedElement()
#37 /var/www/html/magento2/generated/code/Magento/Framework/View/Layout/Interceptor.php(140): Magento\Framework\View\Layout->renderElement()
#38 /var/www/html/magento2/vendor/magento/framework/View/Layout.php(606): Magento\Framework\View\Layout\Interceptor->renderElement()
#39 /var/www/html/magento2/vendor/magento/framework/View/Layout.php(557): Magento\Framework\View\Layout->_renderContainer()
#40 /var/www/html/magento2/generated/code/Magento/Framework/View/Layout/Interceptor.php(149): Magento\Framework\View\Layout->renderNonCachedElement()
#41 /var/www/html/magento2/vendor/magento/framework/View/Layout.php(510): Magento\Framework\View\Layout\Interceptor->renderNonCachedElement()
#42 /var/www/html/magento2/generated/code/Magento/Framework/View/Layout/Interceptor.php(140): Magento\Framework\View\Layout->renderElement()
#43 /var/www/html/magento2/vendor/magento/framework/View/Layout.php(606): Magento\Framework\View\Layout\Interceptor->renderElement()
#44 /var/www/html/magento2/vendor/magento/framework/View/Layout.php(557): Magento\Framework\View\Layout->_renderContainer()
#45 /var/www/html/magento2/generated/code/Magento/Framework/View/Layout/Interceptor.php(149): Magento\Framework\View\Layout->renderNonCachedElement()
#46 /var/www/html/magento2/vendor/magento/framework/View/Layout.php(510): Magento\Framework\View\Layout\Interceptor->renderNonCachedElement()
#47 /var/www/html/magento2/generated/code/Magento/Framework/View/Layout/Interceptor.php(140): Magento\Framework\View\Layout->renderElement()
#48 /var/www/html/magento2/vendor/magento/framework/View/Layout.php(975): Magento\Framework\View\Layout\Interceptor->renderElement()
#49 /var/www/html/magento2/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\View\Layout->getOutput()
#50 /var/www/html/magento2/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Framework\View\Layout\Interceptor->___callParent()
#51 /var/www/html/magento2/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\View\Layout\Interceptor->Magento\Framework\Interception\{closure}()
#52 /var/www/html/magento2/generated/code/Magento/Framework/View/Layout/Interceptor.php(347): Magento\Framework\View\Layout\Interceptor->___callPlugins()
#53 /var/www/html/magento2/vendor/magento/framework/View/Result/Page.php(260): Magento\Framework\View\Layout\Interceptor->getOutput()
#54 /var/www/html/magento2/vendor/magento/framework/View/Result/Layout.php(171): Magento\Framework\View\Result\Page->render()
#55 /var/www/html/magento2/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\View\Result\Layout->renderResult()
#56 /var/www/html/magento2/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Framework\View\Result\Page\Interceptor->___callParent()
#57 /var/www/html/magento2/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\View\Result\Page\Interceptor->Magento\Framework\Interception\{closure}()
#58 /var/www/html/magento2/generated/code/Magento/Framework/View/Result/Page/Interceptor.php(95): Magento\Framework\View\Result\Page\Interceptor->___callPlugins()
#59 /var/www/html/magento2/vendor/magento/framework/App/Http.php(120): Magento\Framework\View\Result\Page\Interceptor->renderResult()
#60 /var/www/html/magento2/generated/code/Magento/Framework/App/Http/Interceptor.php(23): Magento\Framework\App\Http->launch()
#61 /var/www/html/magento2/vendor/magento/framework/App/Bootstrap.php(264): Magento\Framework\App\Http\Interceptor->launch()
#62 /var/www/html/magento2/pub/index.php(30): Magento\Framework\App\Bootstrap->run()
#63 {main} [] []
[2022-08-25T14:41:47.170443+00:00] main.CRITICAL: InvalidArgumentException: Unable to serialize value. Error: Malformed UTF-8 characters, possibly incorrectly encoded in /var/www/html/magento2/vendor/magento/framework/Serialize/Serializer/Json.php:26
Stack trace:
#0 /var/www/html/magento2/vendor/magento/module-re-captcha-customer/Plugin/Block/Account/InjectRecaptchaInAuthenticationPopup.php(69): Magento\Framework\Serialize\Serializer\Json->serialize()
.....

 

In the debug I have also some error concerning SpecialPriceAttribution

 

[2022-08-25T14:52:48.296448+00:00] main.DEBUG: Request validation failed for action "Magento\Catalog\Controller\Adminhtml\Product\Index\Interceptor" {"exception":"[object] (Magento\\Framework\\App\\Request\\Inval
idRequestException(code: 0): Invalid request received at /var/www/html/magento2/vendor/magento/module-backend/App/Request/BackendValidator.php:176)"} []
[2022-08-25T14:52:53.142281+00:00] main.CRITICAL: ParseError: syntax error, unexpected variable "$item" in /var/www/html/magento2/vendor/magento/module-bundle/Ui/DataProvider/Product/Modifier/SpecialPriceAttribut
es.php:88
Stack trace:
#0 /var/www/html/magento2/vendor/composer/ClassLoader.php(428): Composer\Autoload\includeFile()
#1 [internal function]: Composer\Autoload\ClassLoader->loadClass()
#2 /var/www/html/magento2/vendor/magento/framework/Code/Reader/ClassReader.php(34): ReflectionClass->__construct()
#3 /var/www/html/magento2/vendor/magento/framework/ObjectManager/Definition/Runtime.php(54): Magento\Framework\Code\Reader\ClassReader->getConstructor()
#4 /var/www/html/magento2/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(48): Magento\Framework\ObjectManager\Definition\Runtime->getParameters()
#5 /var/www/html/magento2/vendor/magento/framework/ObjectManager/ObjectManager.php(56): Magento\Framework\ObjectManager\Factory\Dynamic\Developer->create()
#6 /var/www/html/magento2/vendor/magento/module-ui/DataProvider/Modifier/ModifierFactory.php(42): Magento\Framework\ObjectManager\ObjectManager->create()
#7 /var/www/html/magento2/vendor/magento/module-ui/DataProvider/Modifier/Pool.php(76): Magento\Ui\DataProvider\Modifier\ModifierFactory->create()
#8 /var/www/html/magento2/vendor/magento/module-catalog/Ui/DataProvider/Product/ProductDataProvider.php(140): Magento\Ui\DataProvider\Modifier\Pool->getModifiersInstances()
#9 /var/www/html/magento2/vendor/magento/framework/View/Element/UiComponentFactory.php(330): Magento\Catalog\Ui\DataProvider\Product\ProductDataProvider->getMeta()
#10 /var/www/html/magento2/vendor/magento/framework/View/Element/UiComponentFactory.php(231): Magento\Framework\View\Element\UiComponentFactory->mergeMetadata()
#11 /var/www/html/magento2/vendor/magento/framework/View/Layout/Generator/UiComponent.php(140): Magento\Framework\View\Element\UiComponentFactory->create()
#12 /var/www/html/magento2/vendor/magento/framework/View/Layout/Generator/UiComponent.php(103): Magento\Framework\View\Layout\Generator\UiComponent->generateComponent()
#13 /var/www/html/magento2/vendor/magento/framework/View/Layout/GeneratorPool.php(93): Magento\Framework\View\Layout\Generator\UiComponent->process()
#14 /var/www/html/magento2/vendor/magento/framework/View/Layout.php(365): Magento\Framework\View\Layout\GeneratorPool->process()
#15 /var/www/html/magento2/generated/code/Magento/Framework/View/Layout/Interceptor.php(68): Magento\Framework\View\Layout->generateElements()
#16 /var/www/html/magento2/vendor/magento/framework/View/Layout/Builder.php(129): Magento\Framework\View\Layout\Interceptor->generateElements()
#17 /var/www/html/magento2/vendor/magento/framework/View/Page/Builder.php(65): Magento\Framework\View\Layout\Builder->generateLayoutBlocks()
#18 /var/www/html/magento2/vendor/magento/framework/View/Layout/Builder.php(65): Magento\Framework\View\Page\Builder->generateLayoutBlocks()
#19 /var/www/html/magento2/vendor/magento/framework/View/Layout.php(271): Magento\Framework\View\Layout\Builder->build()
#20 /var/www/html/magento2/vendor/magento/framework/View/Layout.php(896): Magento\Framework\View\Layout->build()
#21 /var/www/html/magento2/generated/code/Magento/Framework/View/Layout/Interceptor.php(293): Magento\Framework\View\Layout->getBlock()
#22 /var/www/html/magento2/vendor/magento/module-backend/Model/View/Result/Page.php(26): Magento\Framework\View\Layout\Interceptor->getBlock()
#23 /var/www/html/magento2/generated/code/Magento/Backend/Model/View/Result/Page/Interceptor.php(23): Magento\Backend\Model\View\Result\Page->setActiveMenu()
#24 /var/www/html/magento2/vendor/magento/module-catalog/Controller/Adminhtml/Product/Index.php(41): Magento\Backend\Model\View\Result\Page\Interceptor->setActiveMenu()
#25 /var/www/html/magento2/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Catalog\Controller\Adminhtml\Product\Index->execute()
#26 /var/www/html/magento2/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Catalog\Controller\Adminhtml\Product\Index\Interceptor->___callParent()
#27 /var/www/html/magento2/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Catalog\Controller\Adminhtml\Product\Index\Interceptor->Magento\Framework\Interception\{closure}()
#28 /var/www/html/magento2/generated/code/Magento/Catalog/Controller/Adminhtml/Product/Index/Interceptor.php(23): Magento\Catalog\Controller\Adminhtml\Product\Index\Interceptor->___callPlugins()
#29 /var/www/html/magento2/vendor/magento/framework/App/Action/Action.php(111): Magento\Catalog\Controller\Adminhtml\Product\Index\Interceptor->execute()
#30 /var/www/html/magento2/vendor/magento/module-backend/App/AbstractAction.php(151): Magento\Framework\App\Action\Action->dispatch()
#31 /var/www/html/magento2/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Backend\App\AbstractAction->dispatch()
#32 /var/www/html/magento2/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Catalog\Controller\Adminhtml\Product\Index\Interceptor->___callParent()
#33 /var/www/html/magento2/vendor/magento/module-backend/App/Action/Plugin/Authentication.php(145): Magento\Catalog\Controller\Adminhtml\Product\Index\Interceptor->Magento\Framework\Interception\{closure}()
#34 /var/www/html/magento2/vendor/magento/framework/Interception/Interceptor.php(135): Magento\Backend\App\Action\Plugin\Authentication->aroundDispatch()
#35 /var/www/html/magento2/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Catalog\Controller\Adminhtml\Product\Index\Interceptor->Magento\Framework\Interception\{closure}()
#36 /var/www/html/magento2/generated/code/Magento/Catalog/Controller/Adminhtml/Product/Index/Interceptor.php(32): Magento\Catalog\Controller\Adminhtml\Product\Index\Interceptor->___callPlugins()
#37 /var/www/html/magento2/vendor/magento/framework/App/FrontController.php(245): Magento\Catalog\Controller\Adminhtml\Product\Index\Interceptor->dispatch()
#38 /var/www/html/magento2/vendor/magento/framework/App/FrontController.php(212): Magento\Framework\App\FrontController->getActionResponse()
#39 /var/www/html/magento2/vendor/magento/framework/App/FrontController.php(147): Magento\Framework\App\FrontController->processRequest()
#40 /var/www/html/magento2/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\App\FrontController->dispatch()
#41 /var/www/html/magento2/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Framework\App\FrontController\Interceptor->___callParent()
#42 /var/www/html/magento2/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}()
#43 /var/www/html/magento2/generated/code/Magento/Framework/App/FrontController/Interceptor.php(23): Magento\Framework\App\FrontController\Interceptor->___callPlugins()
#44 /var/www/html/magento2/vendor/magento/framework/App/Http.php(116): Magento\Framework\App\FrontController\Interceptor->dispatch()
#45 /var/www/html/magento2/generated/code/Magento/Framework/App/Http/Interceptor.php(23): Magento\Framework\App\Http->launch()
#46 /var/www/html/magento2/vendor/magento/framework/App/Bootstrap.php(264): Magento\Framework\App\Http\Interceptor->launch()
#47 /var/www/html/magento2/pub/index.php(30): Magento\Framework\App\Bootstrap->run()
#48 {main} [] []
[2022-08-25T14:53:02.942817+00:00] main.CRITICAL: InvalidArgumentException: Unable to serialize value. Error: Malformed UTF-8 characters, possibly incorrectly encoded in /var/www/html/magento2/vendor/magento/framework/Serialize/Serializer/Json.php:26
Stack trace:

 

 

I am kind of lost trying to figure out what went wrong. Any suggestion?

1 REPLY 1

Re: Update to 2.4.4-p1 multiple errors

Hello @ilgraffiov6ae0 

 

Please try below solution for first error "Magento 2.3.XX unable to serialize value. error: malformed utf-8 characters, possibly incorrectly encoded" :
Go to this file location and paste below code and best way try to override this file : vendor/magento/framework/Serialize/Serializer/Json.php

public function utf8ize( $mixed ) {
    if (is_array($mixed)) foreach ($mixed as $key => $value) $mixed[$key] = $this->utf8ize($value);
    elseif (is_string($mixed)) return mb_convert_encoding($mixed, "UTF-8", "UTF-8");
    return $mixed;
}

public function serialize($data){
    $result = json_encode( $this->utf8ize( $data ) );
    if (false === $result) {
        throw new \InvalidArgumentException("Unable to serialize value. Error: " . json_last_error_msg());
    }
    return $result;
}

It may help you!
Thank you

Problem solved? Click Accept as Solution!