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
Undefined index: __request #1677
Comments
I've also seen this error. However I'm not entirely sure the way you fix it in your PR is the intended way. I also don't know why the request is handled in such a way, maybe @Drak knows more about it? |
That's how my workaround looked like (however I'm not sure what exactly is going on there) if ($id === 'request' && isset($GLOBALS['__request'])) {
return $GLOBALS['__request'];
} |
I think the PR is wrong. We're trying to wire in Symfony's way of doing things. That means we inject the request from the front controller only so using Request::create arbitrarily in the code is not ok really. (because of subrequests). |
I am also getting this error locally whereas a few months ago I was not. Every time the session is restarted I get it. |
I see this error also when doing a
|
there is some similar code already here: https://github.com/zikula/core/blob/1.4/src/lib/legacy/Zikula/Core.php#L406 |
for the record, here is the full trace:
|
I have this error too. The installer does not work anymore, because of this. |
The error will be gone once my Routing PR is finished. For now you can use the workaround mentioned above. |
The installer may have completed successfully but leaves this error at the end? |
@cmfcmf the work around helps, but now I get
but maybe this is another problem. |
That's something different. |
Fixed in 3eaa542 |
I keep getting this error on a clean install of Zikula
ContextErrorException: Notice: Undefined index: __request in /src/lib/legacy/Zikula/ServiceManager.php line 114
The text was updated successfully, but these errors were encountered: