phpcms v9提示“您要查看的信息不存在”怎么解決
解決方法:
找到/phpcms/modules/content/index.php,第59行
if(!$r || $r['status'] != 99) showmessage(L('info_does_not_exists'),'blank');
替換為:
if(!$r || $r['status'] != 99) header('location:/errorfiles/404.html');
解釋下原理:
$r = $this->db->get_one(array('id'=>$id));//$r為根據(jù)id查詢的這條內(nèi)容信息。