Home > Article > CMS Tutorial > What should I do if the recommendation bit of phpcms get cannot be updated?
phpcms get recommendation position cannot be updated? phpcms failed to push articles 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 articles 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 recommended actions: modules/admin/classes/push_api.class.php
Recommended position list interface processing function: position_list()
Through breakpoint analysis, the statement causing the problem is at location A.
The array is initialized at location B, and location B is modified to
$fields_arr = $fields_value = array();
will 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 free PHPCMS tutorials, welcome to learn online!
The above is the detailed content of What should I do if the recommendation bit of phpcms get cannot be updated?. For more information, please follow other related articles on the PHP Chinese website!