[BlueOnyx:08713] Re: more suphp problems

"Søren S. Straszek" dump_mail at straszek.dk
Mon Oct 3 14:38:26 -05 2011


Den 03/10/2011 kl. 18.30 skrev Charles Bowman:

> Do a PHPINFO()
> I think you are running [in suphp] php ver 5.1X.
> That class is only available PHP5.2+
> 
> On 3 October 2011 17:22, "Søren S. Straszek" <dump_mail at straszek.dk> wrote:
> Hi,
> 
> I am having some problems getting suphp to work on my sites. Suphp is running, but when it is the a site with  the ecommerce software from cre-loaded stops working.
> 
> The error log show this:
> [Mon Oct 03 18:19:07 2011] [error] [client 92.246.30.157] PHP Fatal error:  Class 'DateTimeZone' not found in /home/.sites/106/site3/web/sandkasse/65/includes/application_top.php on line 102, referer: http://www.xxx.com/sandkasse/
> 
> And the php code for this:
> date_default_timezone_set(STORE_TIME_ZONE);
> $timezone = new DateTimeZone(STORE_TIME_ZONE);
> $dateTime = new DateTime("now", $timezone);
> $timeOffset = $timezone->getOffset($dateTime);
> 
> 
> When suphp is disabled everything is working fine.
> 
> Is this a problem with the php-build, or the suphp module?
> 
> Any help i appreciated
> 
> BEst Regards
> 
> Søren
> 
> 
> _______________________________________________
> Blueonyx mailing list
> Blueonyx at mail.blueonyx.it
> http://mail.blueonyx.it/mailman/listinfo/blueonyx
> 
> _______________________________________________
> Blueonyx mailing list
> Blueonyx at mail.blueonyx.it
> http://mail.blueonyx.it/mailman/listinfo/blueonyx

Hi,

Found the cause of the problem: When running without suphp php version 5.2.17 is used, when switching suphp on suddenly php version 5.1.6 is used. 

How can i fix this ?

Regards

Søren

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.blueonyx.it/pipermail/blueonyx/attachments/20111003/0d48c6f0/attachment.html>


More information about the Blueonyx mailing list