Warning: Undefined array key “SERVER_NAME”
-
Hi, when I updated Yoast seo to version 19.3 I start to get warnings
ErrorException /wp-content/plugins/wordpress-seo/src/helpers/url-helper.php in Yoast\WP\SEO\Helpers\Url_Helper::recreate_current_url Warning: Undefined array key "SERVER_NAME"
line 245
from the stack trace I was able to understand that the problem is generated when wordpress launches cron.
Before updating the yoast plugin this never happened to me.
To avoid these warnings, I delayed doing so
$current_url .= (isset($_SERVER['SERVER_NAME']) ? $_SERVER['SERVER_NAME'] : 'www.forap.it') . $suffix;
I would like to know why yoast has this error now and if it affects seo, and when this bug will be fixed
Thank you.
Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
- The topic ‘Warning: Undefined array key “SERVER_NAME”’ is closed to new replies.