Media Library http 500 Errors after server switch
-
Hi all,
I’m hoping for a little help on a strange WordPress error.
I’ve checked through the forums but didn’t see the exact issue here.Apologies in advance – I’m not very technical and don’t deal much with the WP back end / file setup (I handle the front end), so I may explain this badly, but I’ll do my best.
I work on a commercial WP website. About 7 months ago, the software team changed servers, moving from international to local.
Everything seemed to be going fine – all information and links were ported successfully, the site didn’t break, etc. On the front-end, everything still appears fine and functional. However, there appear to be some errors with content uploading since the move.
When I upload something to the Media Library, initially, it appears fine. In the Media Library, the preview grid works as per normal. When I click on a file (a JPG for example) it opens a preview window properly, and when I click on the ‘view attachment page’ link in the preview window, that image loads properly as well.
However, when I then click on that image, I get an HTTP Error 500.
I notice this changes my URL to that of the direct upload:
https://www.website/wp-content/uploads/date/filenameFurther investigation has shown a clear line: nothing that was uploaded before we switched servers has this problem. Everything that has been uploaded since, gives the same 500 error.
It only appears to be a problem with the direct URLs, not with other usage of the file.
For example, if I upload an image into the Media Library, I can drop it into a page, post or portfolio gallery, and it seems to display fine.
However, if I try to link directly to where they are uploaded (by copying the URL from the Media Library into a button, for example) I get the server 500 error.Our software team are a bit stymied by this, so I’m hoping to help out.
Has anyone encountered this before, or have any ideas?
I’m not sure if its a database problem, or a WP problem, or a server problem…
Anything that I can take back to the software team would be very appreciated!Cheers,
Brett
- The topic ‘Media Library http 500 Errors after server switch’ is closed to new replies.