$this->PDOStatement->execute(); // 调试结束 $this->debug(false); // 返回结果集 return $this->getResult($pdo, $procedure); } catch (\PDOException $e) { if ($this->isBreak($e)) { return $this->close()->query($sql, $bind, $master, $pdo); } throw new PDOException($e, $this->config, $this->getLastsql()); } catch (\Throwable $e) { if ($this->isBreak($e)) { return $this->close()->query($sql, $bind, $master, $pdo); } throw $e; } catch (\Exception $e) { if ($this->isBreak($e)) { return $this->close()->query($sql, $bind, $master, $pdo); }
at Connection->query('SHOW COLUMNS FROM `q...', [], false, true) in Mysql.php line 65
at Mysql->getFields('`qb_redis_index`') in Query.php line 1863
at Query->getTableInfo('qb_redis_index', 'pk') in Query.php line 1897
at Query->getPk(['multi' => ['AND' => ['k' => [['eq', 'qbTagCacheKey__5f1b7...']]]], 'where' => ['AND' => ['k' => ['eq', 'qbTagCacheKey__5f1b7...']]], 'table' => 'qb_redis_index', ...]) in Query.php line 2572
at Query->find() in Cache2.php line 162
at Mysql_redis->get('qbTagCacheKey__5f1b7...') in Cache2.php line 115
at Cache2::get('qbTagCacheKey__5f1b7...') in common.php line 3278
at cache2('qbTagCacheKey__5f1b7...') in LabelShow.php line 697
at LabelShow->listpage_label('zhidao_list_page_pc', ['mid' => null, 'fid' => null, 'page' => null, ...]) in Label.php line 274
at Label->run_listpage_label('zhidao_list_page_pc', ['mid' => null, 'fid' => null, 'page' => null, ...]) in common.php line 77
at fun('label@run_listpage_l...', 'zhidao_list_page_pc', ['mid' => null, 'fid' => null, 'page' => null, ...]) in 40428afe4fd682d50244ea79610497ae.php line 164
at include('D:\phpstudy_pro\WWW\...') in File.php line 50
at File->read('D:\phpstudy_pro\WWW\...', ['auto_tpl_base_layout' => 'D:\phpstudy_pro\WWW/...', 'listdb' => [], 'admin' => true, ...]) in Template.php line 188
at Template->fetch('D:\phpstudy_pro\WWW\...', ['auto_tpl_base_layout' => 'D:\phpstudy_pro\WWW/...', 'listdb' => [], 'admin' => true, ...], []) in Think.php line 86
at Think->fetch('D:\phpstudy_pro\WWW\...', ['auto_tpl_base_layout' => 'D:\phpstudy_pro\WWW/...', 'listdb' => [], 'admin' => true, ...], []) in View.php line 163
at View->fetch('D:\phpstudy_pro\WWW\...', ['auto_tpl_base_layout' => 'D:\phpstudy_pro\WWW/...', 'listdb' => [], 'admin' => true, ...], ['__ROOT__' => '', '__URL__' => '/index.php/zhidao/in...', '/public/static' => '/public/static', ...], []) in Controller.php line 120
at Controller->fetch('D:\phpstudy_pro\WWW\...', ['admin' => true, 'userdb' => ['uid' => 1, 'password' => '81f51fffd05d588a437f...', 'password_rand' => '42fe5', ...], 'timestamp' => 1580890314, ...], [], []) in Base.php line 258
at Base->fetch() in Index.php line 22
at Index->index('')
at ReflectionMethod->invokeArgs(object(Index), ['']) in App.php line 348
at App::invokeMethod([object(Index), 'index'], []) in App.php line 612
at App::module(['zhidao', 'index', 'index'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], true) in App.php line 461
at App::exec(['type' => 'module', 'module' => ['zhidao', 'index', 'index']], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
at App::run() in start.php line 19
at require('D:\phpstudy_pro\WWW\...') in index.php line 29
今天刚在本地调试后台点击升级,升级完成后在后台点击pc端标签,结果就显示上述代码,是什么原因?现在仍不正常。
进一步检查租赁服务器上的调试网站,升级后正常的。
升级不成功,缺少数据表,手工补上看看
DROP TABLE IF EXISTS `qb_redis_index`; CREATE TABLE IF NOT EXISTS `qb_redis_index` ( `k` varchar(256) NOT NULL COMMENT 'key值', `v` text NOT NULL COMMENT 'value值', `t` int(10) NOT NULL COMMENT '有效期', UNIQUE KEY `k` (`k`), KEY `time` (`t`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='解决没有安装redis的兼容处理,当缓存用'; DROP TABLE IF EXISTS `qb_redis_list`; CREATE TABLE IF NOT EXISTS `qb_redis_list` ( `id` int(10) NOT NULL AUTO_INCREMENT, `k` varchar(256) NOT NULL COMMENT 'key值', `v` text NOT NULL COMMENT 'value值', PRIMARY KEY (`id`), KEY `k` (`k`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='解决没有安装radis的兼容处理,相当于redis的列表' AUTO_INCREMENT=7 ;