#1  
Old 2006-09-21, 12:06 AM
dove dove is offline
Junior Member
 
Join Date: Sep 2006
Posts: 1
Default 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.
Reply With Quote
  #2  
Old 2006-09-29, 01:53 AM
richmogd richmogd is offline
Member
 
Join Date: Jan 2006
Posts: 14
Default 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
Reply With Quote
  #3  
Old 2006-11-05, 12:26 PM
mwillems mwillems is offline
Senior Member
 
Join Date: Nov 2006
Location: Oakville, Ontario, Canada
Posts: 28
Default 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
Reply With Quote
  #4  
Old 2006-11-06, 06:04 PM
julian's Avatar
julian julian is offline
Sugar Team Member
 
Join Date: Sep 2004
Posts: 1,639
Default 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.
Reply With Quote
  #5  
Old 2006-11-07, 05:58 PM
clint's Avatar
clint clint is offline
Sugar Team Member | Forums Lead Moderator
 
Join Date: Aug 2004
Location: Silicon Valley
Posts: 2,068
Default 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..
__________________
Sugar Developer Zone - developer resources | Sugar University - user and admin training
Sugar Wiki - developer and admin knowledgebase | Sugar Docs - user and admin documentation
SugarForge- open source modules, themes, lang packs | SugarExchange
- commercial extensions
Sugar Bug Tracker - Enter or view bugs

Clint Oram, SugarCRM Co-Founder
Reply With Quote
  #6  
Old 2006-11-13, 09:45 PM
agupta agupta is offline
Sugar Team Member
 
Join Date: May 2005
Posts: 142
Default 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
Attached Files
File Type: zip os_datetimefix.zip (21.9 KB, 3362 views)
Reply With Quote
  #7  
Old 2006-11-14, 01:07 AM
clint's Avatar
clint clint is offline
Sugar Team Member | Forums Lead Moderator
 
Join Date: Aug 2004
Location: Silicon Valley
Posts: 2,068
Default 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.
__________________
Sugar Developer Zone - developer resources | Sugar University - user and admin training
Sugar Wiki - developer and admin knowledgebase | Sugar Docs - user and admin documentation
SugarForge- open source modules, themes, lang packs | SugarExchange
- commercial extensions
Sugar Bug Tracker - Enter or view bugs

Clint Oram, SugarCRM Co-Founder
Reply With Quote
  #8  
Old 2006-11-29, 09:22 AM
IBO IBO is offline
Junior Member
 
Join Date: Nov 2006
Posts: 2
Default 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
Reply With Quote
  #9  
Old 2006-11-29, 04:38 PM
agupta agupta is offline
Sugar Team Member
 
Join Date: May 2005
Posts: 142
Default 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?
Reply With Quote
  #10  
Old 2006-11-29, 09:22 PM
davidph davidph is offline
Junior Member
 
Join Date: Nov 2006
Posts: 1
Default 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
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:02 AM.


Powered by: vBulletin
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SourceForge.net Logo