• 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)
  • Hey @satollo,
    Thank you for reaching out about this to us.

    We are aware of the notice, a bug report was created before and our development team is currently creating a fix for this – which will be included in our upcoming 19.4 release.

    • This reply was modified 3 years, 10 months ago by Jan Dembowski.

    We are going ahead and marking this issue as resolved due to inactivity. If you require any further assistance please create a new issue.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘PHP Warning on wp-cron.php call’ is closed to new replies.