WAIT: PHP fatal error

I got a fatal error. Asked GPT about it:
That fatal is coming straight out of the Bricks theme, in its includes/query.php. Here’s what it’s telling you:

PHP Fatal:
Uncaught TypeError: Unsupported operand types: int / string
… thrown in /wp-content/themes/bricks/includes/query.php on line 745

In simpler terms, Bricks is doing something like:

php

CopyEdit

$result = $someIntegerValue / $someStringValue;

…and PHP 8+ will stop you from dividing an integer by a string. In older PHP versions it might have silently cast the string to 0 or 1, but now it just errors out.

Why it’s happening

  • Where: Bricks\Query->run() (invoked deep in their CSS-generation and enqueue routines)
  • What: At some point in your Bricks-built page, the query runner is handed a non-numeric value where it expects a number (for pagination, offsets, CSS breakpoint math, etc.), and then literally does a / operation on it.