Dedecms Background Content Maintenance a blank, PHP7 under the use of dedecms weaving dream pits too many people upgrade to be careful

Source: Internet
Author: User

Last article,
"PHP7 use Dedecms, weaving dream dedecsm a blank solution in the background"
Dedecms a part of the pit in the PHP7,
Today I met a big pit ' dedecms ' backstage,
Click on the Content Maintenance after a blank,
There's nothing.

The online approach is ineffective.

After that, you open the Nginx error log,
To see where the error occurred,
To change the error over.


The customer is using dedecms5.7 SP1,
dede/content_list.php,
About 145 lines.

$optHash = MD5 ($cid. $admin _catalogs. $channelid);

$admin _catalogs is an array,
Used directly as a string in the source code.

Looking at the latest Dedecms 5.7 SP2,
It seems like it's still used,
No in-depth analysis.

Since the site was moved over,
Data/tplcache/content_list_xxxx.inc
In this cache file,


<?php if () {?>
	<input type= ' button ' class= ' COOLBG np ' onclick= ' location= ' content_list.php?cid=<?php echo $GLOBALS [' CID '];? >&mid=0 '; ' value= ' All documents '/>
	<?php
}
else{
?>

About 26 Lines,

If the condition is a null error,

result in a blank.

Way to solve

<?php if (1) {?>
	<input type= ' button ' class= ' COOLBG np ' onclick= ' location= ' content_list.php?cid=<?php echo $GLOBALS [' CID '];? >&mid=0 '; ' value= ' All documents '/>
	<?php
}
else{
?>

Fill in the expression ' 1 ',

Indicates that all is displayed.

Using this word,

You cannot display articles based on categories.

Dedecms in the PHP7 under the pit too much,

There's no analysis,

You'll have to use it first.


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.