Bug reports Found a bug? Post it here please.
Version 7.x > Bug reports > Widget zones check in/check out + editable regions widget View modes: 
User avatar
Certified Developer v7
Certified  Developer v7
Luke - 12/13/2012 10:47:09 PM
   
Widget zones check in/check out + editable regions widget
Hey,

I think I may have come across a bug that we are experiencing on multiple sites of ours. We are currently using Kentico version 7.0

I think this bug has 2 parts.

Replicate Requisites
-Firstly we need check in/out to be turned on.
-We also have publish enabled but I doubt this is part of it.
-Our templates are portal.
-We have webpart zones turned into widget zones set as Customization by page editor

Part 1.
If you check out a page to start editing the widget zones don't highlight and allow you to add widgets. They don't show the + icons. In order to get this to work you need click the page tab again and you can edit like normal.

Part 2.
We usually turn editable regions into widget that we place on most templates by default. The problem is that even when the page is checked in the editable region still displays the highlight around the outside.

If you follow part 1 and don't press the page tab again (to get the widget zones to show), you can proceed to still edit an editable region, however when you save the page you get an error and the page gets thrown into safemode.

If you need any more information to replicate let me know and I'll see what other information I can provide.

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 12/14/2012 3:45:41 AM
   
RE:Widget zones check in/check out + editable regions widget
Hi,

I was able to reproduce the issue in part 1 - I am sorry for this inconvenience. It seems to be a bug. However, I didn't got error message as you mentioned later nor the safe mode. The values were saved and the widget action buttons were displayed.

In part 2, what do you mean exactly? Do you mean the dotted line? If so, this is by default and it is available also for editable region web parts.

Best regards,
Juraj Ondrus

User avatar
Certified Developer v7
Certified  Developer v7
Luke - 12/16/2012 5:22:33 PM
   
RE:Widget zones check in/check out + editable regions widget
I'll do my best to explain the bug that puts the document into safemode, although I think it can be fixed by fixing the widgets not being editable until you click the page tab again. I think normally this doesn't cause a problem when the page is checked in because the text area is uneditable.

Directions
- Create a document which has a template with a widget zone
- Enable Check in/check out and publish
- Create a editable text widget. We need to do this because by default Kentico makes this only a Web Part.

We should have something that looks like this screen shot below at this stage when checked in.
Image
User image
- Now click checkout and we should have something like this (notice bug1, no widget borders active). Image
User image
- Once we are on this page, naturally our clients think it is safe to start editing the editable regions. Type some text into the region and hit save. We should get this
Image
User image

Below is also the event log found in sitemanager.



Event ID: 2461
Event type: Error
Event time: 12/17/2012 9:30:52 AM
Source: Content
Event code: DESIGN
User name: luke
IP address: 127.0.0.1

Description: Message: Failed to load viewstate. The control tree into which viewstate is being loaded must match the control tree that was used to save viewstate during the previous request. For example, when adding controls dynamically, the controls added during a post-back must match the type and position of the controls added during the initial request.
Stack Trace:
at System.Web.UI.Control.LoadViewStateRecursive(Object savedState)
at System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState)
at System.Web.UI.Control.LoadViewStateRecursive(Object savedState)
at System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState)
at System.Web.UI.Control.LoadViewStateRecursive(Object savedState)
at System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState)
at System.Web.UI.Control.LoadViewStateRecursive(Object savedState)
at System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState)
at System.Web.UI.Control.LoadViewStateRecursive(Object savedState)
at System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState)
at System.Web.UI.Control.LoadViewStateRecursive(Object savedState)
at System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState)
at System.Web.UI.Control.LoadViewStateRecursive(Object savedState)
at System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState)
at System.Web.UI.Control.LoadViewStateRecursive(Object savedState)
at System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState)
at System.Web.UI.Control.LoadViewStateRecursive(Object savedState)
at System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState)
at System.Web.UI.Control.LoadViewStateRecursive(Object savedState)
at System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState)
at System.Web.UI.Control.LoadViewStateRecursive(Object savedState)
at System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState)
at System.Web.UI.Control.LoadViewStateRecursive(Object savedState)
at System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState)
at System.Web.UI.Control.LoadViewStateRecursive(Object savedState)
at System.Web.UI.Page.LoadAllState()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

Machine name: LIONELHUTZ
Event URL: /cms/getdoc/ed379f64-4404-4728-b996-378d48bb6a9c/Expertise.aspx?viewmode=3&lang=en-AU&langobjectlifetime=request
URL referrer: http://dev.kentico7.digicon.com.au/cms/getdoc/ed379f64-4404-4728-b996-378d48bb6a9c/Expertise.aspx?viewmode=3&lang=en-AU&langobjectlifetime=request
User agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.97 Safari/537.11

User avatar
Certified Developer v7
Certified  Developer v7
Luke - 12/16/2012 5:27:42 PM
   
RE:Widget zones check in/check out + editable regions widget
Also, whether or not the editable text is a widget or webpart doesn't appear to matter actually. Same result.

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 12/17/2012 12:59:02 AM
   
RE:Widget zones check in/check out + editable regions widget
Hi,

What is the exact version you are using? I am running 7.0.12 and I am able to reproduce only the "controls buttons" not displaying issue. I am able to type into the widget - it is editable and also I am able to save the values without any errors. What is the environment like? What are the other controls on the page? Are you able to reproduce it with a singe widget on the page template?

Would it be possible to export the site and send us the package to support@kentico.com?

Best regards,
Juraj Ondrus

User avatar
Certified Developer v7
Certified  Developer v7
Luke - 12/17/2012 5:33:52 PM
   
RE:Widget zones check in/check out + editable regions widget
Hi Juraj,

Thank you for help. I think I found the issue with this bug. It actually has to do with another widget we use on the page that displays the documents title. I don't think this is a Kentico bug but I will explain anyway just in case.

Basically the problem had to do that the webpart was using DataBind() and outputting the document title using <%# DocumentTitle %>. I changed it to now use a simple literal control and everything is fine :)