Bonjour,
Le plugin dompdf ne fonctionne plus, l'erreur affichée est :
PHP errorCall to undefined method Dompdf\Options::setAllowedRemoteHosts()in
.../data/plugins/dompdf/lib/*PDF.php*:*82*
*78* // Only alow http/https
protocols*79* $options->setAllowedProtocols(['http://',
'https://']);*80**81* // see
https://github.com/dompdf/dompdf/pull/3377*82 $options->setAllowedRemoteHosts([$host1,
$host2]);**83**84* // Allow remote
requests*85* $options->set('isRemoteEnabled', true);*86*
in .../data/plugins/dompdf/lib/*PDF.php*:*109*→
Paheko\Plugin\Dompdf\PDF::DomPDF *(0 arg.)*
*105* }*106**107* static public function stream(Signal $signal):
void*108* {*109 $dompdf =
self::DomPDF();**110**111* $dompdf->loadHtml($signal->getIn('string'));*112**113* //
Render the HTML as PDF
Merci, mais comment faire pour (re)mettre à jour une 1.3.6 déjà installée ?
Le 23/02/2024 à 13:26, BohwaZ/Paheko a écrit :
> Merci du signalement, effectivement je pensais que mon patch de DomPDF
> avait été intégré par le projet mais ce n'est pas encore le cas en
fait.
>
> J'ai mis à jour l'archive de la 1.3.6 en conséquence, merci.
>