Dedecms Modify document Blank page resolution

Source: Internet
Author: User
Tags php tutorial blank page

I encountered the problem is that the release of the content is not a problem, but edit the document, modify the software is a blank page, after the search, as long as the following changes are OK.
Find dede/(is your background login directory, if not modified by default is Dede directory), find the file archives_do.php tutorial file, search header, in line 33 can see

The code is as follows Copy Code
Header ("location:{$gurl}?aid= $aid");


We modify this here to JS calls like

The code is as follows Copy Code
echo "<script language= ' web effects ' >window.location.href= ' {$gurl}?aid={$aid} ' </script> ';



As for what reason not to use the header function, let's take a look at the properties of the header. Header (), if the previous output of a space, blank line, any character, will cause header () jump invalidation ....
Because catalog_do.php has called too many PHP files, you may have previously modified the file with the ad, so there is a problem.

Original articles reproduced in this site annotated from http://www.111cn.nethttp://www.111cn.net/phper/php.html

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.