-
-
Notifications
You must be signed in to change notification settings - Fork 148
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
Call to a member function getRequest() on null is RequestPanel.php file #372
Comments
decision: on file: vendor/yiisoft/yii2-debug/src/panels/RequestPanel.php |
Thanks for posting in our issue tracker.
Thanks! This is an automated comment, triggered by adding the label |
It has been 2 or more weeks with no response on our request for more information. If you want it to be reopened again, feel free to supply us with the requested information. Thanks! This is an automated comment, triggered by adding the label |
I ran into the same issue, see https://travis-ci.org/dmstr/phd5-app/builds/540910183#L3086 The root cause was a "functional", which did not create any request but checked a version file. My solution was to move the test to the CLI suite. ( But nonetheless it's something we should care about, since all tests are green, but the pipeline still fails due to the error thrown under the hood. [addon] My changes did not really fix the issue, still investigating... |
So my fix or better workaround is this: dmstr/phd5-app@5449726 - disabling the debug module in tests. I had the issue also in unit tests. Reopening ... how to proceed, do you need additional info? |
Yes. Is that Codeception-specific? |
Had the exact same issue today, running g codeception too |
Yes, I had this after upgrading from 2.3 to 2.5 |
I just wrote a long post about The source of the issue is @schmunk42 can you check if the logger is getting replaced properly. Side note: instead of overriding the logger class, we could probably do something like this: namespace yii\log {
function register_shutdown_function() {
codecept_debug('Mocked register_shutdown_function called');
} |
Like mentioned from @SamMousa using
in |
I'm putting this in codeception as well, since it's a better fix. |
Would be nice to see this in 2.x, since upgrading to 3.x raised even more issues. |
Additional info
The text was updated successfully, but these errors were encountered: