• Resolved wabetainfo

    (@wabetainfo)


    [23-Oct-2023 02:15:08 UTC] PHP Warning: Undefined array key "HTTP_HOST" in /home/user/public_html/wp-content/plugins/wp-optimize/cache/file-based-page-cache-functions.php on line 720
    [23-Oct-2023 02:15:08 UTC] PHP Warning: Trying to access array offset on value of type bool in /home/user/public_html/wp-content/plugins/wp-optimize/cache/file-based-page-cache-functions.php on line 723
    [23-Oct-2023 02:20:22 UTC] PHP Warning: Undefined array key "HTTP_HOST" in /home/user/public_html/wp-content/plugins/wp-optimize/cache/file-based-page-cache-functions.php on line 720
    [23-Oct-2023 02:20:22 UTC] PHP Warning: Trying to access array offset on value of type bool in /home/user/public_html/wp-content/plugins/wp-optimize/cache/file-based-page-cache-functions.php on line 723
    [23-Oct-2023 02:20:22 UTC] PHP Warning: Undefined array key "host" in /home/user/public_html/wp-includes/canonical.php on line 691
    [23-Oct-2023 02:20:22 UTC] PHP Warning: Undefined array key "host" in /home/user/public_html/wp-includes/canonical.php on line 702
    [23-Oct-2023 02:20:22 UTC] PHP Warning: Undefined array key "host" in /home/user/public_html/wp-includes/canonical.php on line 705
    [23-Oct-2023 02:20:22 UTC] PHP Warning: Undefined array key "scheme" in /home/user/public_html/wp-includes/canonical.php on line 726
    [23-Oct-2023 02:20:22 UTC] PHP Warning: Undefined array key "host" in /home/user/public_html/wp-includes/canonical.php on line 691
    [23-Oct-2023 02:20:22 UTC] PHP Warning: Undefined array key "host" in /home/user/public_html/wp-includes/canonical.php on line 702
    [23-Oct-2023 02:20:22 UTC] PHP Warning: Undefined array key "host" in /home/user/public_html/wp-includes/canonical.php on line 705
    [23-Oct-2023 02:20:22 UTC] PHP Warning: Undefined array key "scheme" in /home/user/public_html/wp-includes/canonical.php on line 726
    [23-Oct-2023 02:39:00 UTC] PHP Warning: Undefined array key "HTTP_HOST" in /home/user/public_html/wp-content/plugins/wp-optimize/cache/file-based-page-cache-functions.php on line 720
    [23-Oct-2023 02:39:00 UTC] PHP Warning: Trying to access array offset on value of type bool in /home/user/public_html/wp-content/plugins/wp-optimize/cache/file-based-page-cache-functions.php on line 723
    [23-Oct-2023 02:39:00 UTC] PHP Warning: Undefined array key "HTTP_HOST" in /home/user/public_html/wp-content/plugins/wp-optimize/cache/file-based-page-cache-functions.php on line 720
    [23-Oct-2023 02:39:00 UTC] PHP Warning: Trying to access array offset on value of type bool in /home/user/public_html/wp-content/plugins/wp-optimize/cache/file-based-page-cache-functions.php on line 723
Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Support pbevanudp

    (@pbevanudp)

    Hello,

    Thank you for reporting this. I have passed this on to the development team for further investigation.

    Plugin Support pbevanudp

    (@pbevanudp)

    @wabetainfo Please could you provide your site health information? You can access this from the WordPress dashboard > Tools > Site Health > Info > Copy site info to clipboard. If you can share this information using something like pastebin.com it would be much appreciated.

    Thread Starter wabetainfo

    (@wabetainfo)

    Hi @pbevanudp,

    Pastebin URL: https://pastebin.com/BJU2pagN
    Password: wpo

    Plugin Support vupdraft

    (@vupdraft)

    Hi,

    Thank you for this, your ticket is now with our developer

    Thread Starter wabetainfo

    (@wabetainfo)

    Thanks @vupdraft. Is there any news regarding a fix for this issue? It’s still happening with the latest update.

    Plugin Support Kowsar Hossain

    (@kowsar89)

    Hi,

    It’s currently in the development phase. Please await the next release for the fix. Thanks

    Thread Starter wabetainfo

    (@wabetainfo)

    Hi @kowsar89,

    Unfortunately, it’s been 3 months since the previous update and I wanted to confirm that this issue is not fixed in the latest 3.3.0 release. This also happens with all other plugins disabled and only WP-Optimize enabled. This didn’t happen with a prior version of WP-Optimize.

    Plugin Support Kowsar Hossain

    (@kowsar89)

    Hi @wabetainfo,

    1. After reviewing the error log, it appears that there are warnings originating from WordPress Core as well. For instance, the following log entry originates from a WordPress Core file:
    [23-Oct-2023 02:20:22 UTC] PHP Warning: Undefined array key "scheme" in /home/user/public_html/wp-includes/canonical.php on line 726

    Given that warnings are also emerging from WordPress Core, it’s possible that the root cause of the issue lies elsewhere. In that scenario, even if we address this on our end, it will only resolve the warning associated with WP-Optimize, not those from WordPress Core. It is recommended to investigate this aspect as well.

    1. In our development, we couldn’t reproduce this issue; however, we are implementing additional checks before using HTTP_HOST to suppress warnings like this from our end. Due to some unavoidable reasons, this particular development is delayed. We’ll try to include it in the next update, i.e., version 3.3.1.

    Thanks

    Thread Starter wabetainfo

    (@wabetainfo)

    Thank you @kowsar89 for this information. I appreciate it! I believe this happens when sending requests to websites using WP-Optimize with an empty User Agent, but this is only my assumption. I did several tests by enabling all my plugins except WP-Optimize and this issue did not happen. It only happens when WP-Optimize is enabled (even with all other plugins disabled). It’s true that some errors are from WordPress Core but every time there is an error from the WordPress Core, this appears in the log file:

    PHP Warning: Trying to access array offset on value of type bool in /home/user/public_html/wp-content/plugins/wp-optimize/cache/file-based-page-cache-functions.php on line 723

    Thanks for your dedication to improving your plugin!

    Jane

    (@jstepak)

    We’re also using WP-Optimize an we are seeing these warnings:

    /home/mydomain/wp-includes/canonical.php on lines 714, 725, 728

    We have many other sites with similar versions of WordPress and the same version of the theme that aren’t using WP-Optimize and we don’t see these errors.

    Plugin Support Kowsar Hossain

    (@kowsar89)

    @jstepak Since we’ve made some changes as mentioned previously, kindly wait for the next release and see if it improves the scenario

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Warnings – Undefined array “HTTP Host” and more – Version 3.2.21’ is closed to new replies.