nangge / noneCms

基于thinkphp5.1 的内容管理系统,可快速搭建博客、企业站;并且增加了实时聊天室
http://www.5none.com
Other
273 stars 120 forks source link

执行composer update后 报错Call to undefined method app\admin\behavior\Operation::run() #13

Closed zhenruyan closed 6 years ago

zhenruyan commented 7 years ago

部分log如下 Call Stack

in Hook.php line 127
at Hook::exec('app\admin\behavior\o...', 'action_begin', [object(Index), 'test'], null) in Hook.php line 88
at Hook::listen('action_begin', [object(Index), 'test']) in App.php line 406
at App::module(['admin', 'index', 'test'], ['app_host' => '', 'app_debug' => false, 'app_trace' => false, ...], true) in App.php line 295
at App::exec(['type' => 'module', 'module' => ['admin', 'index', 'test']], ['app_host' => '', 'app_debug' => true, 'app_trace' => true, ...]) in App.php line 123
at App::run() in start.php line 18
at require('/home/free/src/noneC...') in index.php line 21
nangge commented 7 years ago

这个是由于 TP5 新版本更新造成的;现在需要在operation.php中增加run入口方法;具体: `

public function run(){

$this->action_begin();

}

` 然后,清除缓存,再访问下;有一些修改我这几天在改,过段时间会更新上去