联系官方销售客服

1835022288

028-61286886

开发框架 版主:迅睿框架研发组
删除文章时提示系统错误Duplicate entry '0' for key
类型:迅睿CMS 更新时间:2020-11-17 22:09:51

我删除文章时提示系统错误

Duplicate entry '0' for key 'PRIMARY'
#SQL:INSERT INTO `dr_1_news_recycle` (`uid`, `cid`, `catid`, `content`, `result`, `inputtime`) VALUES (1, 27, 9, '{"1_news":{"id":"27","catid":"9","title":"1212","thumb":"","keywords":"","description":"1212","hits":"3","uid":"4","author":"507","status":"9","url":"\/index.php?c=show&id=27","link_id":"0","tableid":"0","inputip":"42.49.130.217","inputtime":"1605255784","updatetime":"1605255784","displayorder":"0","cxpq_total":"0","tet_total":"0","comments":"0","avgsort":"0.00"},"1_news_data_0":{"id":"27","uid":"4","catid":"9","content":"<p>1212<\/p>"},"1_news_category_data":null}', '', 1605518177)
#URL:http://localhost/admin.php?s=news&c=home&m=del&is_ajax=1
#REFERER:http://localhost/admin.php?s=news&c=home&m=index

请问能看出来是哪里错误了啊?

{xunruicms_img_title}

回帖
  • #1楼    迅睿框架创始人
    2020-11-16 17:29:37
    Chrome 0
    这个是系统框架问题,但是呢,理论上不应该会错啊,因为删除文章都是日常操作,根本没有出现过这种错误,太奇怪了
    满意答案
  • tvv
    #2楼    tvv
    2020-11-16 17:32:11
    Chrome 0
    1_news_recycle: 主键获取失败
    http://localhost/admin.php?s=news&c=home&m=del&is_ajax=1
    ERROR - 2020-11-16 17:16:17 --> Duplicate entry '0' for key 'PRIMARY'
    #SQL:INSERT INTO `dr_1_news_recycle` (`uid`, `cid`, `catid`, `content`, `result`, `inputtime`) VALUES (1, 27, 9, '{"1_news":{"id":"27","catid":"9","title":"1212","thumb":"","keywords":"","description":"1212","hits":"3","uid":"4","author":"507","status":"9","url":"\/index.php?c=show&id=27","link_id":"0","tableid":"0","inputip":"42.49.130.217","inputtime":"1605255784","updatetime":"1605255784","displayorder":"0","cxpq_total":"0","tet_total":"0","comments":"0","avgsort":"0.00"},"1_news_data_0":{"id":"27","uid":"4","catid":"9","content":"<p>1212<\/p>"},"1_news_category_data":null}', '', 1605518177)
    #URL:http://localhost/admin.php?s=news&c=home&m=del&is_ajax=1
    #REFERER:http://localhost/admin.php?s=news&c=home&m=index
  • #3楼    迅睿框架创始人
    2020-11-16 17:42:33
    Chrome 0
    这个我实在想不出是什么原因导致,我本地建立又删,删了又建,没有遇到这种错误
  • 阿库娅
    #4楼    阿库娅
    2020-11-16 17:53:37
    Chrome 0
    我删除和恢复,操作都没有报错
  • tvv
    #5楼    tvv
    2020-11-17 22:09:51
    Chrome 0
    迅睿框架创始人:明白了!谢谢!已重新安装!