AbanteCart Community

Shopping Cart Operations => Support => Topic started by: raj@ad4u.co.uk on April 11, 2018, 12:02:41 PM

Title: Output Compression Level - field not validated - can crash abantecart
Post by: raj@ad4u.co.uk on April 11, 2018, 12:02:41 PM
Hi,

The "Output Compression Level" is not validated on input and can cause the system  to crash with a blank screen if an incorrect value is entered. Then there is no way to load the shop or admin.

To resolve the issue you need to edit "/core/lib/response.php"

LINE
132   $this->addHeader('Content-Encoding: ' . $encoding);
133       $level = 9;  <-- ADD THIS TEMPORARY LINE TO GET THE SYSTEM WORKING
134   return gzencode($data, (int)$level);
134   }

Once you get back to admin enter a correct value for "Output Compression Level" and remove the above added line.

Hope this helps.

Raj.
Title: Re: Output Compression Level - field not validated - can crash abantecart
Post by: abantecart on April 11, 2018, 08:41:57 PM
Welcome to AbanteCart Raj and thank you for sharing.

I think most of a web servers can manage the compression now. This feature might be outdated.
I will check and will do updates