联系官方销售客服
1835022288
028-61286886
更新升级后系统崩溃
Unable to connect to the database.
SYSTEMPATH/Database/BaseConnection.php at line 425
418 }419 }420 }421 422 // We still don't have a connection?423 if (! $this->connID)424 {425 throw new DatabaseException('Unable to connect to the database.');426 }427 }428 429 $this->connectDuration = microtime(true) - $this->connectTime;430 }431 432 //--------------------------------------------------------------------
SYSTEMPATH/Database/BaseConnection.php : 646 — CodeIgniter\Database\BaseConnection->initialize ()
639 *640 * @return BaseResult|Query|false641 */642 public function query(string $sql, $binds = null, bool $setEscapeFlags = true, string $queryClass = 'CodeIgniter\\Database\\Query')643 {644 if (empty($this->connID))645 {646 $this->initialize();647 }648 649 $resultClass = str_replace('Connection', 'Result', get_class($this));650 /**651 * @var Query $query652 */653 $query = new $queryClass($this);
SYSTEMPATH/Database/BaseBuilder.php : 1860 — CodeIgniter\Database\BaseConnection->query ( arguments )
1853 if (! is_null($limit))1854 {1855 $this->limit($limit, $offset);1856 }1857 1858 $result = $this->testMode1859 ? $this->getCompiledSelect($reset)1860 : $this->db->query($this->compileSelect(), $this->binds, false);1861 1862 if ($reset === true)1863 {1864 $this->resetSelect();1865 1866 // Clear our binds so we don't eat up memory1867 $this->binds = [];
FCPATH/Fcms/Model/Member.php : 221 — CodeIgniter\Database\BaseBuilder->get ()
214 215 $uid = intval($uid);216 if ($uid && $uid == $this->member['id']) {217 return $this->member;218 }219 220 if ($uid) {221 $data = $this->db->table('member')->where('id', $uid)->get()->getRowArray();222 } elseif ($name) {223 $data = $this->db->table('member')->where('username', $name)->get()->getRowArray();224 $uid = (int)$data['id'];225 }226 227 if (!$data) {228 return null;
FCPATH/Fcms/Core/Phpcmf.php : 225 — Phpcmf\Model\Member->get_member ( arguments )
218 // 验证api提交认证219 if (dr_is_app('httpapi') && \Phpcmf\Service::L('input')->request('appid')) {220 define('IS_API_HTTP', 1);221 \Phpcmf\Service::M('http', 'httpapi')->check_auth();222 } else {223 define('IS_API_HTTP', 0);224 $this->uid = (int)\Phpcmf\Service::M('member')->member_uid();225 $this->member = \Phpcmf\Service::M('member')->get_member($this->uid);226 if (!$this->member) {227 $this->uid = 0;228 }229 // 验证账号cookie的有效性230 if ($this->member && !\Phpcmf\Service::M('member')->check_member_cookie($this->member)) {231 $this->uid = 0;232 $this->member = [];
APPPATH/Controllers/Admin/Cloud.php : 16 — Phpcmf\Common->__construct ()
9 class Cloud extends \Phpcmf\Common10 {11 private $admin_url;12 private $service_url;13 14 public function __construct(...$params)15 {16 parent::__construct(...$params);17 18 if (!$this->cmf_license) {19 $this->cmf_license = [20 'id' => 10,21 'license' => 'dev',22 ];23 } elseif (!$this->cmf_license['license']) {
SYSTEMPATH/CodeIgniter.php : 890 — Phpcmf\Controllers\Admin\Cloud->__construct ()
883 /**884 * Instantiates the controller class.885 *886 * @return mixed887 */888 protected function createController()889 {890 $class = new $this->controller();891 $class->initController($this->request, $this->response, Services::logger());892 893 $this->benchmark->stop('controller_constructor');894 895 return $class;896 }897
SYSTEMPATH/CodeIgniter.php : 399 — CodeIgniter\CodeIgniter->createController ()
392 }393 394 $returned = $this->startController();395 396 // Closure controller has run in startController().397 if (! is_callable($this->controller))398 {399 $controller = $this->createController();400 401 // Is there a "post_controller_constructor" event?402 Events::trigger('post_controller_constructor');403 404 $returned = $this->runController($controller);405 }406 else
SYSTEMPATH/CodeIgniter.php : 312 — CodeIgniter\CodeIgniter->handleRequest ( arguments )
305 306 $this->response->pretend($this->useSafeOutput)->send();307 $this->callExit(EXIT_SUCCESS);308 }309 310 try311 {312 return $this->handleRequest($routes, $cacheConfig, $returnResponse);313 }314 catch (RedirectException $e)315 {316 $logger = Services::logger();317 $logger->info('REDIRECTED ROUTE at ' . $e->getMessage());318 319 // If the route is a 'redirect' route, it throws
FCPATH/Fcms/Init.php : 378 — CodeIgniter\CodeIgniter->run ()
371 * the application run, and does all of the dirty work to get372 * the pieces all working together.373 */374 375 376 $app = new \Phpcmf\Extend\CodeIgniter(config(\Config\App::class));377 $app->initialize();378 $app->run();
require /data/home/hyu5409340001/htdocs/index.php — require()
require /data/home/hyu5409340001/htdocs/gdadmin.php — require()