After I ran the update from Magento 2.2.8 to Magento 2.3.2, I am getting this error whenever I run a CLI command like upgrade or cache,

main.CRITICAL: Type Error occurred when creating object: Magento\Framework\Interception\Config\Config, Return value of Magento\Framework\Interception\Config\CacheManager::load() must be of the type array or null, string returned [] []

Any idea how to solve that?


  • 1
    Check all 3rd party extension and those extensions create custom cache
    – Amit Bera
    Jan 21, 2020 at 4:48
  • You need to find out those cache tags, those might create the wrong way. that why this error occurring
    – Amit Bera
    Jan 21, 2020 at 4:49
  • I disabled all 3rd party extensions in config.php but I cant run the cache commands because of this error ... I deleted the /var/vache folder manually but the problem is still there.
    – EOB
    Jan 21, 2020 at 7:13
  • @EOB, did you find solution on it. Feb 26, 2020 at 11:12
  • hello @EOB i have same problem, did you get any solution? Sep 12, 2020 at 6:22

2 Answers 2


Anyone still facing the same issue with magento 2.3.4?

php bin/magento cache:flush

An exception was raised while creating "Request"; no instance returned

The reason was redis cache. Flush it and everything will work smooth.

redis-cli -h HOSTNAME



After update from 2.1.9 to 2.3.5,

I execute CLI command like upgrade or compile or cache clean

Then also getting JSON Serializer error [Unable to unserialize value. Error: Syntax error]


Solved by : https://magecomp.com/blog/solved-unable-to-unserialize-value-magento-2-2/

and also CacheManager error, it solve by clear the redis cache

Ref : https://www.shellhacks.com/redis-delete-all-keys-redis-cli/

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.