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.

Bizarre issue with commenting - only effects one entry

February 26, 2010 3:37pm

Subscribe [5]
  • #1 / Feb 26, 2010 3:37pm

    cc000001

    83 posts

    I’m puzzled as to what’s going on here… I have commenting enabled on a site and it seems to be working fine, except for one entry.

    This entry has commenting enabled checked in the entry itself.

    I’ve tried stripping back my code to the following:

    {exp:weblog:entries dynamic="on" weblog="events"}
    
    {title}
    
    {/exp:weblog:entries}
    
    
    {exp:comment:entries sort="asc" url_title="{segment_2}" limit="20"}
    {name} says:
    {comment}
    {comment_date format="%D, %F %d, %Y - %g:%i:%s"}
    
    {if no_results}
    There are currently no comments for this event.
    {/if}
    {/exp:comment:entries}
    
    {exp:comment:form weblog="events"}
    <fieldset>
    <label for="name"><span>Name:</span><input type="text" id="name" name="name" value="{name}" placeholder="Enter your name here" /></label>
    <label for="email"><span>Email:</span> <input type="text" id="email" name="email" value="{email}" placeholder="Enter your email address" /></label>
    <label for="comment" class="textarea"><span>Comment:</span><textarea id="email" name="comment">{comment}</textarea></label>
    {if captcha}
    Please enter the word you see in the image below:
    <label for="captcha"><input type="text" name="captcha" value="{captcha_word}" size="20" maxlength="20"  /></label>
    {captcha} 
    {/if}
    <input type="submit" class="button" name="submit" value="Submit" />
    </fieldset>
    {/exp:comment:form}

    But still no joy i’m afraid. As I said, this seems to work fine for all other entries 😖

    Any clues as to what’s going on here?

  • #2 / Feb 26, 2010 7:39pm

    Adam Dorsey

    1439 posts

    Are you getting any errors? Is the comment entry form showing up? Or when you submit a comment, does it just not stick?

    Are you accessing this entry properly (as a single-entry)?

    http://www.yoursite.com/index.php/template/url_title

  • #3 / Feb 26, 2010 8:12pm

    cc000001

    83 posts

    Thanks for the reply!

    The comment entry form is there and I can submit a comment which appears in the control panel but not on the page on the website, but only for this entry!

    I’m accessing the page like http://www.siteurl.com/template/URL_title/ as I have a htaccess rewrite to remove index.php. Don’t think this is the issue though because, as I mentioned, other entries seem fine.

    I guess I could try recreating this entry from scratch but it just seems odd and I wouldn’t mind figuring out the issue.

  • #4 / Feb 27, 2010 4:09pm

    Greg Salt

    3988 posts

    Hi cc000001,

    So, the issue is that the comment:entries tag is not working properly for this entry? Please try removing the url_title parameter since the comment:entries tag works dynamically anyway.

    Cheers

    Greg

  • #5 / Feb 28, 2010 11:05pm

    cc000001

    83 posts

    Hi Greg,

    I only added the url_title as i’ve been trying all sorts to try and get it working… have removed but still no joy I’m afraid.

    thanks,

    Chris

  • #6 / Mar 01, 2010 2:29am

    John Henry Donovan

    12339 posts

    Chris

    What version and build of EE are you using?
    Are you using any extensions?

    Have you got a link so one of us could try and submit a comment?

  • #7 / Apr 06, 2010 10:40am

    cc000001

    83 posts

    Hi John,

    Sorry, I missed your reply at the time. But I’m here again because this issue has reared it’s head once more with another entry. It’s so strange.

    This entry age is here: http://www.culturepool.org.uk/events/write-now-festival

    Now there is a a comment for this entry. In fact, if you visit the site homepage http://www.culturepool.org.uk in the bottom right corner you will see a comment from somebody called Dorothy. If you click the read more link, you will be taken to the entry. Also, the comment appears ok in the control panel ok too, i.e. it’s associated with the correct entry.

    It is really strange that this issue only seems to effect certain entries and others are fine.

    The version and build are as follows: 1.6.8 & 20100121

    I have a number of extensions installed but I have disabled all extensions and still have the same issue

  • #8 / Apr 06, 2010 11:22am

    Sue Crocker

    26054 posts

    It appears you aren’t using the default method referring to single entry pages. Template_group/template/url_title. If you do so, do things work as expected?

  • #9 / Apr 06, 2010 1:30pm

    cc000001

    83 posts

    Hi Sue,

    Thanks for you help….

    I’m not certain what you mean as this is the way I’ve always done things!

    I have a template group called events, then in the index template of that group I have the following:

    {if segment_2 == ""}
    {embed="events/events-list"}
    {/if}
    {if segment_2 != "" && segment_3 == ""}
    {embed="events/events-item"}
    {/if}

    So, if you have a url of http://www.culturepool.org.uk/ you will see all events and, in the previous example, http://www.culturepool.org.uk/events/write-now-festival/ you will see one event.

    Is this not a correct way to do things?

  • #10 / Apr 06, 2010 5:37pm

    cc000001

    83 posts

    To test this further, I’ve set up a very basic template with no additional functionality on the page.

    I’ve set this up to follow the structure mentioned by Sue:

    template_group/template_ name/url_title

    My template is just called test. And, unfortunately, it still doesn’t work!

    This is the entry I was having problems with:

    http://www.culturepool.org.uk/events/test/write-now-festival/

    as you can see, it’s still showing no comments.

    compare this to: http://www.culturepool.org.uk/events/test/the-dreadful-hours or http://www.culturepool.org.uk/events/test/impropriety-official-launch-night/ and you will see they are working fine.

  • #11 / Apr 06, 2010 10:50pm

    Sue Crocker

    26054 posts

    Is this a live site, or a site in progress? Could you also try renaming the url_title to something like write-now-festival-sample, to see if that makes a difference?

  • #12 / Apr 07, 2010 10:15am

    cc000001

    83 posts

    Hi there Sue,

    Thanks again for your reply. This is a live site. However, I just changed tried changing the url_title as you suggested, and it worked!

    Why is this do you think?

  • #13 / Apr 07, 2010 11:13am

    Sue Crocker

    26054 posts

    It has to do with the URL title itself matching up with something else, such as a template name. Glad things are working again, don’t hesitate to post again as needed.

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

ExpressionEngine News!

#eecms, #events, #releases