quickapps / cms

Modular CMS powered by CakePHP
GNU General Public License v3.0
164 stars 69 forks source link

AOP Error #156

Closed akkaweb closed 8 years ago

akkaweb commented 8 years ago

I am trying to setup an app using the latest changes, but I am getting the following error:

Error: [TypeError] Argument 2 passed to Cake\View\Helper\FormHelper__AopProxied::create() must be of the type array, null given, called in /var/www-dev/domain.com/vendor/goaop/framework/src/Aop/Framework/DynamicClosureMethodInvocation.php on line 60

This happens when I try to access /admin/, like so http://domain.com/en_US/admin/login

I will keep on looking, but any idea why this is happening?

botchris commented 8 years ago

I thinks can be caused by this line: https://github.com/quickapps/cms/blob/2.0/plugins/Bootstrap/src/Aspect/FormHelperAspect.php#L88

Force a cast to an empy array should fix this:

$this->setProperty($invocation, 'arguments', [$model, (array)$options]);