php - Zend Framework 2.4: Redirect results in blank page on server, works locally -
introduction
- me , team using zend framework 2.4.2 first time
- our goal build simple portal authorization module , table- or list-based content
- we've been working on few weeks , haven't found solution our problem yet
problem
in general, zend works on local machine using xampp apache. however, when deploying on remote server, works except redirects. whenever there command
return $this->redirect()->toroute('foo');
the browser shows blank page (though redirects on xampp).
system
- we use zend skeleton application album modul. implemented authorization module works , uses redirects in same fashion.
- locally, use xampp version 1.8.3 , php 5.5.15.
- we tested our application on 2 servers (1&1 , strato) , different php versions (5.3, 5.5, 5.6). of configurations result in same behavior (blank page when redirecting).
what ruled out
- case sensitivity , path-related causes can ruled out. when zend cannot find path, shows error message.
- different php versions have been tested, version not cause. cannot same configuration.
- access rights on server can ruled out cause. tried different configurations here.
we researched lot on redirects , server configuration, noone else seems have problem. in fact no 1 ever talks problems on server, general problems framework. thankful every thought , idea.
i found solution!
i needed make copy of local php.ini file , paste in public/ folder of zend application. server behaves in way loads standard php.ini if there none. uses php.ini correct settings. apparently, there few settings necessary zend's redirects work. naturally, had comment out of local paths in copy of php.ini. nevertheless, thank input!
Comments
Post a Comment