Comments (13)
So you upgraded your entire app to 4.1 and it stopped working, or just updated this package?
Can you disable all of the datacollectors (publish the config and set all to false) and see of the errors persists? If not, try enabling one by one.
Does this problem also occur on older versions of the debugbar (required 1.0 for instance, insteaf of 1.*)
from laravel-debugbar.
And when you create a new 4.1 projects with just this package, does it also occur?
from laravel-debugbar.
In my experience, this usually happens when we try to create an instance of something with an instance of itself in the constructor.
from laravel-debugbar.
upgrade my app to 4.1
will try out disabling collectors, an older version and fresh installation later today or tomorrow.
from laravel-debugbar.
I was just having a similar issue actually! White screen, no errors. I was triggering a simple filter with a redirect:
Route::filter('admin_auth', function()
{
if ( ! Sentry::check())
{
// if not logged in, redirect to login
return Redirect::to('users/login');
}
});
The redirect failed regardless of what I tried to add to the redirect. So I looked at the log:
[2013-12-26 13:59:42] log.ERROR: exception 'Symfony\Component\Debug\Exception\FatalErrorException' with message 'Allowed memory size of 134217728 bytes exhausted (tried to allocate 41555547 bytes)' in /vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Session/Storage/NativeSessionStorage.php:234
Stack trace:
#0 [internal function]: Illuminate\Exception\Handler->handleShutdown()
#1 {main} [] []
When looking for an issue, I happened upon a different and separate github issue (https://github.com/juy/profiler/issues/21) that referenced "profiler" (not debugbar). Again, this has no connection to debugbar but for testing I very quickly disabled the debugbar and I no longer incur a whitescreen and all is well, so it's a very curious problem.
from laravel-debugbar.
Could you also try and disable the data collectors (through config) and enable them ony by one and see when the error occurs? (and possibly older version of the debugbar) Will try to look into it tomorrow but have no idea what is causing this yet.
from laravel-debugbar.
ok sorry, it seems like it has to do with my own "mailer extension". (deactivating the mail collector helped, also changing back to the native laravel mail functionality ...)
from laravel-debugbar.
Okay, if you find out what was causing it exactly, let me know so I can perhaps create a patch.
@jaketoolson your error is probably something related to stacking the data on a redirect, can you open a new issue, when you find the collector that kills it?
from laravel-debugbar.
hi, I'm having the same issue as @jaketoolson and here's the log entry -
[2014-01-10 23:16:57] local.ERROR: exception 'DebugBar\DebugBarException' with message 'Session must be started before using stack data in the debug bar' in /var/www/themiss/vendor/maximebf/debugbar/src/DebugBar/DebugBar.php:413
Stack trace:
#0 /var/www/themiss/vendor/maximebf/debugbar/src/DebugBar/DebugBar.php(304): DebugBar\DebugBar->initStackSession()
#1 /var/www/themiss/vendor/barryvdh/laravel-debugbar/src/Barryvdh/Debugbar/LaravelDebugBar.php(268): DebugBar\DebugBar->stackData()
#2 /var/www/themiss/vendor/barryvdh/laravel-debugbar/src/Barryvdh/Debugbar/Middleware.php(35): Barryvdh\Debugbar\LaravelDebugbar->modifyResponse(Object(Illuminate\Http\Request), Object(Illuminate\Http\RedirectResponse))
#3 /var/www/themiss/vendor/laravel/framework/src/Illuminate/Http/FrameGuard.php(38): Barryvdh\Debugbar\Middleware->handle(Object(Illuminate\Http\Request), 1, true)
#4 /var/www/themiss/vendor/laravel/framework/src/Illuminate/Session/Middleware.php(58): Illuminate\Http\FrameGuard->handle(Object(Illuminate\Http\Request), 1, true)
#5 /var/www/themiss/vendor/laravel/framework/src/Illuminate/Cookie/Queue.php(47): Illuminate\Session\Middleware->handle(Object(Illuminate\Http\Request), 1, true)
#6 /var/www/themiss/vendor/laravel/framework/src/Illuminate/Cookie/Guard.php(51): Illuminate\Cookie\Queue->handle(Object(Illuminate\Http\Request), 1, true)
#7 /var/www/themiss/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Illuminate\Cookie\Guard->handle(Object(Illuminate\Http\Request), 1, true)
#8 /var/www/themiss/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(552): Stack\StackedHttpKernel->handle(Object(Illuminate\Http\Request))
#9 /var/www/themiss/public/index.php(49): Illuminate\Foundation\Application->run()
#10 {main} [] []
I tried disabling the data collectors one by one but nothing seems to fix it. the package works great everywhere and the issue occurs only when I return a "Redirect".
Let me know if I should open a new issue or if you need any other info from my end. Oh, and great job on the package :)
from laravel-debugbar.
Okay, So I figured out the reason. The error log said it has something to do with the session and in fact I was doing some session work on the before the redirect. Turned out, if I remove the Session::save(); call in my code, the error doesn't occur anymore. Thought this might give you an insight?
from laravel-debugbar.
Okay So this only occurs on Redirects, when saving something in the session? Otherwise it is fine?
from laravel-debugbar.
I pushed a new version to dev-master (see commit above), does that fix it for you?
from laravel-debugbar.
Yes, it was only happening on redirects after saving the session and with the dev-master seems to be working great 👍
thanks a bunch for the quick fix, you're awesome :)
from laravel-debugbar.
Related Issues (20)
- Unable to disable debugbar when app.debug is true HOT 2
- Debugbar crashing in applications with Inertia installed on requests that do not use Inertia HOT 10
- Undefined array key "file" HOT 3
- Argument #1 ($string) must be of type string, Illuminate\Database\Events\QueryExecuted given HOT 1
- Is FilesCollector still needed? HOT 1
- Exceptions After Installing on OctoberCMS HOT 3
- [Feature]: Support multiple logging channels
- Livewire 3 & SPA Mode: "Maximum call stack size exceeded" HOT 11
- DebugBarException "'mail' is not a registered collector" on 3.11.0 HOT 3
- APP_URL is ignored and assets (stylesheets and javascript) are not loading HOT 12
- Debugbar info/alert/warning not showing in controller POST method call. HOT 2
- Fix editor link to Livewire components (e.g. when they are used for routes) HOT 1
- Question about the dataset switcher HOT 3
- Suggestions for slight UI tweaks. HOT 2
- DebugBar not visible after upgrading to Laravel 11 HOT 2
- Queries with union and uses wrong binding parameters (in some cases) HOT 4
- Suggestion for additional styling of the request history tab content
- Laravel flash messages not working after update to 3.13 HOT 7
- TypeError: data.__meta is undefined HOT 3
- Debugbar non stop ajax requests HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from laravel-debugbar.