Can't upload anything via Cornerstone

If I’m in Cornerstone and try to upload an image, I always get the following error: Post-processing of the image failed. If this is a photo or a large image, please scale it down to 2500 pixels and upload it again.

I’ve tried different types of images, different sizes (all much smaller than 2500px wide) and always get the same result. If I upload the image through the regular Media section of WordPress, it upload no problem. And then I can usually access the image in the Media Library from within Cornerstone.

If I try to upload a Custom Font (a .woff) through Cornerstone in the Fonts Manager, I get the following error: Unexpected response from the server. The file may have been uploaded successfully. Check in the Media Library or reload the page.

When I check the regular Media section of WordPress, it has not been uploaded. I can however upload the woff files in the regular Media section. BUT then when I go to add the Custom Font again and show the Media Library, it shows me no files at all even though I have images and woff files in there!

I’m on a Transferable WP Engine site and I’ve checked the Error Logs there and there is nothing out of the ordinary. I’m using the regular version of X Theme, it’s the latest version, WordPress and Cornerstone are up to date, and I’ve deactivated all other plugins. There’s no custom CSS or JS in use. I’ve tried Clearing Style Cache and WP Engine Cache. Still not working. Please advise.

Hi Jason,

Thank you for the detailed informaition and we’re sorry you are having this issue. Though as I search, it seems a wordpress issue.. From the thread, others says it is a Mod Security issue. Can you check in with you server provider about Mod Security. Let us know how this goes.

Thanks Lely. That link was helpful as it got me to check the Network tab of Inspect Element which is what shed the light on what was going on. My bad for not checking that sooner…

In case anyone else has this issue, this is why it was happening:

  • We’re on a Transferable WP Engine site which makes the site password protected behind Basic Authentication
  • WP Engine automatically sets up Transferable sites with http://
  • The site still works by using https:// so that is what I was using
  • The Media Library through Cornerstone uses the async-upload.php script to upload things whereas the WordPress Media section does not.
  • The async-upload.php script was trying to upload to http:// because that was the Site’s address but I was accessing the site through https://, so async-upload.php was returning a 401 Unauthorized error because it was authorized on https and not http… which was preventing the upload. The upload errors seen were not appropriate.

So once I updated the WordPress Site settings to have https in the address and then accessed the site through https, uploading worked through Cornerstone.

Fixed!! :roll_eyes: :weary:

1 Like

Glad you sorted things out, and thank you for sharing that info.

Cheers!

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