Forums / General / ez 4.1.x < + php5.3 mail bug

ez 4.1.x < + php5.3 mail bug

Author Message

Brendan Pike

Monday 05 April 2010 7:01:06 am

Just writing this as a tip to help anyone who might get caught out by this. If you happen to run any ez sites that are 4.1.x or earlier on php5.3 email notifications will fail. The solution is simply to copy kernel/classes/notification/eznotificationtransport.php from 4.2.x site or of course upgrade eZ.

No errors make it into var/log/error.log and sending a test email via the ezadmin add-on will still succeed. But if you manually run the cronjob with debug you will get the following.

<code>Warning: (PHP)
Undefined variable: impl in /var/www/mysite/kernel/classes/notification/eznotificationtransport.php on line 83
Error: (eZNotificationTransport::instance)
Transport implementation not supported: ezmail</code>

Hope this helps someone.

www.dbinformatics.com.au

We are always interested in hearing from experienced eZ PHP programmers and eZ template designers interested in contract work.

Nicolas Pastorino

Tuesday 06 April 2010 2:57:32 am

Thanks for sharing this Brendan, this is useful.

Cheers,

--
Nicolas Pastorino
Director Community - eZ
Member of the Community Project Board

eZ Publish Community on twitter: http://twitter.com/ezcommunity

t : http://twitter.com/jeanvoye
G+ : http://plus.tl/jeanvoye