2018-05-08 10:34:54
佐饵
|
[08-May-2018 09:58:11 Asia/Shanghai] PHP Fatal error: Call to a member function logHistory() on null in E:\PhpStormWorkspace\zdoo\app\crm\visit\control.php on line 145 [08-May-2018 09:58:11 Asia/Shanghai] PHP Stack trace: [08-May-2018 09:58:11 Asia/Shanghai] PHP 1. {main}() E:\PhpStormWorkspace\zdoo\www\crm\index.php:0 [08-May-2018 09:58:11 Asia/Shanghai] PHP 2. include() E:\PhpStormWorkspace\zdoo\www\crm\index.php:13 [08-May-2018 09:58:11 Asia/Shanghai] PHP 3. baseRouter->loadModule() E:\PhpStormWorkspace\zdoo\framework\loader.php:49 [08-May-2018 09:58:11 Asia/Shanghai] PHP 4. call_user_func_array:{E:\PhpStormWorkspace\zdoo\framework\base\router.class.php:1694}(array (0 => class visit { public $app = class router { ... }; public $appName = 'crm'; public $config = class config { ... }; public $lang = class language { ... }; public $dbh = class PDO { ... }; public $dao = class dao { ... }; public $post = class super { ... }; public $get = class super { ... }; public $session = class super { ... }; public $server = class super { ... }; public $cookie = class super { ... }; public $moduleName = 'visit'; public $view = class stdClass { ... }; public $viewType = 'html'; public $output = NULL; public $clientDevice = 'desktop'; public $devicePrefix = ''; public $methodName = 'edit'; public $visit = class visitModel { ... } }, 1 => 'edit'), array ('visitID' => '30', 'comment' => FALSE)) E:\PhpStormWorkspace\zdoo\framework\base\router.class.php:1694 [08-May-2018 09:58:11 Asia/Shanghai] PHP 5. visit->edit($visitID = '30', $comment = FALSE) E:\PhpStormWorkspace\zdoo\framework\base\router.class.php:1694 |
石洋洋
|
递归设置一下E:\PhpStormWorkspace\zdoo 及子目录 777权限,然后重新操作试试。
|
刘刚 |
调用$this->action->logHistory()之前是否有过$this->loadModel('action'),如没有则要使用以下方式调用$this->loadModel('action')->logHistory()。
|
1/1