mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-20 03:16:12 +00:00
(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:
parent
3fdb5a93f4
commit
32e02ba0f0
@ -44,6 +44,7 @@ $di = new FactoryDefault();
|
||||
$di->set('view', function () use ($config) {
|
||||
// return a empty view
|
||||
$view = new View();
|
||||
$view->disable();
|
||||
return $view;
|
||||
});
|
||||
|
||||
|
||||
@ -90,7 +90,6 @@ class ApiControllerBase extends ControllerRoot
|
||||
public function initialize()
|
||||
{
|
||||
// disable view processing
|
||||
$this->view->disable();
|
||||
set_error_handler(array($this, 'APIErrorHandler'));
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user