-
-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use of %TOTALPAGES% in results header or footer causes both to disappear #144
Comments
Thank you for the report. I'll look into this shortly. I swear though, I fix one bug, and 2 more pop up... |
You're welcome. I remember the last maintainer (Alexa) commenting that some fixes were going to take some time, so perhaps its code has needed a bit of an overhaul for a while prior to your adoption. Folks are grateful to have it updated, thanks for taking on its maintenance, it is definitely running smoother and faster since your recent updates. Scroll had been broken for ages, so having that fixed is also a massive bonus. I was pretty stoked when I saw that change. :) |
|
Is this version maybe not on Miraheze yet? Or maybe it was on MH but then reverted to last version? I ask because my Also, the I wasn't sure if I needed to create a separate task for this or not? If so, happy to do. |
I added some tests to the CI, which confirm a correct |
Great, thanks for the fix and thanks for confirming! When we get our 1.35.5 dev/test site running we'll give it a go there. :) |
You're welcome. FYI, it has now been updated on Miraheze, where I can confirm it does now work correctly. |
Sorry to be the bearer or bad news... I thought this was working also, but discovered that The workaround for categories where a set number of pages is known, would be to replace |
If I had to guess, the inconsistencies is due to it all being cached using query cache. I'm afraid the only full solution here may actually be no caching, which of course isn't worth a full fix for this, if it causes regression to all of the performance issues DPL3 previously caused. If this is indeed the cause, then I'm afraid I'm not sure I'll come up with a fix for this, unfortunately. |
Only years late but #175 might finally fix this... |
Private (Miraheze) wiki (dmlwiki.miraheze.org)
MediaWiki: 1.37.1 (d3eca0f)18:37, 17 March 2022
PHP: 7.4.28 (fpm-fcgi)
MariaDB: 10.5.15-MariaDB-1:10.5.15+maria~bullseye-log
DPL3: 3.4.2 (e7113a2) 15:40, 17 March 2022
Use of %TOTALPAGES% in resultsheader or resultsfooter causes the contents of both to disappear, even if %TOTALPAGES% is only used in one (needing to use it with
scroll
to paginate). Strangely, it shows in debug withdebug=5
but not in page source. When showing in debug, the totalpages count is incorrect, it displays1
. Removing results header or footer will cause both to reappear on-page and in page source.You are more than welcome to view/test/change the example live : )
That can be done at this link (if helpful):
https://dmlwiki.miraheze.org/wiki/User:CrystalClear/Sandbox11
Otherwise, how to reproduce:
The text was updated successfully, but these errors were encountered: