Jump to content

PS 1.6.1.15 net::ERR_CONTENT_DECODING_FAILED


doss

Recommended Posts

hi

 

I've installed two official modules delivered by dhl and tpay.com and I've got problem with net::ERR_CONTENT_DECODING_FAILED. 

 

When i enable dhlassist module, in BO my order page is loading in infinity... in console i've got:

net::ERR_CONTENT_DECODING_FAILED. 

 

When i disable module problem is solved.... but i need this module :)

 

The same problem is with tpay.com module in last checkout page. Page is loaded and loaded and loaded...

 

In BO in this module in configuration page i've got popup message from presta debug:

 

Warning in line 1829 in filev/classes/controller/AdminController.php
[2] Cannot modify header information - headers already sent by (output started at /modules/tpay/views/templates/admin/configuration.tpl:36)
 

 

This tpl file contains javascript code and loaded jquery. This tpl file is loading by tpay.php in main folder of module by:

 
        include_once(dirname(__FILE__) . '/views/templates/admin/configuration.tpl');
        return $output . $this->displayForm();
 
When I comment it, popup doesnt appear, but in front error with loading still exist.

 

It looks like these modules mess up with cache and send own data before presta do they job...? Gzip is on, php is 5.6. Any ideas?

 

 

Link to comment
Share on other sites

Warning in line 1829 in filev/classes/controller/AdminController.php
[2] Cannot modify header information - headers already sent by (output started at /modules/tpay/views/templates/admin/configuration.tpl:36)

 

Module files must not output content direclty. Not even a blank space. It is simply faulty code. Contact the module developers in order to get a fixed version.

Edited by Scully (see edit history)
Link to comment
Share on other sites

Thank, but this is just warning. Main errors are in FP and it looks like modules send data before presta do their job. Sometimes cache work propertly and everything is fine. I dont know where I exacly should search solution.

 

Developers just said to enable/disable gzip.

Link to comment
Share on other sites

Cannot modify header information is 50% script error and 50% server configuration error. This error is very common on shared host, on where no load balancing is running and the server is overhead by requests. In this case contact the support of your webspace. I don't think that you are having this same problem for several modules at once. It should be the server.

 

Disable gzip is also not the solution, if you are not on Debian (it's a Debian Bug). In this case disabling gzip is for SSL traffic not disrupt on wrong encoding. So this point you can apply only if one module needs SSL (payment modules in general). All other modules interacting with Prestashop software in general don't need gzip disabled.

 

Magic_quotes on your server is set to OFF ?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...