• Resolved didier59450

    (@didier59450)


    Hi,

    Every day at same time, I can read PHP fatal error, concerned with 2 plugins:

    BBPress for a forum with very few articles and comments,

    WP-Optimize, for page cache and image compression.

    No idea where it comes from. No cron at that time….

    Every thing is up to date: WP6.9.1 PHP 8.3.30, all plugins with automatic update.

    Thank in advance for helping

    Didier

    [26-Feb-2026 15:46:52 UTC] PHP Notice: Function is_search was called incorrectly. Conditional query tags do not work before the query is run. Before then, they always return false. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.) in /xxx/wordpress/wp-includes/functions.php on line 6131
    [26-Feb-2026 15:46:52 UTC] PHP Fatal error: Uncaught Error: Call to a member function get() on null in /xxx/wordpress/wp-includes/query.php:29
    Stack trace:

    0 /xxx/wordpress/wp-content/plugins/bbpress/includes/common/template.php(2204): get_query_var()

    1 /xxx/wordpress/wp-content/plugins/bbpress/includes/common/template.php(2193): bbp_get_query_name()

    2 /xxx/wordpress/wp-content/plugins/bbpress/includes/common/template.php(891): bbp_is_query_name()

    3 /xxx/wordpress/wp-content/plugins/wp-optimize/cache/file-based-page-cache-functions.php(376): bbp_is_search()

    4 /xxx/wordpress/wp-content/plugins/wp-optimize/cache/file-based-page-cache-functions.php(1003): wpo_restricted_cache_page_type()

    5 /xxx/wordpress/wp-content/plugins/wp-optimize/cache/class-wpo-page-cache.php(206): wpo_can_serve_from_cache()

    6 /xxx/wordpress/wp-content/plugins/wp-optimize/includes/class-wpo-page-optimizer.php(54): WPO_Page_Cache->should_cache_page()

    7 /xxx/wordpress/wp-content/plugins/wp-optimize/includes/class-wpo-page-optimizer.php(39): WPO_Page_Optimizer->maybe_cache_page()

    8 [internal function]: WPO_Page_Optimizer->optimize()

    9 /xxx/wordpress/wp-includes/functions.php(5481): ob_end_flush()

    10 /xxx/wordpress/wp-includes/class-wp-hook.php(341): wp_ob_end_flush_all()

    11 /xxx/wordpress/wp-includes/class-wp-hook.php(365): WP_Hook->apply_filters()

    12 /xxx/wordpress/wp-includes/plugin.php(522): WP_Hook->do_action()

    13 /xxx/wordpress/wp-includes/load.php(1308): do_action()

    14 [internal function]: shutdown_action_hook()

    15 {main}

    thrown in /xxx/wordpress/wp-includes/query.php on line 29

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Support jbgupdraft

    (@jbgupdraft)

    Hi,

    Thanks for contacting us! The PHP Fatal error appears to be coming from the bbpress plugin in the function called get_query_var() so I would recommend reaching out to them and letting them know if you haven’t yet.

    The PHP Notice does appear to be coming from WP-Optimize, however looking at the code we have some extra fallbacks in place to determine if we’re on the search page in case the is_search() function doesn’t work properly.

    I’ll still bring this up with our development team to see if we need to make any adjustments to this in a future release.

    Thank you!

    Thread Starter didier59450

    (@didier59450)

    Now BBPress and Extendify are disactivated and this is the only php-errors taking place every day at same time:

    [01-Mar-2026 15:46:53 UTC] PHP Notice: Function is_search was called incorrectly. Conditional query tags do not work before the query is run. Before then, they always return false. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.) in /xxx/wordpress/wp-includes/functions.php on line 6131
    [01-Mar-2026 15:46:53 UTC] PHP Notice: Function is_404 was called incorrectly. Conditional query tags do not work before the query is run. Before then, they always return false. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.) in /xxx/wordpress/wp-includes/functions.php on line 6131
    [01-Mar-2026 15:46:53 UTC] PHP Notice: Function is_feed was called incorrectly. Conditional query tags do not work before the query is run. Before then, they always return false. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.) in /xxx/wordpress/wp-includes/functions.php on line 6131

    Plugin Support jbgupdraft

    (@jbgupdraft)

    Hi,

    Thanks for the update! Thankfully those are PHP notices and not fatal errors like we had seen when bbpress was enabled, but I will report this to development to see if we can improve this functionality in a future update!

    Plugin Support jbgupdraft

    (@jbgupdraft)

    Hi,

    When the PHP Notices show up again in the log would it be possible to send us the full stack trace? I haven’t been able to reproduce the issue on my test sites so having the full trace from your site will help in our investigation.

    Thank you!

    Thread Starter didier59450

    (@didier59450)

    Hi,

    This is all log from [01-Mar-2026].

    No more PHP warning, as BBPress is disactivated and Extendify disinstalled.

    Concerning Ionos-essentials I’ve seen an update, which can explain the fact there is no more warning.

    01-Mar-2026 09:45:55 UTC] PHP Warning:  Undefined array key "edit-page" in /xxx/wordpress/wp-content/plugins/ionos-essentials/ionos-essentials/inc/dashboard/blocks/next-best-actions/class-nba.php on line 110

    [01-Mar-2026 09:59:44 UTC] PHP Warning:  Undefined array key "edit-page" in /xxx/wordpress/wp-content/plugins/ionos-essentials/ionos-essentials/inc/dashboard/blocks/next-best-actions/class-nba.php on line 110

    [01-Mar-2026 10:01:20 UTC] PHP Warning:  Undefined array key "edit-page" in /xxx/wordpress/wp-content/plugins/ionos-essentials/ionos-essentials/inc/dashboard/blocks/next-best-actions/class-nba.php on line 110

    [01-Mar-2026 15:46:53 UTC] PHP Notice:  Function is_search was called <strong>incorrectly</strong>. Conditional query tags do not work before the query is run. Before then, they always return false. Please see <a href="https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/">Debugging in WordPress</a> for more information. (This message was added in version 3.1.0.) in /xxx/wordpress/wp-includes/functions.php on line 6131

    [01-Mar-2026 15:46:53 UTC] PHP Notice:  Function is_404 was called <strong>incorrectly</strong>. Conditional query tags do not work before the query is run. Before then, they always return false. Please see <a href="https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/">Debugging in WordPress</a> for more information. (This message was added in version 3.1.0.) in /xxx/wordpress/wp-includes/functions.php on line 6131

    [01-Mar-2026 15:46:53 UTC] PHP Notice:  Function is_feed was called <strong>incorrectly</strong>. Conditional query tags do not work before the query is run. Before then, they always return false. Please see <a href="https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/">Debugging in WordPress</a> for more information. (This message was added in version 3.1.0.) in /xxx/wordpress/wp-includes/functions.php on line 6131

    [01-Mar-2026 17:40:26 UTC] PHP Warning:  Undefined array key "edit-page" in /xxx/wordpress/wp-content/plugins/ionos-essentials/ionos-essentials/inc/dashboard/blocks/next-best-actions/class-nba.php on line 110

    [01-Mar-2026 17:50:23 UTC] PHP Warning:  Undefined array key "edit-page" in /xxx/wordpress/wp-content/plugins/ionos-essentials/ionos-essentials/inc/dashboard/blocks/next-best-actions/class-nba.php on line 110

    [01-Mar-2026 18:04:45 UTC] PHP Warning:  Undefined array key "edit-page" in /xxx/wordpress/wp-content/plugins/ionos-essentials/ionos-essentials/inc/dashboard/blocks/next-best-actions/class-nba.php on line 110

    [02-Mar-2026 15:46:52 UTC] PHP Notice:  Function is_search was called <strong>incorrectly</strong>. Conditional query tags do not work before the query is run. Before then, they always return false. Please see <a href="https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/">Debugging in WordPress</a> for more information. (This message was added in version 3.1.0.) in /xxx/wordpress/wp-includes/functions.php on line 6131

    [02-Mar-2026 15:46:52 UTC] PHP Notice:  Function is_404 was called <strong>incorrectly</strong>. Conditional query tags do not work before the query is run. Before then, they always return false. Please see <a href="https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/">Debugging in WordPress</a> for more information. (This message was added in version 3.1.0.) in /xxx/wordpress/wp-includes/functions.php on line 6131

    [02-Mar-2026 15:46:52 UTC] PHP Notice:  Function is_feed was called <strong>incorrectly</strong>. Conditional query tags do not work before the query is run. Before then, they always return false. Please see <a href="https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/">Debugging in WordPress</a> for more information. (This message was added in version 3.1.0.) in /xxx/wordpress/wp-includes/functions.php on line 6131

    [03-Mar-2026 14:41:33 UTC] PHP Notice:  Function _load_textdomain_just_in_time was called <strong>incorrectly</strong>. Translation loading for the <code>better-wp-security</code> domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the <code>init</code> action or later. Please see <a href="https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/">Debugging in WordPress</a> for more information. (This message was added in version 6.7.0.) in /xxx/wordpress/wp-includes/functions.php on line 6131

    [03-Mar-2026 14:41:42 UTC] PHP Notice:  Function _load_textdomain_just_in_time was called <strong>incorrectly</strong>. Translation loading for the <code>better-wp-security</code> domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the <code>init</code> action or later. Please see <a href="https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/">Debugging in WordPress</a> for more information. (This message was added in version 6.7.0.) in /xxx/wordpress/wp-includes/functions.php on line 6131

    [03-Mar-2026 14:41:43 UTC] PHP Notice:  Function _load_textdomain_just_in_time was called <strong>incorrectly</strong>. Translation loading for the <code>better-wp-security</code> domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the <code>init</code> action or later. Please see <a href="https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/">Debugging in WordPress</a> for more information. (This message was added in version 6.7.0.) in /xxx/wordpress/wp-includes/functions.php on line 6131

    [03-Mar-2026 14:41:49 UTC] PHP Notice:  Function _load_textdomain_just_in_time was called <strong>incorrectly</strong>. Translation loading for the <code>better-wp-security</code> domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the <code>init</code> action or later. Please see <a href="https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/">Debugging in WordPress</a> for more information. (This message was added in version 6.7.0.) in /xxx/wordpress/wp-includes/functions.php on line 6131

    [03-Mar-2026 14:41:49 UTC] PHP Notice:  Function _load_textdomain_just_in_time was called <strong>incorrectly</strong>. Translation loading for the <code>better-wp-security</code> domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the <code>init</code> action or later. Please see <a href="https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/">Debugging in WordPress</a> for more information. (This message was added in version 6.7.0.) in /xxx/wordpress/wp-includes/functions.php on line 6131

    [03-Mar-2026 14:41:58 UTC] PHP Notice:  Function _load_textdomain_just_in_time was called <strong>incorrectly</strong>. Translation loading for the <code>better-wp-security</code> domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the <code>init</code> action or later. Please see <a href="https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/">Debugging in WordPress</a> for more information. (This message was added in version 6.7.0.) in /xxx/wordpress/wp-includes/functions.php on line 6131

    [03-Mar-2026 14:41:59 UTC] PHP Notice:  Function _load_textdomain_just_in_time was called <strong>incorrectly</strong>. Translation loading for the <code>better-wp-security</code> domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the <code>init</code> action or later. Please see <a href="https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/">Debugging in WordPress</a> for more information. (This message was added in version 6.7.0.) in /xxx/wordpress/wp-includes/functions.php on line 6131

    [03-Mar-2026 14:42:07 UTC] PHP Notice:  Function _load_textdomain_just_in_time was called <strong>incorrectly</strong>. Translation loading for the <code>better-wp-security</code> domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the <code>init</code> action or later. Please see <a href="https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/">Debugging in WordPress</a> for more information. (This message was added in version 6.7.0.) in /xxx/wordpress/wp-includes/functions.php on line 6131

    [03-Mar-2026 14:42:07 UTC] PHP Notice:  Function _load_textdomain_just_in_time was called <strong>incorrectly</strong>. Translation loading for the <code>better-wp-security</code> domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the <code>init</code> action or later. Please see <a href="https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/">Debugging in WordPress</a> for more information. (This message was added in version 6.7.0.) in /xxx/wordpress/wp-includes/functions.php on line 6131

    [03-Mar-2026 14:42:10 UTC] PHP Notice:  Function _load_textdomain_just_in_time was called <strong>incorrectly</strong>. Translation loading for the <code>better-wp-security</code> domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the <code>init</code> action or later. Please see <a href="https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/">Debugging in WordPress</a> for more information. (This message was added in version 6.7.0.) in /xxx/wordpress/wp-includes/functions.php on line 6131

    [03-Mar-2026 14:42:10 UTC] PHP Notice:  Function _load_textdomain_just_in_time was called <strong>incorrectly</strong>. Translation loading for the <code>better-wp-security</code> domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the <code>init</code> action or later. Please see <a href="https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/">Debugging in WordPress</a> for more information. (This message was added in version 6.7.0.) in /xxx/wordpress/wp-includes/functions.php on line 6131

    [03-Mar-2026 15:46:53 UTC] PHP Notice:  Function is_search was called <strong>incorrectly</strong>. Conditional query tags do not work before the query is run. Before then, they always return false. Please see <a href="https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/">Debugging in WordPress</a> for more information. (This message was added in version 3.1.0.) in /xxx/wordpress/wp-includes/functions.php on line 6131

    [03-Mar-2026 15:46:53 UTC] PHP Notice:  Function is_404 was called <strong>incorrectly</strong>. Conditional query tags do not work before the query is run. Before then, they always return false. Please see <a href="https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/">Debugging in WordPress</a> for more information. (This message was added in version 3.1.0.) in /xxx/wordpress/wp-includes/functions.php on line 6131

    [03-Mar-2026 15:46:53 UTC] PHP Notice:  Function is_feed was called <strong>incorrectly</strong>. Conditional query tags do not work before the query is run. Before then, they always return false. Please see <a href="https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/">Debugging in WordPress</a> for more information. (This message was added in version 3.1.0.) in /xxx/wordpress/wp-includes/functions.php on line 6131
    Plugin Support jbgupdraft

    (@jbgupdraft)

    Hi,

    Thanks so much for providing the log. Unfortunately since it’s a PHP Notice it’s not showing the full stack trace like we had seen with the PHP Fatal Error. In order to validate that it’s WP-Optimize causing the problem, would it be possible to temporarily deactivate our plugin and see if the notices appear at the expected times?

    Thank you!

    Plugin Support vupdraft

    (@vupdraft)

    We have not heard from you in a while so I am closing the ticket.

    Please start a new one if you need further assistance.

    Thread Starter didier59450

    (@didier59450)

    Hi,

    Fatal errors seem to be linked with BBPress plugin, no more fatal error since it’s disactivated.

    Just some notice or deprecated…

    I will try again with this forum plugin or another….

    Many thanks for answer.

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

You must be logged in to reply to this topic.