WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Gallery images not showing after server change (23 posts)

  1. Spondootre
    Member
    Posted 2 years ago #

    Hi,

    I am still a beginner finding my way through WordPress, the site itself was developed by someone that has since moved on with other projects and recently the server it was hosted on was changed which resulted in my site being down. We registered the domain names with 123-reg and after some investigation it became apparent that the DNS settings needed changing to point at the new server, I did this today and the website now appears when the URL is entered....

    BUT...

    All of the jpeg images are not showing on any pages, in the posts themselves the .png images I have put into the body of the posts are displayed but for example this page:

    http://www.everfurniture.com/category/lighting/chandeliers

    None of the images are shown and clicking on the first link takes you to:

    http://www.everfurniture.com/lighting/chandeliers/spiral-chandelier

    Which shows the png files in the body but the carousel gallery doesn't display any of the images? I'm not familiar with what to look for and where but I've had a look through some of the files themselves to see if anything was still pointing towards the old ip address but haven't done this extensively as I'm just poking around in the dark! I can't find any settings on the front end WordPress wp-admin login pages to change either.....

    Absolutely any suggestions would be welcomed so I can try and resolve this issue as it doesn't look very good at the moment!

    Thanks peeps

  2. Peter Wooster
    Member
    Posted 2 years ago #

    Have you looked in the wp_options table in the database. Some plugins put information in there.

    Has the domain name changed?

  3. Spondootre
    Member
    Posted 2 years ago #

    Thanks for the advice, I don't think I have access to the database. I have access to the front end login where I upload images, text/html edit posts and manage some aspects of plugins etc and I also have FTP access to the folders and files, would the database a file stored somewhere in amongst these folders?

    Apologies if this sounds thick!

  4. Spondootre
    Member
    Posted 2 years ago #

    Oh and no, the domain name has remained the same only the ip address/server changed

  5. Peter Wooster
    Member
    Posted 2 years ago #

    If the domain name hasn't changed there should be no database changes that would impact the site.

    Can you upload new images? It might be a system permissions problem.

  6. Spondootre
    Member
    Posted 2 years ago #

    I just tried adding a new pic from the dashboard and get this red error message as soon as I select a file and submit:

    Unable to create directory /var/www/vhosts/everfurniture.com/httpdocs/wp-content/uploads/2011/08. Is its parent directory writable by the server?

    so i'm assuming this is a permissions problem as you say? But haven't a clue who or what I need to alter to rectify it! Can you advise?

  7. Spondootre
    Member
    Posted 2 years ago #

    Also, I had a quick look at this error message and found some advice on changing the "uploads" folder permissions via FTP to "777" which it already is, is this a simple case o changing the permissions on some other folders that I can access via my FTP client? :-/

  8. cubecolour
    ɹoʇɐɹǝpoɯ
    Posted 2 years ago #

    Looking at your html source, it appears that the thumbnails are being generated by a php page called thumb.php from the original uploaded images.

    If this is the timthumb script, the original versions had a security flaw discovered. Maybe your hosting company has put something in to prevent instances of this script from being active? or maybe the script needs to be configured for the new host? If it is timthumb and you don't know for sure that it has been upgraded to a safe version, you can install and run the timthumb security scanner plugin.

  9. Spondootre
    Member
    Posted 2 years ago #

    Also.....I found advice that I would perhaps need to create a new uploads folder and change the permissions on that, so I did. I created "uploadss" in the wp-content folder and changed the permissions to "777" then altered the setting in "miscellaneous" on the dashboard to store uploads in this folder "wp-content/uploadss" and still get the same error message...

  10. Spondootre
    Member
    Posted 2 years ago #

    I installed the plugin and used the scanner, the thumb.php was vulnerable and it upgraded it, it now has a status of "outdated" but I still cant upload

  11. Spondootre
    Member
    Posted 2 years ago #

    Pulling what hair I have left out now! Any suggestions are welcome. I can't seem to find any valid reason for the images not to display or be able to upload new images, all of the png images within the posts are showing fine :-/

  12. Spondootre
    Member
    Posted 2 years ago #

    Any suggestions would be very welcomed! And happy new year!

  13. kmessinger
    Volunteer Moderator
    Posted 2 years ago #

    http://validator.w3.org/checklink?uri=http%3A%2F%2Fwww.everfurniture.com%2Fcategory%2Flighting%2Fchandeliers&summary=on&hide_type=all&depth=&check=Check shows malformed links for your images.

    For example this link,
    http://www.everfurniture.com/wp-content/uploads/2010/04/P1010929.jpg&h=150&w=200&zc=1&q=80
    should be
    http://www.everfurniture.com/wp-content/uploads/2010/04/P1010929.jpg

    Maybe you should try some basic debug techniques.
    - deactivating all plugins (yes, all) to see if this resolves the problem. If this works, re-activate the plugins one by one until you find the problematic plugin(s). If you can't get into your admin dashboard, try resetting the plugins folder by FTP or PhpMyAdmin. Sometimes, an apparently inactive plugin can still cause problems. Also remember to deactivate any plugins in the mu-plugins folder if you have one. The easiest way is to rename that folder to mu-plugins-old.

    - switching to the Twenty Eleven theme to rule out any theme-specific problems. If you can't log in to change themes, you can remove the theme folders via FTP so the only one is twentyeleven. That will force your site to use it.

  14. Spondootre
    Member
    Posted 2 years ago #

    Thanks for the suggestion, I disabled all plugins and it made no difference, I then re-enabled them.

    Next I switched to the twenty eleven theme, now I can't open the site or access the dashboard, both urls lead me to a white screen?? Now its even worse than before! Anyone suggest how this can be reversed?

  15. Spondootre
    Member
    Posted 2 years ago #

    Would I be correct in thinking that if I remove that theme via FTP then it will default to another?

  16. Spondootre
    Member
    Posted 2 years ago #

    Ok, FTP deleted the twenty eleven theme, then the dashboard was available so enabled the original theme, so website is displaying by still no images.....any ideas what else to delve into for these "malformed links"?

  17. kmessinger
    Volunteer Moderator
    Posted 2 years ago #

    Next I switched to the twenty eleven theme, now I can't open the site or access the dashboard, both urls lead me to a white screen??

    That should never happen with a properly installed wordpress and a compatible theme.

    It looks like you are using a custom theme and wp 2.8.5? At least that is what the meta says. You show 3.2.1 in this thread. With a custom theme it is difficult to debug or make changes.

    Do you have the cache and temp directories timthumb needs? http://www.binarymoon.co.uk/2010/08/timthumb/

  18. Spondootre
    Member
    Posted 2 years ago #

    Yes it's still on 2.8.5, apologies for that and the theme is one which the developer produced or rather tweaked from an existing theme, but the point is the whole thing was working perfectly for over 18 months but since the server move this issue has arose, so I'm assuming everything that it thumb needs is there or it wouldn't have previously worked?

    Would it help to post a directory structure here? Or the code from a file? I really am stumped, enjoy learning,but stumped and the developer is not contactable...

    Thanks again for the help so far.

  19. Spondootre
    Member
    Posted 2 years ago #

    OK, earlier i couldnt follow the link as it wouldnt work on the ipad but now i'm infront of a mac I followed this:

    http://validator.w3.org/checklink?uri=http%3A%2F%2Fwww.everfurniture.com%2Fcategory%2Flighting%2Fchandeliers&su

    which i don't really understand, however, some of the links it talks about as being malformed have in them the i.p. address 94.126.44.185 instead of either everfurniture.com or the new ip address of 178.18.127.99 which is what the server company advised me to alter the DNS settings to when the site was not online, which leads me back to my initial thoughts that there are still files with links pointing to the previous ip address? any idea where to look for these? where would these links that are flagged up as malformed be located?

  20. Spondootre
    Member
    Posted 2 years ago #

    i've so far tried:

    1) Altering the permissions to 777 for the uploads folder and its parent (they were already set to this anyway)

    2) Renaming the Uploads folder, then creating a new one and moving everything into it, ensuring the permissions were correct

    3) Disabled all the plugins

    4) Manually entered the upload address into the misc settings on the dashboard

    5) Added (and subsequently removed) the code: define(‘UPLOADS’, ‘wp-content/uploads’); into the appropriate position in the wpconfig.php file

    6) Used a "search and replace" plugin to switch all instances of the old IP to the new IP in the database

    7) Upgraded timthumb (thumbs.php)

    8) Switched themes

    Nothing has worked so far, any more suggestions please? Am desperate to get this working now! the site just looks ugly.

  21. Spondootre
    Member
    Posted 2 years ago #

    It must be relevant also that although I cant upload any new images via the dashboard and cannot view the jpg images in the site the png images are viewable and are stored in the same folders. I know the developer altered something at my request so that png images didn't appear in the image carousel and only in the main body of the post if selected "insert into post" on the dashboard....

    ?

  22. kmessinger
    Volunteer Moderator
    Posted 2 years ago #

    The malformed urls are a product of timthumb. They are malformed to the link checker but should be fine if the updated version works with wp 2.8.5 BTW, you will most liklely have to bring on someone who can update the theme to work with wp 3.5. Using 2.8.5 is not good.

    Do you have the cache and temp directories timthumb needs? Look over the data on timthumb. Maybe that is where the adjustment needs to be made.

  23. Spondootre
    Member
    Posted 2 years ago #

    DONE!!!

    OK, so all the images are now displayed on the site! After going into look for faulty code and not being educated enough to find any, here's what has worked:

    Firstly I had installed this search and replace plugin and swapped out all instances of the old IP address being used in URLs for the new IP address, this hadn't had a visual effect at this point but it must have been required.

    JPG images still not visible.

    Altering the UPLOADS permissions still meant the images were not visible and that I couldn't upload, looking into it it seems that the "owner" of the folder and files was an irrelevant name on the new server, to fix this (and there may be easier ways!!) I downloaded the Uploads directory, renamed the one on the server and re-uploaded it, this made me the owner and all of the images appeared!

    I still couldn't upload new images.......

    Changing the permissions on the uploads directory and all of its subsidiaries means I now can upload new images also.

    Thanks to all who contributed an opinion, I know very little about wordpress and felt like I was feeling around in the dark, really appreciate the help.

Topic Closed

This topic has been closed to new replies.

About this Topic