Solved : Submitting comments form, it reports HTTP 500 (Internal Server Error)
  • Looking for this problem about 2 days now. Newscoop it's so buggy that it sould be abandoned !!!

    The same code below reports for  my DB and my custom article type HTTP 500 (Internal Server Error), but it works just find using the sample custodian web site.

    The code below just shows the comments of an article and gives the possibility and add a new one. I am so tired with newscoop !!

    ================================================
    {{ set_language name="English" }}

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <head>



    </head>

    <body>
    <div id="wrapper">






        <div class="container">




            <div class="box-pink">

                #{{$gimme->article->number}}
                <!-- /#comments -->

                <div class="comments">

                {{ list_article_comments order="bydate desc"}}
                    {{ if $gimme->current_list->at_beginning }}
                        <section id="comment-list">
                    {{ /if }}

                    <article id="comment-{{ $gimme->current_list->index }}" class="clearfix">
                        <header>
                            <h4>
                            {{ if $gimme->comment->user->identifier }}
                                <a href="http://{{ $gimme->publication->site }}/user/profile/{{ $gimme->comment->user->uname|urlencode }}">{{ $gimme->comment->user->uname }}</a>
                            {{ else }}
                                {{ $gimme->comment->nickname }} (Anonymous)
                            {{ /if }}
                            </h4>
                            <time datetime="{{ $gimme->comment->submit_date|camp_date_format:"%Y-%m-%dT%H:%iZ" }}">{{ $gimme->comment->submit_date|camp_date_format:"%e.%m.%Y at %H:%i" }}</time>
                        </header>
                        <p>{{ $gimme->comment->content }}</p>
                    </article>

                    {{ if $gimme->current_list->at_end }}
                            </section>
                    {{ /if }}
                {{ /list_article_comments }}

                        <!-- public comments are allowed-->


                        {{ if $gimme->article->number && $gimme->article->comments_locked == 0 && $gimme->article->comments_enabled == 1}}
                            {{ if $gimme->submit_comment_action->defined && $gimme->submit_comment_action->rejected }}
                                <p><em>Your comment has not been accepted.</em></p>
                            {{ /if }}

                            {{ if $gimme->submit_comment_action->is_error }}
                                <p><em>*{{ $gimme->submit_comment_action->error_message }}</em></p>
                            {{ else }}
                                {{ if $gimme->submit_comment_action->defined }}
                                    {{ if $gimme->publication->moderated_comments }}
                                        <p><em>Your comment has been sent for approval.</em></p>
                                    {{ /if }}
                                {{ /if }}
                            {{ /if }}

                            <h2>(Article.tpl) Leave comment </h2>
                            <div style="color:#c86986;font-size:12px;margin-bottom:30px;padding:2px;border-bottom: 1px solid #A77038  "> Total {{ $gimme->article->comment_count }} comments.</div>


                            {{ comment_form html_code="id=\"commentform\"" submit_button="submit" button_html_code="tabindex=\"6\"" }}

                                <label for="email"><small>E-mail (will not be published) (required)</small></label>
                                {{ camp_edit object="comment" attribute="reader_email" html_code="id=\"email\" 22\" tabindex=\"2\"" }}

                                <div class="form-element clearfix">
                                    <label for="comment">Comment</label>
                                    {{ camp_edit object="comment" attribute="content" html_code="id=\"comment\" tabindex=\"4\"" }}
                                </div>

                                <div class="form-element clearfix">
                                    <label for="f_captcha_code">Please insert the code below</label>
                                    {{ recaptcha }}
                                </div>

                            {{ /comment_form }}


                        {{ else }}
                            <p>Comments are disabled for this article.</p>
                        {{ /if }}


                </div>
                <!-- /#comments -->


             </div>

        </div>





    </div>

    </body>
    </html>


    ================================================


    Enable from publications the option "Use CAPTCHA to prevent spam"

    Post edited by sdancer75 at 2012-12-05 07:25:36
  • 2 Comments sorted by
  • did you fix this?
  • yes, as I described above just enable the option below, from the publication settings.

    Enable from publications the option "Use CAPTCHA to prevent spam"