CakePHP 3.5 带 bootstrapui 模态错误对话框

CakePHP 3.5 w/ bootstrapui modal error dialog box

我正在使用安装了 FriendsOfCake bootstrapUI 的 CakePHP 3.5。在登录屏幕上或注销后,显示模态对话框错误。文本是:mydomain.com 说:错误:禁止错误 error.log 中没有错误记录 这也发生在 3.4 版本中。

这发生在测试服务器和托管站点上。

有没有办法禁止这个对话框?

// 来自 Controller/AppController.php

public function initialize()
{
    parent::initialize();
    $this->loadComponent('RequestHandler');
    $this->loadComponent('Flash');
    $this->loadComponent('Auth', [
    'authenticate' => [
        'Form' => [
            'fields' => [
                'username' => 'email',
                'password' => 'password'
            ]
        ]
    ],
    'loginAction' => [
        'controller' => 'Users',
        'action' => 'login'
    ],
    'unauthorizedRedirect' => $this->referer() // if unauthorized, 
         return them
    ]);
    // allow display action so our pages controller 
    // continues to work.
    $this->Auth->allow(['display']);

    $this->loadComponent('Security');
    $this->loadComponent('Csrf');
}

已解决:在 FF Inspector 中发现 Ajax 从数据库请求列表。这是不允许的,因为登录未完成。删除了不必要的 Ajax 调用,表单现在可以按预期工作。