Editor Throws Errors

Posted by Community Admin on 04-Aug-2018 01:11

Editor Throws Errors

All Replies

Posted by Community Admin on 10-Jun-2011 00:00

Hello,

We have implemented a custom page template for a client using Sitefinity which is used at the template for the majority their site. It appears that when we are in the editor, two errors are thrown by Sitefinity when loading the page. In an attempt to debug the issue, I captured the error that is thrown in the console window of my browser.

The first error occurs when the editor first loads. It produces the following error messge:
- SCRIPT5007: Unable to get value of the property 'childNodes': object is null or undefined

The second error when trying to click on the "Back to Pages" link, or anything in the editorToolbar that surrounds the page.
- SCRIPT5009: 'editorToolBar' is undefined

When we refresh the page, it does not work, but when you manually navigate back to <domain>/sitefinity and reopen the page, it appears to work for a short period of time.

Any ideas what could be causing this problem? We have been fighting with this issue for a while, and not coming up with anything. Any information on even where we can start looking would be greatly appreciated.

Thanks and take care.

Posted by Community Admin on 14-Jun-2011 00:00

Hi David,

Can you please take a look at the page while the editor is loading and check if there are any JavaScript errors being thrown while the editor loads? It seems that there is some JS conflict on the page which breaks the editor. Also do you experience this issue on all pages using this template or only on certain ones? If it is the second case it is worthwhile checking what is different in the content of those pages (scripts, content, etc.).

Regards,
Radoslav Georgiev
the Telerik team

Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

Posted by Community Admin on 15-Jun-2011 00:00

Hi there,
When I load the editor, the following error is thrown in the Internet Explorer 9 debug window
SCRIPT5007: Unable to get value of the property 'childNodes': object is null or undefined
In Firebug (in Firefox) I get more details and see the following:

d is null
http://<oursite.com>/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl10_TSM&compress=0&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen%3a1f68db6e-ab92-4c56-8744-13e09bf43565%3aea597d4b%3ab25378d2%3bTelerik.Sitefinity.Resources%3aen%3ac3497b39-708d-486e-8f36-fdbdd2633cd0%3ab010fa2f%3a7ee0bb1f%3a83eb063b%3a1939e47e%3a24e33f3%3bTelerik.Sitefinity%3aen%3a23b191f9-0e65-49d2-9fd3-ce236417ac7b%3a993d8e92%3aaa9a9de0%3a5b182b17%3afe4b1370%3ace5f2717%3b+Telerik.Sitefinity%3aen%3a23b191f9-0e65-49d2-9fd3-ce236417ac7b%3a9da9eb7f%3bTelerik.Sitefinity%2c+Version%3d4.1.1395.0%2c+Culture%3dneutral%2c+PublicKeyToken%3db28c218413bdf563%3aen%3a23b191f9-0e65-49d2-9fd3-ce236417ac7b%3a41f6c3a7%3bTelerik.Web.UI%2c+Version%3d2011.1.413.40%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen%3a71598907-ed61-48cf-848a-7bcbb14d6dd6%3a16e4e7cd%3af7645509%3a24ee1bba%3af46195d3%3a19620875%3a874f8ea2%3a490a9d4e%3abd8f85e4%3bTelerik.Sitefinity%2c+Version%3d4.1.1395.0%2c+Culture%3dneutral%2c+PublicKeyToken%3db28c218413bdf563%3aen%3a23b191f9-0e65-49d2-9fd3-ce236417ac7b%3ab09fa3ae%3af77740f1%3a26cfb6dc%3a6e04508f%3bTelerik.Sitefinity.Resources%3aen%3ac3497b39-708d-486e-8f36-fdbdd2633cd0%3ac4ef6dcd%3a6f03d72a%3bTelerik.Sitefinity%2c+Version%3d4.1.1395.0%2c+Culture%3dneutral%2c+PublicKeyToken%3db28c218413bdf563%3aen%3a23b191f9-0e65-49d2-9fd3-ce236417ac7b%3aaf4ad3c7%3a2ac3146e%3aab499d3b%3ae607c2f2%3a688a162a%3bTelerik.Web.UI%2c+Version%3d2011.1.413.40%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen%3a71598907-ed61-48cf-848a-7bcbb14d6dd6%3aed16cbdc%3bTelerik.Sitefinity%2c+Version%3d4.1.1395.0%2c+Culture%3dneutral%2c+PublicKeyToken%3db28c218413bdf563%3aen%3a23b191f9-0e65-49d2-9fd3-ce236417ac7b%3a98b87b05%3a279971d%3bTelerik.Web.UI%2c+Version%3d2011.1.413.40%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen%3a71598907-ed61-48cf-848a-7bcbb14d6dd6%3ae330518b%3a1e771326%3ac8618e41
Line 2471

Also, to answer your question about the content versus the template, the error occurs any time we edit a page with that particular page template.

Hopefully this helps! Please let me know your thoughts. Thanks in advance.

 

Posted by Community Admin on 17-Jun-2011 00:00

Hi David,

Does the template use a master page or it is built from the template editor? What controls are used on the template? It seems that some of the controls used there is breaking the editor. If you are using a master page, can you please show us the markup so that we can test this locally?

Kind regards,
Radoslav Georgiev
the Telerik team

Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

Posted by Community Admin on 21-Aug-2011 00:00

My apologies for the absurdly late reply.

It turned out that we had added some custom code, that removed a number of the Sitefinity styling classes that are added dynamically. Once those classes were returned, the application worked just as expected.

The workaround we found, was to use "!important" in our CSS to make sure our styling code overwrote that of some of the RadControls.

I don't like the solution, as we don't like to use !important in CSS for future code maintenance, but it works now. 

Thanks for the support!

This thread is closed