Page 1 of 1

Fatal error after attempting to upgrade 1.0.8 to 1.1

Posted: Tue Jul 17, 2007 11:00 pm
by cnymike
After overwriting my 1.0.8 installation with 1.1, I get a "siteĀ  down for maintenance" page and the following error when attempting to access the admin area of the site...

Fatal error: Cannot redeclare cms_mapi_create_permission() (previously declared in /usr/www/users/cnymike/stjameschurch/lib/misc.functions.php:826) in /usr/www/users/cnymike/stjameschurch/lib/module.functions.php on line 27

Is my site hosed now? Any ideas how to fix this?

Re: Fatal error after attempting to upgrade 1.0.8 to 1.1

Posted: Tue Jul 17, 2007 11:08 pm
by cnymike
I am urgently in need of a fix with this.

Is it possible for me to revert back to 1.0.8? Has my database been affected by this do you think?

If I attempt to go to the /install page, the screen says that "All tests passed (at least at a minimum level). Please click the Continue button"

I'm not sure if I should try to continue to step 2 and beyond for fear of hosing my database.

Re: Fatal error after attempting to upgrade 1.0.8 to 1.1

Posted: Wed Jul 18, 2007 12:09 am
by liquid
You won't hose your database if you uncheck both the database boxes when you enter your database info.

I can't help more than that, sorry. I just upgraded a 1.0.8 to 1.1 and I didn't run into any issues.

Re: Fatal error after attempting to upgrade 1.0.8 to 1.1

Posted: Wed Jul 18, 2007 3:05 am
by cnymike
I really need to know what the error is indicating and how to fix it...


Fatal error: Cannot redeclare cms_mapi_create_permission() (previously declared in /usr/www/users/cnymike/stjameschurch/lib/misc.functions.php:826) in /usr/www/users/cnymike/stjameschurch/lib/module.functions.php on line 27

Re: Fatal error after attempting to upgrade 1.0.8 to 1.1

Posted: Wed Jul 18, 2007 12:03 pm
by Torty
let me guess .. you tried to move 'mv * /mycmsdir/' your new files ? .. try to copy 'cp -R * /mycmsdir/' and then run the update script again.

Hope this helps

Torty

Re: Fatal error after attempting to upgrade 1.0.8 to 1.1

Posted: Wed Jul 18, 2007 12:46 pm
by cnymike
I was using an ftp client to move the new files into the existing directory.

Re: Fatal error after attempting to upgrade 1.0.8 to 1.1

Posted: Wed Jul 18, 2007 1:16 pm
by cnymike
Torty,

I think I finally got it! I'm not a terminal kind of guy and was using ftp to move the files over but I got into the terminal, read up on the cp command and miraculously got the 1.1 files properly overwritten into my installation. I think it worked but need to check a few more things. thanks for responding. I do not think I would have been able to survive in panic mode much longer :-)

Michael

Re: Fatal error after attempting to upgrade 1.0.8 to 1.1

Posted: Wed Jul 18, 2007 7:57 pm
by tsw
and about the "did the upgrade touch my db", it doesnt matter because the first thing you do when you upgrade is to take a backup

really, the importance of backups cannot be stressed enough.

Re: Fatal error after attempting to upgrade 1.0.8 to 1.1

Posted: Wed Jul 18, 2007 11:17 pm
by cnymike
Fortunately for me, I had done a backup. However I really don't know how to restore a MySQL database from a backup. So though I took the precaution, I would not have had the skills to restore. I didn't have to but someday I may so I guess it's time to learn how.