In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
This article will explain in detail the solution to the phpcms v9 prompt "the information you want to view does not exist". The editor thinks it is very practical, so I share it for you as a reference. I hope you can get something after reading this article.
Phpcms v9 prompts "the information you want to view does not exist" what to do
Solution:
Find / phpcms/modules/content/index.php, line 59
If (! $r | | $r ['status']! = 99) showmessage (L (' info_does_not_exists'), 'blank')
To be replaced by:
If (! $r | | $r ['status']! = 99) header (' location:/errorfiles/404.html')
Explain the principle:
$r = $this- > db- > get_one (array ('id'= > $id)); / / $r is the content information queried according to id.
Related recommendation: phpcms tutorial
If (! $r | | $r ['status']! = 99) showmessage (L (' info_does_not_exists'), 'blank'); / / $r [' status']! = 99 means that the message does not pass the audit, that is, if the message is empty or does not pass the audit, the following action is performed. Showmessage () is not a built-in function for PHP, but a unique function for phpcms, and a lot of people are mistaken here.
The info_does_not_exists// field means "the information you want to view does not exist or has not been approved yet!" You can open / phpcms/languagess/zh-cn/content.lang.php and have a look at line 295.
What you don't know about the header () function can be called before any actual output is sent, and then the location points to its own 404 page.
The solution to the phpcms v9 prompt "the information you want to view does not exist" is shared here. I hope the above content can be helpful to you and learn more knowledge. If you think the article is good, you can share it for more people to see.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.