Hi @elkrat ,
Thank you very much for reporting this.
We’ve recorded the warning you mentioned (Undefined array key "HTTP_HOST" in class-freemius.php) and shared the details with our technical team for review, especially considering it’s occurring in a WP-CLI/bash environment where HTTP_HOST would not normally be set.
As you noted, it doesn’t affect the update process itself, but we agree it’s something that should be handled more gracefully in CLI contexts.
Thanks again for flagging this.
Hey @elkrat
Thank you for your paitence.
We were unable to reproduce the issue on our end. To investigate this further, could you please create a support ticket through our website and share the requested information there?
Once we have the necessary details, we’ll be happy to look into the issue and assist you further.
Thread Starter
elkrat
(@elkrat)
This is not really your issue. It’s an issue with Freemius. Line 3949 should be amended to something else, maybe…
'host' => array_key_exists($_SERVER['HTTP_HOST']) ? $_SERVER['HTTP_HOST']: ”,
I’m not going to bother filing an issue on Git:
https://github.com/Freemius/wordpress-sdk/blob/master/includes/class-freemius.php
Thread Starter
elkrat
(@elkrat)