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

The method to solve the content coding error in phpcms

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

Share

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

This article mainly introduces the methods to solve the content coding errors in phpcms, which has a certain reference value, and friends who need it can refer to it. I hope you will learn a lot after reading this article. Next, let the editor take you to learn about it.

What if there is a content encoding error in phpcms? Phpcms v9 prompt "content Encoding error" to solve the problem

Description of the problem: after changing the domain name of the built website, the situation in the following figure occurs (if other actions lead to the prompt in the following figure, you can also use this method to try to solve it)

Think about it over and over. It's just that the file\ caches\ configs\ system.php has been changed, and the code elsewhere has not been touched.

It took a long time to find out that it was caused by editing this document with notepad. (notepad editing caused the file to be incorrectly encoded)

Solution: copy the file\ caches\ configs\ system.php in the source program, open it with a professional editor (such as DW, Notepad++, etc.) and re-change the data, save and upload it, and now OK.

If the above method still doesn't solve the problem, you can try the following:

Change the 'gzip' = > 1' of\ caches\ configs\ system.php and\ phpsso_server\ caches\ configs\ system.php to 'gzip' = > 0

But there is a new situation.

Tactfully, I canceled the CAPTCHA.

Phpcms\ modules\ admin\ index.php this file comments out the following code

Then phpcms\ modules\ admin\ templates\ login.tpl.php comment out these lines of code

OK is finished and now it can be used normally again.

Thank you for reading this article carefully. I hope the editor will share the methods to solve the content coding errors in phpcms. At the same time, I also hope that you will support us, pay attention to the industry information channel, and find out if you encounter problems. Detailed solutions are waiting for you to learn!

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