vtiger.com - Home of vtiger CRM
Home Products Downloads Support Buy Support Partners Company  Community Forums Blogs   Extensions  
Call Us : +1 408-733-3229
 
Log in

Register | Forgot password ?
<<September 2010>>
Su Mo Tu We Th Fr Sa
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30

 Search this forum

SourceForge.net Logo


Conflict with PHP 5.2.0
Post new topic   Reply to topic  Forum Home -> Installation 5.x Previous topic :: Next topic
Goto page Previous  1, 2, 3, 4, 5, 6  Next

Post  libregeek   Post subject: Re: Conflict with PHP 5.2.0
     
Sat Nov 18, 2006 11:37 am 
Posts: 96 
Location: Kerala, India 
  Reply with quote
I too got an error when I upgrade to php-5.2. The error is:
Fatal error: Cannot redeclare class DateTime in /home/www/html/vrm/modules/Calendar/Date.php on line 13

Does the vtiger community have any plan include the patch with the next release? However I'm reporting a bug in the bug tracker system too.

    View user's profile Send private message

Post  bugugly   Post subject: Re: Conflict with PHP 5.2.0
     
Mon Nov 20, 2006 12:59 pm 
Posts: 53 
 
  Reply with quote
Have you checked the value of php output_buffering? Mine is set to 4096 and works. The errors you posted look more like an output buffering problem.

    View user's profile Send private message Visit poster's website

Post  libregeek   Post subject: Re: Conflict with PHP 5.2.0
     
Mon Nov 20, 2006 1:04 pm 
Posts: 96 
Location: Kerala, India 
  Reply with quote
bugugly:
You mean this error is related with output_buffering:
Fatal error: Cannot redeclare class DateTime in /home/www/html/vrm/modules/Calendar/Date.php on line 13

??

_________________
Manilal K M,
eJyothi Services.
http://www.ejyothi.com
http://libregeek.blogspot.com

    View user's profile Send private message

Post  bugugly   Post subject: Re: Conflict with PHP 5.2.0
     
Mon Nov 20, 2006 1:17 pm 
Posts: 53 
 
  Reply with quote
My apologies, I was trying to reply to the johnvoisey post which was at the top of my forum page view. The johnvoisey post looked like an output buffering problem.

To fix the DateTime I did this which worked:

In /modules/Calendar/Date.php

--change "class DateTime" to "class com_vtiger_DateTime"

--Then search and replace "new DateTime with "new com_vtiger_DateTime", about a dozen places in Date.php

In /modules/Calendar/Appointment.php --same search and replace, two occurrences.

In /include/utils/RecurringType.php -- search and replace several times

    View user's profile Send private message Visit poster's website

Post  libregeek   Post subject: Re: Conflict with PHP 5.2.0
     
Mon Nov 20, 2006 1:20 pm 
Posts: 96 
Location: Kerala, India 
  Reply with quote
bugugly :
Thanks for your reply. I am actually waiting for an official patch from vtiger community.

regards
Manilal

_________________
Manilal K M,
eJyothi Services.
http://www.ejyothi.com
http://libregeek.blogspot.com

    View user's profile Send private message

Post  indigoleopard   Post subject: Re: Conflict with PHP 5.2.0
     Senior Member
Tue Nov 21, 2006 8:13 am 
Posts: 2111 
Location: india,chennai 
  Reply with quote
Hi Mani!
It will take sometime as we have not yet tested in 5.2.
Kindly do not expect it in the near future from us. It will be great if someone contributes it or rather tests the entire product in 5.2 and then, we can give out the future releases with that version.

Richie

_________________
Between stimulus and response, there is a space. And the space is filled with our choice.

Team vtiger

    View user's profile Send private message Blog Send e-mail Visit poster's website Yahoo Messenger MSN Messenger

Post  emdee   Post subject: Re: Conflict with PHP 5.2.0
     
Thu Nov 23, 2006 1:48 am 
Posts: 16 
 
  Reply with quote
bugugly wrote:
My apologies, I was trying to reply to the johnvoisey post which was at the top of my forum page view. The johnvoisey post looked like an output buffering problem.

To fix the DateTime I did this which worked:

In /modules/Calendar/Date.php

--change "class DateTime" to "class com_vtiger_DateTime"

--Then search and replace "new DateTime with "new com_vtiger_DateTime", about a dozen places in Date.php

In /modules/Calendar/Appointment.php --same search and replace, two occurrences.

In /include/utils/RecurringType.php -- search and replace several times


Just to confirm, this fix does work for PHP 5.2. Its not hard to apply, takes 5 minutes.

    View user's profile Send private message

Post  emdee   Post subject: Re: Conflict with PHP 5.2.0
     
Thu Nov 23, 2006 4:15 am 
Posts: 16 
 
  Reply with quote
ilexius wrote:
Have a look at http://www.ilexius.de/geschaftsfelder/tutorials/vtiger-crm-5-and-php-5.2-45-57.html

I wrote a simple fix for all the Object to String related errors. I hope it works, has not been tested very much.

Cheers,
Sebastian


This fix does work.

    View user's profile Send private message

Post  Sai   Post subject: Re: Conflict with PHP 5.2.0
     Site Admin
Thu Nov 23, 2006 4:58 am 
Posts: 1575 
Location: Chennai, India 
  Reply with quote
Hello,

Thanks to Sebastian and bugugly. With your hints, I have debugged further and noticed that we have to hack modules\Calendar\Calendar.php and update the DateTime and Appointment functions.

After updating the Calendar.php, Calnedar is displayed.

I strongly believe that with the strong community support we can debug all the issues and come up with a better solution for PHP 5.2.

Please keep up good work!

Regards,
Gopal

_________________
Administrator: vtiger Forums
Blog: http://blogs.vtiger.com/

    View user's profile Send private message Blog Visit poster's website Yahoo Messenger MSN Messenger

Post  johnvoisey   Post subject: Re: Conflict with PHP 5.2.0
     
Mon Nov 27, 2006 8:21 am 
Posts: 4 
Location: UK 
  Reply with quote
bugugly wrote:
Have you checked the value of php output_buffering? Mine is set to 4096 and works. The errors you posted look more like an output buffering problem.


Hi. Just a quick THANK YOU !!!!! for this.

my php.ini file output_buffering was set to 'off' - which was easily fixed and now I'm up and running. Thanks again

    View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    vtiger Forum Index -> Installation 5.x All times are GMT
Leave a Testimonial
Goto page Previous  1, 2, 3, 4, 5, 6  Next
Page 3 of 6

Jump to: