PHP throws notices for $_SERVER variables in API connectivity test when running without HTTP context (e.g. CLI, Cronjob). I think the best solution, in this case, would be to turn Freemius off if the user is not yet opted-in.
References:
https://wordpress.org/support/topic/errors-in-the-freemius-class-when-running-in-wordpress-in-cli
PHP throws notices for $_SERVER variables in API connectivity test when running without HTTP context (e.g. CLI, Cronjob). I think the best solution, in this case, would be to turn Freemius off if the user is not yet opted-in.
References:
https://wordpress.org/support/topic/errors-in-the-freemius-class-when-running-in-wordpress-in-cli