From a5bcdd322f7d9325ea8b7b162b615bdcc348e635 Mon Sep 17 00:00:00 2001 From: Gregory Colpart Date: Fri, 5 Apr 2024 12:48:56 +0200 Subject: [PATCH] astuce --- HowtoWordpress.md | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/HowtoWordpress.md b/HowtoWordpress.md index 2bcaf748..b41327cd 100644 --- a/HowtoWordpress.md +++ b/HowtoWordpress.md @@ -301,8 +301,15 @@ il faut indiquer à Wordpress qu'on est bien en HTTPS, cela peut se faire via la SetEnv HTTPS on ~~~ - - +### PHP Fatal error: Uncaught Error: Call to undefined function is_admin() + +Si vous obtenez `Call to undefined function is_admin()` par exemple avec WP-CLI : + +~~~ +PHP Fatal error: Uncaught Error: Call to undefined function is_admin() in phar:///home/stage3eme/wp-cli.phar/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1334) : eval()'d code:89 +~~~ + +c'est que vous avez probablement une vieille fonction `is_admin()` qui traîne dans `wp-config.php` ou autre.