Yii2 debugger issues after version update

I have this wierd issue after a composer update to the latest version of yii2 in my project.

For some reason the debugger doesn’t display any database queries and/or performance profiling. Everything else in the debugger works.

The actual tabs work but the tables are just… empty. Its the same with the “preview bottom bar”. After the “Time…” and “Memory…” data points nothing else shows. The “DB (X)” column isn’t there.

I should also meantion at the same time this code which always been giving me the database query count

$profiling = Yii::getLogger()->getDbProfiling();

just returns 0 now. I have no idea if that has anything to do with my debugger issue.

Any idea what could be wrong and where I should start troubleshooting?

Thank you

What was the version that worked? What’s current version? Any messages in runtime/log?

Hi samdark,

Sorry for the late late reply but here it goes. So current version is 2.0.12. I updated from 2.0.10.

I can’t find anything related to this in the runtime/logs/app.log and if I add

$profiling = Yii::getLogger()->getDbProfiling();

to the bottom of my layout view all it returns is Array ( [0] => 0 [1] => 0 ) .

Any idea why the DB profiling isn’t working?

Thank you so much

Could it be that the composer update -> push to server got it wrong and some files from the 2.0.10 version are still in there? Can I just download a manual copy of the 2.0.12 build and replace the /app/vendor/yiisoft folder with a fresh set of files to see if that makes any difference?



It must have been some faulty composer update, because I did what I did and re-ran everything (removed /vendor and ran composer update again and pushed all new files) and everything is back to normal.