Fatal error after attempting to upgrade 1.0.8 to 1.1

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
cnymike
Power Poster
Power Poster
Posts: 446
Joined: Sun Jan 22, 2006 3:24 am

Fatal error after attempting to upgrade 1.0.8 to 1.1

Post 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?
Last edited by cnymike on Tue Jul 17, 2007 11:04 pm, edited 1 time in total.
cnymike
Power Poster
Power Poster
Posts: 446
Joined: Sun Jan 22, 2006 3:24 am

Re: Fatal error after attempting to upgrade 1.0.8 to 1.1

Post 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.
Last edited by cnymike on Tue Jul 17, 2007 11:12 pm, edited 1 time in total.
liquid
Forum Members
Forum Members
Posts: 59
Joined: Sun Aug 07, 2005 10:20 pm

Re: Fatal error after attempting to upgrade 1.0.8 to 1.1

Post 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.
cnymike
Power Poster
Power Poster
Posts: 446
Joined: Sun Jan 22, 2006 3:24 am

Re: Fatal error after attempting to upgrade 1.0.8 to 1.1

Post 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
Torty

Re: Fatal error after attempting to upgrade 1.0.8 to 1.1

Post 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
cnymike
Power Poster
Power Poster
Posts: 446
Joined: Sun Jan 22, 2006 3:24 am

Re: Fatal error after attempting to upgrade 1.0.8 to 1.1

Post by cnymike »

I was using an ftp client to move the new files into the existing directory.
cnymike
Power Poster
Power Poster
Posts: 446
Joined: Sun Jan 22, 2006 3:24 am

Re: Fatal error after attempting to upgrade 1.0.8 to 1.1

Post 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
tsw
Power Poster
Power Poster
Posts: 1408
Joined: Tue Dec 13, 2005 10:50 pm
Location: Finland

Re: Fatal error after attempting to upgrade 1.0.8 to 1.1

Post 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.
cnymike
Power Poster
Power Poster
Posts: 446
Joined: Sun Jan 22, 2006 3:24 am

Re: Fatal error after attempting to upgrade 1.0.8 to 1.1

Post 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.
Locked

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