0

Error Magento 2.4

Error loading Wordpress Posts => Impossible to process constructor argument Parameter #4 [ Zend\Serializer\Adapter\Json $jsonSerializer

1 Answer 1

0

I solved the problem by changing:

<?php
    
namespace Vendor\Module\Model;
    
use Zend\Serializer\Adapter\Json;
...

To:

<?php

declare(strict_types=1);

namespace Vendor\Module\Model;

use Magento\framework\Serialize\Serializer\Json;
...

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.