#StackBounty: #category #magento2.3.5-p1 #serializer Something went wrong while saving the category

Bounty: 50

I get an error on Magento 2.3.5-p1 when trying to add products to an existing category.
The products won’t save and I get this message:

Argument 1 passed to MagentoCatalogModelCategoryFileInfo::removeStorePath() must be of the type string, array given, called in /cache/vendor/magento/module-catalog/Model/Category/FileInfo.php on line 167

If I navigate to the product page to add to a category i get this error:

Unable to unserialize value. Error: Syntax error

and this in the log:

[2020-09-18 19:44:02] main.CRITICAL: Unable to unserialize value. Error: Syntax error {"exception":"[object] (InvalidArgumentException(code: 0): Unable to unserialize value. Error: Syntax error at /cache/vendor/magento/framework/Serialize/Serializer/Json.php:39)"} []

How can I fix this?


Get this bounty!!!

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.