Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: PHP5 SugarCRM 4.5 DateTime error

  1. #1
    antoniokra is offline Sugar Community Member
    Join Date
    Jul 2006
    Posts
    25

    Default PHP5 SugarCRM 4.5 DateTime error

    What's going on?

  2. #2
    antoniokra is offline Sugar Community Member
    Join Date
    Jul 2006
    Posts
    25

    Default Re: PHP5 SugarCRM 4.5 DateTime error

    nobody con help me ? Anyone else have had the same bug?
    Thanks

  3. #3
    Danielg42 is offline Sugar Community Member
    Join Date
    Jun 2006
    Location
    Orange County, CA
    Posts
    187

    Default Re: PHP5 SugarCRM 4.5 DateTime error

    Far too vauge a question, we'll need more info to really help
    I'll give a guess though, are the date and times messed up on your emails?
    If so, try reentering your email acountnames and passwords.

  4. #4
    antoniokra is offline Sugar Community Member
    Join Date
    Jul 2006
    Posts
    25

    Default Re: PHP5 SugarCRM DateTime error

    I got this bug during installing process with the laster version of sugar. I have installed last version of php,mysql and apache.

    Thanks

  5. #5
    mjk47 is offline Member
    Join Date
    Nov 2006
    Posts
    5

    Default Re: PHP5 SugarCRM 4.5 DateTime error

    I'm guessing he has a similar problem to me:

    Fatal error: Cannot redeclare class DateTime in D:\WWW\SugarCRM\modules\Calendar\DateTime.php on line 29

    This is preventing my installation.

  6. #6
    dstj is offline Sugar Community Member
    Join Date
    Nov 2006
    Posts
    23

    Post Re: PHP 5.2.0 SugarCRM 4.5.0d DateTime error

    Hi, here the reason I can find.

    PHP 5.2.0 was release on November 2nd, if you check the Update Info , you'll see that they added two classes :
    With the advent of PHP 5.2, there are object representations of the date and
    timezone, named DateTime and DateTimeZone respectively. You can see the methods
    and constants available to the new classes by running
    Sugar tries to declare the class DateTime, hence the error :
    [03-Nov-2006 18:07:29] PHP Fatal error: Cannot redeclare class DateTime in C:\Inetpub\wwwroot\SugarSuite\modules\Calendar\Dat eTime.php on line 29
    So, there you have it... it seems to be the cause of the problem.

    Dominic.
    Last edited by dstj; 2006-11-03 at 10:58 PM.

  7. #7
    dstj is offline Sugar Community Member
    Join Date
    Nov 2006
    Posts
    23

    Post Re: Here's a fix...

    Here's a quick fix I did :

    Simply rename all instances of the DateTime class to DateTimeS (or anything else that not used). Don't rename the file DateTime.php and don't rename the conversion to DateTime for the MSSQL DB...

    At least, it now allows me to log in.

    Dominic

  8. #8
    mwillems is offline Sugar Community Member
    Join Date
    Nov 2006
    Location
    Oakville, Ontario, Canada
    Posts
    28

    Default Re: PHP5 SugarCRM 4.5 DateTime error

    I have the same problem on an up-to-date Fedora Core4 box.

    Since this has been reported a number of times over the last month or so, I wonder, is the variable name going to be officially changed? Or does this just mean I should not look at SugarCRM? Downgrading my PHP is not really an option (that will break other stuff and leave me vulnerable to security issues), and pathcing the code will be a lot of work, plus every time there is an upgrade/bugfix I will be unable to apply it.

    Just wondering. SugarCRM seems an ideal option, but only if it works for us, of course.

    Michael
    CTO, Digital View

  9. #9
    clint's Avatar
    clint is offline Sugar Team Member | Forums Lead Moderator
    Join Date
    Aug 2004
    Location
    Silicon Valley
    Posts
    2,120

    Default Re: PHP5 SugarCRM 4.5 DateTime error

    Please see this thread. We plan to introduce PHP 5.2 support next month after we address the function name conflict that PHP 5.2 introduces..
    Last edited by clint; 2006-11-08 at 04:18 PM. Reason: Fixed link
    Sugar Developer Zone - developer resources | Sugar University - user and admin training
    Sugar Docs - user and admin documentation |
    Sugar Bug Tracker - Enter or view bugs
    SugarForge- open source modules, themes, lang packs | SugarExchange - commercial extensions

    Clint Oram
    Chief Technology Officer and Co-founder
    SugarCRM

  10. #10
    rgodoy is offline Sugar Community Member
    Join Date
    Jul 2006
    Posts
    11

    Default Re: PHP5 SugarCRM 4.5 DateTime error

    Quote Originally Posted by clint
    Please see this thread. We plan to introduce PHP 5.2 support next month after we address the function name conflict that PHP 5.2 introduces..
    Lnik should be this

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •