Home>Article>CMS Tutorial> Solution to Unknown error when upgrading Empire CMS to 7.0

Solution to Unknown error when upgrading Empire CMS to 7.0

藏色散人
藏色散人 Original
2019-12-13 09:22:17 3272browse

Solution to Unknown error when upgrading Empire CMS to 7.0

What should I do if the Unknown column 'checked' in 'field list' error occurs when the empire cms is upgraded to 7.0?

Recommended to study "Empire cms tutorial"

Problem description:

Upgrade empire cms from 6.6 to empire cms7.0, everything is normal, but when I enter the background and click on the management information,

Unknown column 'checked' in 'field list' select id,classid,titleurl,groupid,newspath,filename,checked,isqf,havehtml,istop,isgood,firsttitle,ismember,userid,username,plnum,totaldown,onclick,newstime,truetime,lastdotime,titlepic,title from ***_ecms_movie order by id desc limit 0,100

Solution to Unknown error when upgrading Empire CMS to 7.0

Cause of the problem:

The prompt should say that the checked field does not exist.

This happened because I wrote an information list template myself

Solution to Unknown error when upgrading Empire CMS to 7.0

This file cannot be upgraded to Empire cms, so the previous checked field exists in it Not removed

Solution to the problem:

Open /e/data/html/list/alllistinfo_movie.php

Find the following sql, probably In line 9

$query="select id,classid,titleurl,groupid,newspath,filename,checked,isqf,havehtml,istop,isgood,firsttitle,ismember,userid,username,plnum,totaldown,onclick,newstime,truetime,lastdotime,titlepic,title from {$dbtbpre}ecms_".$tbname.$where." order by ".$doorder." limit $offset,$line";

is changed to

$query="select id,classid,titleurl,groupid,newspath,filename,isqf,havehtml,istop,isgood,firsttitle,ismember,userid,username,plnum,totaldown,onclick,newstime,truetime,lastdotime,titlepic,title from {$dbtbpre}ecms_".$tbname.$where." order by ".$doorder." limit $offset,$line";

overwrite and upload

The above is the detailed content of Solution to Unknown error when upgrading Empire CMS to 7.0. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn