### [phpcms v9提示“您要查看的信息不存在”怎么解决](https://www.prosaas.cn/article/6150) **Published:** 2020-02-15T05:43:48 **Author:** 5201314 **Excerpt:** phpcms v9提示“您要查看的信息不存在”怎么解决解决方法:找到/phpcms/modules/conte… ![](//zhiqipro.oss-cn-beijing.aliyuncs.com/2023/12/20231212124712710.jpg) **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为根据id查询的这条内容信息。 相关推荐:phpcms教程 if(!$r || $r\['status'\] != 99) showmessage(L('info\_does\_not\_exists'),'blank');//$r\['status'\] != 99的意思是这条信息没有通过审核,即如果这条信息为空或未通过审核则执行后面的操作。showmessage()并不是PHP的内置函数,而是phpcms的独有函数,很多人在这里搞错了。 info\_does\_not\_exists//这个字段的意思是“您要查看的信息不存在或者还未通过审批!”,大家可以打开/phpcms/languagess/zh-cn/content.lang.php在第295行看一下。 header()函数不知道的的可以百度一下,简单讲就是在任何实际的输出被发送之前调用,后面的location指向自己的404页面即可。 以上就是phpcms v9提示“您要查看的信息不存在”怎么解决的详细内容,更多请关注知企PROSAAS其它相关文章! **Tags:** if, location, php, PHPCMS **Categories:** PHPCMS ---