WIP: PHP Warning in query loop No results Template

Browser: Chrome 134.0.6998.178
OS: Windows

Hi bricks team,

I created a loop query and connected it to a filter-search element. In this query loop, No results is set as a template. After each search that does not yield any results, a PHP Warning is recorded in wp debug, as we see below.

[02-Apr-2025 22:30:13 UTC] PHP Warning:  Undefined array key "global_classes_2164" in /.../public_html/wp-content/themes/bricks/includes/query.php on line 2222

When I change No results from template to text, no other error appears.

Hi @HOSEIN.

Thank you so much for this. I was able to reproduce the issue, and I’ll create a task for this internally.

Thanks!
Matej

1 Like

Hello @Matej - how did you progress with this? Noticed the issue was created last month - we’ve had the release of 1.12.4 now, but the issue still persists. This is causing massive problems with several of my clients - any ETA for a fix or workarounds? Seems to only have been introduced recently (1.12), as this was working on previous versions.

Hi @Andersoft,

as far as I see, it should be solved in the next version. Like always, we will update this topic once we release a fix.

However, I’m wondering what are those massive problems that it’s causing you. Just so that we can see if we can replicate them - in case that this is not only a Warning inside debug.log.

Thanks,
Matej