Unable to upload images

Issue Summary

Since upgrading to Local 6.7.0, I am unable to add images to the media library on any of my sites. I get this error message on some sites:

The server cannot process the image. This can happen if the server is busy or does not have enough resources to complete the task. Uploading a smaller image may help. Suggested maximum size is 2560 pixels.

On another site, I get this error message, which says the file may have been uploaded successfully, but it’s not in the Media Library.

Unexpected response from the server. The file may have been uploaded successfully. Check in the Media Library or reload the page.

I have seen the issue in a prior discussion. They were able to solve by using nginx instead of apache, but this does not solve for me.

Troubleshooting Questions

  • Does this happen for all sites in Local, or just one in particular?
    All sites. It is the case for brand-new sites and existing sites.

  • Are you able to create a new, plain WordPress site in Local and access it in a Browser?
    Yes, and it is unable to upload images.


Using Local 6.7.2, try Add New media.

System Details

  • Which version of Local is being used?

  • What Operating System (OS) and OS version is being used?
    macOS Ventura 13.3.1

  • Attach the Local Log. See this Help Doc for instructions on how to do so:
    local-lightning.log (652.5 KB)

Hi @lisawells999

You could try some of the suggestions here to see if they resolve the issue:

Thanks, @Nick-B.
WPBeginner suggests:

  1. Make sure image is smaller than 2500px
    (largest I’m testing is 1449px)
  2. Make sure no special characters in file name ✓
    (image names have only letters, numbers, hyphens, underscores)
  3. Try later
  4. Try a different file
  5. Try a different browser ✓ (firefox)
  6. Increase WordPress Memory Limit to 256M in wp-config. ✓
    (Site Health already reports PHP memory limit at 256M)
    Added the line to wp-config, anyway, to test.
    define( ‘WP_MEMORY_LIMIT’, ‘256M’ );
    Actually, the memory limit was being set in php.ini, but also 256M there.
    memory_limit = 256M
  7. Increase maximum file upload size or optimize images to make them smaller
    Is set to 300 MB. I’m testing upload with files that are, say, 106 KB or 557 KB.
  8. Change Image Editor Library to GD Library
    Active editor is already WP_Image_Editor_GD

Still stumped. :slightly_frowning_face:

I threw away the Local configuration folder (according to instructions to Uninstall Local, although I didn’t uninstall—just ditched the config folder) and all seems to work now.

Delete Local’s configuration folder by navigating to “~/Library/Application Support” and deleting the “Local” folder.

Glad to hear it @lisawells999! Thank you for coming back and sharing the resolution you found.

This topic was automatically closed 36 hours after the last reply. New replies are no longer allowed.