Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to solve the problem of parameter errors in phpcms v9 attachment download

2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

How to solve phpcms v9 attachment download parameter error problem? In response to this problem, this article introduces the corresponding analysis and solution in detail, hoping to help more small partners who want to solve this problem find a simpler and easier way.

phpcms v9 attachment download parameter error solution: first find and open the "down.php" file; then delete the file "patch IP" part of the code; then upload the overwrite, and update the cache; finally click download again.

Phpcms v9 download module parameter error solution

Phpcms v9 will check the IP address of the client when downloading, occasionally causing parameter errors, and a large amount of information from the Internet. At present, there are no more than 2 solutions known. After testing, one is invalid, and one cannot solve the fundamental problem. Already know two ways to add $data <$'id '] = $id; test invalid, one is to change the download address to show the original download address, not through the kernel php file of Phpcms v9 to deal with direct generation of download address, this is not wrong, but others have permission problems on the site that headache.

Here's a look at the solution developed in code notes, inspired by an online article about Phpcms.

The requested URL/phpcms/modules/content/was not found on this server.

Find about 100 lines of code as follows:

if(!$ downid || empty($fileurl) || ! preg_match("/[0-9]{10}/", $starttime) || ! preg_match("/[0-9]{1,3}\. [0-9]{1,3}\. [0-9]{1,3}\. [0-9]{1,3}/", $ip) || $ip != ip()) showmessage(L('illegal_parameters'));

3. Delete some codes of middle patch IP

|| ! preg_match("/[0-9]{1,3}\. [0-9]{1,3}\. [0-9]{1,3}\. [0-9]{1,3}/", $ip) || $ip != ip()

Deleted code:

if(!$ downid || empty($fileurl) || ! preg_match("/[0-9]{10}/", $starttime) ) showmessage(L('illegal_parameters'));

Upload overrides, update cache. Click download, actually became. Leave notes for next use.

About how to solve the phpcms v9 attachment download parameter error problem answer to share here, hope the above content can have some help to everyone, if you still have a lot of doubts not solved, you can pay attention to the industry information channel to learn more related knowledge.

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.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report