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 #8550

Closed
guidebin opened this issue May 26, 2015 · 2 comments
Closed

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

guidebin opened this issue May 26, 2015 · 2 comments

Comments

@guidebin
Copy link

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.

@samdark
Copy link
Member

samdark commented May 26, 2015

Yes. We've decided to fix for asset closures only. We may consider using some hacks for closure serialization in 2.1.

@yii-bot
Copy link

yii-bot commented Jan 24, 2016

Issue moved to yiisoft/yii2-debug#82

@yii-bot yii-bot closed this as completed Jan 24, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants