Simple Machines Community Forum

SMF Support => SMF 2.1.x Support => Topic started by: beckzy on October 19, 2020, 08:15:22 AM

Title: Forum Info Center Latest Post SMF 2.1 RC3
Post by: beckzy on October 19, 2020, 08:15:22 AM
My forum Info Center states that the latest post is from May 17 2020. This is incorrect as posts are made everyday, the latest being today.

Quote
Latest Post: "Re: Activities." (May 17, 2020, 10:58:24 PM)

Is there any way to fix this?
Title: Re: Forum Info Center Latest Post SMF 2.1 RC3
Post by: Dzonny on October 19, 2020, 08:53:06 AM
Have you tried to do a recount of all posts/messages?
Title: Re: Forum Info Center Latest Post SMF 2.1 RC3
Post by: beckzy on October 19, 2020, 09:39:00 AM
Have you tried to do a recount of all posts/messages?

That fixed it! Thank you :)
Title: Re: Forum Info Center Latest Post SMF 2.1 RC3
Post by: beckzy on October 21, 2020, 08:36:59 AM
This is still happening. The Latest Post seems to lose sync. Example: Latest Post says "Today at 07:47:45 AM" but there have been many new posts since then. I am having to recount all posts/messages every day to update it.
Title: Re: Forum Info Center Latest Post SMF 2.1 RC3
Post by: Dzonny on October 21, 2020, 10:33:49 AM
Anything in error log?
Title: Re: Forum Info Center Latest Post SMF 2.1 RC3
Post by: beckzy on October 21, 2020, 10:47:17 AM
Anything in error log?

Nothing :-\
Title: Re: Forum Info Center Latest Post SMF 2.1 RC3
Post by: beckzy on October 21, 2020, 02:03:14 PM
Okay now recounting posts/messages from the admin section isn't updating it either! Does anyone have a fix for this?
Title: Re: Forum Info Center Latest Post SMF 2.1 RC3
Post by: Kindred on October 21, 2020, 04:50:35 PM
I can't recreate the issue....   the info center most recent posts and latest post updates just fine on the three sites that I tested
Title: Re: Forum Info Center Latest Post SMF 2.1 RC3
Post by: shawnb61 on October 21, 2020, 09:23:09 PM
I can't recreate it either.

First thought is caching.  What method of caching is used?

Any errors in the apache log?

Any mods installed?

Php version?  Mysql version? 

Custom theme?

Does it correct after a few hours?
Title: Re: Forum Info Center Latest Post SMF 2.1 RC3
Post by: beckzy on October 22, 2020, 04:22:41 AM
It seemed to fix itself after I deleted the topic containing the "Last Post". I'll mark this as solved.
Title: Re: Forum Info Center Latest Post SMF 2.1 RC3
Post by: beckzy on October 22, 2020, 09:10:02 AM
It's happened again. It's now saying the last post was October 19, 2020, 05:14:50 PM.

First thought is caching.  What method of caching is used?
There is no built-in caching system implemented on the server itself?

Any errors in the apache log?
I don't have access to that, so I asked the host. Their reply was: "As for the Apache logs, I have found some entries related to our web application firewall - ModSecurity. It is a server-side security system that is designed to block known exploits and provide protection from a range of attacks against web applications. However, in some cases these blocks are false-positive."

Any mods installed?
Curve2 Color Changer (https://custom.simplemachines.org/mods/index.php?mod=4231)
Forum Width Setting (https://custom.simplemachines.org/mods/index.php?mod=4223)
Team Page (https://custom.simplemachines.org/mods/index.php?mod=2167)
SMF Gallery Pro (https://www.smfhacks.com/smf-gallery-pro.php)
ezPortal (https://custom.simplemachines.org/mods/index.php?mod=1461)

Php version?  Mysql version?
PHP version - 7.3
MySQL version - 5.7 (MariaDB 10.3)

Custom theme?
Nope

Does it correct after a few hours?
It doesn't seem so.
Title: Re: Forum Info Center Latest Post SMF 2.1 RC3
Post by: shawnb61 on October 22, 2020, 11:07:37 AM
I would look at your SMF cache settings.  If anything is on, try disabling it for a period, as a test to rule it out.

I suspect the mod_security errors in the logs are more likely related.  Ask them to turn it off.  Mod_security frequently interferes with regular SMF operation.

Title: Re: Forum Info Center Latest Post SMF 2.1 RC3
Post by: Illori on October 22, 2020, 11:29:07 AM
Are stats enabled? I think this is still an option in 2.1.
Title: Re: Forum Info Center Latest Post SMF 2.1 RC3
Post by: beckzy on October 22, 2020, 03:37:09 PM
I contacted the host again and it turns out that there was a block on index.php. This has now been whitelisted and the latest post is being displayed correctly. I'll mark this as solved.
Title: Re: Forum Info Center Latest Post SMF 2.1 RC3
Post by: shawnb61 on October 22, 2020, 03:54:32 PM
Thanks for following up!
Title: Re: Forum Info Center Latest Post SMF 2.1 RC3
Post by: beckzy on October 27, 2020, 04:50:10 PM
I think this is a SMF cache issue. The issue happened again 4-5 days ago, so I disabled caching, cleared all cache, recounted all posts and messages, and it hasn't happened since!