• hi guys,

    after having fixed many image http upload errors in many wordpress instances it looks like i found my master in the actual one.

    we run several wordpress installations on the same server. same php version and settings (256mb memory limit, 5000 input vars, php 7.3). in all my blogs image upload in media gallery works like charm. just in one multisite i always get an error. in the last version of wordpress (i think it was wp 5.1) i got an unspecific http error. in the recently updated wp 5.3.2 i get the error:

    Die Nachbearbeitung des Bildes ist fehlgeschlagen. Wenn es sich um ein Foto oder ein gro?es Bild handelt, verkleiner es bitte auf maximal 2.500 Pixel und lade es erneut hoch.

    english translation should be

    The processing of the image failed. If it’s concerning a photo or large image please lower resolution below 2.500px and re upload.

    in php 5.6 in that domain everything works fine. in php 7.2 or 7.3: error. and ONLY on that one domain. all the other ones work fine.

    Things i already checked really include everything i ever tried on any blog. All in vain.

    • update to newest wp and plugin versions
    • upload small images, 100kb. gif, png, jpg. all failed, independent of image size
    • check for illegal file name characters: none
    • deactivated all plugins on multi site
    • even switched to standard theme, which requires lots of widget reconfiguration after switching back to out own theme
    • activated wp debuggin fully in wp-config.php. at least with standard theme/no plugins nothing but the usual warnings from wp standard core files
    • raised and checked php memory limit from 256 to 512mb
    • checked folder permissions on wp-content and our custom upload folder dir. all fine 755
    • switched the whole domain back to non ssl, deactivated serverside ssl forced encryption
    • we’re using a custom upload folder. after uncommenting in wp-config the images in media library were broken > setting for upload folder was again /wp-content/uploads. but even in there: same error
    • contacted the hoster allinkl.com. no help
    • in this instance of wordpress we’re using quite a lot of plugins. but i’m sure: not the problem as the error persists on complete plugin deactivation. full list: shtml on pages, adminimize, advanced menu widget, all in one seo pack, autoptimize, blog name restrictions override, clone posts, contact form 7, custom upload dir, remove dashboard access, duplicate post, email address encoder, embed javascript, export users to csv, google analyticator, http/https removal, kalins pdf creation station, linkable php widget, media tags, members only, network user names restrictions override, peters login redirect, php everywhere, resize on upload, search and replace, simple page ordering, slick nav mobile menu, smooth slider, ssl insecure content fixer, tiny mce advanced, toolset types, user access manager, wordfence security, wordpress https, wordpress mu domain mapping, wp permalauts, wp super cache, wp filemanager, wp slimbox 2

      the weird thing is that exactely with the same wp version/php version/settings other blogs on the same server run asbolutely fine. after deactivating all plugins and switching to standard theme i’m also pretty sure to be able to exclude this as a reason.

      only difference: the domain with the wordpress image upload errors is a multi site. the problem is the same on any blog in that multi site.

      any more ideas?

    • This topic was modified 4 years, 8 months ago by ffwebdesigner.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @ffwebdesigner,

    I found this related thread – seems a bunch of others are also having this issue.

    https://www.ads-software.com/support/topic/unable-to-upload-images-67/page/9/

    If you start on the last page and work backwards you’ll find various solution that other users have found:

    For example, having apostrophes in image filenames seems to be causing issues.

    Good luck!

    Thread Starter ffwebdesigner

    (@ffwebdesigner)

    amongst 100 posts on the thread you linked i found 4 more possibilities. i’ll check them soon. thanks, phill!

    Thread Starter ffwebdesigner

    (@ffwebdesigner)

    some more things i tried:

    putting `function use_gd_editor($array) {
    return array( ‘WP_Image_Editor_GD’, );
    }
    add_filter( ‘wp_image_editors’, ‘use_gd_editor’ );`

    in functions.php to switch the server side image prcessing from image magick to gd lib. fail.

    adding SetEnv MAGICK_THREAD_LIMIT 1 to htaccess. fail.

    adding add_filter( 'big_image_size_threshold', __return_false); to functions.php. fail.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘image upload error’ is closed to new replies.