Skip to content

Minor PHP warning in CLI context #855

@Elkrat

Description

@Elkrat

🐞 bug report

Behavior:

  • What is the issue? (*)
    Undefined Array Key "HTTP_HOST" in class-freemius.php on 3949
    In WP-CLI context, the superglobal $_SERVER does not have the HTTP_HOST key populated.
    This warning does not impede the update process.

Versions: (*)

  • Freemius SDK Version: 2.13.0
  • WordPress Version: 6.9.4
  • PHP Version: 8.3

Plugin / Theme: (*)

  • Name: File Manager Advanced
  • Slug: file-manager-advanced
  • Freemius ID: ???

Additional Information:

  • Browser Type: (Putty Shell)
  • Browser Version: (Putty Shell)
  • OS: (WIN)
  • Stack Traces:

Note: (*) indicates required information. Without this information, your issue may be auto-closed.

You can find your Freemius SDK version at /freemius/start.php

You can find your Freemius product ID in the Freemius dashboard: SETTINGS -> INTEGRATION.

Do not modify the titles or questions. Simply add your responses to the ends of the questions.
Add more lines if needed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions