New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Content Encoding Error: No Image Thumbnail Preview #39

cosmomathieu opened this Issue Aug 25, 2016 · 0 comments


1 participant

cosmomathieu commented Aug 25, 2016

When using GZip, the content/pages/create-thumb throws a Content Encoding Error. The image thumbnail is never created and therefore never returned to the image upload content type.

To resolve this ad ob_start('ob_gzhandler') to the create-thumb method.

public function create_thumb()
        if ( ! is_ajax())
            return show_404();

        if ($this->input->post('image_path'))
            echo image_thumb($this->input->post('image_path'), 150, 150, FALSE, array('no_image_image' => ADMIN_NO_IMAGE));

@cosmomathieu cosmomathieu added the bug label Aug 25, 2016

@cosmomathieu cosmomathieu added this to the Version 1.3 milestone Aug 25, 2016

@cosmomathieu cosmomathieu self-assigned this Aug 25, 2016

cosmomathieu added a commit that referenced this issue Aug 28, 2016

Fixes #39
Fix content encoding error when creating thums via ajax when GZip is
turned on.

@cosmomathieu cosmomathieu modified the milestones: v1.3.0, v1.4.0 Mar 2, 2017

@cosmomathieu cosmomathieu added this to Completed in v1.3.0 Mar 2, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment