Admittedly, I’m using PHP 8.2.7, which I understand is not supported… But when I execute a query, it returns fine, but the Debug Toolbar shows the count in RED, with the message “Executed 1 database queries which took 60 ms. Too many queries, allowed count is .” Is there somewhere that I’m supposed to configure the max queries?
Note: This also occurs on PHP 8.1.20
So, the problem seems to be in yii2-debug/panels/DbPanel.php
* @var int the threshold for determining whether the request has involved
* critical number of DB queries. If the number of queries exceeds this number,
* the execution is considered taking critical number of DB queries.
Since it’s not initialized, any number will be determined to be an error. Setting it to some reasonable value resolves the issue.