Jump to:

1835 Posts in 1139 Topics by 554 members

Blog Module

SilverStripe Forums » Blog Module » Posting comments gets stuck at /CommentingController/CommentsForm

Discuss the Blog Module.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 1586 Views
  • MikeP
    Avatar
    Community Member
    3 Posts

    Posting comments gets stuck at /CommentingController/CommentsForm Link to this post

    Hi there,

    I have the blog, comments and widgets modules installed. Comments were working, but recently I whenever I post a comment I get redirected to a blank page at /CommentingController/CommentsForm. Pretty sure I didn't change anything with the comments or blog modules. Anyone else have this problem?

    PS. I am using a Postrgres database if that helps.

    Cheers,
    MikeP

  • MikeP
    Avatar
    Community Member
    3 Posts

    Re: Posting comments gets stuck at /CommentingController/CommentsForm Link to this post

    This is my Comments config:

    private static $default_config = array(
    'require_login' => false, // boolean, whether a user needs to login
    'required_permission' => false, // required permission to comment (or array of permissions)
    'include_js' => true, // Enhance operation by ajax behaviour on moderation links
    'use_gravatar' => true, // set to true to show gravatar icons,
    'gravatar_size' => 80, // size of gravatar in pixels. This is the same as the standard default
    'show_comments_when_disabled' => false, // when comments are disabled should we show older comments (if available)
    'order_comments_by' => "\"Created\" ASC",
    'comments_per_page' => 10,
    'comments_holder_id' => "comments-holder", // id for the comments holder
    'comment_permalink_prefix' => "comment-", // id prefix for each comment. If needed make this different
    'require_moderation' => true,
    'html_allowed' => true, // allow for sanitized HTML in comments
    'html_allowed_elements' => array('a', 'img', 'i', 'b'),
    'use_preview' => false, // preview formatted comment (when allowing HTML). Requires include_js=true
    );

    and blog version 0.6.x-dev, comments version 1.1.x-dev, and widgets version 0.1.x-dev

  • Willr
    Avatar
    Forum Moderator
    5464 Posts

    Re: Posting comments gets stuck at /CommentingController/CommentsForm Link to this post

    Check your PHP error log for any error messages. Does the comment get saved? The normal behaviour is you will be redirected to CommentingController/CommentsForm but that will take you back to your last page after it has finished processing.

  • MikeP
    Avatar
    Community Member
    3 Posts

    Re: Posting comments gets stuck at /CommentingController/CommentsForm Link to this post

    Thanks for the speedy reply, Willr. Looks like its a problem with the html purifier module blocking the redirect. Much appreciated!

    1586 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.