This website can use cookies to improve the user experience

This website can use cookies to improve the user experience and to provide certain services and functions to users. Cookies contain small amounts of information (such as login information and user preferences) and will be stored on your device.

Enable All Cookies Privacy Policy

Problem with HeaderBlock requests on new server


avatar
jfranco 0
From: -
Problem with HeaderBlock requests on new server

Hi Philipp,

I'm currently troubleshooting a new server where we will be moving soon. So far the only big problem I'm having porting the CMS files is that I'm getting this strange error on every single page that doesn't belong to the CMS per se, but are custom PHP files where I have used the following to include the site's header and footer:

require("core.php");
HeaderBlock();

I have no idea if the new server configuration is at fault, but we are running a standard installation of RHEL 5.1 (PHP 5.1.6, mysql 5.0.22). Any ideas?

The error I get in Firefox is:

Content Encoding Error
The page you are trying to view cannot be shown because it uses an invalid or unsupported form of compression.

Thanks

Julio
 http://www.techspot.com

Notice

This topic is archived. New comments cannot be posted and votes cannot be cast.

Responses to this topic


1 Re: Problem with HeaderBlock requests on new server
avatar
Administrator
1340
From: Vienna, Austria
Problem with HeaderBlock requests on new server

It is strange though how it only affects these files?

This is indeed odd. There should be no different between the CMS files and yours.

I tried changing the CMS setting as suggested but it dropped me into a blank page, not a 404, but literally a blank white page.

Perhaps your config.php is not writable?

How could I change the setting manually outside of the CMS?

There is no way to manually change this setting. The routine is at line 45 - 51 of core.php and will be executed everytime you include core.php in a script.
1 Re: Problem with HeaderBlock requests on new server
avatar
OP 0
From: -
Problem with HeaderBlock requests on new server

Hi Philipp,

Apparently the problem is indeed about output compression. It is strange though how it only affects these files?

I tried changing the CMS setting as suggested but it dropped me into a blank page, not a 404, but literally a blank white page. How could I change the setting manually outside of the CMS?

Thanks,

Julio
1 Re: Problem with HeaderBlock requests on new server
avatar
Administrator
1340
From: Vienna, Austria
Problem with HeaderBlock requests on new server

Perhaps your new server is already using output compression? Try disabling gzip by changing Other/Config => Disable GZIP Output => Yes

Notice

This topic is archived. New comments cannot be posted and votes cannot be cast.