Skip to:
Content
Pages
Categories
Search
Top
Bottom

Assistance with Various PHP Errors please

  • @pineapplepalm

    Participant

    Please can something be done about this error on a brand new site install:

    [04-Dec-2025 07:20:05 UTC] PHP Warning:  Undefined array key "HTTP_HOST" in /home/ourdomainapp/r877.ourdomain.app/wp-content/plugins/bbpress/includes/common/functions.php on line 1581
    [04-Dec-2025 07:20:05 UTC] PHP Warning:  Undefined array key "HTTP_HOST" in /home/ourdomainapp/r877.ourdomain.app/wp-content/plugins/bbpress/includes/common/functions.php on line 1581
    [04-Dec-2025 07:21:04 UTC] PHP Warning:  Undefined array key "HTTP_HOST" in /home/ourdomainapp/r877.ourdomain.app/wp-content/plugins/bbpress/includes/common/functions.php on line 1581
    [04-Dec-2025 07:21:04 UTC] PHP Warning:  Undefined array key "HTTP_HOST" in /home/ourdomainapp/r877.ourdomain.app/wp-content/plugins/bbpress/includes/common/functions.php on line 1581
    [04-Dec-2025 07:21:04 UTC] PHP Warning:  Undefined array key "HTTP_HOST" in /home/ourdomainapp/r877.ourdomain.app/wp-content/plugins/bbpress/includes/common/functions.php on line 1581
    [04-Dec-2025 07:21:04 UTC] PHP Warning:  Undefined array key "HTTP_HOST" in /home/ourdomainapp/r877.ourdomain.app/wp-content/plugins/bbpress/includes/common/functions.php on line 1581
    [04-Dec-2025 07:22:04 UTC] PHP Warning:  Undefined array key "HTTP_HOST" in /home/ourdomainapp/r877.ourdomain.app/wp-content/plugins/bbpress/includes/common/functions.php on line 1581
    [04-Dec-2025 07:22:04 UTC] PHP Warning:  Undefined array key "HTTP_HOST" in /home/ourdomainapp/r877.ourdomain.app/wp-content/plugins/bbpress/includes/common/functions.php on line 1581
    [04-Dec-2025 07:22:04 UTC] PHP Warning:  Undefined array key "HTTP_HOST" in /home/ourdomainapp/r877.ourdomain.app/wp-content/plugins/bbpress/includes/common/functions.php on line 1581
    [04-Dec-2025 07:22:04 UTC] PHP Warning:  Undefined array key "HTTP_HOST" in /home/ourdomainapp/r877.ourdomain.app/wp-content/plugins/bbpress/includes/common/functions.php on line 1581
    [04-Dec-2025 07:23:04 UTC] PHP Warning:  Undefined array key "HTTP_HOST" in /home/ourdomainapp/r877.ourdomain.app/wp-content/plugins/bbpress/includes/common/functions.php on line 1581
    [04-Dec-2025 07:23:04 UTC] PHP Warning:  Undefined array key "HTTP_HOST" in /home/ourdomainapp/r877.ourdomain.app/wp-content/plugins/bbpress/includes/common/functions.php on line 1581
    [04-Dec-2025 07:23:04 UTC] PHP Warning:  Undefined array key "HTTP_HOST" in /home/ourdomainapp/r877.ourdomain.app/wp-content/plugins/bbpress/includes/common/functions.php on line 1581
    [04-Dec-2025 07:23:04 UTC] PHP Warning:  Undefined array key "HTTP_HOST" in /home/ourdomainapp/r877.ourdomain.app/wp-content/plugins/bbpress/includes/common/functions.php on line 1581

    Would appreciate some feedback please

Viewing 10 replies - 1 through 10 (of 10 total)
  • @robin-w

    Moderator

    so when does this error occur?

    @pineapplepalm

    Participant

    Thank you for responding.

    It’s happening constantly in our server domlogs. It’s a new site install. No active forum yet site isn’t launched yet. Seems to be happening simply from the site existing with bbpress on it.

    I ran bbpress through Plugin Checker (WordPress official) and there are a lot of things that might be pinging this, not sure if the team are addressing performance, repo, general and the security issues raised in it?

    Our environment

    WP Core: 6.9
    PHP: 8.4
    Hosting: VPS
    Theme: Reign (wbcomdesigns)
    max_exec_time: 600

    @robin-w

    Moderator

    ok, thanks.

    the line of code referred to is looking for a host url on logout from bbpress.

    ‘$redirect_to = bbp_get_url_scheme() . $_SERVER[‘HTTP_HOST’] . $_SERVER[‘REQUEST_URI’];’

    $_SERVER is a php thing and the manual says ‘$_SERVER an array containing information such as headers, paths, and script locations. The entries in this array are created by the web server, therefore there is no guarantee that every web server will provide any of these; servers may omit some, or provide others not listed here. However, most of these variables are accounted for in the » CGI/1.1 specification, and are likely to be defined.’

    Are you maybe running on a local host?

    @mike80222

    Participant

    Just my two cents worth. I don’t actually understand this issue, but this crops up on all my sites on AWS Lightsail. I’ve had some success defining those PHP variables in wp-config.php, but it doesn’t always work. Searching on things like “http_host undefined” yields some interesting information which might help. I’m pretty sure that this is not actually specific to bbpress.

    @robin-w

    Moderator

    @mike80222 many thanks for this useful information 🙂 much appreciated

    @pineapplepalm

    Participant

    @mike80222 thanks for sharing… In ur case its a clean install and we see every error is in the bbpress folder specifically:
    …/wp-content/plugins/bbpress/includes/common/functions.php on line 1581


    @robin-w
    I’ll try a bit of what you said for our environment and see if it curtails the issue.

    also Robin; can you share a reply on this please? “I ran bbpress through Plugin Checker (WordPress official) and there are a lot of things that might be pinging this, not sure if the team are addressing performance, repo, general and the security issues raised in it”.

    @robin-w

    Moderator

    on your latter point, I am just a moderator here, and not a bbpress author.

    The authors tend to release updates every few years, rather than more frequently.

    My personal view is that you should consider bbpress to be a ‘mature’ product, ie any releases will be to fix issues rather than add functionality.

    bbpress is written really well, and has loads of hooks. In essence it is a WordPress product, written by the founder of WordPress, and taken into a plugin by sponsorship from WordPress.
    There are no show stopper bugs in it, it may throw a few notices (and these are very few at the moment), but WordPress recommends that you should not show error messages in live sites.

    I currently have my test site running WordPress 6.9 and php 8.2 with no issues.

    The only major issue with bbpress at the moment is that it does not work well with FSE themes.

    However my bbp style pack plugin has fixes for this

    bbp style pack

    as well as block versions of the widgets and a ton of styling and functionality add-ons.

    All plugins are subject to the authors commitment, and bbpress is no different.

    @pineapplepalm

    Participant

    @robin-w thanks for your feedback. I appreciate your perspective and adjustment of expectations. Noted that you’re a moderator and not part of the dev team for it.

    Am using PHP 8.4, WP Core 6.9 on the new install. I’ll monitor the situation when we start pushing volume, and handle it then if its more than just a benign warning.


    @mike80222
    again thanks for your insights.. nice to know when someone else is experiencing the same (albeit annoying) issue.

    Regards to you both.

    @maryam824

    Participant

    Looks like these PHP warnings are coming from bbPress trying to read $_SERVER[‘HTTP_HOST’], which can be undefined in some environments. It might help to define or check that variable first, or test with debugging enabled to narrow down where it’s triggered

    @maryam824

    Participant

    Thank you for responding. It’s happening constantly in our server domlogs. I

Viewing 10 replies - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.
Skip to toolbar