Questions tagged [serialize]

The tag has no usage guidance.

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

Mangeto 2 - Admin Grid Serialization of multiple input fields

I have a admin grid there I want to send 3 input fields data, one is checkbox value. That I am able to send using below code, The grid is inside add/edit cart price rule. File: sales_rule_form.xml ...
0
votes
0answers
23 views

magento 2 Failed to parse time string

I want to serialize array of date to store in DB while serialize date i am getting error Failed to parse time string, i have tried this if (isset($data['startdate']) && $data['startdate'] ...
1
vote
1answer
133 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
46 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
187 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
22 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
34 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
146 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
498 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
160 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/...
4
votes
0answers
380 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.