联系官方销售客服

1835022288

028-61286886

开发框架 版主:迅睿框架研发组
更新升级后系统崩溃,验证账号的有效性
类型:迅睿CMS 更新时间:2020-11-30 14:31:18

更新升级后系统崩溃


CodeIgniter\Database\Exceptions\DatabaseException #8

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     //--------------------------------------------------------------------
  1. 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);
  2. 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 = [];
  3. 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;
  4. 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 = [];
  5. 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']) {
  6. 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
  7. 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
  8. 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
  9. 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();
  10. require /data/home/hyu5409340001/htdocs/index.php   —   require()

  11. require /data/home/hyu5409340001/htdocs/gdadmin.php   —   require()


回帖
  • #1楼    迅睿框架创始人
    2020-10-17 09:37:49
    Google Pixel 手机 1
    数据库信息配置错误
  • 命运一切皆随缘
    #2楼    命运一切皆随缘
    2020-10-17 09:44:55
    Chrome 1
    数据库问题
  • 无名氏
    #3楼    无名氏
    2020-10-17 09:45:27
    Chrome 1
    Unable to connect to the database.百度搜索这句话
  • beggo
    #4楼    beggo
    2020-10-17 09:48:03
    Chrome 0
    回复迅睿框架创始人 之前都是直接升级更新,这次直接更新,结果崩溃了 😁
  • #5楼    迅睿框架创始人
    2020-10-17 10:22:11
    Google Pixel 手机 0
    这个跟升级没关系的,数据库挂了,重启数据库
    满意答案
  • beggo
    #6楼    beggo
    2020-11-30 14:31:18
    Chrome 0
    迅睿框架创始人:wanmeijiejue