Wrote two new actions, only one of them works "at a time"

Started by themavesite, May 17, 2017, 08:08:57 AM

Previous topic - Next topic

themavesite

SMF has a built in action to show the most recent posts.
I have duplicated that file two times, modified it once to show only the latest replies, and once to show only the latest topics. (of course I also made new templates, and added the actions to index.php)
This works perfectly!

The only problem is when you just viewed "recent topics" and you click on "recent replies", the second page won't load.. if you then wait a bit (I guess around a minute?) and reload the page that's not loading, then it will suddenly load, but if you try opening the first page now, that one won't load! (and you'll have to wait a bit again, and then reload the page)

This is what I mean with "not loading":

(it shows no posts)

This is a very odd issue, and I would like to see it resolved.

Live demo: (click on one of them, then click on the other by pressing the button in the header menu)
Recent Replies: http://forums.themavesite.com/index.php?action=recentreplies;start=0
Recent Topics: http://forums.themavesite.com/index.php?action=recenttopics;start=0

Pastebin for both source files:
Recent Replies: https://pastebin.com/qF8nehNS
Recent Topics: https://pastebin.com/H3vL2nFP
TMS Forums
Since 2008 and still going strong! Join today! http://forums.themavesite.com/index.php

themavesite

TMS Forums
Since 2008 and still going strong! Join today! http://forums.themavesite.com/index.php

Gluz

I don't see a problem, both pages load fine, from the buttons on the top of the page, from the links itself, everything is loading.

Maybe is something that a logged user see. Or your forum was busy at the time and the querys took a little longer than expected.

A demo user would help to see if that is failing for logged users.

Dzonny

Same as what Gluz said, I can see those pages without a problem, so can't really replicate what's described in first post.

themavesite

Thank you for your replies.
I have recorded the problem, see video below. As you can see one of the two action is not loading. When I wait for ~1 minute, the action that wasn't working suddenly works, but now the first action doesn't work any more.

https://www.youtube.com/watch?v=pWtfM_N5EhE
TMS Forums
Since 2008 and still going strong! Join today! http://forums.themavesite.com/index.php

Dzonny

Can you create demo user for us, and post login details here please? Also do you have anything in your error log?
Any mods installed?

vbgamer45

The maxMsgID might cause some of the issues that would be a guess on my end I remmeber hearing  similiar issues with SSI calls
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

themavesite

I have no idea why, but the problem is suddenly fixed. Only thing I did was empty out the error log, and since then I haven't gotten the problem anymore..
Marking as solved.
TMS Forums
Since 2008 and still going strong! Join today! http://forums.themavesite.com/index.php

Advertisement: