Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
0 votes
1 answer
434 views

How do I use unserialize method instead of json_decode

How do I use unserialize method instead of json_decode, by inject vendor/magento/framework/Serialize/Serializer/ foreach ($results as $result) { $incrementId = $result['increment_id']; ...
Paul Fan's user avatar
  • 658
1 vote
4 answers
12k views

how to properly serialize / unserialize magento 2 models to json format

I'm trying to retrieve some data from a controller in a serialized format that I can unserialize later. For example, I have created an entity with the following data fields MyEntity entity_id ...
gabtzi's user avatar
  • 686
-1 votes
1 answer
213 views

Unable to unserialize value

I have a problem in my Magento 2.2.5 shop. I did the migration from magento 1.9.2.1 When I want to change the category from a product I get the next error: Unable to unserialize value. The exception....
NielN98's user avatar
  • 39
1 vote
0 answers
526 views

Unable to serialize value. at /public_html/vendor/magento/framework/Serialize/Serializer/Json.php:26)"} []

main.CRITICAL: Unable to serialize value. {"exception":"[object] (InvalidArgumentException(code: 0): Unable to serialize value. at /public_html/vendor/magento/framework/Serialize/Serializer/Json....
Mage Explorer's user avatar
0 votes
0 answers
37 views

I can not unserialize this string

I have saved this string into the database. when I trying to decode this string by below sentence this does not working. \Magento\Framework\Serialize\Serializer\Json $serializer $this->...
BM ZALA's user avatar
  • 21
3 votes
2 answers
3k views

Magento 2.2.2, Unable to unserialize value, magento_umask and edting Json.php did not help

After upgrade I'm getting below error in my local : Exception #0 (InvalidArgumentException): Unable to unserialize value. #0 myPath/vendor/magento/module-theme/Controller/Result/MessagePlugin.php(...
Zinat's user avatar
  • 2,079
0 votes
0 answers
361 views

Unable to unserialize value - when adding to website magento 2.2

Migrated fine to 2.2. Now when we open a product and change text for example all works and saves. When trying to assign to another website we get the error Unable to unserialize value. Log shows: [...
Emile's user avatar
  • 101
2 votes
2 answers
865 views

Serialized array in controller

This is my script <script> function callAjax(){ var customoptionhtml = document.getElementById("customoption-dynamic").innerHTML; //alert(test);//alert(jQuery(test).text()); var ...
Vindhuja's user avatar
  • 1,405
2 votes
4 answers
7k views

Magento 2 how to unserialize backend config

I've created Magento 2 module that saves a particular configuration. Screenshot: Now I want to use this value in a frontend block. If I check the core_config table, the value is saved like this: a:1:...
Tjitse's user avatar
  • 1,310