V5.7 after logging on to the background, it is okay to publish the English title. The Chinese publishing prompt "the title cannot be blank" is displayed ".
Cause: htmlspecialchars is utf8 encoded by default in php5.4. The Chinese character string escaped by htmlspecialchars is empty, that is, the title is empty.
Solution: Add ent_compat and 'gb2312' to htmlspecialchars to modify the default encoding value.
Specific modification page:
1. Dede/article_add.php and Dede/article_edit.php
Set
$ Title = htmlspecialchars (cn_substrr ($ title, $ pai_title_maxlen ));
Change
$ Title = htmlspecialchars (cn_substrr ($ title, $ pai_title_maxlen), ent_compat, 'gb2312 ');
2. Include/ckeditor/ckeditor_php5.php row 138
Replace htmlspecialchars ($ value) with htmlspecialchars ($ value, ent_compat, 'gb2312 ')
Test and publish the article successfully.
Tip: if you do not want to modify the source code of the program, we recommend that you change to php5.3. After the upgrade, you can change the space server after php5.4 is supported.
Dedecms: solution to "title cannot be blank"