Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debugger doesn't load when there is a closure in Yii::trace #82

Closed
yii-bot opened this issue Jan 24, 2016 · 2 comments
Closed

Debugger doesn't load when there is a closure in Yii::trace #82

yii-bot opened this issue Jan 24, 2016 · 2 comments
Assignees
Labels
Milestone

Comments

@yii-bot
Copy link

yii-bot commented Jan 24, 2016

This issue has originally been reported by @guidebin at yiisoft/yii2#8550.
Moved here by @cebe.


The debug view wasn't loading and it took me a while to figure out why. In the log it was showing:

[warning][yii\log\Dispatcher::dispatch] Unable to send log via yii\debug\LogTarget: Exception 'Exception' with message 'Serialization of 'Closure' is not allowed'

I finally found out it was caused by using Yii::trace with a closure, removing the trace call fixed it. Looks like the same issue as #5402, which was fixed previously.

@dynasource
Copy link
Member

dynasource commented Dec 20, 2016

confirmed for Yii::info(). Its causes skipping of i.e. a POST request in the debug log too.

@cebe
Copy link
Member

cebe commented Dec 21, 2016

thought we had fixed this long ago. does not seem to be the case for all situations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants