Back-end error: Index was outside the bounds of the array when TinyMCE is loading
Hi, I've just encountered this problem with one of my Umbraco sites, and its only happening on one page. The page has been fine for about a week since the site went live, but I just saved & published the page and now when ever I click on the page in Umbraco I get the error below and I can't edit the page. The page still loads fine on the live site, its just in the back-end where the problem is occurring. Has anybody seen this sort of error before? Looks like something to do with the tinymce attempting to load the content?
Umbraco 4.1, VPS is Windows 2000 Server with IIS 6
Event code: 3005 Event message: An unhandled exception has occurred. Event time: 2/5/2010 5:01:39 PM Event time (UTC): 2/5/2010 6:01:39 AM Event ID: b911d73ccd61412ebb3a555d89895d2f Event sequence: 160 Event occurrence: 2 Event detail code: 0
Process information: Process ID: 182328 Process name: w3wp.exe Account name: NT AUTHORITY\NETWORK SERVICE
Exception information: Exception type: IndexOutOfRangeException Exception message: Index was outside the bounds of the array.
Request information: Request URL: http://www.domain.com.au/umbraco/editContent.aspx?id=1052 Request path: /umbraco/editContent.aspx User host address: removed from this post User: Is authenticated: False Authentication Type: Thread account name: NT AUTHORITY\NETWORK SERVICE
Thread information: Thread ID: 9 Thread account name: NT AUTHORITY\NETWORK SERVICE Is impersonating: False Stack trace: at umbraco.editorControls.tinyMCE3.webcontrol.TinyMCEWebControl.getIdFromSource(String src, String localMediaPath) at umbraco.editorControls.tinyMCE3.webcontrol.TinyMCEWebControl.formatMedia(String html) at umbraco.editorControls.tinyMCE3.webcontrol.TinyMCEWebControl.OnPreRender(EventArgs e) at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
If anyone is interested I solved this problem by deleting the relevant img HTML tag in the propertyData table row in the database. The error seems to happen when I use certain words in the filename of the image. Then it looks like tinymce tries to load that media item but throws an error because of the filename. The words I was using were the same as the site title, don't know if that has anything to do with the problem but its a very strange error.
Back-end error: Index was outside the bounds of the array when TinyMCE is loading
Hi,
I've just encountered this problem with one of my Umbraco sites, and its only happening on one page. The page has been fine for about a week since the site went live, but I just saved & published the page and now when ever I click on the page in Umbraco I get the error below and I can't edit the page. The page still loads fine on the live site, its just in the back-end where the problem is occurring. Has anybody seen this sort of error before? Looks like something to do with the tinymce attempting to load the content?
Umbraco 4.1, VPS is Windows 2000 Server with IIS 6
Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 2/5/2010 5:01:39 PM
Event time (UTC): 2/5/2010 6:01:39 AM
Event ID: b911d73ccd61412ebb3a555d89895d2f
Event sequence: 160
Event occurrence: 2
Event detail code: 0
Application information:
Application domain: /LM/W3SVC/1232665169/Root-1-129098225006532500
Trust level: Full
Application Virtual Path: /
Machine name: CT2789
Process information:
Process ID: 182328
Process name: w3wp.exe
Account name: NT AUTHORITY\NETWORK SERVICE
Exception information:
Exception type: IndexOutOfRangeException
Exception message: Index was outside the bounds of the array.
Request information:
Request URL: http://www.domain.com.au/umbraco/editContent.aspx?id=1052
Request path: /umbraco/editContent.aspx
User host address: removed from this post
User:
Is authenticated: False
Authentication Type:
Thread account name: NT AUTHORITY\NETWORK SERVICE
Thread information:
Thread ID: 9
Thread account name: NT AUTHORITY\NETWORK SERVICE
Is impersonating: False
Stack trace: at umbraco.editorControls.tinyMCE3.webcontrol.TinyMCEWebControl.getIdFromSource(String src, String localMediaPath)
at umbraco.editorControls.tinyMCE3.webcontrol.TinyMCEWebControl.formatMedia(String html)
at umbraco.editorControls.tinyMCE3.webcontrol.TinyMCEWebControl.OnPreRender(EventArgs e)
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
sorry thats meant to say version 4, not version 4.1
If anyone is interested I solved this problem by deleting the relevant img HTML tag in the propertyData table row in the database. The error seems to happen when I use certain words in the filename of the image. Then it looks like tinymce tries to load that media item but throws an error because of the filename. The words I was using were the same as the site title, don't know if that has anything to do with the problem but its a very strange error.
Has anyone else ever seen this error? This is now happening quite often on another clients site and I can't work out why its happening??
I have added a fix for it here: https://hg01.codeplex.com/forks/mirelabudaes/umbraco/rev/009bb99367aa
is working on a reply...