Moved server, but images pointing to wrong location

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
robinmarek
Forum Members
Forum Members
Posts: 208
Joined: Thu Nov 13, 2008 4:02 pm

Moved server, but images pointing to wrong location

Post 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?
Peciura

Re: Moved server, but images pointing to wrong location

Post 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.
robinmarek
Forum Members
Forum Members
Posts: 208
Joined: Thu Nov 13, 2008 4:02 pm

Re: Moved server, but images pointing to wrong location

Post 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)
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: Moved server, but images pointing to wrong location

Post by Rolf »

and they are still pointing to the old destination
Old = Wrong??

Do you have an url of the website?

Rolf
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
robinmarek
Forum Members
Forum Members
Posts: 208
Joined: Thu Nov 13, 2008 4:02 pm

Re: Moved server, but images pointing to wrong location

Post 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 :)
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: Moved server, but images pointing to wrong location

Post 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.
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
- + - + - + - + - + - + -
Image
robinmarek
Forum Members
Forum Members
Posts: 208
Joined: Thu Nov 13, 2008 4:02 pm

Re: Moved server, but images pointing to wrong location

Post 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...
robinmarek
Forum Members
Forum Members
Posts: 208
Joined: Thu Nov 13, 2008 4:02 pm

Re: Moved server, but images pointing to wrong location

Post 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?
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: Moved server, but images pointing to wrong location

Post 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
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: Moved server, but images pointing to wrong location

Post 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
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
robinmarek
Forum Members
Forum Members
Posts: 208
Joined: Thu Nov 13, 2008 4:02 pm

Re: Moved server, but images pointing to wrong location

Post 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!
robinmarek
Forum Members
Forum Members
Posts: 208
Joined: Thu Nov 13, 2008 4:02 pm

Re: Moved server, but images pointing to wrong location

Post by robinmarek »

Just trying to upload the files again and getting lots of failed file transfers....
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: Moved server, but images pointing to wrong location

Post 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.
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
robinmarek
Forum Members
Forum Members
Posts: 208
Joined: Thu Nov 13, 2008 4:02 pm

Re: Moved server, but images pointing to wrong location

Post 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.
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: Moved server, but images pointing to wrong location

Post 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  :)
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
Post Reply

Return to “CMSMS Core”