Bonjour,
Je réalise un site Wordpress et tombe sur une anomalie qui me bloque, ne pouvant mettre à jour l'extension "elementor" ni l'uprgader.
Hébergé chez OVH, il ne m'apporte aucun soutien (débrouille toi...)
PHP 8.
Quelqu'un aurait une idée de ce que veux dire le code ci-dessous ?
Merci de vos lumières.
Rod
PHP Ligne 90 to 105 :Fatal error: Uncaught Error: Call to undefined function trailingslashit() in /home/horizof/www/wp-includes/class-wp-textdomain-registry.php:103 Stack trace: #0 /home/horizof/www/wp-includes/l10n.php(784): WP_Textdomain_Registry->set('default', 'fr_FR', '/home/horizof/w…') #1 /home/horizof/www/wp-includes/load.php(1401): load_textdomain('default', '/home/horizof/w…', 'fr_FR') #2 /home/horizof/www/wp-includes/load.php(278): wp_load_translations_early() #3 /home/horizof/www/wp-settings.php(74): wp_maintenance() #4 /home/horizof/www/wp-config.php(92): require_once('/home/horizof/w…') #5 /home/horizof/www/wp-load.php(50): require_once('/home/horizof/w…') #6 /home/horizof/www/wp-admin/admin.php(34): require_once('/home/horizof/w…') #7 /home/horizof/www/wp-admin/index.php(10): require_once('/home/horizof/w…') #8 {main} thrown in /home/horizof/www/wp-includes/class-wp-textdomain-registry.php on line 103
Code php : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 /** * Sets the language directory path for a specific domain and locale. * * Also sets the 'current' property for direct access * to the path for the current (most recent) locale. * * @since 6.1.0 * * @param string $domain Text domain. * @param string $locale Locale. * @param string|false $path Language directory path or false if there is none available. */ public function set( $domain, $locale, $path ) { $this->all[ $domain ][ $locale ] = $path ? trailingslashit( $path ) : false; $this->current[ $domain ] = $this->all[ $domain ][ $locale ]; }
Partager