PageBuilder not working after installing Service Pack

Gustavo Quevedo asked on July 2, 2019 18:09

Hi,

I just installed the service pack (hotfix 12.0.29) and I can no longer see my editable areas in the Page Builder. I haven't made any change after the installation.

The pages (including previously created widget content) render correctly in the live site. However, I can't see or add any widgets in the CMS. I have tried with both old and new pages created after installing the Service Pack.

The error that shows up in the Page tab is: An error has occurred. If the problem persists, contact your system administrator. I have checked that the error does not occur if I remove the line @Html.Kentico().PageBuilderScripts() from my view. Obviously the editable area does not appear this way.

In the Network tab in Google Chrome I can see more details about the error:

Error reading JObject from JsonReader. Path '', line 0, position 0.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: Newtonsoft.Json.JsonReaderException: Error reading JObject from JsonReader. Path '', line 0, position 0.

Stack Trace:

[JsonReaderException: Error reading JObject from JsonReader. Path '', line 0, position 0.]
   Newtonsoft.Json.Linq.JObject.Load(JsonReader reader, JsonLoadSettings settings) +379
   Newtonsoft.Json.Linq.JObject.Parse(String json, JsonLoadSettings settings) +103
   Kentico.PageBuilder.Web.Mvc.PageBuilderPostDataRetriever`1.GetDataFromBody() +105

[InvalidOperationException: Incorrect data format is retrieved.]
   Kentico.PageBuilder.Web.Mvc.PageBuilderPostDataRetriever`1.GetDataFromBody() +309
   Kentico.PageBuilder.Web.Mvc.PageBuilderPostDataRetriever`1.GetOrCreateFromContext() +144
   Kentico.PageBuilder.Web.Mvc.PageBuilderPostDataRetriever`1.Retrieve() +36
   Kentico.PageBuilder.Web.Mvc.PageBuilderFeature.TryGetFromPostData() +32
   Kentico.PageBuilder.Web.Mvc.PageBuilderFeature.get_PageIdentifier() +28
   Kentico.PageBuilder.Web.Mvc.PageBuilderFeature.get_DataContext() +28
   Kentico.PageBuilder.Web.Mvc.HtmlHelperExtensions.WidgetZone(ExtensionPoint`1 instance) +120
   ASP._Page_Views_Shared_Kentico_PageBuilder__DefaultSection_cshtml.Execute() +1036
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +252
   System.Web.Mvc.WebViewPage.ExecutePageHierarchy() +148
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +122
   System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context) +384
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult) +97
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult) +843
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult) +843
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList`1 filters, ActionResult actionResult) +81
   System.Web.Mvc.Async.<>c__DisplayClass3_1.<BeginInvokeAction>b__1(IAsyncResult asyncResult) +188
   System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeAction(IAsyncResult asyncResult) +38
   System.Web.Mvc.<>c.<BeginExecuteCore>b__152_1(IAsyncResult asyncResult, ExecuteCoreState innerState) +35
   System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +73
   System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult) +52
   System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +39
   System.Web.Mvc.Controller.EndExecute(IAsyncResult asyncResult) +38
   System.Web.Mvc.<>c.<BeginProcessRequest>b__20_1(IAsyncResult asyncResult, ProcessRequestState innerState) +49
   System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +73
   System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) +38
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +431
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +75
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +158

Any help would be much appreciated.

Kind regards, Gustavo

Recent Answers


Gustavo Quevedo answered on July 3, 2019 12:55

The problem is apparently solved after restarting Windows.

0 votesVote for this answer Mark as a Correct answer

Simon Crowell answered on July 23, 2019 14:25

For anyone else that might be seeing this problem (as I was) a reboot didn't fix it for me. I thought it may have been some new/upgraded files did not get deployed as it was working locally.

Turns out it was browser caching even after a hard refresh of the iFrame page builder window, tried it incognito/different browser and worked first time.

1 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.