filamentphp/filament · error · LogicException

No query builder block found for [{type}].

Error message

No query builder block found for [{type}].

What it means

Error "No query builder block found for [{type}]." thrown in filamentphp/filament.

Source

Thrown at packages/tables/src/Filters/QueryBuilder.php:100

            return $this->getRuleSummaries($state['rules'], $this->getRuleBuilder());
        });

        $this->columnSpanFull();
    }

    /**
     * @param  array<string, mixed>  $rules
     * @return array<string>
     */
    public function getRuleSummaries(array $rules, RuleBuilder $ruleBuilder, int $iteration = 1): array
    {
        $summaries = [];

        foreach ($rules as $ruleIndex => $rule) {
            $ruleBuilderBlockContainer = $ruleBuilder->getChildSchema($ruleIndex);

            if (! $ruleBuilderBlockContainer) {
                throw new LogicException('No query builder block found for [' . ($rule['type'] ?? $ruleIndex) . '].');
            }

            if ($rule['type'] === RuleBuilder::OR_BLOCK_NAME) {
                $orSummaries = [];

                foreach ($rule['data'][RuleBuilder::OR_BLOCK_GROUPS_REPEATER_NAME] as $orGroupIndex => $orGroup) {
                    $orGroupSummaries = $this->getRuleSummaries(
                        $orGroup['rules'],
                        $this->getNestedRuleBuilder($ruleBuilderBlockContainer, $orGroupIndex),
                        $iteration + 1,
                    );

                    $orSummaries[] = ((count($orGroupSummaries) > 1) ? '(' : '') . implode(' ' . __('filament-query-builder::query-builder.form.rules.item.and') . ' ', $orGroupSummaries) . ((count($orGroupSummaries) > 1) ? ')' : '');
                }

                $orSummaries = array_filter($orSummaries, filled(...));

                if (blank($orSummaries)) {

View on GitHub (pinned to 53483fa934)

When it happens

Trigger: Thrown at packages/tables/src/Filters/QueryBuilder.php:100 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of filamentphp/filament@53483fa934 (2026-08-17). Data as JSON: /api/errors/238e3494750bfad9. Report an issue: GitHub.