Open engine.php in a text editor and do a find and replace on the following:
1. Find "class DateTime" Replace with "class DateTimeCalc"
2. Find "new DateTime" Replace with "new DateTimeCalc"
Save engine.php.
Now upload and replace the existing engine.php
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hey there.
Thanks for sharing all of your hard work.
The software looks great but when I try to install I get hit with:
Fatal error: Cannot redeclare class DateTime in (path)comendar/engine.php on line 1928
(path) is my path erased
Running the following:
Apache 2.2.4
PHP Version 5.2.3-1ubuntu6.3
MySql 5.0.45
Any suggestions?
- Jeff -
Comendar uses a class called DateTime. PHP 5.2 and above has a class called DateTime built in.
Hence, Comendar isn't compatible with PHP 5.2.x. It should be OK with 5.1.x, 5.0.x or 4.3.x.
Regards,
Steve
Open engine.php in a text editor and do a find and replace on the following:
1. Find "class DateTime" Replace with "class DateTimeCalc"
2. Find "new DateTime" Replace with "new DateTimeCalc"
Save engine.php.
Now upload and replace the existing engine.php
if you replace DateTime in engine work only up to the next error, you should change all files. <br>
uff!! such an effort!!