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

Image fail upload. 'HTTP Error.' #167

Closed
Taylor4484 opened this issue Sep 2, 2015 · 5 comments
Closed

Image fail upload. 'HTTP Error.' #167

Taylor4484 opened this issue Sep 2, 2015 · 5 comments

Comments

@Taylor4484
Copy link

I've got the plugin installed. It seems that images generated from photoshop can cause uploads to fail with a simple 'HTTP Error'.

Disabling the RRIG plugin fixes the issue. It's not all images though. This affects uploads directly to the media page as well as via the media adder in posts and pages. I can upload non-Photoshop generated images just fine.

I'm able to reproduce on multipule different WordPress instances.

Here's the image I'm struggling to upload:
https://s3.amazonaws.com/uploads.hipchat.com/16076/1241494/7Z0uil2VORNx8gQ/Ageing%20Workforce-1.jpg

Here's the JS errors that are generated when that upload fails after struggling for a few minutes:
mysite.com/wp-admin/async-upload.php Failed to load resource: the server responded with a status of 502 (Bad Gateway)

mysite.com/wp-admin/admin-ajax.php Failed to load resource: the server responded with a status of 502 (Bad Gateway)

Image of error:
https://s3.amazonaws.com/uploads.hipchat.com/16076/1241494/1EiFAzOJytteAis/Screen%20Shot%202015-09-02%20at%2011.20.33%20AM.png

@joemcgill
Copy link
Member

Hi @Taylor4484. Try turning of the advanced image compression option and see if that resolves the issue. You're probably experiencing #150.

@Taylor4484
Copy link
Author

I can confirm that disabling advanced image compression does resolve the issue! Thanks @joemcgill

We're good to close this issue unless the details here help #150

@joemcgill
Copy link
Member

Thanks for confirming @Taylor4484. I'll go ahead and close this one and it'll be tracked over there.

@clicknathan
Copy link

Where exactly does one turn advanced image compression off?

Using something like this:

function custom_theme_setup() {
remove_theme_support( 'advanced-image-compression' );
}
add_action( 'after_setup_theme', 'custom_theme_setup' );

Or is there a hidden settings page somewhere?

@joemcgill
Copy link
Member

@clicknathan the advanced image compression feature is not on by default, you have to turn it on through and add_theme_support() flag in your theme. See: https://github.com/ResponsiveImagesCG/wp-tevko-responsive-images#advanced-image-compression

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants