WordPress.org

Ready to get started?Download WordPress

Forums

Some image links broken after import even though images are uploaded (14 posts)

  1. chjcoughlan
    Member
    Posted 2 years ago #

    hey there.

    just imported all my posts etc. from my old site and most of the images work but there are a few that dont work. they link through to images but they just dont display. i cant figure out why??

    can anyone let me know? maybe a plugin can fix it.

    thank u

    example: http://some-like-it-raw.com/2011/11/12/intuitive-eating-eat-when-you-are-hungry/

    some images work and others dont.

  2. Roscius
    Member
    Posted 2 years ago #

  3. chjcoughlan
    Member
    Posted 2 years ago #

    hi there thanks for the suggestions but it doesnt work...just gives me errors and says it cant update images.

  4. Roscius
    Member
    Posted 2 years ago #

    You you most likely have a permissions issue with your wp-content/uploads directory:

    http://codex.wordpress.org/Changing_File_Permissions

    When you move the site and re-import it, you also have to move the uploads directory.

    http://codex.wordpress.org/Moving_WordPress

  5. chjcoughlan
    Member
    Posted 2 years ago #

    hi - it has nothing to do with either of those things. if u check out the post i linked to u will see that some of the images work and others don't. even if u click the broken link it still takes u to the right image. the thumbnail is just not showing in the post properly.

    when i imported it also downloaded and imported all attachements into the uploads directory which is why all the images are already there.

  6. Roscius
    Member
    Posted 2 years ago #

    It's because you need to regenerate the thumbnails. If you go to: http://some-like-it-raw.com/wp-content/uploads/2011/11/tumblr_ltvoxnAiWS1qb5gkjo1_1280_large.png

    You'll see that the base image is there, the link above is to a thumbnail (you can tell by the 322x484 at the end of the link for the image that is missing on the page above).

    This is the link to the missing image:

    http://some-like-it-raw.com/wp-content/uploads/2011/11/tumblr_ltvoxnAiWS1qb5gkjo1_1280_large-322x484.png

    The the regenerate thumbnails plugin will fix this, but if it's throwing errors, it's most likely because you have a file permissions problem. Post the errors that the plugin is making and I may be able to help further.

  7. Roscius
    Member
    Posted 2 years ago #

    As well did you switch themes at the same time? This could also have caused the issue.

  8. Roscius
    Member
    Posted 2 years ago #

    Note, your uploads directory has to be writable by the user the web server is running as, not just the user you use to ftp back and forth from the site with.

  9. chjcoughlan
    Member
    Posted 2 years ago #

    i am regenerating thumbnails now. yes we are using a different theme. what permissions need to be set on the uploads folder? 777?

  10. Roscius
    Member
    Posted 2 years ago #

    Really depends on the web host and what ownership is set on the directory, there is no one answer for that question. If the thumbnails are regenerating without errors, you should be fine as is.

    The web server needs to be able to write to the directory. The web server will be running as a different user than the user you log in to the server as, 777 is generally considered by be insecure, but could work, as could 755.

    Safest plan is to contact your web host and find out what user name the web server runs as and then chown (change owner) of the uploads directory to that user. You can then set the permissions to 755 in most cases.

  11. Roscius
    Member
    Posted 2 years ago #

    The error arose because WordPress creates thumbnails of uploaded images based on the settings of the theme in use when you upload the image. When you switch themes, the new theme may use different thumbnail sizes which haven't been created for images uploaded prior to when you switched themes.

    WordPress doesn't create different sized images on the fly, but rather creates them on image upload, which allows the web server to better handle traffic and reduces overall server load.

  12. chjcoughlan
    Member
    Posted 2 years ago #

    ok regenerated all thumbnails. still not working. uploads folder is set to 755

    what should i try next? thanks for all the help so far.

  13. chjcoughlan
    Member
    Posted 2 years ago #

    oh and i still dont get how some images show up and others do not??

  14. chjcoughlan
    Member
    Posted 2 years ago #

    ive just discovered there is a small bit of code at the end of some of the image links that is causing it not to show: something like '-648x432' which is clearly a dimension code that is unnecessary. anyone know how to remove this from all the image links? there are like 2000 images on my site.

    an example of the wrong code:

    'http://some-like-it-raw.com/wp-content/uploads/2011/11/IMG_1480-648x484.jpg'

    if i remove the -648x484 it works!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.