php 8.1 Fatal error Uncaught exception

Begonnen von andreph68, 03 August 2023, 09:39:42

⏪ vorheriges - nächstes ⏩

0 Mitglieder und 1 Gast betrachten dieses Thema.

andreph68

Bonjour

voilà le message que je reçois sur la page d'accueil :

Une erreur est survenue dans le script de cette page.
Fatal error: Uncaught exception:
in_array(): Argument #2 ($haystack) must be of type array, bool given (code: 0)
in includes/classes/Language.php on line 300


andré

Version du CMS: pragmaMx 2.8.4.652 (2022-11-17)
Version PHP: 8.1.21   (PHP-Info)
Version MySQL: 5.7.41-log
Version du serveur: Apache
Version du jQuery: 1.11.1   
Version du jQueryUI: 1.10.2

je dois repasser par php 7.4 pour retrouver mon site !!!





Olaf

sorry for delay

please edit the Line 289 (!!) in  includes/classes/Language.php

original;:
$checked = $config->deactivated;edit in :
$checked = (is_array($config->deactivated))?$config->deactivated:array();

please feedback

thanks
g

Olaf

Kein Support über PN, Mail etc.!
Bitte die Fragen im Forum stellen, nur so helfen die Antworten auch den anderen Usern.
Bitte auch die Boardsuche nicht vergessen, oft ist genau dein Problem schon an anderer Stelle gelöst worden!

andreph68

halo Olaf :
(j'ai 2 sites qui vont sous le même hébergement pharma68.fr et pharma68.com chez IONOS)

sous php 7.4 : (pharma68.fr)
(cache du thème désactivé  et erreurs et avertissements à l'écran pour les admin)
pragmaMx notice:
undefined property 'deactivated' in includes/classes/Language.php line 289
in includes/classes/Config.php on line 191

pragmaMx notice:
undefined property 'deactivated' in includes/classes/Hook.php line 182
in includes/classes/Config.php on line 191

PHP Run-time warning:
in_array() expects parameter 2 to be array, bool given
in includes/classes/Hook.php on line 194

sous php 8.1 (pharma68.com)
après action purge du cache :(page blanche avec)
pragmaMx notice:
undefined property 'deactivated' in includes/classes/Language.php line 289
in includes/classes/Config.php on line 191

pragmaMx notice:
undefined property 'deactivated' in includes/classes/Hook.php line 182
in includes/classes/Config.php on line 191

Fatal error: Uncaught exception:
in_array(): Argument #2 ($haystack) must be of type array, bool given (code: 0)
in includes/classes/Hook.php on line 194

bonne lecture
André

andreph68

site sous php7.4



site sous php 8.1



après action purge du cache :



andré

andreph68


Olaf

for new installations, the HOOK settings should be saved once. Then the database is initialized and shows no more errors.
Please save the settings under Admin-System-Hooks-Save
g

Olaf

Kein Support über PN, Mail etc.!
Bitte die Fragen im Forum stellen, nur so helfen die Antworten auch den anderen Usern.
Bitte auch die Boardsuche nicht vergessen, oft ist genau dein Problem schon an anderer Stelle gelöst worden!

andreph68

Zitat von: Olaf am 07 August 2023, 15:04:07for new installations, the HOOK settings should be saved once. Then the database is initialized and shows no more errors.
Please save the settings under Admin-System-Hooks-Save
:thumbup:  :thumbup:  :thumbup:
tout est OK sous PHP 8.1 ( pour le moment )
remerciemnts
andré

Olaf

ok,
please use the english language for the next question/topic. Thanks, Merci  :bye:
g

Olaf

Kein Support über PN, Mail etc.!
Bitte die Fragen im Forum stellen, nur so helfen die Antworten auch den anderen Usern.
Bitte auch die Boardsuche nicht vergessen, oft ist genau dein Problem schon an anderer Stelle gelöst worden!