• Resolved elkrat

    (@elkrat)


    CentOS 9, php 8.3, nginx, using WP-CLI inside a bash script to update a lot of sites.

    Warning is Undefined array key “HTTP_HOST” in /usr/share/nginx/example/wp-content/plugins/file-manager-advanced/vendor/freemius/includes/class-freemius.php on line 3949

    Not a big deal. The update proceeds and everything is fine. But just so you know. Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support M Aqib Khan

    (@aqibkhan9)

    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.

    Plugin Support M Aqib Khan

    (@aqibkhan9)

    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)

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

You must be logged in to reply to this topic.