Skip Navigation

[Resolved] Conditional query tags do not work before the query is run.

This support ticket is created 2 years, 10 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

This topic contains 2 replies, has 2 voices.

Last updated by jelle-jacobd 2 years, 10 months ago.

Author
Posts
#2298883

Hi,

My website is running slow and return the error below in debug.log. If I disable Toolset Block, the issue disappears.

[21-Feb-2022 13:46:39 UTC] PHP Notice: 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 /var/www/vhosts/light4u.io/httpdocs/wp-includes/functions.php on line 5768

Website seems to be a lot faster as well, when disabling Toolset Blocks.

Thanks!

Br, Jelle

#2299075

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi there

It's a known conflict with WPForms generating those PHP notices.

It's already fixed in development, and we should have a release fairly soon containing the fix.

#2299091

Hi Nigel,

Thanks a lot, good to know. Looking forward to the fix!

Br, Jelle