Page 1 of 2
Moved server, but images pointing to wrong location
Posted: Wed Dec 16, 2009 8:33 am
by robinmarek
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?
Re: Moved server, but images pointing to wrong location
Posted: Wed Dec 16, 2009 9:07 am
by Peciura
but the images on the News module are pointing back to the old server
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.
Also, I know the servers php memory limit is only 8M - will this be affecting the news module at all?
There is high probability, that your page will stop working as it expands.
Re: Moved server, but images pointing to wrong location
Posted: Wed Dec 16, 2009 6:27 pm
by robinmarek
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
Posted: Wed Dec 16, 2009 6:31 pm
by Rolf
and they are still pointing to the old destination
Old = Wrong??
Do you have an url of the website?
Rolf
Re: Moved server, but images pointing to wrong location
Posted: Sun Dec 20, 2009 3:45 pm
by robinmarek
Yeah they are pointing to the old destination, but they are not showing up at all.
Have PMed link as still work in progress

Re: Moved server, but images pointing to wrong location
Posted: Sun Dec 20, 2009 4:51 pm
by Rolf
Hi Robinmarek,
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>
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.
Re: Moved server, but images pointing to wrong location
Posted: Sun Dec 20, 2009 5:11 pm
by robinmarek
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...
Re: Moved server, but images pointing to wrong location
Posted: Sun Dec 20, 2009 5:19 pm
by robinmarek
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?
Re: Moved server, but images pointing to wrong location
Posted: Sun Dec 20, 2009 5:34 pm
by Rolf
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
Re: Moved server, but images pointing to wrong location
Posted: Sun Dec 20, 2009 6:41 pm
by Rolf
Robinmarek,
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>
And the file in question
isn't present on the new server...
You are calling:
Code: Select all
<__script__ src="imagefadescript.js" type="text/javascript"></__script>
The file imagesfadescript.js in the root is only
0 bytes big, upload fault...
Code: Select all
<link href="ie.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css" href="style.css" />
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
Re: Moved server, but images pointing to wrong location
Posted: Sun Dec 20, 2009 8:11 pm
by robinmarek
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!
Re: Moved server, but images pointing to wrong location
Posted: Sun Dec 20, 2009 8:22 pm
by robinmarek
Just trying to upload the files again and getting lots of failed file transfers....
Re: Moved server, but images pointing to wrong location
Posted: Sun Dec 20, 2009 8:30 pm
by Rolf
Just trying to upload the files again and getting lots of failed file transfers....
Does the webhost of this server has an own online-filemanager?
If soo, try to use this one, it might be some kind of fileowner issue...
R.
Re: Moved server, but images pointing to wrong location
Posted: Mon Dec 21, 2009 5:35 pm
by robinmarek
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.
Re: Moved server, but images pointing to wrong location
Posted: Mon Dec 21, 2009 5:46 pm
by Rolf
Parse 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 need PHP version 5.2.x for the CGExtentions module
You are probably still on 4.x.x...
Grtz. Rolf
