PHP Warning on wp-cron.php call
-
Hi, when some custom made scripts are invoked with php via command line, and those scripts load WP, WordPress SEO is triggering this warning:
PHP Warning: Undefined array key “SERVER_NAME” in /…/wp-content/plugins/wordpress-seo/src/helpers/url-helper.php on line 245
since that constant is not defined for a direct php execution. I don’t know if it’s important for you to check that constant and take a different action if not present, just reporting. 🙂
Have a nice day, Stefano.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘PHP Warning on wp-cron.php call’ is closed to new replies.