Website formatting affected after upgrade SOLVED

Help with getting the CMS CORE package up and running. This does not include 3rd party modules, PHP scripts, anything downloaded via module manager or from any external source.
Locked
JannevWP
Forum Members
Forum Members
Posts: 10
Joined: Mon Apr 19, 2010 12:27 am

Website formatting affected after upgrade SOLVED

Post by JannevWP »

Trying to muddle my way through an issue with just basic knowledge.

My website was running 1.2.4 Greenland.  I was advised that I should upgrade it but as I was nervous about losing the site, the upgrade to CMS MS 1.7 was undertaken (by a third party) and placed in a sub-folder in the CMS.   I was advised that I needed to point the DNS to this sub-folder.

In speaking to the hosting company about how to make the sub-folder 'live' they advised that a lot of the website's formatting had been lost in the sub-folder.   Can formatting be lost like this in upgrades?  

Any help in this matter gratefully appreciated.

Janne
Last edited by JannevWP on Wed Jul 21, 2010 10:02 pm, edited 1 time in total.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Website formatting affected after upgrade

Post by Dr.CSS »

Yes it can if it's not pointing to the correct paths in config.php...
JannevWP
Forum Members
Forum Members
Posts: 10
Joined: Mon Apr 19, 2010 12:27 am

Re: Website formatting affected after upgrade

Post by JannevWP »

Dr.CSS wrote: Yes it can if it's not pointing to the correct paths in config.php...
But if it points to the correct paths then it will display how it used to?  Sorry for being so ignorant - I am just being told so many differing things by differing companies...
NaN

Re: Website formatting affected after upgrade

Post by NaN »

If you just moved your Site to a different folder or if you installed it in a subfolder you need to adapt the pathes in the config.php.

E.g.

Lets say your domain points to your root directory of your webspace user account and you now install the cms in a subfolder named "cms". Your page can be accesed by using "yourDomain/cms" in the browsers addressbar. If you now change the server settings that your domain points by default to that subfolder (so that you can access your page just using "yourDomain" without the subfolder in the addressbar) you now need to modify your config.php and adapt the root_url (and any other URL that still has the folder "cms" in it).
But notice that you only may change URL settings. Be sure to not to change the root_path itself (since it hasn't changed. It is only the URL that does not need to point to the "cms" folder anymore in your config.php since the server directs every request to that folder by default now).
The root_path only needs to be changed if you moved your page in a different folder after installation.

The reason why you need to do this is because the CMS won't find its stylesheets and images anymore since it used to look for "yourDomain/cms/..." what will be redirected by the server to "yourUserAccountRootPath/cms/cms/..." that logically does not exist.

hope that helps
replytomk3

Re: Website formatting affected after upgrade

Post by replytomk3 »

Exact config.php paths were not known before DNS was to be pointed to that folder, so temporary ones were placed in config.php by him. Once DNS is pointed to the installation, config.php can be modified with the correct path and URL settings.
alby

Re: Website formatting affected after upgrade

Post by alby »

FOR INFORMATION because I think that there is some mistake with DNS and server (WEB) settings definitions....

In DNS you can define which IP address is defined by that hostname STOP! No informations on what server type, filesystem, services, whatever....
In HTTP config (usualy httpd.conf) on YOUR server you can define for any hostnames your paths, logs, web modules, ....

Alby
JannevWP
Forum Members
Forum Members
Posts: 10
Joined: Mon Apr 19, 2010 12:27 am

Re: Website formatting affected after upgrade SOLVED

Post by JannevWP »

With many thanks to Michael!
Locked

Return to “[locked] Installation, Setup and Upgrade”