Try our conversational search powered by Generative AI!

TinyMCE insert/edit link causes exception if the target doesn't exist

Vote:
 

Hi,

I just upgraded my EPiServer CMS 6 R2 site to EPiServer CMS 7. I have an XHTML String Property embedded in the page. The content has several links created with TinyMCE editors insert/edit link function. Some of the destination pages have been removed and the the link is therefore broken.

This doesn't cause the CMS 6 R2 to throw an exception, but the CMS 7 seems to end up in the following exception:

Server Error in '/' Application.
Content with id 21578 was not found
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: EPiServer.Core.ContentNotFoundException: Content with id 21578 was not found

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[ContentNotFoundException: Content with id 21578 was not found]

Where the id is the the id to the now removed link page.

 

Any idea if this is in any bug list or should this be fixed on our end?

Cheers,

 

Server Error in '/' Application.Content with id 21578 was not foundDescription: 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: EPiServer.Core.ContentNotFoundException: Content with id 21578 was not found
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:

[ContentNotFoundException: Content with id 21578 was not found]

#76570
Oct 29, 2013 8:50
Vote:
 

Some additional info:

The XHTML String Property is rendered with:

<EPiServer:Property PropertyName="<%# ContentProperty %>" runat="server" />

    

#76573
Oct 29, 2013 9:09
Vote:
 

Update to the issue,

The issue seems to be caused by urlrewrite module/humane addressing procedure, which is resolving the episerver innerLinks (of type /Templates/Public/Pages/Content.aspx?id=10138&amp;epslanguage=fi) to humaneadress. This issue isn't restricted or unique to TinyMCE but atleast any Xhtml String Property that has an <a href> value which is relative or of unresolved innerlink.

#76595
Oct 29, 2013 12:25
Vote:
 

Seems to be an issue with EPiServer CMS 7 solutions that use WebForms instead of MVC.

How to reproduce:

1. Create a link to a page inside your EPiServer site.

2. Edit the id number of the link in the Html view to something "Bonkers" (ie from "id=15" to "id=15000001") ;)

3. Publish the page and see your handywork that has resulted in an error similar to:

 

Page could not be loaded

The link you specified does not work. This may either be the result of temporary maintenance or an incorrect link.

Detailed error information (authorized by permissions to functions)

Error occured 10/29/2013 1:43:11 PM
User IP 131.207.242.5
User Agent Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/30.0.1599.101 Safari/537.36
Url http://demodemodemodemo.demo/Alloy-Plan/
Referer http://demodemodemodemo.demo/

Exception details: 

ContentNotFoundException: Content with id 15000001was not found
 
 
#76597
Oct 29, 2013 12:48
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.