
2006-09-21, 12:06 AM
|
|
Junior Member
|
|
Join Date: Sep 2006
Posts: 1
|
|
about php 5.2.0 RC4 error
my php version is 5.2.0 RC4 .
in this version DateTime is a php default class.
I must change the class name to Datetimes it work good.
I'm sorry for my pool english.
|

2006-09-29, 01:53 AM
|
|
Member
|
|
Join Date: Jan 2006
Posts: 14
|
|
Re: about php 5.2.0 RC4 error
Hi guys,
I've come across the same problem. I just checked the latest release and this issue hasn't been fixed. I'm happy to make the changes if I can get registered as a developer. How do I go about doing this?
Cheers,
Glenn Richmond.
Sptoted Frog Enterprises Pty Ltd
http://www.spottedfrog.com.au
|

2006-11-05, 12:26 PM
|
|
Senior Member
|
|
Join Date: Nov 2006
Location: Oakville, Ontario, Canada
Posts: 28
|
|
Re: about php 5.2.0 RC4 error
Mmm. No fix yet, which does not bode all that well for sugarCRM as a live corporate environment (that is what I was going to evaluate it for).
Or have I missed a fix?
Mike
Oakville, ON, Canada
|

2006-11-06, 06:04 PM
|
 |
Sugar Team Member
|
|
Join Date: Sep 2004
Posts: 1,639
|
|
Re: about php 5.2.0 RC4 error
I'll report this as an urgent bug to the engineering team-- unfortunately, there's not much we can do to prevent this kind of thing in the future.
To our credit, we were using that class name before PHP was!
__________________
Julian Ostrow
Systems and Applications Engineer
SugarCRM Inc.
|

2006-11-07, 05:58 PM
|
 |
Sugar Team Member | Forums Lead Moderator
|
|
Join Date: Aug 2004
Location: Silicon Valley
Posts: 2,068
|
|
Re: about php 5.2.0 RC4 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..
|

2006-11-13, 09:45 PM
|
|
Sugar Team Member
|
|
Join Date: May 2005
Posts: 142
|
|
Re: about php 5.2.0 RC4 error
I have refactored DateTime class to DateTimeUtil, attached package has the new class file and files affected by the refactoring. Unzip the contents in the root of you Sugar Install, and please back up before this.
Let me know if you see any issues with this patch.
-Ajay
|

2006-11-14, 01:07 AM
|
 |
Sugar Team Member | Forums Lead Moderator
|
|
Join Date: Aug 2004
Location: Silicon Valley
Posts: 2,068
|
|
Re: about php 5.2.0 RC4 error
Quote:
|
Originally Posted by agupta
I have refactored DateTime class to DateTimeUtil, attached package has the new class file and files affected by the refactoring. Unzip the contents in the root of you Sugar Install, and please back up before this.
Let me know if you see any issues with this patch.
|
This fix will be in the upcoming 4.5.0 patch G targeted for availability at the beginning of December.
|

2006-11-29, 09:22 AM
|
|
Junior Member
|
|
Join Date: Nov 2006
Posts: 2
|
|
Re: about php 5.2.0 RC4 error
Quote:
|
Originally Posted by agupta
I have refactored DateTime class to DateTimeUtil, attached package has the new class file and files affected by the refactoring. Unzip the contents in the root of you Sugar Install, and please back up before this.
Let me know if you see any issues with this patch.
-Ajay
|
The zip you're providing is empty or corrupted. Can you please provide a new one, or explain how to fix this manually?
During install I encountered various issues (like maximum memory setting etc.) but installation still stops at step 7. I just want to know for sure this DateTime issue isn't the cause. (I'm using PHP 5.2.0)
To complete my case: the error i got is as follows:
(yes.. i'm dutch)
[edit]
Well OK, I turned on the PHP error logging to a file (as suggested HERE) and it's this problem indeed:
Quote:
|
[29-nov-2006 11:38:00] PHP Fatal error: Cannot redeclare class DateTime in C:\Inetpub\Intranet\sugarcrm\modules\Calendar\Date Time.php on line 29
|
So now all i need are the right steps to fix it  Can anyone tell me what to fix in which file(s) so i'm not messing up the whole thing?
Last edited by IBO; 2006-11-29 at 12:18 PM.
Reason: addition
|

2006-11-29, 04:38 PM
|
|
Sugar Team Member
|
|
Join Date: May 2005
Posts: 142
|
|
Re: about php 5.2.0 RC4 error
The patch works for me, I tired it again. I recommend you use a different unzip utility, 7-Zip, you can download it from sourceforge, its free. If you want to do this yourself, follow these steps.
1. Rename DateTime To DateTimeUtil, php
2. In DateTimeUtil.php rename the class and constructor functions.
3. Find all instances of DateTime and replace them with DateTimeUtil.
-Ajay
Quote:
|
Originally Posted by IBO
The zip you're providing is empty or corrupted. Can you please provide a new one, or explain how to fix this manually?
During install I encountered various issues (like maximum memory setting etc.) but installation still stops at step 7. I just want to know for sure this DateTime issue isn't the cause. (I'm using PHP 5.2.0)
To complete my case: the error i got is as follows:
(yes.. i'm dutch)
[edit]
Well OK, I turned on the PHP error logging to a file (as suggested HERE) and it's this problem indeed:
So now all i need are the right steps to fix it  Can anyone tell me what to fix in which file(s) so i'm not messing up the whole thing?
|
|

2006-11-29, 09:22 PM
|
|
Junior Member
|
|
Join Date: Nov 2006
Posts: 1
|
|
Re: about php 5.2.0 RC4 error
Quote:
|
Originally Posted by agupta
I have refactored DateTime class to DateTimeUtil, attached package has the new class file and files affected by the refactoring. Unzip the contents in the root of you Sugar Install, and please back up before this.
Let me know if you see any issues with this patch.
-Ajay
|
I have downloaded the zip file but it will not expand says it is corrupted can you recreate the patch please
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT. The time now is 08:02 AM.
|