-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Messenger causes Notice: unserialize(): Error at offset 20266 of 22557 bytes
in web profiler
#30014
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
Comments
Just fixed :) |
@nicolas-grekas I need to switch to master branch to get it, right? Also could you add the link to fix PR please? |
@nicolas-grekas I found that last PR #29958 but it is NOT fixed. I just pulled messenger as Im not sure, but according to #29951 I think the wrong code is in
because calling serialize() inside another serialize() and accordingly unserialize() inside unserialize() is not supported in php 7.3 |
The fix is not in Messenger, see the stack trace you posted, it's about HttpKernel. |
Ok, just updated to the latest commit |
Then I'd need to know which concrete data collector throws that. (DataCollector in HttpKernel is abstract) |
It is |
Can you cherry-pick the patch in #30026 and see how it goes? |
…rekas) This PR was merged into the 3.4 branch. Discussion ---------- [VarDumper] dont implement Serializable in Stub | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #30014 | License | MIT | Doc PR | - `Serializable` is really really broken... Commits ------- 73070d7 [VarDumper] dont implement Serializable in Stub
I get the same error in DataCollector in HttpKernel (using PHP 7.3, latest SF including the fixes mentioned here) when I call |
For now I put a try catch block in the unserialize method in DataCollector class. otherwise debug toolbar doen't appear public function unserialize($data) |
I have a similar issue, also in
PHP's This results in:
The relevant part for the failure:
It is trying to reference an object (with object id 12831) which does not exist. Some relevant code: https://gist.github.com/teohhanhui/7925dd436175dcc71881127803016f7d |
I get the same error after getting a Symfony\Component\Debug\Exception\ FatalThrowableError exception. I was wrong writing the parameters of updateAttribute in classes/Product.php. I had to change the PHP version to see the exceptions details. |
Symfony version(s) affected: 4.2.2
PHP 7.3.1
Description
When exception is thrown inside of message handler, then web debug toolbar explodes with
Notice: unserialize(): Error at offset 20266 of 22557 bytes
error (the numbers differs for different exception cases).How to reproduce
throw new \Exception()
inside hanler/_profiler/latest
you will see exception page withNotice: unserialize(): Error at offset ...
instead of web profiler UI. See attached screenshots.Possible Solution
Have no solution atm but found similar exception related to other component which contains thoughts about why it happens. #29459
Additional context

Exception screenshot
Full serialization data copied form exception page which caused an error
The text was updated successfully, but these errors were encountered: