Page MenuHomeMiraheze

$wgDplSettings['allowUnlimitedResults'] = true; issue for DPL3 extension; Possible solution set in ParametersData.php the value for 'count' 'default'=500' in a higher value such as 1500
Closed, InvalidPublic

Description

Hello,
while in LocalSettings.php the value of $wgDplSettings['allowUnlimitedResults'] is set to true, if i use a category with more than 500 pages, it doens't return all the results. After some searching i found out that this is an issue to DPL3 and according to

https://www.mediawiki.org/wiki/Extension_talk:DynamicPageList3#Setting_$allowUnlimitedResults=true_makes_no_change_of_count_limit_of_500

it is recommended to make the following change:
edit ParametersData.php the value for 'count' 'default'=500' in a higher value say 10000.

Is this possible? I don't need 10000, i estimate that the dpl3 should return about 1500 results

Thank you in advance.

Event Timeline

Ilias_Siachos renamed this task from In Local Settings set $wgDplSettings['allowUnlimitedCategories'] = true; to $wgDplSettings['allowUnlimitedResults'] = true; issue for DPL3 extension.May 11 2021, 15:10
Ilias_Siachos updated the task description. (Show Details)
Ilias_Siachos renamed this task from $wgDplSettings['allowUnlimitedResults'] = true; issue for DPL3 extension to $wgDplSettings['allowUnlimitedResults'] = true; issue for DPL3 extension; Possible solution set in ParametersData.php the value for 'count' 'default'=500' in a higher value such as 1500.May 11 2021, 15:47

@Ilias_Siachos As we use git submodule we aren't able to locally modify files from extensions upstream unless they do so themselves. We can set $wgDplSettings['allowUnlimitedResults'] = true but we won't be able to modify the php file.

I think it's already set to true but if you wouldn't mind checking i would be obliged!

Unknown Object (User) added a comment.May 12 2021, 19:09

There seems to be an issue with DPL3 where this config option doesn't work. I think I know why but can't exactly fix it as I don't have any way to test it as I'd need a large wiki to test that which I don't have.

if you'd like i could make you editor in this wiki to try out. Only problem is that it is in greek!

Unknown Object (User) added a comment.May 14 2021, 04:32

Hello, can you please provide a full example of the DPL tag function you are using?

Unknown Object (User) added a comment.EditedMay 14 2021, 04:36

Actually seems that $wgDplSettings['allowUnlimitedResults'] was not set for you. Only allowUnlimitedCategories was. I have now set it, please let me know if it works. Thanks!

@Universal_Omega I just tried it! Unfortunately, it still show only 500 results. Moreover, previously the %TOTALPAGES% variable would display the right number, whereas now it only shows <=500! Anyway, i provide the example below:

{{#dpl:
| category = {{#if:{{{ΠηγήΠροέλευσηςΚλειστήΚατηγορία|}}}|{{{ΠηγήΠροέλευσηςΚλειστήΚατηγορία|}}} }}
| category = {{#if:{{{ΕίδοςΠηγής|}}}|{{{ΕίδοςΠηγής|}}} }}
| category = {{#if:{{{ΥποείδοςΠηγήςΦορέαςΓιαΜεταναστευτικάΠροσφυγικάΘέματα|}}}|{{{ΥποείδοςΠηγήςΦορέαςΓιαΜεταναστευτικάΠροσφυγικάΘέματα|}}} }}
| category = {{#if:{{{ΥποείδοςΠηγήςΕπικαιρότηταΣχετικήΜεΜεταναστευτικάΠροσφυγικάΘέματα|}}}|{{{ΥποείδοςΠηγήςΕπικαιρότηταΣχετικήΜεΜεταναστευτικάΠροσφυγικάΘέματα|}}} }}
| category = {{#if:{{{ΥποείδοςΠηγήςΠολιτικόςΛόγοςΓύρωΑπόΠροσφυγικάΜεταναστευτικάΘέματα|}}}|{{{ΥποείδοςΠηγήςΠολιτικόςΛόγοςΓύρωΑπόΠροσφυγικάΜεταναστευτικάΘέματα|}}}  }}
| category = {{#if:{{{ΣυγγραφικέςΠληροφορίες|}}}|{{{ΣυγγραφικέςΠληροφορίες|}}} }}
| category = {{#if:{{{Τροπικότητα|}}}|{{{Τροπικότητα|}}} }}
| category = {{#if:{{{Αφηγηματικότητα|}}}|{{{Αφηγηματικότητα|}}} }}
| category = {{#if:{{{Χιούμορ|}}}|{{{Χιούμορ|}}} }}
| category = {{#if:{{{ΡευστόςΡατσισμός|}}}|{{{ΡευστόςΡατσισμός|}}} }}
| category = {{#if:{{{ΚειμενικόΕίδος|}}}|{{#arraymap:{{{ΚειμενικόΕίδος|}}}|,|x|x {{!}} category = }}}}
| category = {{#dplvar:Διάκριση}}
| category = {{#dplvar:Αναφορές στους ανώνυμους ‘άλλους’}}
| category = {{#dplvar:Αναφορές στους αδρανείς ‘άλλους’}}
| category = {{#dplvar:Αναφορές στους παράνομους/νόμιμους ‘άλλους’}}
| category = {{#dplvar:Αναφορές στους προσωρινούς ‘άλλους’}}
| category = {{#dplvar:Αναφορές στους ‘άλλους’ ως πρόβλημα}}
| category = {{#dplvar:Αναφορές στους ‘άλλους’ ως θύματα}}
| category = {{#dplvar:Αναφορές στους ‘άλλους’ ως αποδέκτες βοήθειας}}
| category = {{#dplvar:Αφομοίωση}}
| category = {{#dplvar:Αναφορές στον όρο  ‘ένταξη/ενσωμάτωση’ ή/και σε πρακτικές ένταξης/ενσωμάτωσης}}
| category = {{#dplvar:Αναφορές σε πρακτικές εκμάθησης ελληνικών}}
| category = {{#dplvar:Αναφορές σε μετριασμένους τρόπους αντίκρουσης του ρατσισμού}}
| category = {{#dplvar:Αναφορές στη θετική στάση των μεταναστών/προσφύγων απέναντι σε αφομοιωτικές πρακτικές}}
| category = {{#dplvar:Ήχος}}
| category = {{#dplvar:Εικόνα}}
| category = {{#dplvar:Βίντεο}}
| category = {{#dplvar:Προφορικό Κείμενο}}
| category = {{#dplvar:Γραπτό Κείμενο}}
| category = {{#dplvar:Ανάρτηση στο Facebook}}
| category = {{#dplvar:Διαφημιστική Καμπάνια/Σποτ}}
| category = {{#dplvar:Ειδησεογραφικό/Ενημερωτικό}}
| category = {{#dplvar:Εκπαιδευτικό Υλικό}}
| category = {{#dplvar:Ιστορία}}
| category = {{#dplvar:Πολιτικό/Κομματικό}}
| category = {{#dplvar:Πρόσκληση/Κάλεσμα σε Συλλογική Δράση}}
| category = {{#dplvar:Συνέντευξη}}
| category = {{#dplvar:Τηλεοπτική Εκπομπή}}
| category = {{#dplvar:Tweet}}
| ordermethod = sortkey
| noresultsheader = Δεν βρέθηκαν καταχωρήσεις που να αντιστοιχούν στις παραπάνω κατηγορίες
| resultsheader = Συνολικά βρέθηκαν %TOTALPAGES% καταχωρήσεις, που να ανήκουν στις παραπάνω κατηγορίες
| mode = category
}}

Thanks for your help!

Unknown Object (User) added a comment.May 14 2021, 16:31

Hello, can you please try with | count = 1000? If that still doesn't work I will look into more testing on DPL3 itself and try fixing it there.

I just did still unfortunately still problematic!

Unknown Object (User) added a comment.May 14 2021, 22:39

I just did still unfortunately still problematic!

OK, thank you for the patience. I will try and fix this within DPL3 itself I'll run some tests on it and see if I can diagnosis the problem here.

Unknown Object (User) claimed this task.May 15 2021, 15:10
Unknown Object (User) moved this task from Backlog to Short Term on the MediaWiki (SRE) board.
Unknown Object (User) moved this task from Unsorted to Goals on the Universal Omega board.
Unknown Object (User) edited projects, added Extensions; removed Configuration.
Unknown Object (User) moved this task from Backlog to Deployed Extension Bugs on the Extensions board.

Am still looking into this.

Unknown Object (User) closed this task as Invalid.May 22 2021, 04:05

Closing in favour of the issue posted at https://github.com/Universal-Omega/DynamicPageList3/issues/20. I will still try to resolve this though.

Unknown Object (User) added a comment.Sep 25 2021, 03:03

Just to note, I have finally figured the issue and fixed this within DPL3. Once it's updated it should then be fixed.

Unknown Object (User) added a comment.Mar 23 2022, 18:36

Just to note, I have finally figured the issue and fixed this within DPL3. Once it's updated it should then be fixed.

I apologise for the fact this statement was inaccurate, however I can now confirm the issue is really resolved now. allowUnlimitedResults will now work correctly. So long as the count parameter is used and set as high as necessary.