ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Comments not working

July 17, 2012 11:01am

Subscribe [1]
  • #1 / Jul 17, 2012 11:01am

    Hi,

    EE 2.4.0

    I have a comment form which was previously working (received a couple of comments), but now it’s not.

    I noticed when submitting a comment the return field was inserting the index.php into the url, so I added the return parameter, but it’s still inserting index.php and no comment is being added to the system, nor are comment notification emails being sent.

    {exp:comment:form channel="blog" return="http://domain.com/blog/{segment_2}"}
            {if logged_out}
          <input class="field" type="text" value="Name" name="name" maxlength="30" /><br >
          <input class="field" type="text" value="Email" name="email" maxlength="30" /><br >
          <input class="field" type="text" value="Website (optional)" name="url" maxlength="30" /><br >
            {/if}
    
            <textarea name="comment">Message</textarea><br >
    
            {if captcha}
                    <label for="captcha">Please enter the word you see in the image below:</label>
    
                    {captcha}
    
                    <input type="text" name="captcha" value="{captcha_word}" maxlength="20" class="field" /></p>
            {/if}
            <input id="submit" type="image" name="submit" src="/img/icons/submit.png" width="69" height="28" alt="submit" /> 
    {/exp:comment:form}

    Please advise.

    comments are enabled on the entry I am testing with. Have also created a test template with only a comment form (with entry_id=“72” parameter set) and the index.php is being set there as well and no comments are submitted.

  • #2 / Jul 18, 2012 2:37pm

    Kevin Smith

    4784 posts

    Hi LMA Communications,

    What changed about your EE setup, .htaccess file, or hosting environment since the comments were last in working order? Do you have your setup configured to completely remove index.php from the URLs? Are you getting any kind of errors on form submission? Using example.com in place of your actual domain, could you share the URLs involved in this experiment? (Comment page, form return page, etc.)

  • #3 / Jul 18, 2012 3:12pm

    Hi,

    Yes index.php is removed, no errors show on comment submission.

    domain.com/blog/july-events is single entry with the comment form after submitting the form the page returns to:
    domain.com/index.php/blog/july-events

    Nothing has changed on the server and the index.php was already removed from the configuration settings.

  • #4 / Jul 18, 2012 5:36pm

    Kevin Smith

    4784 posts

    Sounds like the best way to troubleshoot this might be for us to have a first-hand look. Be on the lookout for an email from me.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases