+1-888-365-2779
Try Now
More in this section

Forums / Bugs & Issues / Error posting a comment on the blog

Error posting a comment on the blog

7 posts, 0 answered
  1. Ole
    Ole avatar
    4 posts
    Registered:
    05 Jan 2009
    06 Mar 2009
    Link to this post
    Hi,

    I have my site all up and running on SiteFinity, but I get an error when I try to post a commend to a blog post:

    I looked through the forums and I didn't see anyone else have a similar problem.

    Any ideas?

    A required control was not found in the template for "". The control must be assignable form type "Telerik.Web.UI.RadEditor" and must have ID "commentTxt".

    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: Telerik.Cms.Web.UI.TemplateException: A required control was not found in the template for "". The control must be assignable form type "Telerik.Web.UI.RadEditor" and must have ID "commentTxt".

    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:

    [TemplateException: A required control was not found in the template for "". The control must be assignable form type "Telerik.Web.UI.RadEditor" and must have ID "commentTxt".]
       Telerik.Cms.Web.UI.GenericContainer.ThrowException(Type requiredType, String controlId) +88
       Telerik.Cms.Web.UI.GenericContainer.GetControl(String id, Boolean required) +335
       Telerik.Cms.Engine.WebControls.CommentsList.get_CommentText() +74
       Telerik.Cms.Engine.WebControls.CommentsList.SubmitButton_Command(Object sender, CommandEventArgs e) +681
       System.Web.UI.WebControls.Button.OnCommand(CommandEventArgs e) +108
       System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +166
       System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
       System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
       System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565
    
  2. Ole
    Ole avatar
    4 posts
    Registered:
    05 Jan 2009
    06 Mar 2009
    Link to this post
    I forgot some information.

    The site is running SiteFinity 3.6 w/ hotfix on Windows Server 2003 (with Plesk for Windows)
  3. Pepi
    Pepi avatar
    981 posts
    Registered:
    08 Dec 2016
    06 Mar 2009
    Link to this post
    Hello Ole,

    Are you using an external template for the BlogCommentsList control? And if yes, please make sure your ~/Sitefinity/ControlTemplates/Blogs/CommentsList.ascx template is the same as the corresponding one in the ExternalTemplates.zip file which is provided for download in My Client.net. Note that RadEditor control with ID="commentTxt" is required and must be declared in the template:

    <telerik:RadEditor  
             runat="server"  
             ID="commentTxt" 
             ToolsFile="~/Sitefinity/ControlTemplates/Blogs/ToolsFile.xml" 
             EnableEmbeddedSkins="True"  
             Skin="Default2006"  
             Width="100%" 
             EditModes="Design">                 
             <CssFiles> 
                 <telerik:EditorCssFile Value="~/Sitefinity/ControlTemplates/Blogs/EditorCssFile.css" /> 
             </CssFiles> 
    </telerik:RadEditor> 

    Do let us know how it goes.

    Regards,
    Pepi
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  4. Ole
    Ole avatar
    4 posts
    Registered:
    05 Jan 2009
    06 Mar 2009
    Link to this post
    Hi Pepi,

    Thanks for the reply!

    I hadn't uploaded any external templates to my site.  I was wondering about that, as I saw the files in the download area, but I don't remember the installation documentation mentioned that I needed the external templates.

    So the original one was simply an upload of the project I created with no modifications (ie, I'm using the stock templates and everything).

    Just now I downloaded the external templates and uploaded those files, but I'm still seeing the same error.

    To answer your specific question about using an external template for my CommentsList: not to my knowledge, I'm just using whatever SiteFinity comes with default.

    Before I uploaded the external templates files, CommentsList.ascx did not exist, but I does now (and still getting the same error).

    Thanks!
    Ole
  5. Sonya
    Sonya avatar
    231 posts
    Registered:
    24 Sep 2012
    07 Mar 2009
    Link to this post
    Hello Ole,

    We could not reproduce the problem. Most probably, the scenario leading to this error is the following:
    you have a custom template which you have used in previous versions of Sitefinity and you are using comments in that template. The implementation is the old one and does not contain the RadEditor control with the corresponding ID (commentTxt); which results in the error.

    Now, to overcome this you have two options. One is to change the comments' implementation in your custom/old template: add the code shown in the previous code by my colleague just to make sure you have the ID and the type of control required.

    The other option, and the recommended one, is to find out which is the new template which corresponds to your requirements, and take it from the External Templates zip file. If you have any customizations that differ from the template, add them to it. Do not forget to map them in the configuration file.

    For example, in order to use comments with blogs, you only need to use the BlogPosts control and its two templates (ContentViewItemList.ascx and ContentViewSingleItem.ascx). The control includes listing comments and adding new comments out-of-the-box, and you do need to add a different control such as CommentsList control, in order to use that functionality - this is already done in the ContentViewSingleItem.ascx template (listing single blog posts).

    If the above suggestions do not work, please send us the templates you are using for Blogs and your configuration file, as well as your database. Also, could you tell us which controls are added to the page where you add a comment - is it the BlogPosts control or is it the CommentsList control?

    We are waiting for your reply.

    Regards,
    Sonya
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  6. Ole
    Ole avatar
    4 posts
    Registered:
    05 Jan 2009
    09 Mar 2009
    Link to this post
    Hi,

    I certainly could send over the files, but they are at this point the default files.  I really haven't gotten very far in my implementation of Sitefinity.
    So far I have:
    1. Installed it on my local computer
    2. Created a project for my website
    3. Uploaded the files and went through the install to create the database
    4. Picked one of the "personal website" templates and imported the content

    When playing around with the website I found the error I mentioned above.

    Next I uploaded the files from the hotfix, still had the same problem.
    Then I downloaded the external_templates zip file and uploaded all of the files from that zip to my website, and still the same problem.

    I have made no changes to any of the files at this point.

    Looking at the current CommentsList.ascx (which is the one from the external_templates zip file) it does have the ID="commentTxt" in it.

    Could it maybe be some kind of permission problem?

    My next step would be to re-download the latest version and start over again to see if I will run into the same problem.

    Thanks!
    Ole
  7. Stoyanka Assenova
    Stoyanka Assenova avatar
    113 posts
    Registered:
    01 Dec 2016
    09 Mar 2009
    Link to this post
    Hello Ole,

    This is a known issue for the Personal template in the Sitefinity 3.6 Hotfix.

    You can workaround the problem by following these steps:
    1. Delete the Blog Post control in a page
    2. Add a Blog Post control, set its settings and publish the page
    3. Go to view the page and you should be able to post a comment for the post item.

    If you have any problems, don't hesitate to contact us.

    Greetings,
    Stoyanka Assenova
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
Register for webinar
7 posts, 0 answered