blstone on "HTTP Error when uploading to Wordpress"

ساخت وبلاگ

Hi,

When writing a post and trying to upload photos via 'Add Media' I get a HTTP Error.

The file itself uploads just fine, but there's no thumbnail, no other data, and I cannot view it from the add media screen.

I have tried:

- Adding the mod_security information to wp-admin/.htaccess
- Changing theme back to default
- Disabled all plugins

But still no luck.

The photo I'm trying to upload is just 1.82mb and 4000x3000.

Running WordPress 4.2.7 on PHP 5.3.29.

Thank you

Hi,

did you check the 'temp' folder of your server? you can try clearing it.Can i ask which version of Imagick you have?

Joe McGill
Member
Posted 1 month ago #

Hi @blizeH

This sounds a lot like the same issue being discussed in this thread.

Could you try adding the following line to the .htaccess file in the main WordPress directory on your server and see if that resolves your issue?

SetEnv MAGICK_THREAD_LIMIT 1

Thanks,
Joe

@Joe McGill - Thank you, my .htaccess now looks like this:

AddHandler php53 .php
Action php53 /cgi-bin/php53.cgi
SetEnv MAGICK_THREAD_LIMIT 1
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress

But I'm still getting the same error unfortunately.

@dimitris33 - thank you, unfortunately I don't have access to the server's temp folder, how do I check the Imagick version? I can't see anything under phpinfo.

Thanks again

Just tried adding this to my theme's functions.php file:

add_filter( 'wp_image_editors', 'change_graphic_lib' );
function change_graphic_lib($array) {
retu array( 'WP_Image_Editor_GD', 'WP_Image_Editor_Imagick' );
}

Still getting the same http error :(

@blize

this is a temp fix, please try this plugin

https://github.com/getsource/default-to-gd

@dimitris33 - thank you, unfortunately I don't have access to the server's temp folder, how do I check the Imagick version? I can't see anything under phpinfo.

with a phpinfo or asking your hosting company.Don't you have access to the server? can you ask the person who does?

Ah, thank you so much! The plugin worked :)

todownunits
Member
Posted 1 day ago #

I tried every tip in all the threads mentioned with no luck. Then the second last post in one of the threads before it was closed recommended to deactivate EWW Image Optimizer if you had it installed. That solved my problem instantly.

blstone
Member
Posted 3 minutes ago #

I have had the same problem and tried 5 or 6 methods (including .htaccess edits) I found from forums and posts, which did not work.
Great news is that GetSource plugin worked and solved this issue. I think at this point this is the real solution to this issue. Some are even saying this is a bug in the latest version WP.

Thanks, VM dimitris33!

Version: WordPress 4.5.2

WordPress ...
ما را در سایت WordPress دنبال می کنید

برچسب : نویسنده : استخدام کار wpss بازدید : 218 تاريخ : شنبه 8 خرداد 1395 ساعت: 22:00