Do you like AbanteCart? Please rate AbanteCart or share your experience with other eCommerce entrepreneurs. Go to Softaculous rating page to add your rating or write a review

Output Compression Level - field not validated - can crash abantecart

Started by raj@ad4u.co.uk, April 11, 2018, 12:02:41 PM

Previous topic - Next topic

raj@ad4u.co.uk

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.

abantecart

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

Forum Rules Code of conduct
AbanteCart.com 2010 -