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.

Comment Count and Pagination Not Working after Upgrade

April 26, 2012 11:55am

Subscribe [0]
  • #1 / Apr 26, 2012 11:55am

    Jim F

    53 posts

    I upgraded my site from 2.3.1 to 2.4 this morning. Since then, comment ordering is messed up. It worked fine previously.

    I am using the absolute_count tag to display count. [EDIT: See below.]

    Understandably, I am getting a lot of complaints.

    Suggestions?

  • #2 / Apr 26, 2012 1:26pm

    Jim F

    53 posts

    The pagination offset is off. absolute_count. Comments per page = 100.

    What I should be seeing:
    base = 1-100
    P100 = 101-200
    P200 = 201-300

    What I see now:
    base = 2-101
    P100 = 3-102
    P200 = 4-103

    To show you the problem, I put the following into a template:

    {exp:comment:entries url_title="{segment_3}" show_expired="yes" sort="asc" paginate="both" limit="100"}
    {absolute_count}.{comment}         
    {paginate}
        <div class="paginate">
        <span class="pages{total_pages}">Page {current_page} of {total_pages} pages</span> {pagination_links}</span>
       </div>
    {/paginate}
    {/exp:comment:entries}

    Click the link to see the results.

    FYI, everything else on the server is working properly. I have restarted both the web server and the database server.

    I will start to go through your code to find the problem. As you might expect, it would be much easier for a developer to help me resolve the issue.

    I need to get this resolved as soon as possible.

    Thanks in advance.

  • #3 / Apr 26, 2012 4:02pm

    Jim F

    53 posts

    I don’t usually post to bump up a post but I need to make sure this doesn’t get overlooked. This is a problem on every one of my entry pages and is quite disconcerting to the members of my site. I have spent most of the day troubleshooting this problem and need tech support.

  • #4 / Apr 27, 2012 6:01am

    Jim F

    53 posts

    I was able to fix the issue by going to line 626 of the comment module and changing

    $absolute_count = ($pagination->current_page == '') ? 0 : $pagination->current_page;

    to

    $absolute_count = ($pagination->current_page == '') ? 0 : $pagination->current_page*$pagination->per_page-$pagination->per_page;

    I now have the absolute comment count working as it was in 2.3.1 and prior versions.

    This appears to be a bug with the updated pagination.

    I must admit I’m miffed that I had to spend a whole day of development time troubleshooting this error with no response from technical support. I don’t expect all issues to be resolved immediately, but I do expect a response and some type of engagement from the support staff.

  • #5 / Apr 27, 2012 12:37pm

    Dan Decker

    7338 posts

    Hi Jim,

    I’m sorry for the trouble you’re having!

    I don’t usually post to bump up a post but I need to make sure this doesn’t get overlooked. This is a problem on every one of my entry pages and is quite disconcerting to the members of my site. I have spent most of the day troubleshooting this problem and need tech support.

    You can’t bump a thread, and you won’t be overlooked 😊 Customer Advocates have a completely different and custom interface to the forums that insures requests are first come, first served. With that in mind, we do our absolute best to respond within 48hrs during the business week.

    Now, your problem sounds related to this known bug, which contains a solution. Can you apply the fix and let me know how it goes?

    Cheers!

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

ExpressionEngine News!

#eecms, #events, #releases