I’ve never had this happen before. After I’ve migrated my site from localhost to prod, I cannot upload anything through the media upload in wordpress. I get a stupid error that says “An error occurred in the upload. Please try again later.” I also cannot view the images thumbnails either, the loading icon keeps spinning.
Here is the troubleshooting i’ve gone through:
Changed my FTP permissions to 755 on pretty much everything.
Reinstalled wordpress
Deactivated all plugins
Switched themes and the uploads work
It turns out the images are getting uploaded and the thumbnails are generated, I just cannot view them in the admin unless I go to list view. Which is pointless because I can’t add them to a page that way.
Strange? Any suggestions? Thanks!