Erro on alphabetical pagination (4.0.13) for categories

Started by RobertG, 31 August 2026, 20:38:28

Previous topic - Next topic

RobertG

Hi,

I've just noticed an error in the display of the list of books by category when alphabetical pagination is enabled.
The list of categories displays correctly, but when I click on a category, I get the error 0:
Too few arguments to function HTMLIcon::alphabet(), 0 passed in /home/*******/Sites/livres/components/com_abook/views/category/tmpl/default_items.php on line 105 and exactly 1 expected
PHP version is 8.4

RobertG

Hi,

I changed in components/com_abook/helpers/icon.php
public static function alphabet($selected){
to
public static function alphabet($selected = null){

and the error has disappeared.

federica

Fixed it but I modified the function call to send the selected letter
See the new version
Al mondo ci sono 10 tipi di persone, quelli che hanno capito il codice binario e quelli che non l'hanno capito.
Informatizzati [url="https://informatizzati.org"]https://informatizzati.org[/url]
Stacca la spina [url="https://disconnessi.org"]https://disconnessi.org[/url]

RobertG