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 Posting to Database

September 05, 2008 12:53pm

Subscribe [3]
  • #1 / Sep 05, 2008 12:53pm

    drawbackwards

    12 posts

    I have a single entry page:

    http://childmark.com/blog/comments/5-ways-to-stimulate-your-babys-eyesight/

    I have comments turned on for both the post and the blog it’s associated with. However, when I go to actually leave a comment it doesn’t post. I’ve checked the database and there aren’t any comment records.

    Perhaps you can tell me what I goofed up?

    {exp:comment:entries sort="asc" weblog="blog"}
    
    {comment}
    
    By {name}      {relative_date} ago
    
    {/exp:comment:entries}
    {exp:comment:form}
    
    {if logged_out}
    
    Name: <input type="text" name="name" value="{name}" size="50" /></p>
    
    Email: <input type="text" name="email" value="{email}" size="50" /></p>
    
    Location: <input type="text" name="location" value="{location}" size="50" /></p>
    
    URL: <input type="text" name="url" value="{url}" size="50" /></p>
    
    {/if}
    Enter Your Comment:
    <textarea name="comment" cols="79" rows="8">{comment}</textarea></p>
    
    <input type="checkbox" name="save_info" value="yes" {save_info} /> Remember my personal information
    
    <input type="checkbox" name="notify_me" value="yes" {notify_me} /> Notify me of follow-up comments?
    
    <input type="submit" name="submit" value="Submit" />
    
    {/exp:comment:form}
  • #2 / Sep 05, 2008 12:56pm

    Mark Bowen

    12637 posts

    Make sure that you have a weblog=“blog” parameter in your {exp:comment:form} tag, that should hopefully help a bit 😉

    Hope that helps.

    Best wishes,

    Mark

  • #3 / Sep 05, 2008 1:00pm

    Ingmar

    29245 posts

    drawbackards, does that advice help?

  • #4 / Sep 08, 2008 4:09pm

    drawbackwards

    12 posts

    I’ve added this and the comments form is still not posting.

  • #5 / Sep 09, 2008 2:01am

    Lisa Wess

    20502 posts

    drawbackwards - a few more questions for you:

    1. Version and Build?

    2. Is the comment form appearing at all?  Do you have a link to where we can see the behavior?

    3. Are you running any extensions?

    Thanks!

  • #6 / Sep 09, 2008 2:05am

    drawbackwards

    12 posts

    ExpressionEngine 1.6.4 - Build:  20080808

    The comment form is appearing, you can see a post here:
    http://childmark.com/blog/comments/5-ways-to-stimulate-your-babys-eyesight/

    No I’m not running any extensions that I know of.

  • #7 / Sep 09, 2008 2:09am

    Lisa Wess

    20502 posts

    Ah, that link helped!  You appear to be running some code to make sure that the “www” is removed from the domain. Probably in your .htaccess.  I’ve seen this behavior before and it has always been a result of that type of rewrite. If you remove that from .htaccess temporarily, and try to comment - does it work?

  • #8 / Sep 09, 2008 3:26am

    drawbackwards

    12 posts

    Yep that worked… thanks!

  • #9 / Sep 09, 2008 11:33am

    Robin Sowell

    13255 posts

    Glad Lisa got you squared away.  (That htaccess on can be hard to pin down!)

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

ExpressionEngine News!

#eecms, #events, #releases