Users running a non-download version of Vanilla (pulled from github), on branch release/2019.016 or master from the last 2 weeks should upgrade to release/2019.017 or latest master for security reasons. Downloaded official open sources releases are not affected.
Please upgrade here. These earlier versions are no longer being updated and have security issues.

Post Count not updating - old issue

Hi! I have this old issue. When I create (or delete) a new discussion, the discussion counter is not updated in the category.

I know this issue is old because of that: https://open.vanillaforums.com/discussion/35885/post-count-not-updating/p1

When I go to myforum/dba/counts , it updates, but only once.

Is there a definitive solution for this? Will it be released in the next updates?

Thanks!

Comments

  • R_JR_J Cheerleader & Troubleshooter Munich Moderator

    Please try if making the changes that rgp suggested in the referenced discussion would work for you. If they do, please provide some more information on you system.

    By now there isn't any solution to that problem. But the more people give feedback how they solved the problem, the more likely it is that it will be fixed. rgp did a great job with his feedback, but I'm curious if the problem with his system setup come up more often


    GabrielVinicios
  • Yes, the rgp's soluction worked for me. And it is simple.

    I have just replaced the lines 168 and 169.


    The original:

            } elseif (is_int($categoryID)) {
                $id = $categoryID;
    


    After the changes:

            } elseif (is_numeric($categoryID)) {
                $id = (int)$categoryID;
    


    It is so simply! I'm wondering: why doesn't put this correction in the next update?

Sign In or Register to comment.