Vox Populi(x) forum

Alexandria Book Library => Errori (Bugs) => Topic started by: RobertG on 31 August 2026, 20:38:28

Title: Erro on alphabetical pagination (4.0.13) for categories
Post by: RobertG on 31 August 2026, 20:38:28
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
Title: Re: Error on alphabetical pagination (4.0.13) for categories
Post by: RobertG on 01 September 2026, 07:29:46
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.
Title: Re: Erro on alphabetical pagination (4.0.13) for categories
Post by: federica on 01 September 2026, 18:46:39
Fixed it but I modified the function call to send the selected letter
See the new version
Title: Re: Erro on alphabetical pagination (4.0.13) for categories
Post by: RobertG on 01 September 2026, 18:54:59
Thank you, Federica.
It works. :)