Laravel-debugbar: Debugbar causing havoc with my javascript

Created on 11 Feb 2015  路  9Comments  路  Source: barryvdh/laravel-debugbar

For some reason, having Debugbar active is causing problems on my applications.

This is result of the log in Chrome:

http://test-l5.eo/_debugbar/assets/stylesheets?1423642083 Failed to load resource: the server responded with a status of 404 (Not Found)
http://test-l5.eo/_debugbar/assets/javascript?1423154427 Failed to load resource: the server responded with a status of 404 (Not Found)
settings:371 Uncaught ReferenceError: PhpDebugBar is not defined
main.js:9 Uncaught TypeError: undefined is not a function
http://test-l5.eo/_debugbar/assets/stylesheets?1423642083 Failed to load resource: the server responded with a status of 404 (Not Found)

When PhpDebugBar crashes, a lot of my site's javascript ends up crashing as well. I am using Laravel 5. Any ideas?

Thanks

Most helpful comment

Try moving the service provider up. do you have any catchall routes?

All 9 comments

Try moving the service provider up. do you have any catchall routes?

Ah yeah... I do have a catch all route... commenting that line out loads up the debugbar without any issues
Looks like i may need to revise that particular line of my routes file...

So did you try moving the provider up? Above your routes provider?

Yes, that has fixed the issue as well..

Thanks for the assistance :+1:

Okay good, cause that's what the readme says about this ;)

I had the same issue, and moving the provider up solved it for me too :) thanks @barryvdh!

same as @namenyi , thanks @barryvdh !

Also fixes problems when using VueJS frontend! Thanks!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

njbarrett picture njbarrett  路  5Comments

alphametric picture alphametric  路  5Comments

MRZ2017 picture MRZ2017  路  3Comments

kjhatis picture kjhatis  路  5Comments

linaspasv picture linaspasv  路  5Comments