Horde problem when upgrading to PHP5.3

You may run into Horde problems when upgrading PHP to 5.3 on a Plesk server

So you have upgraded to PHP5.3 and now you have some problems with Horde…
Here I will just fix 2 of the possible problems  you have:

1. You have problems with large attachments

When you look into the apache error_log, you will probably see something like:

PHP Fatal error:  Allowed memory size of 33554432 bytes exhausted (tried to allocate 10512 bytes) in /usr/share/psa-horde/lib/Horde/Image/gd.php on line 1082…..

To fix this one, edit your php.ini and change “memory_limit = 32M” to “memory_limit = 128M” (or whatever size suits you).

2. Your left pane (listing your mailbox options) has vanished.

Looking into the apache error_log, you will see something like:

PHP Fatal error:  Uncaught exception ‘Exception’ with message ‘DateTime::__construct() [<a href=’datetime.–construct’>datetime.–construct</a>]: It is not safe to rely on the…..

Also, here is an easy fix:
Edit your php.ini and alter following line: “;date.timezone =

into:

date.timezone = “Europe/Amsterdam”
(Please use your correct date/time zone)