Moved server, but images pointing to wrong location
-
- Forum Members
- Posts: 208
- Joined: Thu Nov 13, 2008 4:02 pm
Moved server, but images pointing to wrong location
Using CMS 1.6.6
Have transfered a site to a new server, but the images on the News module are pointing back to the old server and I can't find where or how I can change this?
Also, I know the servers php memory limit is only 8M - will this be affecting the news module at all?
Have transfered a site to a new server, but the images on the News module are pointing back to the old server and I can't find where or how I can change this?
Also, I know the servers php memory limit is only 8M - will this be affecting the news module at all?
Re: Moved server, but images pointing to wrong location
If you have inserted images manually in news body or in any other way specified absolute url you have to look for old paths and urls in db and fix them manually. Example of unexpected urls would explain a lot.but the images on the News module are pointing back to the old server
There is high probability, that your page will stop working as it expands.Also, I know the servers php memory limit is only 8M - will this be affecting the news module at all?
-
- Forum Members
- Posts: 208
- Joined: Thu Nov 13, 2008 4:02 pm
Re: Moved server, but images pointing to wrong location
The images are put in the news summary using the article_image 'field definition' and they are still pointing to the old destination (but not showing)
Re: Moved server, but images pointing to wrong location
Old = Wrong??and they are still pointing to the old destination
Do you have an url of the website?
Rolf
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
-
- Forum Members
- Posts: 208
- Joined: Thu Nov 13, 2008 4:02 pm
Re: Moved server, but images pointing to wrong location
Yeah they are pointing to the old destination, but they are not showing up at all.
Have PMed link as still work in progress
Have PMed link as still work in progress

Re: Moved server, but images pointing to wrong location
Hi Robinmarek,
Thanks for the link
It is not only image paths, but also links which are pointing to the wrong direction.
Did you changed all the path in the config.php correctly? And double checked this? ;)
Perhaps put a copy of it in here (delete passwords!)
The news urls in the body of the page are working fine, only the one in the left sidebar are going to the old server.
Anything hardcoded somewhere?
Please check your templates on this...
Regards, Rolf
ps.
I think it wise to move the dev-website on your own server to another place. Or just rename the directory.
This way you can see the difference between files and images with the real site as source and the dev-site.
Did you attach all stylesheets to your html template? In the code above is mentioned id="pic71" but I can't find this in your stylesheets using Firebug.
Thanks for the link
It is not only image paths, but also links which are pointing to the wrong direction.
Code: Select all
<a id="pic71" style="cursor: pointer;" href="http://www.oldserveradres.co.uk/xxx/cms/index.php?mact=News,cntnt01,detail,0&cntnt01articleid=6&cntnt01origid=58&cntnt01returnid=57"> Andrea: Queen of Mantas </a>
Perhaps put a copy of it in here (delete passwords!)
The news urls in the body of the page are working fine, only the one in the left sidebar are going to the old server.
Anything hardcoded somewhere?
Please check your templates on this...
Regards, Rolf
ps.
I think it wise to move the dev-website on your own server to another place. Or just rename the directory.
This way you can see the difference between files and images with the real site as source and the dev-site.
Did you attach all stylesheets to your html template? In the code above is mentioned id="pic71" but I can't find this in your stylesheets using Firebug.
Last edited by Rolf on Sun Dec 20, 2009 5:01 pm, edited 1 time in total.
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
-
- Forum Members
- Posts: 208
- Joined: Thu Nov 13, 2008 4:02 pm
Re: Moved server, but images pointing to wrong location
I know the CMS creates those automatically...
I know it's not the server now as I've just uploaded an image manually through the news module and it's working... will check the config and move the site as well... thanks!
Hopefully will get this sorted...
I know it's not the server now as I've just uploaded an image manually through the news module and it's working... will check the config and move the site as well... thanks!
Hopefully will get this sorted...
-
- Forum Members
- Posts: 208
- Joined: Thu Nov 13, 2008 4:02 pm
Re: Moved server, but images pointing to wrong location
Hmmm, I've noticed all images are pointing to the old destination...
I've had this problem before but it only happens on certain websites...?? I've checked the config and all the destinations are correct, but it's still using the old links.
Is there a way to change the location of images on mass?
I've had this problem before but it only happens on certain websites...?? I've checked the config and all the destinations are correct, but it's still using the old links.
Is there a way to change the location of images on mass?
Re: Moved server, but images pointing to wrong location
The path in the templates are most of the times relative to the base url.
you can pm me some login info and i will look if i can trace the cource...
Rolf
you can pm me some login info and i will look if i can trace the cource...
Rolf
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Re: Moved server, but images pointing to wrong location
Robinmarek,
Some things to start with:
In the html templates are hardcoded paths to images:
f.i. BigWxxx-home:
And the file in question isn't present on the new server...
You are calling:
The file imagesfadescript.js in the root is only 0 bytes big, upload fault...
Files in question aren't there...
And more files aren't present I think, you better start with to make a new copy!
Please use something like FileZilla and use an internetconnection with a cable, not wifi!
You can also create a checksum file first: Admin >> Site Admin >> System Verfication.
And use this one to check the files on the new server.
Regards, Rolf
Some things to start with:
In the html templates are hardcoded paths to images:
f.i. BigWxxx-home:
Code: Select all
<p><img src="http://www.xxxx.co.uk/xxx/cms/uploads/images/press.gif" alt="Press" width="626" height="30" /></p>
You are calling:
Code: Select all
<__script__ src="imagefadescript.js" type="text/javascript"></__script>
Code: Select all
<link href="ie.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css" href="style.css" />
And more files aren't present I think, you better start with to make a new copy!
Please use something like FileZilla and use an internetconnection with a cable, not wifi!
You can also create a checksum file first: Admin >> Site Admin >> System Verfication.
And use this one to check the files on the new server.
Regards, Rolf
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
-
- Forum Members
- Posts: 208
- Joined: Thu Nov 13, 2008 4:02 pm
Re: Moved server, but images pointing to wrong location
Yeah I am using filezilla - I know the imagefadescript.js isn't working but I believe that is the servers issue (am having problems with permissions and all sorts on there). I've uploaded it many times but it just keeps coming up blank.
I'm gonna re-upload everything and see if that helps... thanks so much for your help! Hopefully I can sort the other issues out with the host swiftly!
I'm gonna re-upload everything and see if that helps... thanks so much for your help! Hopefully I can sort the other issues out with the host swiftly!
-
- Forum Members
- Posts: 208
- Joined: Thu Nov 13, 2008 4:02 pm
Re: Moved server, but images pointing to wrong location
Just trying to upload the files again and getting lots of failed file transfers....
Re: Moved server, but images pointing to wrong location
Does the webhost of this server has an own online-filemanager?Just trying to upload the files again and getting lots of failed file transfers....
If soo, try to use this one, it might be some kind of fileowner issue...
R.
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
-
- Forum Members
- Posts: 208
- Joined: Thu Nov 13, 2008 4:02 pm
Re: Moved server, but images pointing to wrong location
Nope it doesn't, it doesn't even have a control panel... 
They've upped the quota of space now (was having upload issues) will see if that helps.

They've upped the quota of space now (was having upload issues) will see if that helps.
Re: Moved server, but images pointing to wrong location
You need PHP version 5.2.x for the CGExtentions moduleParse error: parse error, expecting `T_OLD_FUNCTION' or `T_FUNCTION' or `T_VAR' or `'}'' in D:\www\xxxxxx.co.uk\cms\modules\CGExtensions\CGExtensions.module.php on line 47
You are probably still on 4.x.x...

Grtz. Rolf

- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
Migrating Company Directory module to LISE
- + - + - + - + - + - + -