Questions tagged [serialize]

The tag has no usage guidance.

8 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
3
votes
0answers
159 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 ...
2
votes
0answers
70 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 `...
1
vote
0answers
18 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/...
1
vote
0answers
38 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....
0
votes
0answers
46 views

Magento 2 - How to use dynamic row system to populate form in custom shipping module

I built a Magento 2 custom module for shipping that has a select drop down field for users to choose an option. I want to be able to set those options in the admin for the module using the dynamic ...
0
votes
0answers
18 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. &...
0
votes
0answers
22 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 ...
0
votes
0answers
56 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/...