Roundcube Community Forum

 

Moreuserinfo problem

Started by dimago, February 22, 2010, 12:19:15 PM

Previous topic - Next topic

dimago

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

rosali

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)

dimago

#2
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?

rosali

Your code is n o t  a php class. Why can't you update your PHP?
Regards,
Rosali
__________________
MyRoundcube Project (commercial)

dimago

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

JohnDoh

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...

dimago

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

JohnDoh

this is from the php website....
QuoteNote: 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...