试播         
刚升级后点击后台标签网站首页就显示代码是什么原因
  • 诚信lawyer 消费0.1元 2020-02-05 16:19 16:19
1583
6

[10501] PDOException in Connection.php line 388

SQLSTATE[42S02]: Base table or view not found: 1146 Table 'root.qb_redis_index' doesn't exist

            $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);            }

Call Stack

  1. in Connection.php line 388

  2. at Connection->query('SHOW COLUMNS FROM `q...', [], false, true) in Mysql.php line 65

  3. at Mysql->getFields('`qb_redis_index`') in Query.php line 1863

  4. at Query->getTableInfo('qb_redis_index', 'pk') in Query.php line 1897

  5. at Query->getPk(['multi' => ['AND' => ['k' => [['eq', 'qbTagCacheKey__5f1b7...']]]], 'where' => ['AND' => ['k' => ['eq', 'qbTagCacheKey__5f1b7...']]], 'table' => 'qb_redis_index', ...]) in Query.php line 2572

  6. at Query->find() in Cache2.php line 162

  7. at Mysql_redis->get('qbTagCacheKey__5f1b7...') in Cache2.php line 115

  8. at Cache2::get('qbTagCacheKey__5f1b7...') in common.php line 3278

  9. at cache2('qbTagCacheKey__5f1b7...') in LabelShow.php line 697

  10. at LabelShow->listpage_label('zhidao_list_page_pc', ['mid' => null, 'fid' => null, 'page' => null, ...]) in Label.php line 274

  11. at Label->run_listpage_label('zhidao_list_page_pc', ['mid' => null, 'fid' => null, 'page' => null, ...]) in common.php line 77

  12. at fun('label@run_listpage_l...', 'zhidao_list_page_pc', ['mid' => null, 'fid' => null, 'page' => null, ...]) in 40428afe4fd682d50244ea79610497ae.php line 164

  13. at include('D:\phpstudy_pro\WWW\...') in File.php line 50

  14. at File->read('D:\phpstudy_pro\WWW\...', ['auto_tpl_base_layout' => 'D:\phpstudy_pro\WWW/...', 'listdb' => [], 'admin' => true, ...]) in Template.php line 188

  15. at Template->fetch('D:\phpstudy_pro\WWW\...', ['auto_tpl_base_layout' => 'D:\phpstudy_pro\WWW/...', 'listdb' => [], 'admin' => true, ...], []) in Think.php line 86

  16. at Think->fetch('D:\phpstudy_pro\WWW\...', ['auto_tpl_base_layout' => 'D:\phpstudy_pro\WWW/...', 'listdb' => [], 'admin' => true, ...], []) in View.php line 163

  17. 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

  18. at Controller->fetch('D:\phpstudy_pro\WWW\...', ['admin' => true, 'userdb' => ['uid' => 1, 'password' => '81f51fffd05d588a437f...', 'password_rand' => '42fe5', ...], 'timestamp' => 1580890314, ...], [], []) in Base.php line 258

  19. at Base->fetch() in Index.php line 22

  20. at Index->index('')

  21. at ReflectionMethod->invokeArgs(object(Index), ['']) in App.php line 348

  22. at App::invokeMethod([object(Index), 'index'], []) in App.php line 612

  23. at App::module(['zhidao', 'index', 'index'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], true) in App.php line 461

  24. at App::exec(['type' => 'module', 'module' => ['zhidao', 'index', 'index']], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139

  25. at App::run() in start.php line 19

  26. at require('D:\phpstudy_pro\WWW\...') in index.php line 29

AARfDFdWBVJXBVFXAgFcVAcEVldVDwFXAAUBDQEGD1cQIBOEDDeff2bec163


今天刚在本地调试后台点击升级,升级完成后在后台点击pc端标签,结果就显示上述代码,是什么原因?现在仍不正常。

进一步检查租赁服务器上的调试网站,升级后正常的。

10
赏礼
赏钱
收藏
点击回复
      全部留言
  • 6
  • 午夜梦寒 实战运营者 消费:1817.13元 2020-02-05 16:31 16:316楼
    重新升级吧,问题已经修复。
    懒客驿站 消费:3297.81元 2020-02-05 17:59
    如何重新升级,我的也是打不开了
    午夜梦寒 消费:1817.13元 其他手机 2020-02-05 18:22
    更新到最新版本
    诚信lawyer 消费:0.1元 2020-02-06 12:03
    按老大的代码收工补丁升级成功
0 赏钱 赏礼回复
  • admin 超级管理员 消费:3.03元 2020-02-05 16:46 16:466楼

    升级不成功,缺少数据表,手工补上看看

    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 ;


    诚信lawyer 消费:0.1元 2020-02-05 18:12
    在数据库工具里输入后正常。
    但这是本地调试套件里什么原因造成的呢?
1 赏钱 赏礼回复
更多回复
恢复多功能编辑器
  • 3 1
  • 初学者圈子
        圈内贴子3
    • 圈子成员3
    本圈子内的新贴

    推荐内容
    扫一扫访问手机版
    请选择要切换的马甲:

     
    网页即时交流
    QQ咨询
    咨询热线
    020-28998648