Firefox prompts that the page you are trying to view cannot be displayed due to a Content Encoding Error because it uses an invalid or unsupported compression format.

Source: Internet
Author: User

A colleague asked this in the morning: I just found out.

 

PHP environment compatibility --


Content Encoding Error


The page you are trying to view cannot be displayed because it uses an invalid or unsupported compression format.
Contact the website owner to inform you of this problem.

 

I have encountered the same problem before. I remember it was caused by PHP code ob_start ('ob _ gzhandler'). There are two causes,

  1. The server does not support this compression format. You can use function_exists ('ob _ gzhandler') to determine the compression format. solution:
    Change ob_start ('ob _ gzhandler') to ob_start ();
  2. When ob_start ('ob _ gzhandler') is used, the previous content is output, and the previous content and require are checked.
    Include the content of the call file. If it cannot be found, you can use ob_start () before calling other files.
    Ob_end_clean
    ()
    To clear the output content;

After checking, my problem lies in the set_magic_quotes_runtime () function, prompting the Content Function
Set_magic_quotes_runtime () is
Deprecated. The cause of this prompt is that this feature has been disabled after php5.3 and has been completely removed from PhP6, that is, this function does not exist. You can comment
Or delete the row with an error, or add the @ symbol before set_magic_quotes_runtime.

Note that php5.30 is not supported by default. <? = $ Username;?> This syntax requires the use of the output variable &
Lt ;? PHP echo $ username;?> Syntax. You can set the short_open_tag in PHP. ini
On, so that you can be compatible with the original syntax.

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.