在Sitecore页面编辑器中保存返回错误 [英] Save Return Error in Sitecore Page Editor

查看:170
本文介绍了在Sitecore页面编辑器中保存返回错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在页面编辑器中保存页面时出现错误..以某种方式从演示文稿>详细信息编辑页面并在页面编辑器中显示它时,它工作正常..错误日志在下面..

I get an error when save a page in page editor.. Somehow when I edited the page from presentation > detail and display it in page editor it works fine.. The error logs is in below here..

ERROR After parsing a value an unexpected character was encountered: {. Path 'scLayout', line 38, position 85.  Exception: Newtonsoft.Json.JsonReaderException
Message: After parsing a value an unexpected character was encountered: {. Path 'scLayout', line 38, position 85.  Source: Newtonsoft.Json 
    at Newtonsoft.Json.JsonTextReader.ParsePostValue()
    at Newtonsoft.Json.JsonTextReader.ReadInternal()
    at Newtonsoft.Json.JsonTextReader.Read()
    at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject(Object newObject, JsonReader reader, JsonObjectContract contract, JsonProperty member, String id) 
    at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
    at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue) 
    at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)
    at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)
    at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)
    at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings)
    at Sitecore.ExperienceEditor.Speak.Server.Requests.PipelineProcessorRequest`1.Process(RequestArgs requestArgs)

任何想法或解决方案都可以帮助

Any kind of thought or solution may help

谢谢

推荐答案

这是由Sitecore中已确认的错误引起的. (开票时参考编号84051)

This is being caused by a confirmed bug in Sitecore. (reference # 84051 when opening a ticket)

您可以自己解决此问题,但我仍然建议您通过Sitecore进行检查,以便他们可以确保您拥有所需的内容.

You can resolve this yourself, but I still recommend going through Sitecore so they can ensure that you have what you need.

要解决该问题,请查看/sitecore/shell/client/Sitecore/ExperienceEditor/ExperienceEditor.js文件,在第510行中,您将看到decodeURIComponent被调用两次.

To solve, look at the /sitecore/shell/client/Sitecore/ExperienceEditor/ExperienceEditor.js file, on line 510 you will see that decodeURIComponent is being called twice.

将其更新为仅被调用一次(如data: decodeURIComponent(JSON.stringify(commandContext))一样)将解决该错误.

Updating it to only be called once like data: decodeURIComponent(JSON.stringify(commandContext)) will resolve the error.

同样,在第24行的/sitecore/shell/client/Sitecore/ExperienceEditor/RibbonPageCode.js文件中需要进行更改.

Likewise, a change is required in the /sitecore/shell/client/Sitecore/ExperienceEditor/RibbonPageCode.js file on line 24.

在这里, 添加 decodeURIComponent方法调用可以修复此文件.像这样:ribbonUrl: decodeURIComponent(this.PageEditBar.get("url")),

Here, adding the decodeURIComponent method call is what fixes this file. So like this: ribbonUrl: decodeURIComponent(this.PageEditBar.get("url")),

这可能也解决了Coveo问题,但是我的客户当前未使用Coveo,所以我无法验证.

This probably addresses the Coveo issue as well, but my clients are not currently using Coveo, so I can't verify that.

这篇关于在Sitecore页面编辑器中保存返回错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆