Home>Article>CMS Tutorial> What to do if phpcms push fails

What to do if phpcms push fails

藏色散人
藏色散人 Original
2019-12-28 10:20:41 2091browse

What to do if phpcms push fails

What should I do if phpcms push fails?

PHPCMS: Failed to push the article to the recommended position, reasons and fixes for not being able to be recommended to the recommended position

Recently, when a friend was maintaining a project, he found that their article could not be pushed to the recommended position. . After the menu is recommended, it will directly display blank and the push will fail; if the recommendation position is checked in the article, an error will be reported directly when saving.

Find the core file of the recommended action: modules/admin/classes/push_api.class.php

Recommended position list interface processing function: position_list()

Analyze through breakpoints , the statement causing the problem is at A.

What to do if phpcms push fails

The array is initialized at location B. Modify location B to

$fields_arr = $fields_value = array();

to run normally.

Considering that this project uses PHP7, and PHPCMS supports PHP5 more, the root cause is still a problem in the version characteristics of PHP. It is recommended to use php5.3 when using PHPCMS. This version is relatively stable.

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

The above is the detailed content of What to do if phpcms push fails. 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