Menu

engine.php error

Help
2008-02-06
2013-04-18
  • Nobody/Anonymous

    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 -

     
    • Steve Talbot

      Steve Talbot - 2008-02-10

      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

       
    • Nobody/Anonymous

      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

       
  • Nobody/Anonymous

    if you replace DateTime in engine work only up to the next error, you should change all files. <br>
    uff!! such an effort!!

     

Log in to post a comment.