Support » Fixing WordPress » Gallery images not showing after server change

  • Resolved Spondootre



    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….


    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:

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

    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

Viewing 15 replies - 1 through 15 (of 22 total)
  • Have you looked in the wp_options table in the database. Some plugins put information in there.

    Has the domain name changed?

    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!

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

    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.

    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/ 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?

    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? :-/

    Moderator cubecolour


    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.

    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…

    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

    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 :-/

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

    Moderator kmessinger

    (@kmessinger) shows malformed links for your images.

    For example this link,
    should be

    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.

    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?

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

    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”?

Viewing 15 replies - 1 through 15 (of 22 total)
  • The topic ‘Gallery images not showing after server change’ is closed to new replies.