-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Undefined array key in class-fremius.php:4232 #731
Comments
Error has moved, but is still present.
|
My customers have also reported this issue. They encountered the error while running a cron job. The PHP CLI does not have access to $_SERVER['HTTP_HOST']. |
We solved this problem, by adding the --url flag to our wp cli command. Example: the --url parameter calls the WP_CLI::set_url() function and sets $_SERVER['HTTP-HOST'] or skip the plugin via wp_cli --skip-plugins parameter Maybe it helps |
Reported by @MacGyer in TablePress/TablePress#199:
When CLI scripts run, an error is thrown:
PHP Warning: Undefined array key "HTTP_HOST" in /path/to/tablepress/libraries/freemius/includes/class-freemius.php on line 4232
https://github.com/Freemius/wordpress-sdk/blob/master/includes/class-freemius.php#L4232
The text was updated successfully, but these errors were encountered: