'mysql'" to "'session_storage'=>'files'"; finally upload it to the corresponding directory Just cover it."/> 'mysql'" to "'session_storage'=>'files'"; finally upload it to the corresponding directory Just cover it.">

Home  >  Article  >  CMS Tutorial  >  What to do if there is an error when publishing an article in phpcms

What to do if there is an error when publishing an article in phpcms

藏色散人
藏色散人Original
2020-02-04 11:00:582417browse

What to do if there is an error when publishing an article in phpcms

What should I do if there is an error in publishing an article in phpcms? Phpcms returns a 500 error when logging into the backend of the website to publish an article

Webmasters who often use CMS systems to build websites must be familiar with phpcms. This open source program is developed by php Built with mysql, this CMS system is perfect for building shopping malls, film and television, and platform information sites. 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 reviewed a lot of information but summarized the two most likely causes. 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.

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

The above is the detailed content of What to do if there is an error when publishing an article in phpcms. 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