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

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 05:11:41
Script start
Timing: Jan 18 2025 05:11:41
Module start 'layout'
Timing: Jan 18 2025 05:11:41
Module start 'content'
Timing: Jan 18 2025 05:11:42
Module end 'content'
Timing: Jan 18 2025 05:11:42
Script end

Main resources:

Total runtime0.6700 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0056 587.9063152.6250
Module start 'layout' 0.00570.0024 740.531339.4297
Module start 'content' 0.00810.6606 779.9609523.4844
Module end 'content' 0.66860.0013 1,303.44538.3359
Script end 0.6700  1,311.7813 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00290.4352160.0002
Check MTime0.00120.1853160.0001
Mysql Total
Database connection0.00120.177610.0012
Mysqli_queries0.616892.0619540.0114
Looping result0.00050.0791520.0000
Template Total0.632094.320.3160
Template load0.00170.247920.0008
Template processing0.630394.072920.3152
Template load and register function0.00020.029310.0002
states
state_id_array0.00110.168310.0011
state_identifier_array0.00080.126120.0004
Override
Cache load0.00130.1940140.0001
Sytem overhead
Fetch class attribute can translate value0.00070.100020.0003
Fetch class attribute name0.00160.242130.0005
XML
Image XML parsing0.00070.100920.0003
class_abstraction
Instantiating content class attribute0.00000.001430.0000
General
dbfile0.00070.1060160.0000
String conversion0.00000.000740.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 9
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs