pragmaMx Support Forum

pragmaMx => Installation & Update => Thema gestartet von: andreph68 am 03 August 2023, 09:39:42

Titel: php 8.1 Fatal error Uncaught exception
Beitrag von: andreph68 am 03 August 2023, 09:39:42
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 !!!




Titel: Antw:php 8.1 Fatal error Uncaught exception
Beitrag von: Olaf / TerraProject am 06 August 2023, 10:06:26
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
Titel: Antw:php 8.1 Fatal error Uncaught exception
Beitrag von: andreph68 am 07 August 2023, 08:26:46
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é
Titel: Antw:php 8.1 Fatal error Uncaught exception
Beitrag von: andreph68 am 07 August 2023, 09:00:11
site sous php7.4

(https://forum.pragmamx.org/proxy.php?request=http%3A%2F%2Fwww.pharma68.fr%2Fdoc%2Fimages%2Fpharma68.fr.jpg&hash=3e9a427829c09db67186bade825fc0ba3ed986fd)

site sous php 8.1

(https://forum.pragmamx.org/proxy.php?request=http%3A%2F%2Fwww.pharma68.fr%2Fdoc%2Fimages%2Fpharma68.com1.jpg&hash=a6da16bf12787adf337aa09ab4c41d06e8e30022)

après action purge du cache :

(https://forum.pragmamx.org/proxy.php?request=http%3A%2F%2Fwww.pharma68.fr%2Fdoc%2Fimages%2Fpharma68.com2.jpg&hash=2c2bb49eb25210a8bf59cdb6591427a927186233)

andré
Titel: Antw:php 8.1 Fatal error Uncaught exception
Beitrag von: andreph68 am 07 August 2023, 10:46:36
admin.php?op=hooks :

(https://forum.pragmamx.org/proxy.php?request=http%3A%2F%2Fwww.pharma68.fr%2Fdoc%2Fimages%2Fpharma68.com3.jpg&hash=abe5703459f19d57984faf5cd125f1bdc2ca84cf)
Titel: Antw:php 8.1 Fatal error Uncaught exception
Beitrag von: Olaf / TerraProject am 07 August 2023, 15:04:07
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
Titel: Antw:php 8.1 Fatal error Uncaught exception
Beitrag von: andreph68 am 07 August 2023, 17:14:35
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é
Titel: Antw:php 8.1 Fatal error Uncaught exception
Beitrag von: Olaf / TerraProject am 07 August 2023, 17:54:50
ok,
please use the english language for the next question/topic. Thanks, Merci  :bye: