'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.">
search
HomeCMS TutorialPHPCMSWhat 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

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
phpcms是什么框架phpcms是什么框架Apr 20, 2024 pm 10:51 PM

PHP CMS 是一种基于 PHP 的开源内容管理系统,用于管理网站内容,其特点包括易用性、强大功能、可扩展性、安全性高和免费开源。它可以节省时间、提升网站质量、增强协作并降低开发成本,广泛应用于新闻网站、博客、企业网站、电子商务网站和社区论坛等各种网站。

phpcms怎么跳转到详情页phpcms怎么跳转到详情页Jul 27, 2023 pm 05:23 PM

phpcms跳转到详情页方法:1、使用header函数来生成跳转链接;2、循环遍历内容列表;3、获取内容的标题和详情页链接;4、生成跳转链接即可。

微信登录集成指南:PHPCMS实战微信登录集成指南:PHPCMS实战Mar 29, 2024 am 09:18 AM

标题:微信登录集成指南:PHPCMS实战在今天的互联网时代,社交化登录已经成为网站必备的功能之一。微信作为国内最流行的社交平台之一,其登录功能也被越来越多的网站所采用。本文将介绍如何在PHPCMS网站中集成微信登录功能,并提供具体的代码示例。第一步:注册微信开放平台账号首先,我们需要在微信开放平台上注册一个开发者账号,申请相应的开发权限。登录[微信开放平台]

phpcms是什么意思phpcms是什么意思Apr 20, 2024 pm 10:39 PM

PHPCMS 是一款免费开源的内容管理系统 (CMS),特点包括:开放源码、模块化、灵活、用户友好和社区支持。它可用于创建各种类型的网站,包括企业网站、电子商务网站、博客和社区论坛。技术要求包括:PHP 5.6 或更高版本、MySQL、MariaDB 或 PostgreSQL 数据库以及 Apache 或 Nginx Web 服务器。

2023年最新phpcms视频教程推荐(二次开发必学)2023年最新phpcms视频教程推荐(二次开发必学)Oct 25, 2019 pm 03:45 PM

很多站长使用PHPCMS进行二次开发建站,PHP中文网特意推出了phpcms视频教程,大家可以随时随地免费观看视频教程,不需要从百度网盘下载,非常方便。

phpcms用什么数据库phpcms用什么数据库Feb 21, 2023 pm 06:57 PM

phpcms用mysql数据库。phpcms是一个PHP开源网站管理系统,采用PHP+MYSQL做为技术基础进行开发。PHPCMS V9采用OOP方式进行基础运行框架搭建,支持的PHP版本是PHP5及以上、支持的MYSQL版本是MySql 4.1以上版本。

phpcms怎么实现微信登陆phpcms怎么实现微信登陆Mar 09, 2023 am 09:33 AM

phpcms实现微信登录的方法:1、在根目录新建“wechat.php”;2、在“\phpcms\modules\member\index.php”下增加“public function wechat() {...}”;3、在“foreground.class.php”文件中通过wechat函数判断用户是否登录即可。

phpcms不是免费吗phpcms不是免费吗Mar 01, 2023 am 10:24 AM

phpcms不是完全免费的。phpcms属于开源cms系统,但是开源并不等于免费,它有两个版本:免费版和商业版,免费版仅限于个人非商业用途,而商业版需要购买授权;个人可以作为研究使用,如果商业应用,需要支付一定费用。

See all articles