Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
After upgrading from 7.x-2.3 to 7.x-2.4, I noticed that the "Last Post" field mostly shows the correct information, but is sometimes "n/a" in the main forums page even if there are topics & posts. It also looks like the more time has passed since the last post, the higher chance that it'll say "n/a". I tried emptying the cache and also reverting back to 7.x-2.3 to confirm that the issue disappears and is specific to 7.x-2.4. Does anyone else have this problem?
Comment | File | Size | Author |
---|---|---|---|
#6 | empty-last-post-2302403-6.patch | 1.72 KB | AlexKirienko |
Last Post Empty.png | 31.61 KB | jay.lee.bio |
Comments
Comment #1
akinliat CreditAttribution: akinliat commentedI can confirm. I get the same result -- forums that have no new posts eventually have the last post replaced with "n/a" in 7.x-2.4. I reverted to 7.x-2.3, and the last posts all reappeared.
Comment #2
Elin Yordanov CreditAttribution: Elin Yordanov commentedI can confirm this bug which is introduced after 7.x-2.4 upgrade.
Comment #3
gratefulsk CreditAttribution: gratefulsk commentedI'm getting this too. I have 6 forums and 4 of them say n/a. When I disable advanced forum every cell in the Last Post column gets populated. Does anyone know how to fix this?
Comment #4
Elin Yordanov CreditAttribution: Elin Yordanov commented@gratefulsk install 7.x-2.3 version of Advanced Forum and don't update it until this issue is solved.
You can download it here:
https://www.drupal.org/node/2036631
Comment #5
adwuk CreditAttribution: adwuk commentedI have the same problem, and reverting back to 2.3 certainly resolves the issue. Looking at the changes in 2.4, I'm guessing that the problem is somewhere in core-overrides.inc where there was the introduction of cached forum counts and a new query for last edited nodes.
Comment #6
AlexKirienko CreditAttribution: AlexKirienko at WikiJob commentedHi.
I have faced similar problem. After research I have found source of problem - "Subquery optimization for last commented node" - https://www.drupal.org/node/2222861
With such optimization last post will be searched in last 1000 posts. And If you have few forums with very old posts, like I have, Latest post in such forum will be outside of 1000 latest posts.
Please check attached patch for latest dev version. It will increase limit to 10000 posts to search, and add settings to change this value if needed.
Comment #7
DrCord CreditAttribution: DrCord commentedI can also confirm this problem and that the patch in #6 fixes the problem. TYVM for the patch!
Comment #8
podarokthanks, commited