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 free PHPCMS 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!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Atom editor mac version download
The most popular open source editor

MinGW - Minimalist GNU for Windows
This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

EditPlus Chinese cracked version
Small size, syntax highlighting, does not support code prompt function

Dreamweaver Mac version
Visual web development tools

Notepad++7.3.1
Easy-to-use and free code editor