Can't upload images after moving the site from localhost to my online host.
-
Hey Armin,
I did a transfer from localhost to my domain name. Site works perfect and browses great. I wanted to add another image, but I keep getting a HTTP error. (That's what appears on the screen after I used the "media - add new". When I just drop my image files in the main media screen they just appear with a grey-paper-icon, but can't be opened or seen.
If I click on that icon I get this "attachment detail" page. On there, if I click on "view attachment page" below in the right column it does open the image.
But I can't add it to pages or anything…
The permissions of the Upload folder on wordpress are set to 755
I tried it on mozilla and on Safari. I work on a mac system. And I have tried it with JPG / png / … different image files. (You can find the site here: www.wardheirwegh.com)
Could you advise me how to solve this?
Best,
W. -
Hey wardh, can you please ask your webhost about this? Not sure, maybe your webspace is full.
cool website btw :)
-
@wardh said:
HTTP error
Thanks, Armin!
I found a solution. I added this to the functions.php of lay theme.add_filter( ‘wp_image_editors’, ‘change_graphic_lib’ );
function change_graphic_lib($array) {
return array( ‘WP_Image_Editor_GD’, ‘WP_Image_Editor_Imagick’ );
} -
hm whenever you update lay theme this will be overwritten :/
maybe theres a plugin that does the same, would be a better solution. -
Before you post:
- When using a WordPress Cache plugin, disable it or clear your cache.
- Update Lay Theme and all Lay Theme Addons
- Disable all Plugins
- Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code", click "Save Changes"
This often solves issues you might run into
When you post:
- Post a link to where the problem is
- Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
- If the problem is difficult to explain, post screenshots / link to a video to explain it