CMS新增提示缺少id参数,但是内容管理里面末页却有标题
修改原发布成功文章也报错:
} else { // 如果缺少复合主键数据则不执行 throw new Exception('miss complex primary data'); } unset($data[$field]); } } if (!isset($where)) { // 如果没有任何更新条件则不执行 throw new Exception('miss update condition'); } else { $options['where']['AND'] = $where; } } elseif (!isset($key) && is_string($pk) && isset($options['where']['AND'][$pk])) { $key = $this->getCacheKey($options['where']['AND'][$pk], $options, $this->bind); } // 生成UPDATE SQL语句 $sql = $this->builder->update($data, $options);
at Query->update(['select' => '27', 'fid' => '27', 'title' => '...', ...]) in C.php line 232
at C::editData(1, ['select' => '27', 'fid' => '27', 'title' => '...', ...]) in ModuleContent.php line 180
at C->saveEdit(1, ['select' => '27', 'fid' => '27', 'title' => '...', ...]) in C.php line 471
at C->edit('958')
at ReflectionMethod->invokeArgs(object(Content), ['958']) in App.php line 348
at App::invokeMethod([object(Content), 'edit'], []) in App.php line 612
at App::module(['cms', 'content', 'edit'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], true) in App.php line 461
at App::exec(['type' => 'module', 'module' => ['cms', 'content', 'edit']], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
at App::run() in start.php line 19
at require('/www/wwwroot/www.che...') in admin.php line 23
大家有遇到这种情况吗?怎么解决的。
数据库表qb_cms_content
报错如下:
当前所选内容没有包含唯一字段。单元格编辑、复选框、编辑、复制和删除无法正常使
我自己的解决方法如下
网上找到的方法不适合我的情况