如何在PHP7上使用CakePHP 2解决错误处理程序中的“Uncaught TypeError”?

致命错误

Error: Uncaught TypeError: Argument 1 passed to ErrorHandler::handleException() must be an instance of Exception, instance of Error given in /opt/lampp/htdocs/quiz/lib/Cake/Error/ErrorHandler.PHP:108 Stack trace: #0 [internal function]: ErrorHandler::handleException(Object(Error)) #1 {main} thrown

File: /opt/lampp/htdocs/quiz/lib/Cake/Error/ErrorHandler.PHP
Line: 108

我在PHP7上使用cakePHP 2.6.1.我超过了错误.
请帮帮我

解决方法:

CakePHP 2.8与PHP7兼容. CakePHP 2.6和2.7不是.
http://book.cakephp.org/2.0/en/appendices/2-8-migration-guide.html#php7-compatibility

相关文章

统一支付是JSAPI/NATIVE/APP各种支付场景下生成支付订单,返...
统一支付是JSAPI/NATIVE/APP各种支付场景下生成支付订单,返...
前言 之前做了微信登录,所以总结一下微信授权登录并获取用户...
FastAdmin是我第一个接触的后台管理系统框架。FastAdmin是一...
之前公司需要一个内部的通讯软件,就叫我做一个。通讯软件嘛...
统一支付是JSAPI/NATIVE/APP各种支付场景下生成支付订单,返...