Main Menu

Recent posts

#21
Supporto (Support) / Re: com_abook 4.0.7
Last post by federica - 21 September 2026, 12:11:48
Grazie per la segnalazione e per i test che hai fatto!
Ho corretto il problema e pubblicato la nuova versione.
#22
Supporto (Support) / Re: com_abook 4.0.7
Last post by Odin72a - 19 September 2026, 15:35:14

Subject: com_abook 4.0.14: due file falliscono silenziosamente su Joomla 6 (JPATH_PLATFORM)

Ciao Federica,

Innanzitutto grazie per continuare a mantenere Alexandria Book Library e per la migrazione ai namespace — utilizziamo una versione personalizzata di com_abook come repository istituzionale di ricerca, e la 4.0.14 è messa molto bene.

Controllando la 4.0.14 per la compatibilità con Joomla 6 ho trovato un piccolo problema. Due file usano ancora la vecchia costante di protezione dall'accesso diretto:

  administrator/components/com_abook/helpers/html/category.php
  administrator/components/com_abook/helpers/html/categoryparent.php

Entrambi iniziano con:

  defined('JPATH_PLATFORM') or die;

In Joomla 6 JPATH_PLATFORM non è più definita globalmente: è disponibile solo se il plugin 'Behaviour - Backward Compatibility 6' è attivo, e su una nuova installazione di Joomla 6 quel plugin è disattivato per impostazione predefinita. Quindi su un sito Joomla 6 pulito questi due file terminano silenziosamente e i menù a tendina delle categorie nel backend smettono di funzionare, senza alcun messaggio di errore.

La correzione è la stessa riga che già usano tutti gli altri file:

  defined('_JEXEC') or die;

Riferimento: https://manual.joomla.org/updates/54-60/removed-backward-incompatibility/

A parte questo non ho trovato altri ostacoli per Joomla 6 nella 4.0.14 — nessun CMSObject, nessun Joomla\CMS\Input, nessun Joomla\CMS\Filesystem, nessun caricatore legacy dei model rimosso.

Cordiali saluti,
#23
Errori (Bugs) / Re: Erro on alphabetical pagin...
Last post by RobertG - 01 September 2026, 18:54:59
Thank you, Federica.
It works. :)
#24
Errori (Bugs) / Re: Erro on alphabetical pagin...
Last post by federica - 01 September 2026, 18:46:39
Fixed it but I modified the function call to send the selected letter
See the new version
#25
Errori (Bugs) / Re: Error on alphabetical pagi...
Last post by RobertG - 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.
#26
Errori (Bugs) / Erro on alphabetical paginatio...
Last post by RobertG - 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
#27
Errori (Bugs) / Re: Pagination for authors
Last post by RobertG - 28 August 2026, 20:39:02
Thank you, Federica.
I will test tomorrow.
#28
Errori (Bugs) / Re: Pagination for authors
Last post by federica - 28 August 2026, 20:19:09
I published the new version
#29
Errori (Bugs) / Re: Pagination for authors
Last post by RobertG - 24 August 2026, 15:19:32
Thank you, Federica!
#30
Errori (Bugs) / Re: Pagination for authors
Last post by federica - 24 August 2026, 14:47:58
I solved it, I will publish the new version in the next few days