Upgrading a Jcal Pro installation
From LeonWiki!
Upgrading JCal Pro from 1.5.1 to 2.2
- Install Akeeba Backup and backup symsolutions production site.
- First upgrade Joomla from 1.5.14 to 1.5.17
- set maintenance page on
- remove menu links to currently installed jcalpro
- uninstall jcalpro
- install new jcalpro
- import previous version's events
- This didn't work at first so found a forum reference which did work. It can only be viewed with subscription [[1]] so including a summary below:
I've attached a revised version of:
components/com_jcalpro/include/functions.inc.php
See around lines 2230 and 2458 for the diffs. I've just added a statement to include the jcalpro.class.php file if the class has not yet been defined. That allows the class to be instantiated in the following line (which is where the error was being thrown). The modification is commented with a reference to this thread.
I was running into this error when trying to import an iCal file. From the sound of it, the error may be present in other areas as well. So I'm unsure if the attached fix addresses just the iCal import instance, or covers everything.
A "real" fix should probably happen higher up in the code, as the root problem is that the class file isn't being included (which likely would impact other areas). But this gets the job done for now.
- Since 1.5 didn't support multiple calendars (thereby setting cal_id=1 for all rows) the cal_id will have to be fixed by an SQL update command.
- Specifically, update [tablename] set cal_id=[calendar id value] where cat=[training or events id value].
- This needs to be done for cat = 'training,events,webinar'
- Specifically, update [tablename] set cal_id=[calendar id value] where cat=[training or events id value].
- Set the correct calendar id and category id(s) for the latest events modules (both events and training)
- reset the sidebar menus on the new calendar pages
- reset the 'view full calendar' option on the latest events module to point to the itemID of the new calendar page.
Chronoform links
- Files involved: theme/default/theme.php, include/latest.inc.php (modified/tested on the sandbox)
- copy theme.php from sandbox to production
- copy latest.inc.php from sandbox to production
