(crashreport) something seems to trigger Phalcon\Mvc\View->render() before initialize() was called, not sure what it is, probably something changed in phalcon to trigger this in some cases.

exception 'Exception' with message 'The argument is not initialized or iterable()' in phalcon/mvc/view.zep:694
Stack trace:
 0 [internal function]: Phalcon\Mvc\View->_engineRender(Array, 'settings/listRu...', true, true, NULL)
 1 [internal function]: Phalcon\Mvc\View->render('settings', 'listRulesets', Array)
 2 /usr/local/opnsense/www/api.php(26): Phalcon\Mvc\Application->handle()
This commit is contained in:
Ad Schellevis 2016-11-18 16:09:36 +01:00
parent 3fdb5a93f4
commit 32e02ba0f0
2 changed files with 1 additions and 1 deletions

View File

@ -44,6 +44,7 @@ $di = new FactoryDefault();
$di->set('view', function () use ($config) {
// return a empty view
$view = new View();
$view->disable();
return $view;
});

View File

@ -90,7 +90,6 @@ class ApiControllerBase extends ControllerRoot
public function initialize()
{
// disable view processing
$this->view->disable();
set_error_handler(array($this, 'APIErrorHandler'));
}