Skip to content

Fetch all catalog tables at once to avoid conflicts with buffered query results#405

Open
bezin wants to merge 1 commit intoalnv:contao5from
bezin:fix-buffered-queries-conflict
Open

Fetch all catalog tables at once to avoid conflicts with buffered query results#405
bezin wants to merge 1 commit intoalnv:contao5from
bezin:fix-buffered-queries-conflict

Conversation

@bezin
Copy link
Copy Markdown

@bezin bezin commented Jul 2, 2025

When upgrading a Contao project from 4.13 to 5.3. I ran in to the folllwing error message:

General error: 2014 Cannot execute queries while other unbuffered queries are active. Consider using PDOStatement::fetchAll(). …

This was caused by running queries inside the while loop. This PR fixes this by loading all catalog tables at once.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant