Skip to content

Issue with receiving emails

Magento Open Source 2.4.5

I am having issues with emails. They are coming through without the email body content and just “We’re sorry, an error has occurred while generating this content.”

The following is from our system.log:

InvalidArgumentException: Unable to serialize value. Error: Malformed UTF-8 characters, possibly incorrectly encoded in public_html/vendor/magento/framework/Serialize/Serializer/Json.php:26
Stack trace:
#0 public_html/vendor/magento/framework/Url.php(874): MagentoFrameworkSerializeSerializerJson->serialize()
#1 public_html/vendor/magento/module-email/Model/AbstractTemplate.php(761): MagentoFrameworkUrl->getUrl()
#2 public_html/vendor/magento/framework/Interception/Interceptor.php(58): MagentoEmailModelAbstractTemplate->getUrl()
#3 public_html/vendor/magento/framework/Interception/Interceptor.php(138): MagentoEmailModelTemplateInterceptor->___callParent()
#4 public_html/vendor/magento/framework/Interception/Interceptor.php(153): MagentoEmailModelTemplateInterceptor->MagentoFrameworkInterception{closure}()
#5 public_html/generated/code/Magento/Email/Model/Template/Interceptor.php(32): MagentoEmailModelTemplateInterceptor->___callPlugins()
#6 public_html/vendor/magento/framework/Filter/VariableResolver/StrictResolver.php(115): MagentoEmailModelTemplateInterceptor->getUrl()
#7 public_html/vendor/magento/framework/Filter/VariableResolver/StrictResolver.php(90): MagentoFrameworkFilterVariableResolverStrictResolver->handleGetterMethod()
#8 public_html/vendor/magento/framework/Filter/VariableResolver/StrictResolver.php(54): MagentoFrameworkFilterVariableResolverStrictResolver->handleDataAccess()
#9 public_html/vendor/magento/framework/Filter/Template.php(368): MagentoFrameworkFilterVariableResolverStrictResolver->resolve()
#10 public_html/vendor/magento/module-email/Model/Template/Filter.php(674): MagentoFrameworkFilterTemplate->getVariable()
#11 [internal function]: MagentoEmailModelTemplateFilter->varDirective()
#12 public_html/vendor/magento/framework/Filter/DirectiveProcessor/LegacyDirective.php(42): ReflectionMethod->invokeArgs()
#13 public_html/vendor/magento/framework/Filter/Template.php(192): MagentoFrameworkFilterDirectiveProcessorLegacyDirective->process()
#14 public_html/vendor/magento/module-email/Model/Template/Filter.php(1116): MagentoFrameworkFilterTemplate->filter()
#15 public_html/vendor/magento/framework/Interception/Interceptor.php(58): MagentoEmailModelTemplateFilter->filter()
#16 public_html/vendor/magento/framework/Interception/Interceptor.php(138): MagentoEmailModelTemplateFilterInterceptor->___callParent()
#17 public_html/app/code/Magezon/PageBuilder/Plugin/Filter/Template.php(45): MagentoEmailModelTemplateFilterInterceptor->MagentoFrameworkInterception{closure}()
#18 public_html/vendor/magento/framework/Interception/Interceptor.php(135): MagezonPageBuilderPluginFilterTemplate->aroundFilter()
#19 public_html/vendor/magento/framework/Interception/Interceptor.php(153): MagentoEmailModelTemplateFilterInterceptor->MagentoFrameworkInterception{closure}()
#20 public_html/generated/code/Magento/Email/Model/Template/Filter/Interceptor.php(50): MagentoEmailModelTemplateFilterInterceptor->___callPlugins()
#21 public_html/vendor/magento/module-email/Model/AbstractTemplate.php(363): MagentoEmailModelTemplateFilterInterceptor->filter()
#22 public_html/vendor/magento/module-email/Model/Template.php(380): MagentoEmailModelAbstractTemplate->getProcessedTemplate()
#23 public_html/vendor/mageplaza/module-pdf-invoice/Model/Template/TransportBuilder.php(298): MagentoEmailModelTemplate->processTemplate()
#24 public_html/generated/code/Mageplaza/PdfInvoice/Model/Template/TransportBuilder/Interceptor.php(68): MageplazaPdfInvoiceModelTemplateTransportBuilder->prepareMessage()
#25 public_html/vendor/magento/framework/Mail/Template/TransportBuilder.php(336): MageplazaPdfInvoiceModelTemplateTransportBuilderInterceptor->prepareMessage()
#26 public_html/generated/code/Mageplaza/PdfInvoice/Model/Template/TransportBuilder/Interceptor.php(131): MagentoFrameworkMailTemplateTransportBuilder->getTransport()
#27 public_html/app/code/WeltPixel/EnhancedEmail/Controller/Adminhtml/Template/Send.php(164): MageplazaPdfInvoiceModelTemplateTransportBuilderInterceptor->getTransport()
#28 public_html/vendor/magento/framework/Interception/Interceptor.php(58): WeltPixelEnhancedEmailControllerAdminhtmlTemplateSend->execute()
#29 public_html/vendor/magento/framework/Interception/Interceptor.php(138): WeltPixelEnhancedEmailControllerAdminhtmlTemplateSendInterceptor->___callParent()
#30 public_html/vendor/magento/framework/Interception/Interceptor.php(153): WeltPixelEnhancedEmailControllerAdminhtmlTemplateSendInterceptor->MagentoFrameworkInterception{closure}()
#31 public_html/generated/code/WeltPixel/EnhancedEmail/Controller/Adminhtml/Template/Send/Interceptor.php(23): WeltPixelEnhancedEmailControllerAdminhtmlTemplateSendInterceptor->___callPlugins()
#32 public_html/vendor/magento/framework/App/Action/Action.php(111): WeltPixelEnhancedEmailControllerAdminhtmlTemplateSendInterceptor->execute()
#33 public_html/vendor/magento/module-backend/App/AbstractAction.php(151): MagentoFrameworkAppActionAction->dispatch()
#34 public_html/vendor/magento/framework/Interception/Interceptor.php(58): MagentoBackendAppAbstractAction->dispatch()
#35 public_html/vendor/magento/framework/Interception/Interceptor.php(138): WeltPixelEnhancedEmailControllerAdminhtmlTemplateSendInterceptor->___callParent()
#36 public_html/app/code/WeltPixel/Backend/Plugin/Utility.php(76): WeltPixelEnhancedEmailControllerAdminhtmlTemplateSendInterceptor->MagentoFrameworkInterception{closure}()
#37 public_html/vendor/magento/framework/Interception/Interceptor.php(135): WeltPixelBackendPluginUtility->aroundDispatch()
#38 public_html/app/code/WeltPixel/Backend/Plugin/Utility.php(76): WeltPixelEnhancedEmailControllerAdminhtmlTemplateSendInterceptor->MagentoFrameworkInterception{closure}()
#39 public_html/vendor/magento/framework/Interception/Interceptor.php(135): WeltPixelBackendPluginUtility->aroundDispatch()
#40 public_html/vendor/magento/module-backend/App/Action/Plugin/Authentication.php(145): WeltPixelEnhancedEmailControllerAdminhtmlTemplateSendInterceptor->MagentoFrameworkInterception{closure}()
#41 public_html/vendor/magento/framework/Interception/Interceptor.php(135): MagentoBackendAppActionPluginAuthentication->aroundDispatch()
#42 public_html/vendor/magento/framework/Interception/Interceptor.php(153): WeltPixelEnhancedEmailControllerAdminhtmlTemplateSendInterceptor->MagentoFrameworkInterception{closure}()
#43 public_html/generated/code/WeltPixel/EnhancedEmail/Controller/Adminhtml/Template/Send/Interceptor.php(32): WeltPixelEnhancedEmailControllerAdminhtmlTemplateSendInterceptor->___callPlugins()
#44 public_html/vendor/magento/framework/App/FrontController.php(245): WeltPixelEnhancedEmailControllerAdminhtmlTemplateSendInterceptor->dispatch()
#45 public_html/vendor/magento/framework/App/FrontController.php(212): MagentoFrameworkAppFrontController->getActionResponse()
#46 public_html/vendor/magento/framework/App/FrontController.php(147): MagentoFrameworkAppFrontController->processRequest()
#47 public_html/vendor/magento/framework/Interception/Interceptor.php(58): MagentoFrameworkAppFrontController->dispatch()
#48 public_html/vendor/magento/framework/Interception/Interceptor.php(138): MagentoFrameworkAppFrontControllerInterceptor->___callParent()
#49 public_html/vendor/magento/framework/Interception/Interceptor.php(153): MagentoFrameworkAppFrontControllerInterceptor->MagentoFrameworkInterception{closure}()
#50 public_html/generated/code/Magento/Framework/App/FrontController/Interceptor.php(23): MagentoFrameworkAppFrontControllerInterceptor->___callPlugins()
#51 public_html/vendor/magento/framework/App/Http.php(116): MagentoFrameworkAppFrontControllerInterceptor->dispatch()
#52 public_html/generated/code/Magento/Framework/App/Http/Interceptor.php(23): MagentoFrameworkAppHttp->launch()
#53 public_html/vendor/magento/framework/App/Bootstrap.php(264): MagentoFrameworkAppHttpInterceptor->launch()
#54 public_html/pub/index.php(30): MagentoFrameworkAppBootstrap->run()
#55 {main} [] []

Is anyone able to advise how to locate the cause please?
Thanks in advance!