Page 1 of 1

A fresh install and lost everything? SOLVED

Posted: Sat Apr 03, 2010 8:52 pm
by electrifire
Well I had my site running in my test domain using cms 1.67 so I decided to take a back up of all files / folders and do a fresh install  in the root directory of 1.7.

I gave the 1.7 version a new database and the only thing on the server was the cms 1.7, realising I cocked up a little as I needed the previous version online so I could copy / paste code from 1.67 to 1.7 I uploaded my test directory again however no matter which one I logged into both the root directory and the test directory had the same content how can this be have I lost what I had on my test domain, I thought everything was in the database?

I double checked I was browsing the correct database by checking the database name in the config file and all the modules are there but the content and templates are not, just the default templates, also the pages are missing.  

Guess its time to start again?

Re: A fresh install and lost everything?

Posted: Sat Apr 03, 2010 9:31 pm
by Dr.CSS
All information in content, templates, css, GCB, module content etc. is in the DB...

Proper procedure to insure good upgrade...

Go to phpMYadmin, or wherever you need to go to do a DB backup, backup DB...

Go to site root, FTP or Cpanel, and backup folders/files...

Download latest version of CMS Made Simple taking care to read change logs for things like PHP 4.* not being supported in 1.7 etc...

Depending on how you are going to get the folder/files to your site...

FTP...
Unpack on computer FTP to site upload all and set it to overwrite all...

cPanel...
Go to file manager hit upload button, upload the tar.gz file go back to file manager tick tar file hit unpack and overwrite all...

Go to yoursite.com/install/upgrade.php follow prompts till finished...

As for what happened to yours...

1) If you uploaded 1.7 over your existing folders/files then ran install and gave it the path to a new DB then you will only see a default clean install...

2) If you uploaded over existing folders/files and ran install using the existing DB you will see a default clean install and the DB no longer has the content, templates, CSS, CGB, module content etc...

3) At this point I would import the old DB, upload old folders/files overwrite all, check to see if config.php points to old DB and see what the site looks like, if it comes back to what it was, upload 1.7 folders/files overwrite all and run /install/upgrade.php...

Re: A fresh install and lost everything?

Posted: Sat Apr 03, 2010 9:48 pm
by electrifire
I didnt overwrite any files, I backed up all files / folders then deleted everything in public_html installed 1.7, realised I needed 1.66 to be able to copy over stuff like template so I uploaded my test directory and when I logged into this I saw nothing but default content.

Should be fairly easy to start again as everything I did was fairly recent so fresh in my mind, just a pain in the arse

Re: A fresh install and lost everything?

Posted: Sat Apr 03, 2010 9:55 pm
by Dr.CSS
All you needed to do was upload and overwrite all folders/files then run install/upgrade.php...

No need to delete anything from public_html...

Re: A fresh install and lost everything?

Posted: Sat Apr 03, 2010 11:46 pm
by electrifire
I can't seem to add content to  pages I create, when I click add content it allows me to add page title, menu title etc but no option to add the content - has something changed that I've missed?

Re: A fresh install and lost everything?

Posted: Sun Apr 04, 2010 3:53 am
by Dr.CSS
If you are trying to run cmsms 1.7 check to see what version of PHP you have, then check the change log to see if your version of PHP is supported...

Re: A fresh install and lost everything?

Posted: Sun Apr 04, 2010 6:47 pm
by electrifire
my host runs php5 is that high enough for 1.7?

Re: A fresh install and lost everything?

Posted: Sun Apr 04, 2010 10:16 pm
by electrifire
Well I re installed cms version 1.7 and part of the installation checks the php version and mine is fine.  I noticed that if I add content to a default template such as Ncleanblue the wysiwyg editor is there but if I try to add content to my custom template when adding content the wysiwyg editor is not there just the option to give the page a name and menu a title - this never happened in 1.66 is this some kind of bug?

Re: A fresh install and lost everything? SOLVED

Posted: Mon Apr 05, 2010 6:21 pm
by Dr.CSS
Most times it's from not having the default/must have {content} tag in the template...