Windows ThinkPHP312 website compression format error problem resolution

Source: Internet
Author: User
Under the Windows platform, the following error is reported when using Firefox to generate the ThinkPHP3.1.2 version of the website file:
The page you are trying to view cannot be displayed because it uses an invalid or unsupported compression format.
Please contact the owner of the site to notify you of this issue.

This is the result of Ob_start (' Ob_gzhandler ') in the framework directory thinkphp/lib/core/app.class.php, which is caused by the following reasons:
The server does not support this compression format, can use Function_exists (' Ob_gzhandler ') to determine, the solution Ob_start (' Ob_gzhandler ') changed to Ob_start ();
49th Line Ob_start (' Ob_gzhandler ') changed to Ob_start ();
No. 271 Line Ob_start (' Ob_gzhandler ') changed to Ob_start ();
The Windows platform does not support file compression in gzip format, so an error can be corrected to an empty parameter.

The above describes the Windows ThinkPHP312 website compression format error problem resolution, including the aspects of the content, I hope that the PHP tutorial interested friends helpful.

  • Related Article

    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.