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
Issue with the "Profiler" #10223
Comments
Are you under PHP 7.3 ? |
I have the problem on both 7.2 and 7.3 |
Same problem here on 1.1.latest and PHP 7.3, 1.2.latest and PHP 7.3 (PHP 7.3.2 to be exact) |
Probably related: symfony/symfony#29459 |
I confirm error with sylius 1.3.7 and PHP 7.3 |
It seems like a bug in these PHP versions but from the PHP team the response was "it's something that we will fix in 7.4 since we're reworking Serialization, so nothing we can do in 7.3". So we must find some kind of workaround. In my particular case, the debug toolbar only crashes when logged in. As the 'anon.' user, the bar works well. So I guess there is something in the User structure that causes toolbar to fail when it has to serialize/deserialize it. Either the User entity itself or some other entity with an ORM relation with User. Probably the latter if I understood well the messages from that issue in Symfony. |
Is there a way to disable the collector in the meantime? I have the same issue with SF 4.2.8, PHP 7.3.5 and Sylius 1.5.0. |
I tried disabling the offending data_collector (in my case it seems to be web_profiler:
toolbar: true
intercept_redirects: false
framework:
profiler: { collect: false }
Because even if |
I tried it too with the LoggerCollector, the CacheCollector and few more but nothing works. Also, I can't keep the profiler bar too without the framework.profiler.collect parameter. |
Same Here, everything working fine on Sylius 1.3 and php 7.2, but not getting profiler to work on Sylius 1.4 and beyond. Using Symfony 3.4 |
@Chrysweel I'd open a new issue for that. Even tho your profiler is not working, the cause is completely different than in this issue, so I don't find it related to this one. |
I'm using |
I tried to reproduce it on my machine but without success. Could you provide the following data if you have experienced it:
To be extra sure, please do the following:
|
Hi Pamil, Here is all the data requested, Php, Sylius and Symfony are in their latest versions. I'm also going to try to reproduce the issue from scratch, thanks for your time: Php:
Composer Show:
|
I found that in my case the issue comes from a Sylius Channel Query deprecation log trying to be sanitized. this is the query:
In loggerDataCollector class, sanitizeLogs method tries to count exceptions and save the result to errorcount key on the array, and profiler crashes as this key does not exist. The error is triggered in ArrayNode.php class, line 242:
And that's as far as I can go for now. The error may be not related to Sylius, but with all the vendors and externals loaded in my project, this query log is the only one that produces the issue.
|
The problem is due to a deprecated config, but we do not know. I was digging with @Krleza the logs dumping (doctrine loggin and profeling set to false) those we think are critical and we discovered it has to do with a numeric message due to config
And the dump is as follows Index 0 is the message, We hope it helps |
We discovered that we had a deprecated config of sylius_mailer. So we changed the following config
to
And it works now. We hope other people here can review their config and make the profiler work again |
Will this be modified in a PR? |
See #10680 |
Sylius version affected: 1.4.1 (and probably 1.3.x)
Description
Got issue with the symfony/web-profiler-bundle: "An error occurred while loading the web debug toolbar, on a fresh install.
On a fresh install of Symfony with some "simple" entities, I don't have the issues.
For the "payload" below, the exact error was:
Steps to reproduce
Possible Solution
I don't know if it's related:
Regards,
The text was updated successfully, but these errors were encountered: