The ecshop print quote page is blank!

Source: Internet
Author: User

Today, I encountered such a problem: the company's ecshop template online shop. Print the quotation page. The local test shows the product price information. However, when you click to print a quote on the server, the page is blank.None. The local system is as follows:Windows XP + IIS 5.0 + PhP 5.0;The server isWindows Server 2003 + IIS 6.0 + PhP 5.0.

 

I searched the internet for two possible reasons:
1、in data, there is a page named quotation_print.html.
2,Quotation_print.htmlWhether the page has sufficient permissions.

 

 

 

I checked according to the information on the Internet. None of my situations are due to these two reasons.
I suddenly remembered that a PHP system was created the day before yesterday. Due to Path Problems, images could not be uploaded. Why is this?
So I tested it and found that it was still the problem. The following is my modification method.

First findSchemdes/cls_template.phpAnd then find"Fetch ($ filename, $ cache_id = '')"This function,
In the followingCode

If ($ this-> _ checkfile) <br/>{< br/> If (! File_exists ($ filename) <br/>{< br/> $ filename = $ this-> template_dir. '/'. $ filename; <br/>}< br/> else <br/>{< br/> $ filename = $ this-> template_dir. '/'. $ filename; <br/>}

Add the following sentence:

 

/* absolute Windows System directory */
$ filename = substr (_ file __, 0, strrpos (_ file __, " //")). "//". $ filename ;
in this way, the PHP running path on Windows is really a big problem.

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.