今晚尝试删除记录时出现奇怪的错误:
Method onlyAllow does not exist
Error: An Internal Error Has Occurred.
Stack Trace
APP/Controller/VendorsController.php line 136 → CakeRequest->__call(string, array)
APP/Controller/VendorsController.php line 136 → CakeRequest->onlyAllow(string, string)
[internal function] → VendorsController->delete(string)
CORE/Cake/Controller/Controller.php line 485 → ReflectionMethod->invokeArgs(VendorsController, array)
CORE/Cake/Routing/Dispatcher.php line 186 → Controller->invokeAction(CakeRequest)
CORE/Cake/Routing/Dispatcher.php line 161 → Dispatcher->_invoke(VendorsController, CakeRequest, CakeResponse)
APP/webroot/index.php line 92 → Dispatcher->dispatch(CakeRequest, CakeResponse)
无法弄清楚发生了什么 - 删除方法直接从蛋糕烘烤中取出。我唯一的猜测是 http 文档根目录的权限太紧了,但这似乎有点牵强。没有 httpd 错误。使用管理员前缀和不使用管理员前缀都会发生这种情况。