分享
  • 收藏
  • 举报
    X
    安装论坛模块后报错
    399
    4

    [10501] PDOException in Connection.php line 388

    SQLSTATE[42S22]: Column not found: 1054 Unknown column 'status' in 'where clause'

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

    7
    赏礼
    赏钱
    收藏
    点击回复
        全部留言
    • 4
    • admin 超级管理员 消费:3.04元 2022-10-22 08:29 08:296楼

      重装论坛模块。或者是手工插入下面的数据库

      DROP TABLE IF EXISTS `qb_bbs_content`;
      CREATE TABLE IF NOT EXISTS `qb_bbs_content` (
        `id` int(8) unsigned NOT NULL AUTO_INCREMENT,
        `mid` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT '模型ID',
        `fid` mediumint(7) NOT NULL COMMENT '栏目ID',
        `uid` int(8) NOT NULL,
        `view` mediumint(7) NOT NULL COMMENT '浏览量',
        `status` tinyint(2) NOT NULL COMMENT '状态:0未审 1已审 2推荐',
        `list` int(10) NOT NULL COMMENT '可控排序',
        `create_time` int(10) NOT NULL COMMENT '发布日期',
        `ext_id` mediumint(7) NOT NULL COMMENT '关联其它模型的内容ID',
        `ext_sys` smallint(4) NOT NULL COMMENT '关联其它模型的频道ID',
        `title` varchar(255) NOT NULL COMMENT '标题',
        PRIMARY KEY (`id`),
        KEY `mid` (`mid`),
        KEY `uid` (`uid`),
        KEY `view` (`view`),
        KEY `status` (`status`),
        KEY `list` (`list`),
        KEY `ext_id` (`ext_id`,`ext_sys`),
        KEY `fid` (`fid`),
        KEY `create_time` (`create_time`)
      ) ENGINE=MyISAM  DEFAULT CHARSET=utf8 COMMENT='主题索引表' AUTO_INCREMENT=1;


    0 赏钱 赏礼回复
    • 码农 程序开发者 消费:0元 2022-10-21 19:17 19:176楼
      先进后台论坛主题管理看看,再打开前台
      kingmin 消费:0元 其他手机 2022-10-21 19:59
      后台都进不了
      kingmin 消费:0元 其他手机 2022-10-21 20:00
      数据表缺失一个字段  status
    0 赏钱 赏礼回复
    更多回复
        你可能感兴趣的主题
    恢复多功能编辑器
  • 3 1
  • 推荐内容
    扫一扫访问手机版
    请选择要切换的马甲:

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