我有一个 CakePHP 项目在其他服务器 PHP 5.6 上运行,但是这个相同的应用程序没有在 PHP 5.6 / 7.0 上运行。< / p>
我使用 Croogo 与 CakePHP 。
它向我显示如下的调试错误:
错误:[错误]不支持的操作数类型 堆栈跟踪: #0 /Vendor/cakephp/cakephp/lib/Cake/Core/CakePlugin.php(282):include() #1 /Vendor/cakephp/cakephp/lib/Cake/Core/CakePlugin.php(201):CakePlugin :: _ includeFile('/ var / www / vhosts ...',true) #2 /Vendor/cakephp/cakephp/lib/Cake/Core/CakePlugin.php(121):CakePlugin :: bootstrap('Acl') #3 /Vendor/cakephp/cakephp/lib/Cake/Core/CakePlugin.php(94):CakePlugin :: load('Acl',Array) #4 /Vendor/croogo/croogo/Extensions/Lib/CroogoPlugin.php(656):CakePlugin :: load(Array,Array) #5 /Vendor/croogo/croogo/Croogo/Config/croogo_bootstrap.php(126):CroogoPlugin :: load(Array) #6 /Vendor/croogo/croogo/Croogo/Config/bootstrap.php(8):require_once('/ var / www / vhosts ...') #7 /Vendor/cakephp/cakephp/lib/Cake/Core/CakePlugin.php(282):include('/ var / www / vhosts ...') #8 /Vendor/cakephp/cakephp/lib/Cake/Core/CakePlugin.php(201):CakePlugin :: _ includeFile('/ var / www / vhosts ...',false) #9 /Vendor/cakephp/cakephp/lib/Cake/Core/CakePlugin.php(121):CakePlugin :: bootstrap('Croogo') #10 /Config/bootstrap.php(78):CakePlugin :: load('Croogo',Array) #11 /Vendor/cakephp/cakephp/lib/Cake/Core/Configure.php(98):include('/ var / www / vhosts ...') #12 /Vendor/cakephp/cakephp/lib/Cake/bootstrap.php(432):配置:: bootstrap(true) #13 /webroot/index.php(90):include('/ var / www / vhosts ...') #14 {main}
来自我的tmp / logs / error.log文件
有没有修复?
提前致谢
答案 0 :(得分:0)
尝试调试此地点:/Vendor/cakephp/cakephp/lib/Cake/Core/CakePlugin.php(282): include() #1
。查看失败时尝试包含的文件及其中的内容。