• After the last update, have two websites doing the same thing. When trying to upload images to the media gallery. It tries to upload image – gets up to 100% upload and goes into “crunching”, gets stuck!!!!

    If you back out to media Gallery, it has a gray document style icon and names it: (no title) – Logo. Does not actually link through to anywhere and doesn’t even show the usual checkbox to delete it.
    When we FTP to the uploads folder, it actually uploads the image and it’s not corrupt (we can download it and open it up just fine). So not a permissions issue on the uploads folder.
    Also, this is a VPS server, the site is overpowered 128M & 256M on everything, so it’s not resources.
    As well we have other websites on the server with the same plugins and theme and they work fine, so it’s not server settings.

    Things we’ve already tried to troubleshoot:

    Permission on all files, tried several different like 755, 744 etc (no luck)
    All plugins deactivated (all) (no luck)
    Current Twenty Seventy theme change (no luck)
    Did a fresh wordpress install (no luck)
    Site was running truough Cloudflare, change DNS to direct server (no luck)
    Make sure the async-upload.php file has the proper permissions (did nothing)

    Any great ideas, exhausted all ideas on Google and every forum we could find? Sites work great other than this issue.

    Thanks in advance.

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

Viewing 8 replies - 1 through 8 (of 8 total)
  • I wonder if the owner file permissions are set right? FTP in and look at that or check via your hosting control panel’s file manager. You can set the permissions to 777 temporarily to see if they work also but I wouldn’t leave that set that way.

    The command chown will set the ownership just like chmod sets the permissions.

    I am encountering the same issue on my blog ChartsAndTrends since a couple of months. This error occurs with png files but not with jpg files for some unknown reasons.

    • This reply was modified 5 years, 6 months ago by chartsandtrends. Reason: forgot to check the 'notify me' box
    Thread Starter Mr Bass

    (@mr-bass)

    Guys @jnashhawkins @chartsandtrends, thanks for the response. It’s definitely not a permissions issue.

    On upload, WordPress gets hung up in “crunching” mode, does not create a thumbnail but does upload image to the right folder. If was permissions problem, it would not upload to the folder.

    Are you saying the original image gets uploaded but WordPress can’t create its renditions of that image? Or is the image more of a broken ‘stub’ that won’t render?

    It really might still be an ownership permissions thing or the code that ‘crunches’ images might not have uploaded properly. But thinking about it more I’d be prone to rule out ownership issues but I would set the image upload directory to 777 just for ‘Hee Haws’ and test then change it back right after the test.

    Do you have the Health Check plugin installed and does it tell you anything? Is Debug on? Does that tell you anything? Did Site Health create any warnings when the last upgrade occurred?

    There is a new (May 21st) version 5.2.1 available and that might address this issue in one of its enhancements.

    If not then maybe it’s a broken core file… This article might help you if the file or a few files are broken…

    https://www.ads-software.com/support/article/updating-wordpress/

    @chartsandtrends Your problem is slightly different but somewhat alike. I imagine your issue might be WordPress doesn’t recognize your image type by extension. Possibly.

    For both of you if you are on a multisite make sure the network super admin has set the media types to include your png extension.

    Also, there’s a plugin that can help you double check upload types… this article explains that plugin. I probably wouldn’t run this on a multisite as the way to deal with that is already quasi-present. But maybe run it just to look.

    https://wpforms.com/docs/how-to-allow-additional-file-upload-types/

    This next idea is pretty far afield but might either work or trigger something to help us isolate the problem. There’s a plugin called Smush that I like and it might bypass the current problem subsystem allowing the files to load and then shrinking them. And it might instead make WordPress fuss!

    https://www.ads-software.com/plugins/wp-smushit/

    Hope some of this helps.

    And @chartsandtrends… It’s usually frowned on to ‘pile on’ problems to an ongoing thread unless you’re post adds something to the discussion like your post today did. It made me think about the uploadable file and mime types.

    Nevertheless, you probably should report your problems separately. It helps us provide more specific answers and cuts down on the confusion. But I like it when a user has an anecdotal post that mentions a slightly different view of the same issue.

    Again, hope some of this helps and thank you for your input.

    Let me know if you need anything else.

    Thread Starter Mr Bass

    (@mr-bass)

    @jnashhawkins we are well beyond the basic permissions. As I wrote before, the image(s) do upload to file folder in perfect form. You can use the url and they look great.

    Again, the problem is it gets up to 100% upload and goes into “crunching” mode then gets stuck!!!!

    Our sites are ALWAYS up to date and the Health Check plugin very basic and did nothing for us.

    I’m having this issue too. As OP pointed out Uploading stops on Crunching, file is correctly uploaded to the server and is not corrupt. I’ve also changed permissions (they where correct at 755 fir directories, 644 for files and owner apache as on all our other servers). In media it says for this file (no title) – Logo. It does not actually link through to anywhere and doesn’t show the usual checkbox to delete it. I’ve also disabled all plugins and switched to a default theme but same issue. other sites on this same box work with no issue. file is a mere 16k and upload limit is 40M. So yes this is identical to the OP issue which I presume remains unresolved. I’m using wp 5.2.3 with php 7.1

    I have however discovered something which I hope can point someone towards a solution. In this case our site is hosted on a lightsail LAMP stack (bitnami).

    I looked in Firefox dev console on Network mode and found that the async-upload.php file runs twice the first one correctly loads the file and you can see the content bytes in the dev consoles params page and it has a response of 0. Immediately after this is fired it sends another async-upload.php file but this one says {“Form data”:{“attachment_id”:”0″,”fetch”:”3″}} in the params and in the response it says “The link you followed has expired.
    Please try again.” this message is not displayed on the page. Timeouts are set as 300 I enabled Imagick on the server and tried again result was the same crunching and double sending async-upload.php

    I found that my wp_posts didn’t have a primary key on the id column. I reloaded the database and now I have a different error saying that it Could not insert post into the database. This time however the blank entry wasn’t added (with an id of 0) but the image is still uploaded to the uploads 2019/09 folder. Hoped this would be end of issue but it still persists. I reloaded wordpress but still no fix here.

    taera

    (@taera)

    I have this problem too anyone cant help?

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Image Upload Stops at Crunching….’ is closed to new replies.