• Resolved beggers

    (@beggers)


    After the upgrade to WP 5.4.1 I am unable to upload an image to an article. The complete error is:

    Media upload failed. If this is a photo or a large image, please scale it down and try again.

    The image is 700×783, no larger than other images I routinely upload.

    Someone suggested I open the browser console and record the message. Here it is:

    
    index.js?ver=74505a7…c6499588c02a4514e:1 POST https://moviedebuts.com/wp-json/wp/v2/media?_locale=user 500
    X	@	index.js?ver=74505a7…c6499588c02a4514e:1
    (anonymous)	@	index.js?ver=74505a7…c6499588c02a4514e:1
    (anonymous)	@	index.js?ver=74505a7…c6499588c02a4514e:1
    tryCatch	@	wp-polyfill.min.js?ver=7.4.4:1
    invoke	@	wp-polyfill.min.js?ver=7.4.4:1
    t.<computed>	@	wp-polyfill.min.js?ver=7.4.4:1
    n	@	index.js?ver=74505a7…c6499588c02a4514e:1
    u	@	index.js?ver=74505a7…c6499588c02a4514e:1
    (anonymous)	@	index.js?ver=74505a7…c6499588c02a4514e:1
    (anonymous)	@	index.js?ver=74505a7…c6499588c02a4514e:1
    (anonymous)	@	index.js?ver=74505a7…c6499588c02a4514e:1
    (anonymous)	@	index.js?ver=74505a7…c6499588c02a4514e:1
    R	@	index.js?ver=74505a7…c6499588c02a4514e:1
    (anonymous)	@	index.js?ver=74505a7…c6499588c02a4514e:1
    O	@	index.js?ver=74505a7…c6499588c02a4514e:1
    (anonymous)	@	index.js?ver=74505a7…c6499588c02a4514e:1
    R	@	index.js?ver=74505a7…c6499588c02a4514e:1
    (anonymous)	@	index.js?ver=74505a7…c6499588c02a4514e:1
    (anonymous)	@	index.js?ver=74505a7…c6499588c02a4514e:1
    O	@	index.js?ver=74505a7…c6499588c02a4514e:1
    (anonymous)	@	index.js?ver=74505a7…c6499588c02a4514e:1
    (anonymous)	@	index.js?ver=74505a7…c6499588c02a4514e:1
    t	@	index.js?ver=74505a7…c6499588c02a4514e:1
    (anonymous)	@	index.js?ver=74505a7…c6499588c02a4514e:1
    L	@	index.js?ver=74505a7…c6499588c02a4514e:1
    (anonymous)	@	index.js?ver=74505a7…c6499588c02a4514e:1
    (anonymous)	@	index.js?ver=74505a7…c6499588c02a4514e:1
    (anonymous)	@	index.js?ver=74505a7…c6499588c02a4514e:1
    (anonymous)	@	index.js?ver=74505a7…c6499588c02a4514e:1
    $	@	index.js?ver=74505a7…c6499588c02a4514e:1
    Show 27 more frames
    
    • This topic was modified 4 years, 7 months ago by Yui.
    • This topic was modified 4 years, 7 months ago by Yui. Reason: please use CODE button for code formatting

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • @beggers

    You could use a bandaid solution with this plugin to remove the threshold :
    https://www.ads-software.com/plugins/disable-big-image-threshold/

    Or you can overwrite it by placing this in the functions file of your child theme :
    add_filter( ‘big_image_size_threshold’, ‘__return_false’ );

    Thread Starter beggers

    (@beggers)

    I tried both solutions and they failed. According to some people in support area of that plugin, these solutions stopped working in WordPress 5.4.

    Thread Starter beggers

    (@beggers)

    Okay, I stumbled upon the solution. This situation is may be unique to me but here is the info in case someone has the same problem.

    I host on Codero use Plesk. This problem first occurred a couple of days ago. On that day an automatic Plesk update failed and support had to manually install it.

    Then I realized that all 6 of my sites all had the same image uploading problem.

    Thinking this might be a memory issue with PHP, I went in and checked the PHP settings of each domain. I wanted to make sure all of them were set to the latest version of PHP (v7.3.17) offered by Plesk and 256M of memory.

    MovieDebuts.com already had these settings but just for the heck of it I hit APPLY to re-apply the settings. That fixed the image uploading problem!

    I went into my other domains and re-applied those settings and they starting working again, too. I’m thinking that the last Plesk upgrade (which failed the first time) may have lost these settings.

    So if you see the error I posted, make sure you have a recent version of Plesk and set PHP to 256M of memory.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘“Media upload failed” after upgrade to 5.4.1’ is closed to new replies.