Plantage suite à passage sous php 8 Topic is solved

Moderators: Aidan38, sarki

Forum rules
Règles du forum
Locked
websecteur
Joomla! Apprentice
Joomla! Apprentice
Posts: 33
Joined: Thu Mar 31, 2022 2:03 pm

Plantage suite à passage sous php 8

Post by websecteur » Tue Mar 07, 2023 4:52 pm

Bonjour

Après avoir passé la version php de mon site de 7.3 à 8 (8.0 et 8.1), j'ai obtenu l'erreur suivante :
Erreur: 0
implode(): Argument #2 ($array) must be of type ?array, string given

Voici le FPA du site :
[quote="Assistant aux messages du forum Joomla.fr (v1.4.5 (Ganymede)) : 7 Mars 2023]
Description du problème :: plantage du site suite au passage sous php 8
Message d'erreur/log :: Erreur: 0 implode(): Argument #2 ($array) must be of type ?array, string given
Actions prises pour corriger :: Retour sous php 7.3 (non satisfaisant

Joomla! Instance :: Joomla! 3.10.11-Stable (Daraja) 14-August-2022
Joomla! Platforme :: Joomla Platform 13.1.0-Stable (Curiosity) 24-Apr-2013
Joomla! Configuré :: Oui | Lecture uniquement (444) | Propriétaire: --info masquée-- . (uid: 1/gid: 1) | Groupe: --info masquée-- (gid: 1) | Valid For: 3.10
Configuration Options :: Offline: false | SEF: true | SEF Suffix: false | SEF ReWrite: true | .htaccess/web.config: Oui | GZip: true | Cache: false | CacheTime: 15 | CacheHandler: file | CachePlatformPrefix: false | FTP Layer: false | Proxy: false | LiveSite: | Session lifetime: 15 | Session handler: database | Shared sessions: false | SSL: 0 | Error Reporting: maximum | Site Debug: false | Language Debug: false | Default Access: 1 | Unicode Slugs: false | dbConnection Type: mysqli | Support PHP J! 3.10.11: Non | Base de données Credentials Present: Oui |

Serveur Configuration :: OS: Linux | OS Version: 5.15.80-ovh-vps-grsec-zfs-classid | Technologie: x86_64 | Web Server: Apache | Encoding: gzip, deflate, br | Doc Racine: --info masquée-- | Système TMP Autorisé en écriture: Oui | Espace disque libre : 0.00 GiB |

PHP Configuration :: Version: 7.3.33 | PHP API: fpm-fcgi | Session Path Autorisé en écriture: Oui | Display Errors: 0 | Error Reporting: 32759 | Log Errors To: | Last Known Error: | Register Globals: | Magic Quotes: | Safe Mode: | Open Base: | Uploads: 1 | Max. Upload Size: 128M | Max. POST Size: 130M | Max. Input Time: -1 | Max. Execution Time: 165 | Memory Limit: 512M

Database Configuration :: Version: 5.7.41-log (Client:mysqlnd 5.0.12-dev - 20150407 - $Id: 7cc7cc96e675f6d72e5cf0f267f48e167c2abb23 $) | Serveur: --info masquée-- (--info masquée--) | Localhost: Non | Collation: latin1_swedish_ci (Character Set: latin1) | Base de données Taille: 224.03 MiB | #de Tables:  948

Extensions PHP :: Core (7.3.33) | date (7.3.33) | libxml (7.3.33) | openssl (7.3.33) | pcre (7.3.33) | sqlite3 (7.3.33) | zlib (7.3.33) | bcmath (7.3.33) | bz2 (7.3.33) | calendar (7.3.33) | ctype (7.3.33) | curl (7.3.33) | dba (7.3.33) | dom (20031129) | hash (7.3.33) | fileinfo (7.3.33) | filter (7.3.33) | ftp (7.3.33) | gd (7.3.33) | gettext (7.3.33) | gmp (7.3.33) | SPL (7.3.33) | iconv (7.3.33) | session (7.3.33) | standard (7.3.33) | intl (7.3.33) | json (1.7.0) | mbstring (7.3.33) | memcached (3.1.5) | mongodb (1.8.1) | mysqlnd (mysqlnd 5.0.12-dev - 20150407 - $Id: 7cc7cc96e675f6d72e5cf0f267f48e167c2abb23 $) | PDO (7.3.33) | pdo_mysql (7.3.33) | pdo_pgsql (7.3.33) | pdo_sqlite (7.3.33) | pgsql (7.3.33) | Phar (7.3.33) | posix (7.3.33) | pspell (7.3.33) | redis (5.3.2) | Reflection (7.3.33) | imagick (3.5.1) | SimpleXML (7.3.33) | soap (7.3.33) | sockets (7.3.33) | sodium (7.3.33) | imap (7.3.33) | exif (7.3.33) | sysvmsg (7.3.33) | sysvsem (7.3.33) | sysvshm (7.3.33) | tokenizer (7.3.33) | wddx (7.3.33) | xml (7.3.33) | xmlreader (7.3.33) | xmlrpc (7.3.33) | xmlwriter (7.3.33) | xsl (7.3.33) | zip (1.15.4) | mysqli (7.3.33) | cgi-fcgi () | ionCube Loader (10.4.1) | Zend OPcache (7.3.33) | Zend Engine (3.3.33) |
Extensions potentiellement manquantes ::
Fonctions désactivées :: _dyuweyrj4 | _dyuweyrj4r | dl |

Switch User Environnement (Experimental) :: PHP CGI: Non | Server SU: Non | PHP SU: Non | Custom SU (LiteSpeed/Cloud/Grid): Oui
Questions relatives à la propriété potentielle: Non

Répertoires Core :: images/ (755) | components/ (755) | modules/ (755) | plugins/ (755) | language/ (755) | templates/ (755) | cache/ (755) | logs/ (---) | tmp/ (755) | administrator/components/ (755) | administrator/modules/ (755) | administrator/language/ (755) | administrator/templates/ (755) | administrator/logs/ (755) |

Privilèges (Premiers 10) ::

Base de données Statistiques :: Uptime: 37969 | Threads: 2 | Questions: 6499259 | Slow queries: 19 | Opens: 1748610 | Flush tables: 85 | Open tables: 8 | Queries per second avg: 171.172 |

Composants :: SITE ::
Core :: com_mailto (3.0.0) 1 | com_wrapper (3.0.0) 1 |
Élément Tiers:: WF_LINK_SEARCH_TITLE (2.9.8) 1 | WF_FILESYSTEM_JOOMLA_TITLE (2.9.8) 1 | WF_AGGREGATOR_AUDIO_TITLE (2.9.8) 1 | WF_AGGREGATOR_VIMEO_TITLE (2.9.8) 1 | WF_AGGREGATOR_DAILYMOTION_TITL (2.9.8) 1 | WF_AGGREGATOR_[youtube]_TITLE (2.9.8) 1 | WF_AGGREGATOR_VIDEO_TITLE (2.9.8) 1 | WF_LINKS_JOOMLALINKS_TITLE (2.9.8) 1 | WF_POPUPS_JCEMEDIABOX_TITLE (2.9.8) 1 | WF_HELP_TITLE (2.9.8) 1 | WF_FONTSELECT_TITLE (2.9.8) 1 | WF_KITCHENSINK_TITLE (2.9.8) 1 | JCE - Noneditable (1.0.0) 1 | WF_VISUALCHARS_TITLE (2.9.8) 1 | WF_SPELLCHECKER_TITLE (2.9.8) 1 | WF_STYLESELECT_TITLE (2.9.8) 1 | WF_XHTMLXTRAS_TITLE (2.9.8) 1 | WF_FORMATSELECT_TITLE (2.9.8) 1 | WF_FULLSCREEN_TITLE (2.9.8) 1 | WF_CLIPBOARD_TITLE (2.9.8) 1 | WF_REFERENCE_TITLE (2.9.8) 1 | WF_CHARMAP_TITLE (2.9.8) 1 | WF_TABLE_TITLE (2.9.8) 1 | WF_VISUALBLOCKS_TITLE (2.9.8) 1 | WF_LISTS_TITLE (2.9.8) 1 | WF_CLEANUP_TITLE (2.9.8) 1 | WF_WORDCOUNT_TITLE (2.9.8) 1 | WF_ANCHOR_TITLE (2.9.8) 1 | WF_NONBREAKING_TITLE (2.9.8) 1 | WF_SEARCHREPLACE_TITLE (2.9.8) 1 | WF_DIRECTIONALITY_TITLE (2.9.8) 1 | WF_STYLE_TITLE (2.9.8) 1 | WF_LINK_TITLE (2.9.8) 1 | WF_PREVIEW_TITLE (2.9.8) 1 | WF_FONTCOLOR_TITLE (2.9.8) 1 | WF_EMOTIONS_TITLE (2.9.8) 1 | WF_PRINT_TITLE (2.9.8) 1 | WF_IMGMANAGER_TITLE (2.9.8) 1 | WF_BROWSER_TITLE (2.9.8) 1 | WF_FONTSIZESELECT_TITLE (2.9.8) 1 | WF_AUTOSAVE_TITLE (2.9.8) 1 | WF_HR_TITLE (2.9.8) 1 | WF_MEDIA_TITLE (2.9.8) 1 | WF_TEXTCASE_TITLE (2.9.8) 1 | WF_CONTEXTMENU_TITLE (2.9.8) 1 | WF_ARTICLE_TITLE (2.9.8) 1 | WF_SOURCE_TITLE (2.9.8) 1 | WF_ATTRIBUTES_TITLE (2.9.8) 1 | iC rounded - iCagenda Theme (3.7.12) 1 |

Composants :: ADMIN ::
Core :: com_newsfeeds (3.0.0) 1 | com_login (3.0.0) 1 | com_media (3.0.0) 1 | com_content (3.0.0) 1 | com_config (3.0.0) 1 | com_templates (3.0.0) 1 | com_finder (3.0.0) 1 | com_modules (3.0.0) 1 | com_admin (3.0.0) 1 | com_postinstall (3.2.0) 1 | com_search (3.0.0) 1 | com_ajax (3.2.0) 1 | com_actionlogs (3.9.0) 1 | com_cpanel (3.0.0) 1 | com_menus (3.0.0) 1 | com_fields (3.7.0) 1 | com_associations (3.7.0) 1 | com_contenthistory (3.2.0) 1 | com_categories (3.0.0) 1 | com_tags (3.1.0) 1 | com_users (3.0.0) 1 | com_plugins (3.0.0) 1 | com_privacy (3.9.0) 1 | com_banners (3.0.0) 1 | com_checkin (3.0.0) 1 | com_installer (3.0.0) 1 | com_redirect (3.0.0) 1 | com_messages (3.0.0) 1 | com_languages (3.0.0) 1 | com_cache (3.0.0) 1 | com_joomlaupdate (3.10.1) 1 |
Élément Tiers:: COM_JCE (2.9.8) 1 | iCagenda (3.7.17) 1 | GDPR (1.9.9) 1 | Acym (7.4.1) 1 | JMap (4.11) 1 | Akeeba (8.2.7) 1 | com_widgetkit (2.9.13) 1 |

Modules :: SITE ::
Core :: mod_menu (3.0.0) 1 | mod_finder (3.0.0) 1 | mod_banners (3.0.0) 1 | mod_whosonline (3.0.0) 1 | mod_users_latest (3.0.0) 1 | mod_related_items (3.0.0) 1 | mod_articles_latest (3.0.0) 1 | mod_login (3.0.0) 1 | mod_articles_news (3.0.0) 1 | mod_tags_similar (3.1.0) 1 | mod_stats (3.0.0) 1 | mod_custom (3.0.0) 1 | mod_articles_popular (3.0.0) 1 | mod_tags_popular (3.1.0) 1 | mod_search (3.0.0) 1 | mod_articles_category (3.0.0) 1 | mod_footer (3.0.0) 1 | mod_syndicate (3.0.0) 1 | mod_articles_categories (3.0.0) 1 | mod_languages (3.5.0) 1 | mod_breadcrumbs (3.0.0) 1 | mod_articles_archive (3.0.0) 1 | mod_wrapper (3.0.0) 1 | mod_random_image (3.0.0) 1 | mod_feed (3.0.0) 1 |
Élément Tiers:: iCagenda - Calendar (3.7.12) 1 | AcyMailing subscription form (7.4.1) 1 | Widgetkit (2.9.13) 1 | iCagenda - Event List (3.14.8) 1 | JSitemap module (4.11) 1 |

Modules :: ADMIN ::
Core :: mod_sampledata (3.8.0) 1 | mod_title (3.0.0) 1 | mod_login (3.0.0) 1 | mod_feed (3.0.0) 1 | mod_quickicon (3.0.0) 1 | mod_latestactions (3.9.0) 1 | mod_stats_admin (3.0.0) 1 | mod_version (3.0.0) 1 | mod_custom (3.0.0) 1 | mod_multilangstatus (3.0.0) 1 | mod_latest (3.0.0) 1 | mod_toolbar (3.0.0) 1 | mod_submenu (3.0.0) 1 | mod_popular (3.0.0) 1 | mod_logged (3.0.0) 1 | mod_privacy_dashboard (3.9.0) 1 | mod_status (3.0.0) 1 | mod_menu (3.0.0) 1 |
Élément Tiers:: JSitemap Quickicons (4.11) 1 |

Plugins :: SITE ::
Core :: plg_system_logrotation (3.9.0) 1 | plg_system_redirect (3.0.0) 0 | plg_system_stats (3.5.0) 1 | plg_system_languagefilter (3.0.0) 0 | plg_system_logout (3.0.0) 1 | plg_system_remember (3.0.0) 1 | plg_system_updatenotification (3.5.0) 1 | plg_system_log (3.0.0) 1 | plg_system_sef (3.0.0) 1 | PLG_SYSTEM_ACTIONLOGS (3.9.0) 1 | plg_system_sessiongc (3.8.6) 1 | plg_system_fields (3.7.0) 1 | plg_system_highlight (3.0.0) 1 | plg_system_cache (3.0.0) 0 | plg_system_p3p (3.0.0) 0 | plg_system_privacyconsent (3.9.0) 0 | plg_system_languagecode (3.0.0) 0 | plg_system_debug (3.0.0) 1 | plg_finder_contacts (3.0.0) 1 | plg_finder_content (3.0.0) 1 | plg_finder_categories (3.0.0) 1 | plg_finder_newsfeeds (3.0.0) 1 | plg_finder_tags (3.0.0) 1 | plg_privacy_content (3.9.0) 1 | plg_privacy_consents (3.9.0) 1 | plg_privacy_actionlogs (3.9.0) 1 | plg_privacy_message (3.9.0) 1 | plg_privacy_user (3.9.0) 1 | plg_search_categories (3.0.0) 1 | plg_search_content (3.0.0) 1 | plg_search_newsfeeds (3.0.0) 1 | plg_search_tags (3.0.0) 1 | plg_search_contacts (3.0.0) 1 | PLG_ACTIONLOG_JOOMLA (3.9.0) 1 | plg_fields_usergrouplist (3.7.0) 1 | plg_fields_calendar (3.7.0) 1 | plg_fields_user (3.7.0) 1 | plg_fields_checkboxes (3.7.0) 1 | plg_fields_textarea (3.7.0) 1 | plg_fields_color (3.7.0) 1 | plg_fields_radio (3.7.0) 1 | plg_fields_text (3.7.0) 1 | plg_fields_repeatable (3.9.0) 1 | plg_fields_editor (3.7.0) 1 | plg_fields_sql (3.7.0) 1 | plg_fields_media (3.7.0) 1 | plg_fields_list (3.7.0) 1 | plg_fields_imagelist (3.7.0) 1 | plg_fields_integer (3.7.0) 1 | plg_fields_url (3.7.0) 1 | plg_twofactorauth_totp (3.2.0) 0 | plg_twofactorauth_yubikey (3.2.0) 0 | plg_extension_joomla (3.0.0) 1 | plg_authentication_ldap (3.0.0) 0 | plg_authentication_joomla (3.0.0) 1 | plg_authentication_cookie (3.0.0) 1 | plg_authentication_gmail (3.0.0) 0 | plg_installer_webinstaller (2.1.2) 1 | plg_installer_packageinstaller (3.6.0) 1 | PLG_INSTALLER_URLINSTALLER (3.6.0) 1 | PLG_INSTALLER_FOLDERINSTALLER (3.6.0) 1 | plg_editors-xtd_fields (3.7.0) 1 | plg_editors-xtd_readmore (3.0.0) 1 | plg_editors-xtd_pagebreak (3.0.0) 1 | plg_editors-xtd_article (3.0.0) 1 | plg_editors-xtd_module (3.5.0) 1 | plg_editors-xtd_menu (3.7.0) 1 | plg_editors-xtd_image (3.0.0) 1 | plg_quickicon_eos310 (3.10.0) 1 | plg_quickicon_extensionupdate (3.0.0) 1 | plg_quickicon_privacycheck (3.9.0) 1 | plg_quickicon_joomlaupdate (3.0.0) 1 | plg_quickicon_phpversioncheck (3.7.0) 1 | plg_content_emailcloak (3.0.0) 1 | plg_content_pagebreak (3.0.0) 1 | plg_content_vote (3.0.0) 0 | plg_content_loadmodule (3.0.0) 1 | plg_content_fields (3.7.0) 1 | plg_content_joomla (3.0.0) 1 | plg_content_pagenavigation (3.0.0) 1 | plg_content_finder (3.0.0) 0 | plg_content_confirmconsent (3.9.0) 0 | plg_captcha_recaptcha_invisibl (3.8) 1 | plg_captcha_recaptcha (3.4.0) 0 | plg_user_profile (3.0.0) 0 | plg_user_contactcreator (3.0.0) 0 | plg_user_terms (3.9.0) 0 | plg_user_joomla (3.0.0) 1 |
Élément Tiers:: System - GDPR (1.9.9) 1 | AcyMailing - Joomla integratio (7.4.1) 1 | System - Widgetkit K2 (2.9.13) 0 | System - iCagenda :: Autologin (1.4) 1 | plg_system_jce (2.9.8) 1 | plg_system_ic_library (1.4) 1 | System - JSitemap utilities (4.11) 1 | AcyMailing - Override Joomla e (7.4.1) 1 | PLG_SYSTEM_BACKUPONUPDATE (8.2.7) 0 | System - Widgetkit (2.9.13) 1 | System - Widgetkit ZOO (2.9.13) 0 | AcyMailing - JCE integration (7.4.1) 1 | PLG_PRIVACY_ICAGENDA (1.0) 1 | AcyMailing - Search emails in (7.4.1) 1 | PLG_SEARCH_ICAGENDA (2.4) 1 | plg_editors_jce (2.9.8) 1 | plg_editors_tinymce (4.5.12) 1 | plg_editors_codemirror (5.60.0) 1 | PLG_ACTIONLOG_AKEEBABACKUP (8.2.7) 0 | PLG_ACTIONLOG_ICAGENDA (1.2) 1 | plg_fields_mediajce (2.9.8) 1 | plg_extension_jce (2.9.8) 1 | Installer - YOOtheme (1.0.2) 0 | plg_installer_jce (2.9.8) 1 | plg_installer_icagenda (1.0) 1 | Editors-XTD - Widgetkit (2.9.13) 1 | plg_quickicon_jce (2.9.8) 1 | plg_quickicon_akeebabackup (8.2.7) 1 | plg_quickicon_icagendaupdate (1.2) 1 | plg_content_jce (2.9.8) 1 | Content - JSitemap Pingomatic (4.11) 1 | Content - Widgetkit (2.9.13) 1 |

Templates :: SITE :: protostar (1.0) 1 | yoo_monday (1.0.10) 1 | beez3 (3.1.0) 1 |
Templates :: ADMIN :: hathor (3.0.0) 1 | isis (1.0) 1 | [/quote]

Je suis passé en mode debug avec niveau max d'erreurs mais je n'ai pas obtenu plus d'infos.

Que me suggérez-vous ?
Cordialement
Last edited by imanickam on Tue Mar 07, 2023 5:00 pm, edited 1 time in total.
Reason: Disabled Smilies

User avatar
pmleconte
Joomla! Guru
Joomla! Guru
Posts: 591
Joined: Fri Mar 17, 2017 12:55 pm
Location: France

Re: Plantage suite à passage sous php 8

Post by pmleconte » Tue Mar 07, 2023 5:11 pm

Bonjour,

Avant de passer en PHP 8, essayez de passer en PHP 7.4 qui devrait vous donner des "notices" sur les futures erreurs PHP 8 si vous activez le mode debug et que vous mettez Rapport d'erreurs sur Maximum.

Pascal

PS: Joomla 3.10 ne fonctionne pas en PHP 8.1.
If anything can go wrong, it will.
https://www.conseilgouz.com/en

User avatar
pmleconte
Joomla! Guru
Joomla! Guru
Posts: 591
Joined: Fri Mar 17, 2017 12:55 pm
Location: France

Re: Plantage suite à passage sous php 8

Post by pmleconte » Tue Mar 07, 2023 5:13 pm

Pour info, JCE ne semble pas à jour : voir https://www.joomlacontenteditor.net/dow ... ditor/core

Pascal
If anything can go wrong, it will.
https://www.conseilgouz.com/en

User avatar
sarki
Joomla! Guru
Joomla! Guru
Posts: 870
Joined: Mon Sep 19, 2005 2:34 pm
Location: Suisse
Contact:

Re: Plantage suite à passage sous php 8

Post by sarki » Tue Mar 07, 2023 6:10 pm

Hello,
De nombreuses extensions ne sont en effet pas à jour, il est tout aussi important de les mettre à jour que de changer de version PHP...
J'imagine que plusieurs extensions ne sont pas compatibles PHP 8, je vois en tout cas le Widgetkit et le template, vous devez vérifier pour chaque extension auprès des auteurs
French Joomla Translation & Support : www.joomla.fr
French JCE Translation & Support : www.sarki.ch/jce

websecteur
Joomla! Apprentice
Joomla! Apprentice
Posts: 33
Joined: Thu Mar 31, 2022 2:03 pm

Re: Plantage suite à passage sous php 8

Post by websecteur » Tue Mar 07, 2023 7:32 pm

Merci pour vos réponses rapides !

Je viens de passer sous php 7.4 et j'obtiens l'erreur suivante sur le site :
Deprecated: implode(): Passing glue string after array is deprecated. Swap the parameters in /home/secteurctn/www/templates/yoo_monday/layouts/theme.config.php on line 127

Et la ligne en question est la suivante :
$config->set('body_classes', trim(implode($body_classes, ' ')));

Que faudrait-il que je fasse ?
Cordialement
Luc

User avatar
sarki
Joomla! Guru
Joomla! Guru
Posts: 870
Joined: Mon Sep 19, 2005 2:34 pm
Location: Suisse
Contact:

Re: Plantage suite à passage sous php 8

Post by sarki » Tue Mar 07, 2023 10:54 pm

Changer de template, c'est la seule chose à faire pour faire évoluer le site et suivre les versions PHP.
Et il faut également mettre à jour toutes les extensions qui ont suivi l'évolution et désinstaller/remplacer celles qui ne l'ont pas suivi...
French Joomla Translation & Support : www.joomla.fr
French JCE Translation & Support : www.sarki.ch/jce

websecteur
Joomla! Apprentice
Joomla! Apprentice
Posts: 33
Joined: Thu Mar 31, 2022 2:03 pm

Re: Plantage suite à passage sous php 8

Post by websecteur » Wed Mar 08, 2023 6:57 am

Je craignais ce diagnostic...

Merci pour votre aide : je vais m'atteler à trouver un autre template compatible php 8 et Joomla 4 ou en construire un avec Template Creator.

Nous pouvons clore ce sujet.

User avatar
infograf768
Joomla! Master
Joomla! Master
Posts: 19133
Joined: Fri Aug 12, 2005 3:47 pm
Location: **Translation Matters**

Re: Plantage suite à passage sous php 8

Post by infograf768 » Wed Mar 08, 2023 7:04 am

En attendant, vous pouvez essayer de modifier la ligne

Code: Select all

$config->set('body_classes', trim(implode($body_classes, ' ')));
en

Code: Select all

$config->set('body_classes', trim(implode(' ', $body_classes)));
Jean-Marie Simonet / infograf
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group


Locked

Return to “French Forum”