Questions tagged [serialize]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
106 views

Magento 1.9 - How to add serial number in sales orders list & invoice list?

How to add serial number for both order list and invoice list, sales->order sales->order->invoice If i add below code in -> app\design\adminhtml\default\default\template\sales\order\view\items....
0
votes
1answer
37 views

Not able to run command after upgrade - Magento2

I have upgraded the Magento version after that I have run cache clean, flush and permission command. above cache-related commands are working good but php bin/magento setup:upgrade command isn't ...
0
votes
0answers
114 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
20 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
26 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
31 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
98 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
1answer
301 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
110 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
287 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
26 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.