Questions tagged [serialize]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
17 views

SetAdditionalOptions is not working in Magento2.3.1

I am facing a weird problem with setAddtionalOptions for checkout. Following is my code to set options using observer. This is my event.xml file, which calls the observer to set additional options. &...
1
vote
0answers
17 views

Magento Json Serializer vs native PHP

Is there any special reason why I should use the Magento framework classes such as JSON Serializer vs just native PHP? https://github.com/magento/magento2/blob/2.3/lib/internal/Magento/Framework/...
0
votes
0answers
20 views

Chinese characters in product description Error utf unable to serialize

I got the error when I save Chinese characters in product description 1 exception(s): Exception #0 (InvalidArgumentException): Unable to serialize value. Error: Malformed UTF-8 characters, possibly ...
1
vote
0answers
35 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....
2
votes
0answers
47 views

Magento2: During reindex Serialization failure: 1213 Deadlock found when trying to get lock

During php bin/magento indexer:reindex SQLSTATE[40001]: Serialization failure: 1213 Deadlock found when trying to get lock; try restarting transaction, query was: INSERT INTO `...
0
votes
0answers
45 views

Unable to unserialize value in Magento 2

Whenever I try to access my local or integration environment I am getting this error. Unable to unserialize value. Exception #0 (InvalidArgumentException): Unable to unserialize value. #0 /Users/...
3
votes
0answers
139 views

Custom Model Relationship (CMS Page + Product)

I am trying to assign a Product Object to a CMS Page Object, so when you have the CMS Page Object, you can do something like this: $product = $page->getProduct(); I have modified the CMS Page ...
1
vote
1answer
24 views

How to modify the model data after it loaded?

I have the model that needed to modify serialized data to array after the form loaded. What is the best way I can use for it? I tried to use _afterLoad() method, but it worked only for collections.