'mysql'" to "files"; finally log in to the phpcms website background to update the cache That’s it."/> 'mysql'" to "files"; finally log in to the phpcms website background to update the cache That’s it.">

Home  >  Article  >  CMS Tutorial  >  What should I do if the phpcms background cannot publish articles?

What should I do if the phpcms background cannot publish articles?

藏色散人
藏色散人Original
2019-12-27 10:56:292204browse

What should I do if the phpcms background cannot publish articles?

What should I do if the phpcms background cannot publish articles?

PHPCMS returns a 500 error when logging into the website backend to publish an article

Webmasters who often use CMS systems to build websites must be familiar with phpcms, right? This open source program is built by php mysql. It is an open source content management system that can run perfectly on the worry-free host php space. This CMS system is perfect for building websites such as shopping malls, film and television, and platform information. At the same time, with continuous improvement, many open source templates of this program are also very popular on the Internet. With the system and templates, it is much faster to build a website using this program.

With the upgrade of the PHPCMS system, some bugs have appeared recently. Today, the editor helped a webmaster friend move. The webmaster used an information platform built by PHPCMS. When the move was ready, the webmaster failed to log in to the backend of the website to publish an article. The prompt was that a 500 error was returned, and then it would immediately jump back to the previous position. The editor consulted a lot of information but summarized the two most likely reasons.

The following editor will analyze and study how to solve the two possible reasons.

First type:

It may be that the server or a function of the server is not enabled. If the cloud host is used to match the environment, then fsockopen() may be disabled. Yes, you need to call and enable it in the configuration file html.class.php lib. Sometimes the cloud host used may have some anti-virus software installed by itself that accidentally kills some files in phpcms, resulting in incomplete files as a whole. Similar problems can occur.

Second type:

This is a bug in the program itself. Due to the continuous upgrade of phpcms. In this way, bugs were born one after another. The most common cause is that the session storage method of phpcms has changed.

First we find the path of the following file /caches/configs/system.php.

You only need to connect to ftp and change the mysql in 'session_storage' => 'mysql' to files.

Change the following code:

‘session_storage’ => ‘mysql’ 按数据库存储

to:

‘session_storage’ => ‘files’ 按文件存储

After modification, upload it to the corresponding directory for overwriting. Then log in to the backend of the website to update the cache with one click. When you click to edit the article again, it will be published normally. The above are the two solutions to the error when publishing articles summarized by the editor. I hope this article can help webmaster friends in need. Thank you again to all webmasters for your support to Wuyou Editor.

PHP Chinese website, a large number of free PHPCMS tutorials, welcome to learn online!

The above is the detailed content of What should I do if the phpcms background cannot publish articles?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn