Skip to content
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

Gzip can "get in the way" of order-confirmation #136

Closed
lat9 opened this issue Jun 2, 2018 · 1 comment
Closed

Gzip can "get in the way" of order-confirmation #136

lat9 opened this issue Jun 2, 2018 · 1 comment

Comments

@lat9
Copy link
Owner

lat9 commented Jun 2, 2018

While I've not seen the issue surface on FireFox, I've seen the console message

SCRIPT7002: XMLHttpRequest: Network Error 0x800c0007, No data is available for the requested resource.

issued from IE and a similar error issued from Chrome when clicking the "Confirm" button on the OPC's main page.

Tracing the issue down, it appears that having Configuration->Gzip Compression set to enabled is the source of the issue. When enabled, an HTTP header (Content-Encoding: gzip) is included in the response, which apparently confuses IE/Chrome so that a jQuery error occurs and the checkout cannot be completed.

Taking a clue from the downloads page's processing, the OPC AJAX calls that require an ob_start/ob_end pair (to return replacement HTML) will ensure that Gzip is disabled via php.ini directive prior to returning their response.

@lat9 lat9 added the bug label Jun 2, 2018
@lat9
Copy link
Owner Author

lat9 commented Jun 2, 2018

As a work-around for current installations, you can temporarily disable Gzip Compression.

@lat9 lat9 added this to the v2.0.1 milestone Jun 2, 2018
lat9 added a commit that referenced this issue Jun 2, 2018
Kill any active Gzip compression prior to HTML return and use the
session variables for the processing flags, as stored by the main OPC
handler when the page is fully rendered.
@lat9 lat9 closed this as completed Jun 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant