我从备份中上传了magento文件和数据库,我是从同一服务上的其他旧帐户中获得的,所有文件都已完成,服务器帐户具有相同的配置但当我尝试部署它时,它会给我带来错误在前端上
致命错误:未捕获InvalidArgumentException:无法取消值的序列化。错误:UTF-8字符格式不正确,可能在/home/u922728750/domains/6alabaty.com/public_html/vender/magento/framework/Serialize/Serializer/Json.php中编码不正确:39堆栈跟踪:#0/home/u921728750/doomains/6alabaty.com/public_html/vender\magento/fframework/Inception/Config/CacheManager.php(69(:magento\framework\Serialize\Json->unserialize('{quot;Magento\\Stor…'(#1/home/u922728750/domains/6alabaty.com/public_html/vendor/Magento/framework/Interception/Config/Config.php:Magento\Framework\Interception\Config\Config->__construct(Object(Magento\Framework\ObjectManager\Config\Reader\Dom\Proxy(,Object(Magendo\Framework \Config\Scope(,Object
jason文件代码是
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
namespace MagentoFrameworkSerializeSerializer;
use MagentoFrameworkSerializeSerializerInterface;
/**
* Serialize data to JSON, unserialize JSON encoded data
*
* @api
* @since 101.0.0
*/
class Json implements SerializerInterface
{
/**
* @inheritDoc
* @since 101.0.0
*/
public function serialize($data)
{
$result = json_encode($data);
if (false === $result) {
throw new InvalidArgumentException("Unable to serialize value. Error: " . json_last_error_msg());
}
return $result;
}
/**
* @inheritDoc
* @since 101.0.0
*/
public function unserialize($string)
{
$result = json_decode($string, true);
if (json_last_error() !== JSON_ERROR_NONE) {
throw new InvalidArgumentException("Unable to unserialize value. Error: " . json_last_error_msg());
}
return $result;
}
}
我尝试了很多解决方案,但都不起作用,请帮助我
看起来magento正试图对某个不是utf8的字符串进行json_decode。json标准需要utf8。
看起来它正在读取一些配置数据?也许有些配置文件中有非utf8?