Home>Article>CMS Tutorial> 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.
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!