-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Uncaught exception 'UnexpectedValueException' with message 'Object not found' #10209
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
Labels
Comments
jcarnus
referenced
this issue
Feb 6, 2014
… request stack context (romainneutron) This PR was merged into the 2.4 branch. Discussion ---------- [2.4][HttpKernel] Fix profiler event-listener usage outside request stack context | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | License | MIT The bug has been reported at silexphp/Silex-WebProfiler#27 todo : - [x] add unit test Commits ------- 55a76e7 [HttpKernel] Fix profiler event-listener usage outside request stack context
After this fix, I still have 500 error but no log in error.log, does Symfony use @function to mask log error ? |
stephpy
added a commit
to stephpy/symfony
that referenced
this issue
Feb 18, 2014
When the profiler has `only_exception` option activated and a subrequest throw an exception, the parent profile cannot be found.
stephpy
added a commit
to stephpy/symfony
that referenced
this issue
Feb 18, 2014
When the profiler has `only_exception` option activated and a subrequest throw an exception, the parent profile cannot be found. | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | License | MIT
My unit tests were broken, and I discovered it came from an UnexpectedValueException in onKernelTerminate of Symfony\Component\HttpKernel\EventListener\ProfilerListener. I tried your pull request and my tests are now fixed. Thanks stephpy. Now I just need it to be merged in master. |
fabpot
added a commit
that referenced
this issue
Feb 28, 2014
This PR was merged into the 2.4 branch. Discussion ---------- [2.4][HttpKernel] Fix issue #10209 When the profiler has `only_exception` option activated and a subrequest which throw an exception, the parent profile cannot be found. | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | License | MIT Fix issue #10209 Commits ------- b949c49 [2.4][HttpKernel] Fix issue #10209 When the profiler has `only_exception` option activated and a subrequest throw an exception, the parent profile cannot be found.
fabpot
added a commit
that referenced
this issue
Mar 3, 2014
* 2.4: [Form][2.3] Fixes empty file-inputs getting treated as extra field. changed some PHPUnit assertions to more specific ones fixed Kernel::stripComments() normalizing new-lines added a BC comment Update FileLoader to fix issue #10339 bumped Symfony version to 2.3.12 updated VERSION for 2.3.11 update CONTRIBUTORS for 2.3.11 updated CHANGELOG for 2.3.11 Throw exception when unable to normalize embedded object Fixed evaluation of short circuit operators Follow-up to #10312: Fixed minor performance related issues in Yaml\Inline. [2.4][HttpKernel] Fix issue #10209 When the profiler has `only_exception` option activated and a subrequest throw an exception, the parent profile cannot be found.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
On a high loaded environnement, I have sometimes this error
Uncaught exception 'UnexpectedValueException' with message 'Object not found' in /var/www/symfony/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/EventListener/ProfilerListener.php:130\nStack trace:\n
#0 /var/www/symfony/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/EventListener/ProfilerListener.php(130): SplObjectStorage->offsetGet(Object(Symfony\Component\HttpFoundation\Request))\n
#1 [internal function]: Symfony\Component\HttpKernel\EventListener\ProfilerListener->onKernelTerminate(Object(Symfony\Component\HttpKernel\Event\PostResponseEvent), 'kernel.terminat...', Object(Symfony\Component\EventDispatcher\ContainerAwareEventDispatcher))\n
#2 /var/www/symfony/app/cache/prod/classes.php(1747): call_user_func(Array, Object(Symfony\Component\HttpKernel\Event\PostResponseEvent), 'kernel.terminat...', Object(Symfony\Component\EventDispatcher\ContainerAwareEventDispatcher))\n
#3 /var/www/symfony/app/cache/prod/classes.php(1680): Symfony\Component\EventDispatcher\EventDispatcher->doDispatch(Array, 'kernel in /var/www/symfony/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/EventListener/ProfilerListener.php on line 130
wich leads to a 500 response ?
I use symfony 2.4.1
What should I do ?
The text was updated successfully, but these errors were encountered: