flighty
on Mar 12. 2008. 4:00 pm
Hi
I get this error message when I try to login to my activeCollab installation:
Fatal error: Call to undefined method DateTime::getTimestamp() in /home/icebergi/public_html/project/environment/classes/dataaccess/DataObject.class.php on line 812
The activeCollab software has been working fine for 18-months and suddenly this! It must be related to the server upgrades that happened on our host's server last night, but I can't work out why.
The upgrades were:
* Update to cPanel v11
* Update to Apache 2.2
* PHP 5.2.5 configured as the PRIMARY PHP version
* Update of Eaccelerator
* Update of Zend Optimizer
* Update of IonCube
* Exim ACL updates
I can't see why cPanel is relevant, or Eaccelerator, Zend Optimiser, IonCube or Exim. That leaves PHP and Apache.
Other sites on the my hosting accout on the same server are working fine, so in general both Apache and PHP are operating correctly... but something's obviously affected activeCollab as the error suggests it doesn't know about the DateTime class. The datetime.php file is in the correct place on the server though!?
Anyone any ideas?
Staff
Ilija Studen
on Mar 12. 2008. 4:29 pm
DateTime class was introduced in PHP 5.2 so older activeCollab versions cannot use their own implementation (written long before PHP hit version 5.2). This has been fixed in activeCollab 0.7.1.
activeCollab 0.7.1 is still free and open source and you can find it
here. Here are the upgrade instructions:
Before you start upgrading to newer activeCollab version please backup your old installation. Backup should include data from database and all files from the disk. If anything goes wrong with upgrade you should be able to easily restore old installation by simply copying old files and importing old data into database.
activeCollab 0.7 to activeCollab 0.7.1
First to point out, upgrade can work only from 0.7 to 0.7.1. If you are using older version than 0.7 you'll need to upgrade to 0.7 before you can upgrade to 0.7.1.
To upgrade activeCollab 0.7 to activeCollab 0.7.1 follow this instructions:
1. Create a backup of existing system, including installation files and content from your database. Please, don’t skip this step. If something goes wrong you’ll most probably end up with useless installation and you’ll be unable to go back.
2. Clean up old files – you should delete everything from the file system except contents form /config, /cache, /upload and /public/files folders.
3. Upload new files – simply upload new activeCollab files, but make sure that you don’t overwrite old files from /config, /cache, /upload and /public/files folder.
4. Execute upgrade script – Go to /public/upgrade/ page (for example: http://www.myactivecollab.com/public/upgrade/), select upgrade script (Upgrade 0.7 -> 0.7.1) and click on Upgrade button.
5. Let the script do the work – If something goes wrong you’ll receive an error message (red text). In that case you should restore your old installation (from backup) and submit a bug report in the Bug reports forum.
activeCollab 0.6 to activeCollab 0.7
1. Create a backup of existing system, including installation files and content from your database. Please, don’t skip this step. If something goes wrong you’ll most probably end up with useless installation and you’ll be unable to go back.
2. Clean up old files – you should delete everything from the file system except contents form /config and /public/files folders. They should remain intact because upgrade script will use data from that folders to upgrade existing database and keep your old files in place. It is important to delete files from old installation because new version will not work if it finds old files – it will break.
3. Upload new files – simply upload new activeCollab files, but make sure that you don’t overwrite old files from /config and /public/files folder.
4. Execute upgrade script – Go to /public/upgrade/ page (for example: http://www.myactivecollab.com/public/upgrade/), select upgrade script (Upgrade 0.6 -> 0.7) and click on Upgrade button.
5. Let the script do the work – it can take some time to transform old database and transfer all the data. If everything goes well you should see a bunch of green messages ending with a message telling you that upgrade process is done successfully. If something goes wrong you’ll receive an error message (red text). In that case you should restore your old installation (from backup) and submit a bug report in the Bug reports forum.
6. You’ll fail to login with your old login data. 0.7 version has a new login system and there is no way for it to read your old password value so you’ll need to reset it using Forgot password form. Just enter your email and hit submit button. You can notify all users by using mass mailer tool (in administration) or reset their password manually.
7. Check the bottom of the page if Forgot password form fails.
activeCollab 0.7 beta to activeCollab 0.7
1. Create a backup of existing system.
2. Drop all files except contents of /config, /public/files and /upload folders.
3. Upload files from 0.7 package but make sure that you don’t overwrite files from three folders listed in previous step.
4. That should be it. Just start using new version.
If Forgot password fails
You will need to manually update data into database. Open users table and find your administrator user (by username). Update that row and set:
token: 0a92df346e3a833cae214d65af35e69b3cf4e5ab
salt: 6d093346fa02f
twister: 4982716305
That will set password to '123'. Login and update you password. Make sure that mailing is working (you can use Test mailing configuration tool in administration).
activeCollab team member |
LinkedIn
flighty
on Mar 12. 2008. 5:19 pm
OK - it seems that I am currently on version 0.6, so I need to upgrade to version 0.7 before I can upgrade to 0.71. Where can I find the files for version 0.7?