Author Topic: Moreuserinfo problem  (Read 7141 times)

Offline dimago

  • Jr. Member
  • **
  • Posts: 33
Moreuserinfo problem
« on: February 22, 2010, 12:19:15 PM »
Hello..

I don´t know, but, I have this problem when I try to see the user info..

Look..

[22-Fev-2010 14:14:08] PHP Warning:  include(DateTime.php) [function.include]: failed to open stream: Arquivo ou diretório não encontrado in /pkg/httpsites01/var/www/webmail/program/include/iniset.php on line 99
[22-Fev-2010 14:14:08] PHP Warning:  include() [function.include]: Failed opening 'DateTime.php' for inclusion (include_path='/var/www/webmail/:/var/www/webmail/program:/var/www/webmail/program/lib:/var/www/webmail/program/include:.:/usr/share/pear:/usr/share/php') in /pkg/httpsites01/var/www/webmail/program/include/iniset.php on line 99
[22-Fev-2010 14:14:08] PHP Fatal error:  Class 'DateTime' not found in /pkg/httpsites01/var/www/webmail/plugins/moreuserinfo/moreuserinfo.php on line 169

i don´t know what happen..

Anyone can help me?

Thanks

Diego

Offline rosali

  • Hero Member
  • *****
  • Posts: 2,533
Moreuserinfo problem
« Reply #1 on: February 23, 2010, 05:43:41 AM »
This is PHP issue. Are you using PHP5.1 or lower? DateTime class should be available in your installation if using PHP>5.1.

PHP: DateTime - Manual
Regards,
Rosali
__________________
MyRoundcube Project (commercial)

Offline dimago

  • Jr. Member
  • **
  • Posts: 33
Moreuserinfo problem
« Reply #2 on: February 23, 2010, 01:37:45 PM »
Hello, Thanks Rosali

My php is 5.1.6.

I get this code, and create inside /program/include/DateTime.php, look:

$DateOfRequest = date("Y-m-d H:i:s", mktime($_REQUEST["Hour"],$_REQUEST["Min"],$_REQUEST
["Sec"],$_REQUEST["Month"],$_REQUEST["Day"],$_REQUEST["Year"]));
?>

well, now, when i try to get more user info, i have got this message..

[23-Fev-2010 15:33:31] PHP Fatal error:  Class 'DateTime' not found in /pkg/httpsites01/var/www/webmail/plugins/moreuserinfo/moreuserinfo.php on line 169

any idea now?
« Last Edit: February 23, 2010, 02:35:05 PM by dimago »

Offline rosali

  • Hero Member
  • *****
  • Posts: 2,533
Moreuserinfo problem
« Reply #3 on: February 23, 2010, 01:44:37 PM »
Your code is n o t  a php class. Why can't you update your PHP?
Regards,
Rosali
__________________
MyRoundcube Project (commercial)

Offline dimago

  • Jr. Member
  • **
  • Posts: 33
Moreuserinfo problem
« Reply #4 on: February 24, 2010, 06:52:02 AM »
Hello,

Well, I have a lot of websites in this server. I don´t know if I update the PHP what kind of problems I can to get.

I think that I will disable this option, at moment..

If i update to newer version, this issue will be resolved?

Cya

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,850
Moreuserinfo problem
« Reply #5 on: February 24, 2010, 07:16:17 AM »
RC requires a php minimum version of 5.2.1, anything less is not supported. you can see all the requiements here Howto_Requirements ? Roundcube Webmail

as long as your php install includes the DateTime class the issue will dissapear.
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more…

Offline dimago

  • Jr. Member
  • **
  • Posts: 33
Moreuserinfo problem
« Reply #6 on: February 24, 2010, 11:08:05 PM »
John,

But, I just can include the class DateTime updating to newer version??

There are another way to include this class without to update???

Thankss

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,850
Moreuserinfo problem
« Reply #7 on: February 25, 2010, 03:25:25 AM »
this is from the php website....
Quote
Note: Experimental DateTime support in PHP 5.1.x
Although the DateTime class (and related functions) are enabled by default since PHP 5.2.0, it is possible to add experimental support into PHP 5.1.x by using the following flag before configure/compile: CFLAGS=-DEXPERIMENTAL_DATE_SUPPORT=1
Even if you get this working it is possible RC still will not function correctly since it requires PHP5.2, afaik there were many bugs in 5.1 and that is why its not supported.
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more…