Skip to content
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

Bug: View resolver could not resolve to a file after redirect() #25

Closed
NiMeDia opened this issue Nov 9, 2015 · 0 comments
Closed

Bug: View resolver could not resolve to a file after redirect() #25

NiMeDia opened this issue Nov 9, 2015 · 0 comments

Comments

@NiMeDia
Copy link
Contributor

NiMeDia commented Nov 9, 2015

Hey guys,

at first I must say your library is great and it saves a lot of time. Thank you for the excellent work!

While implementing this module I had a strange behaviour. I saw the following message over and over in the PHP error log but the module was working like expected:

Zend\View\Renderer\PhpRenderer::render: Unable to render template "payum/capture/do"; resolver could not resolve to a file

It turnded out the ZF2 redirect plugin just sends the HTTP redirection header, but the initial request is processed to the end at the server. I found out that instead of just using
$this->redirect()->toUrl($reply->getUrl());
within your controllers, you should return it(or false) to prevent further processing of the request. (@see http://framework.zend.com/manual/current/en/modules/zend.mvc.plugins.html#redirect-plugin)

NiMeDia added a commit to NiMeDia/PayumModule that referenced this issue Nov 9, 2015
NiMeDia added a commit to NiMeDia/PayumModule that referenced this issue Nov 9, 2015
NiMeDia added a commit to NiMeDia/PayumModule that referenced this issue Nov 9, 2015
makasim added a commit that referenced this issue Nov 9, 2015
@makasim makasim closed this as completed Nov 10, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants