• Hello,
    I have had my WordPress site for some time now (https://hauserdesigngroup.com/wordpress). A few days ago I migrated everything to a new server. Everything works, posts, comments, users, etc. – I even upgraded my version of WordPress and had to input the new server’s password – but when I try to upload an image I don’t see it.

    I don’t get an error.
    The image name shows up in the media library – but no picture. SO I can insert it into a post, but it’s just a broken image icon.

    The site URL and file structure are exactly the same as before. When I FTP to the “wp-content/uploads” folder I can see that no new images are being placed here.

    Any ideas?

    When I moved all my old files to the new server, the ONLY file I did not overwrite on the new server was the “wp-config.php” file… I don’t know if that could have something to do with it?

    Please help.
    Thanks.

Viewing 15 replies - 1 through 15 (of 23 total)
  • Thread Starter ajhauser

    (@ajhauser)

    Thank you for the link. Unfortunately these are the instructions – with several other support and help articles online – that I used to move my blog. Like I said, everything is working but I can’t upload images. Where might I start looking to fix this?

    Thanks again.

    Check your uploads path in Settings->Media. It should be blank in most installs.

    Thread Starter ajhauser

    (@ajhauser)

    Ok, yes both of those are blank in the settings for media. It’s odd because I still get the 0% and “crunching” text to show up, and then I see the text that you can edit for pictures, but no picture. Then when I press “insert” I get the broken image icon and when I look in the media folder there is no new image.

    Thread Starter ajhauser

    (@ajhauser)

    Also, I had to adjust “usr/local/php5/lib/php.ini” and change upload_max_filesize to 6M from 2M so that I could use phpmyadmin to import my old database – but I don’t think that would affect anything, would it?

    You reduced the upload limit?

    Thread Starter ajhauser

    (@ajhauser)

    No sorry, I increased it from 2MB to 6MB so I could import my database.

    Have you checked to see if the images are actually being uploaded to wp-content/uploads?

    Thread Starter ajhauser

    (@ajhauser)

    Yes, they are not – on either the new or old server.

    Are they being uploaded to anywhere on your server?

    Thread Starter ajhauser

    (@ajhauser)

    No, that’s what’s weird… I’ll run a “find / -name” command now just to make sure, but they are definitely not going into the uploads folder.

    It might also be worth checking your server’s error logs. If you are really trying to upload huge 5M or 6M images files, then it’s likely that you are exhausting your PHP memory allocation. I would never recommend uploading images that are larger than (say) 1M.

    Thread Starter ajhauser

    (@ajhauser)

    I’ll check, but the images are only a few hundred K

    Thread Starter ajhauser

    (@ajhauser)

    I have a lot of “failed to open stream” errors it looks like – what could that mean?

    [Fri Apr 27 01:12:57 2012] [error] [client 50.81.90.111] PHP Warning: copy(/home/hauseradmin/www/hauserdesigngroup.com/wordpress-3.1/wp-content/uploads/2012/04/hauser-design-author+-link-in-bio-1.jpg) [function.copy]: failed to open stream: Permission denied in /home/hauseradmin/www/hauserdesigngroup.com/wordpress-3.1/wp-admin/includes/file.php on line 348, referer: https://hauserdesigngroup.com/wordpress/wp-admin/media-upload.php?post_id=478&

    Try changing the permissions on the wp-content directory to 766. If you still have problems, try 767, 775 or 777. Once your uploads are working, change the permissions on wp-content back to 755 again and check that everything still works OK.
    https://codex.www.ads-software.com/Changing_File_Permissions

Viewing 15 replies - 1 through 15 (of 23 total)
  • The topic ‘After server move images don't upload…’ is closed to new replies.