/admin/users 打开 500.
JZLeung opened this issue · comments
Fatal error: Uncaught Error: Function name must be a string in /home/website/rocboss/app/models/UserModel.php:80 Stack trace: #0 /home/website/rocboss/app/controllers/backend/AdminController.php(290): UserModel->getMany(0, 12, Array, Array) #1 /home/website/rocboss/system/core/Dispatcher.php(111): backend\AdminController::users(1) #2 /home/website/rocboss/system/core/Dispatcher.php(75): system\core\Dispatcher::invokeMethod(Array, Array) #3 /home/website/rocboss/system/Engine.php(215): system\core\Dispatcher::execute(Array, Array) #4 /home/website/rocboss/system/core/Dispatcher.php(109): system\Engine->_start() #5 /home/website/rocboss/system/core/Dispatcher.php(75): system\core\Dispatcher::invokeMethod(Array, Array) #6 /home/website/rocboss/system/core/Dispatcher.php(19): system\core\Dispatcher::execute(Array, Array) #7 /home/website/rocboss/system/Engine.php(31): system\core\Dispatcher->run('start', Array) #8 /home/website/rocboss/system/core/Dispatcher.php(109): system\Engine->__call('start', Array) #9 /home/website/roc in /home/website/rocboss/app/models/UserModel.php on line 80
环境:
系统:
Linux ubuntu 4.4.0-93-generic #116-Ubuntu SMP Fri Aug 11 21:17:51 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
PHP:
PHP 7.0.22-0ubuntu0.16.04.1 (cli) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies
with Zend OPcache v7.0.22-0ubuntu0.16.04.1, Copyright (c) 1999-2017, by Zend Technologies
Nngix:
nginx version: nginx/1.10.3 (Ubuntu)
PHP-FPM:
PHP 7.0.22-0ubuntu0.16.04.1 (fpm-fcgi)
fixed it in php7, please update the code.