Feedback
Did this article resolve your question/issue?

   

Article

Error when trying to edit certain page templates

« Go Back

Information

 
TitleError when trying to edit certain page templates
URL NameError-when-trying-to-edit-certain-page-templates
Article Number000164062
EnvironmentProduct: Sitefinity
Version: 9.x, 10.x, 11.x
OS: All supported OS versions
Database: All supported Microsoft SQL Server versions
Question/Problem Description
Error when trying to edit certain page templates.
Steps to Reproduce
Clarifying Information
Error MessageUncaught TypeError: Cannot set property 'control' of undefined
at Telerik.Web.UI.RadDockZone.Sys.UI.Control (ScriptResource.axd?d=FitA-pjUSx2FpDlPm_dQgkqVAbZHo-drIy7Mym1zXaBTTMilzDpk1XFWE-NtzpSL5HI0O7_BTPABG-CDjsu0LzcUGFYBWdQS5YE_PgFuF0JCwUPg1dwdAerxlK3Si2NY1V2hdu1BqIwReyUZInzyU368anR7xG_iyplLkKwQJPpDt-1MHc81nVuHdPBrOtbtkGHgBNQf-Lk31hWwlsdlQz0ihn7LmVkCIVvpFEGG6bc1&t=ffffffffe8282038:2713)
at Function.Type.initializeBase (ScriptResource.axd?d=FitA-pjUSx2FpDlPm_dQgkqVAbZHo-drIy7Mym1zXaBTTMilzDpk1XFWE-NtzpSL5HI0O7_BTPABG-CDjsu0LzcUGFYBWdQS5YE_PgFuF0JCwUPg1dwdAerxlK3Si2NY1V2hdu1BqIwReyUZInzyU368anR7xG_iyplLkKwQJPpDt-1MHc81nVuHdPBrOtbtkGHgBNQf-Lk31hWwlsdlQz0ihn7LmVkCIVvpFEGG6bc1&t=ffffffffe8282038:771)
at Telerik.Web.UI.RadDockZone.Telerik.Web.UI.RadWebControl (ScriptResource.axd?d=TDVjdgRbdvNAY3tnbizUcAuLDG-02wRhTvuz8XXmEFtOA5eXJoNtIAxtHknZcEdx4gUIBRrSy6pT0hhDqKlnyKOf6lkNN0zIvJ8vPA-onOxjfm-yf6WXUP6UXqbpGz8PvwhbphfmXuJrTvoYezo6fEtCe1WwMwkx8qetEbHX1qU1&t=789d1b69:1043)
at Function.Type.initializeBase (ScriptResource.axd?d=FitA-pjUSx2FpDlPm_dQgkqVAbZHo-drIy7Mym1zXaBTTMilzDpk1XFWE-NtzpSL5HI0O7_BTPABG-CDjsu0LzcUGFYBWdQS5YE_PgFuF0JCwUPg1dwdAerxlK3Si2NY1V2hdu1BqIwReyUZInzyU368anR7xG_iyplLkKwQJPpDt-1MHc81nVuHdPBrOtbtkGHgBNQf-Lk31hWwlsdlQz0ihn7LmVkCIVvpFEGG6bc1&t=ffffffffe8282038:771)
at new Telerik.Web.UI.RadDockZone (ScriptResource.axd?d=rpNQecyHdGkzPUHjFFtZnbgPm1S5AmJKaqGg9htWn6JiKeOnvyB3vkZEJluLIvpnyaCNb7-w0HMXG9xADR-1gkrerp_x57iwg2BsnV5U0BgfBkRlIpBAsaqOXUDq5STzeE3HwuvHIrm95QCbo4FWpMy2iKoReOZ21OSbiECRQJPgczoMGeZI-ZiLArRElijr0&t=789d1b69:10)
at Sys.Component.create (ScriptResource.axd?d=FitA-pjUSx2FpDlPm_dQgkqVAbZHo-drIy7Mym1zXaBTTMilzDpk1XFWE-NtzpSL5HI0O7_BTPABG-CDjsu0LzcUGFYBWdQS5YE_PgFuF0JCwUPg1dwdAerxlK3Si2NY1V2hdu1BqIwReyUZInzyU368anR7xG_iyplLkKwQJPpDt-1MHc81nVuHdPBrOtbtkGHgBNQf-Lk31hWwlsdlQz0ihn7LmVkCIVvpFEGG6bc1&t=ffffffffe8282038:2148)
at Array.<anonymous> (Edit:8109)
at ScriptResource.axd?d=FitA-pjUSx2FpDlPm_dQgkqVAbZHo-drIy7Mym1zXaBTTMilzDpk1XFWE-NtzpSL5HI0O7_BTPABG-CDjsu0LzcUGFYBWdQS5YE_PgFuF0JCwUPg1dwdAerxlK3Si2NY1V2hdu1BqIwReyUZInzyU368anR7xG_iyplLkKwQJPpDt-1MHc81nVuHdPBrOtbtkGHgBNQf-Lk31hWwlsdlQz0ihn7LmVkCIVvpFEGG6bc1&t=ffffffffe8282038:2044
at Function.Sys.Observer.raiseEvent (ScriptResource.axd?d=FitA-pjUSx2FpDlPm_dQgkqVAbZHo-drIy7Mym1zXaBTTMilzDpk1XFWE-NtzpSL5HI0O7_BTPABG-CDjsu0LzcUGFYBWdQS5YE_PgFuF0JCwUPg1dwdAerxlK3Si2NY1V2hdu1BqIwReyUZInzyU368anR7xG_iyplLkKwQJPpDt-1MHc81nVuHdPBrOtbtkGHgBNQf-Lk31hWwlsdlQz0ihn7LmVkCIVvpFEGG6bc1&t=ffffffffe8282038:1153)
at Sys._Application.Sys.Application._raiseInit (ScriptResource.axd?d=FgIOGdfqFskQuyK9Pq2GzuuwNgSlxtR_s97eeLtBjqxnTPc2nHB8clKE3z9c88uTc1AB-UNJZxgSSrGQqLhbznn3S8mfTgV2FR6RukqgGMFk17jJoKfxQPYSOEl-GDAboXMyByzoWwIdSSCdf8GrBORyC1-JknSvAO4q8eCwz9-ZQFAC01XCWjJ9-ayHNJO68JLbu4tmTajJH-0sjdg0nofFar6wjzlSRReTL9WleIg1&t=ffffffffe8282038:1)
Defect/Enhancement Number
Cause
Resolution
1. Duplicate the page template which is having the issue.
2. Note down the duplicate page template
3. Include the web form attached to the case at the root level of the site and build the application.
4. Open the webform by accessing the absolute path(Ex: mydomain/ModifyPageTemplate.aspx)
5. Provide the title of the page template and click on "Delete Widget"
6. Open the duplicate page template and verify if that opens the page template in edit mode.
7. If step 6 fails, repeat steps 4 - 6 and note down how many times the code had to run for the page template to open fine in edit mode.
8. Modify the code in ModifyPageTemplate.aspx.cs file and set the value to the corresponding value of the widget being deleted.
Ex: If the 4th attempt succeeded in opening the template, place number "3" in place of 0 when running the code against the original template. This will remove the widget with the issue in the original page template
Workaround
Notes
Last Modified Date12/5/2019 8:27 PM
Attachment 
Disclaimer The origins of the information on this site may be internal or external to Progress Software Corporation (“Progress”). Progress Software Corporation makes all reasonable efforts to verify this information. However, the information provided is for your information only. Progress Software Corporation makes no explicit or implied claims to the validity of this information.

Any sample code provided on this site is not supported under any Progress support program or service. The sample code is provided on an "AS IS" basis. Progress makes no warranties, express or implied, and disclaims all implied warranties including, without limitation, the implied warranties of merchantability or of fitness for a particular purpose. The entire risk arising out of the use or performance of the sample code is borne by the user. In no event shall Progress, its employees, or anyone else involved in the creation, production, or delivery of the code be liable for any damages whatsoever (including, without limitation, damages for loss of business profits, business interruption, loss of business information, or other pecuniary loss) arising out of the use of or inability to use the sample code, even if Progress has been advised of the possibility of such damages.