Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8430237
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T05:33:12+00:00 2026-06-10T05:33:12+00:00

The comment count on my index page doesn’t reflect the actual count for each

  • 0

The comment count on my index page doesn’t reflect the actual count for each entry in my blog. When running locally in development it reflects the actual count, but once I push it to production on Heroku it displays ‘0 Comments and 0 Reactions’, even though there is at least one comment. I added the JS that Disqus provides at the bottom of my index.html.haml and added a link for the comment count. Here’s my code for scrutinizing:

%p
  = "* Comments - "
  = link_to e, entry_path(e, :anchor => "disqus_thread")
.date= e.updated_at.strftime('* %a, %b %-e, %Y @ %l:%M %p %Z') 
%br

:javascript
  /* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
  var disqus_shortname = 'heneman'; // required: replace example with your forum shortname

  /* * * DON'T EDIT BELOW THIS LINE * * */
  (function () {
    var s = document.createElement('script'); s.async = true;
    s.type = 'text/javascript';
    s.src = 'http://' + disqus_shortname + '.disqus.com/count.js';
    (document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
  }());

Also, here is a link to my blog. If you look at the second entry down (titled “Add Markdown To A Rails 3.2 App”) you’ll see the comment count displays ‘0’, but if you click on the title and go into the show page for that entry, you’ll see there’s a comment.

Has anyone else encountered this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T05:33:13+00:00Added an answer on June 10, 2026 at 5:33 am

    Try adding the disqus-identifier as data-disqus-identifier in your comment link as described here. Look at your front page HTML source code for start page. Its rendering <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
    <html><body>
    for every post out there which is not a standard i think.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to get the comment count for a video entry but this
I have a blog. On my index page, I pull in all blog posts.
So I have a simple voting feature on my asp.net mvc page. My index
Essentially I need a count of each Entries Comments: SELECT e.*, COUNT(c.id) as comments
I know in templates you can easily count comments with get_comment_count , but how
I am trying to count characters in comments included in C code using Python
I got two tables: comments and commentLikes in the same query i count the
I have a script that counts the characters in each of my comments, excluding
## COMMENT OUT below just for reference cursor.execute ( CREATE TABLE yellowpages ( business_id
Comment rows are counted in the NR. Is there some flag to ignore comments?

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.