Vox Populi(x) forum

Alexandria Book Library => Errori (Bugs) => Topic started by: cansiglio on 23 September 2022, 18:43:47

Title: eRRORE MODULI JOOMLA 4
Post by: cansiglio on 23 September 2022, 18:43:47
implode(): Argument #2 ($array) must be of type ?array, string given
Title: Re: eRRORE MODULI JOOMLA 4
Post by: federica on 23 September 2022, 19:14:22
Ciao cansiglio,
nella configurazione globale di joomla abilita "debug sistema" e imposta "report degli errori" a "massimo". Poi torna sulla pagina che che va in errore e dimmi che errore vedi (copia e incolla).

Dimmi anche quale versione di software stai usando di jommla, Alexandria book library e PHP
Title: Re: eRRORE MODULI JOOMLA 4
Post by: cansiglio on 24 September 2022, 09:50:58
Warning: Undefined array key 1 in /home/ujh1brxi/domains/bfdr.it/public_html/plugins/system/t4/src/t4/Helper/Joomla.php(12) : eval()'d code on line 188

PHP 8.0.20
joomla ultima versione
Title: Re: eRRORE MODULI JOOMLA 4
Post by: cansiglio on 24 September 2022, 09:54:45
 0
implode(): Argument #2 ($array) must be of type ?array, string given

Title: Re: eRRORE MODULI JOOMLA 4
Post by: federica on 26 September 2022, 13:55:31
Potrebbe essere un errore del plugin T4, guarda la parte in grassetto dell'url.
/home/ujh1brxi/domains/bfdr.it/public_html/plugins/system/t4/src/t4/Helper/Joomla.php
Title: Re: eRRORE MODULI JOOMLA 4
Post by: cansiglio on 26 September 2022, 17:34:07
Si-- ma non è la nostra questione.
L'errore adesso è solo nel modulo ABOOK ALLINONE
implode(): Argument #2 ($array) must be of type ?array, string given
Title: Re: eRRORE MODULI JOOMLA 4
Post by: cansiglio on 26 September 2022, 17:39:33
in /home/ujh1brxi/domains/bfdr.it/public_html/modules/mod_abook_allinone/helper.php (line 177)

                    $row->description=strip_tags($row->description);
                                $temp = explode(' ',$row->description);
                    $cutted='';
                                if(count($temp) > $desc_length){
                                        for($i=0; $i<$desc_length; $i++) $cutted[$i] = $temp[$i];
                                            $cutted = implode(' ', $cutted);
                                            $row->description = $cutted.'...';
                                }
                    $row->text = $row->description;
                }
Title: Re: eRRORE MODULI JOOMLA 4
Post by: cansiglio on 28 September 2022, 17:25:55
177 -
Title: Re: eRRORE MODULI JOOMLA 4
Post by: federica on 28 September 2022, 18:40:01
Si, avevo visto la riga.
Ti farò sapere quando avrò corretto l'errore. Nel frattempo puoi andare nella configurazione del modulo e disabilitare la visualizzazione della descrizione del libro.
Title: Re: eRRORE MODULI JOOMLA 4
Post by: federica on 28 September 2022, 19:46:22
Fai una copia del file modules/mod_abook_allinone/helper.php e poi fai queste modifiche
riga 22
da così
use Joomla\CMS\Factory;a cosi:
use Joomla\CMS\Factory;
use Joomla\CMS\HTML\HTMLHelper;

riga 172 ex 171
da così
if ($show_text){
    $row->description=strip_tags($row->description);
    $temp = explode(' ',$row->description);
    $cutted='';
    if(count($temp) > $desc_length){
       for($i=0; $i<$desc_length; $i++) $cutted[$i] = $temp[$i];
          $cutted = implode(' ', $cutted);
          $row->description = $cutted.'...';
       }
       $row->text = $row->description;
    }
}
a così
if ($show_text){
    /*$row->description=strip_tags($row->description);
    $temp = explode(' ',$row->description);
    $cutted='';
    if(count($temp) > $desc_length){
       for($i=0; $i<$desc_length; $i++) $cutted[$i] = $temp[$i];
           $cutted = implode(' ', $cutted);
           $row->description = $cutted.'...';
       }
       $row->text = $row->description;*/
       $row->text = HTMLHelper::_('string.truncate', $row->description, $desc_length, $noSplit = true, $allowHtml = false);
    }
}

Troverai queste modifiche nella prossima versione di Abook
Title: Re: eRRORE MODULI JOOMLA 4
Post by: cansiglio on 30 September 2022, 08:43:50
Fatto_ Ma dà ancora errore alla riga 28 _
 Symfony\Component\ErrorHandler\Error\ ClassNotFoundError
in /home/ujh1brxi/domains/bfdr.it/public_html/modules/mod_abook_allinone/mod_abook_allinone.php (line 28)

    require_once (dirname(__FILE__).'/helper.php');
    $document = JFactory::getDocument();
    //$document->addStyleSheet( 'modules/mod_abook_allinone/assets/css/style.css', 'text/css' );
    $list = modAbookAllinoneHelper::getList($params);
    if ($list!="" && !count($list)) {
            return;
    }
    //$layout = $params->get('show_image', 'with_images');


Title: Re: eRRORE MODULI JOOMLA 4
Post by: federica on 03 October 2022, 09:59:35
Ti passo il file helper.php, sostituiscilo.
Rinomina il file da helper.txt in helper.php
Title: Re: eRRORE MODULI JOOMLA 4
Post by: cansiglio on 04 October 2022, 13:26:20
Fatto_ non segnala errore O ma è sconfigutato
Title: Re: eRRORE MODULI JOOMLA 4
Post by: federica on 04 October 2022, 14:45:05
Il file che ti ho mandato è per mod_abook_allinone 4.0.1
Mi puoi mandare il link al tuo sito?
Title: Re: eRRORE MODULI JOOMLA 4
Post by: cansiglio on 04 October 2022, 16:14:19
ECCOMI... vedi > https://www.bfdr.it/index.php?option=com_content&view=article&id=632&Itemid=915

e vedi > https://www.bfdr.it/index.php?option=com_abook&view=search&Itemid=814
Title: Re: eRRORE MODULI JOOMLA 4
Post by: federica on 04 October 2022, 20:14:53
Il Bootstrap che stai utilizzando è vecchio (versione 4.3.1).
Joomla4 utilizza il bootstrap versione 5
Prova a impostare il bootstrap 5 sul tuo template
Title: Re: eRRORE MODULI JOOMLA 4
Post by: cansiglio on 06 October 2022, 10:58:33
ok
Title: Re: eRRORE MODULI JOOMLA 4
Post by: cansiglio on 08 October 2022, 13:00:55
Problema_ non compare il nome della pagina o della ricerca _ ES: se cerco per categoria STORIA- la pagina con i risultati non ha la parola STORIA -- in cima
Title: Re: eRRORE MODULI JOOMLA 4
Post by: federica on 10 October 2022, 10:19:53
Non ho capito. Il problema con il modulo di Abook è risolto?
Questo problema riguarda il modulo di Abook? Se non riguarda il modulo di Abook per favore apri un altro argomento.