Unable to serialize value. Error: Malformed UTF-8 characters, possibly incorrectly encoded in vendor/magento/framework/Serialize/Serializer/Json.php

After I upgraded to Magento 2.3.2 from 2.2.3 I noticed that the product grid was getting slow. I searched a bit and someone mentioned that MSI might be the problem. So I tried disabling it according to this link. Right after that I am getting this error when I try to open a product in…

Details

Attribute set collection returns multiple instance of attribute set “Default”

I am getting the attribute set collection $attributeCollection = $this->eavCollectionFactory->create(); $attributeSet=$attributeCollection->getItems(); foreach($attributeSet as $attSet){ print_r($attSet->getData()); } its return the following result Array ( [attribute_set_id] => 1 [entity_type_id] => 1 [attribute_set_name] => Default [sort_order] => 2 ) Array ( [attribute_set_id] => 2 [entity_type_id] => 2 [attribute_set_name] => Default [sort_order] => 2 ) Array ( [attribute_set_id] =>…

Details

Error while deleting node field

I am using Drupal 8. When the cron runed it deletes the node field from db. Here my code if ($lesson->field_lesson_ended_at->value < $current_time && $session_id && count($paragraphs) > 0) { $pids = []; foreach ($paragraphs as $paragraph) { $pids[] = $paragraph[‘target_id’]; } $storage_handler = \Drupal::entityTypeManager()->getStorage(‘paragraph’); $entities = $storage_handler->loadByProperties([‘id’ => $pids]); foreach ($entities as $entity) {…

Details