我在 Magneto 2.3.4 上。里面有vendor/magento/module-checkout/view/frontend/templates/onepage.phtml
这样一行:
window.checkoutConfig = <?= /* @noEscape */ $block->getSerializedCheckoutConfig() ?>;
按照功能,它归结为vendor/magento/module-checkout/Block/Onepage.php::getSerializedCheckoutConfig()
并且序列化功能在vendor/magento/framework/Serialize/Serializer/JsonHexTag.php
我添加json_last_error_msg()
到异常消息中,基本上现在的错误消息是:
Exception #0 (InvalidArgumentException): Unable to serialize value. Error:Malformed UTF-8 characters, possibly incorrectly encoded
如何快速找到包含错误 UTF-8 字符的结帐配置值或键?或者如何在数据库中快速解决这个问题?
月关宝盒