Yii2: Not Found (#404): Unable to find debug data tagged with '5578effb0790c4.13707485'

旧时模样 提交于 2020-07-17 09:28:32

问题


I'm getting this at the bottom of my page, where the debug bar should be. What is the problem?

This request: http://localhost:81/xxx/web/debug/default/toolbar?tag=5578f180963e82.28312577 is returning 404.

I need to see the error message & stack trace generated when I log to Yii::error(). It's not showing in runtime/log/app.log, so I need the debug bar.


回答1:


I removed files from frontend/runtime/debug and frontend/runtime/cache and nothing was changed.

But when I removed all folders from frontend/runtime then it started to work.




回答2:


One reason could be missing write permissions for the runtime folder. The Debug Tool Bar creates there another directory debug which is used for *.data files.

This happens easily if the web server has its own user which differs to the user that has created the runtime folder.




回答3:


I tried the info above without luck (and I suggest people here do the same, as in most circumstances it will solve your problem). But what worked for me was running. tail -f frontend/runtime/logs/app.log and it told me that there was an error with a table that it expected to exist but did not. Once I fixed that underlying issue my problem went away. In my specific case, I had the following enabled but no corresponding table/s.

'authManager' => [
    'class' => 'yii\rbac\DbManager',
],

Once I commented/removed it from my config, everything started working.




回答4:


i tried the removal of runtime folders but it didn't change a thing but a composer update fixed it for me



来源:https://stackoverflow.com/questions/30770524/yii2-not-found-404-unable-to-find-debug-data-tagged-with-5578effb0790c4-13

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!