Hi there,
Got a strange issue. Out of the blue (I know how suspicious that sounds!) my client’s comments started ordering themselves randomly. They were fine a few days ago. She doesn’t touch the templates or admin stuff, and I haven’t been in there, so that’s weird. I wonder if any kind of hosting changes might cause this? Anyway…
So I tried forcing these tags:
{orderby="date" sort="asc"}and it’s not obeying my command. The full code looks like this:
{exp:comment:entries weblog="weblog1" orderby="date" sort="asc"}
{if email != "[email protected]"}
{comment}
<h3 class="testimonialsbyline">{name}{if location} ,{location}{/if}</h3>
{/if}
{if email == "[email protected]"}
{comment}
<h3 class="testimonialsbyline client">Clientname</h3>
{/if}
{/exp:comment:entries}Note these are not wrapped in an weblog:entries tag.They exist on a /comments/ template, and the url title is being passed from the prior page to the comments page.
I have also tried, “order_by” (with underscore) as well as “desc”. The order of the comments ids jumps around all over the place. One page’s comment ids look like this order:
320
328
329
332
333
327
326
321
322
(when I check by date, also all over the place)
and so on…
Her comments are not moderated. Captcha is being used. Comments are allowed on this particular weblog. Dynamic is ‘on’ which—if I set it to off—just makes all the comments disappear (as it should)
Here’s the rub: she’s on ee version 1.4.2 build 20060612 and not keen to upgrade at this time. She can’t afford any downtime on her site at the moment. I understand, empathize and absolutely get why you need latest version to troubleshoot things, but if there’s any way to help me out in this instance it would be most appreciated. I am trying to see if we can schedule an upgrade, but if there’s any way to help this now, it would be wonderful. 😊
Much thanks,
Reese