Forums / Install & configuration / Workflow not sending e-mails

Workflow not sending e-mails

Author Message

Andy Caiger

Wednesday 19 May 2010 1:01:22 am

I've set up a standard Event/Approve workflow on eZ Publish 4.2 which seems to work fine accept that it doesn't send out the e-mail notification. I've even set the following in settings/override/site.ini.append.php

[MailSettings]
Transport=file

but it doesn't create any mail messages in var/log/mail either!

The approver sees the new item appears in My Account / Collaboration and can approve it (the object is then published) but the email doesn't get sent.

Any ideas how to go about debugging this?

EAB - Integrated Internet Success
Offices in England, France & China.
http://www.eab.co.uk http://www.eab-china.com http://www.eab-france.com

Robin Muilwijk

Wednesday 19 May 2010 1:41:17 am

Hi Andy,

If no e-mail is created, also not in the var/log/mail, did you check on the cronjobs if they are configured and working properly? If I'm correct, there is one cronjob that handles the workflow events.

Regards Robin

Board member, eZ Publish Community Project Board - Member of the share.ez.no team - Key values: Openness and Innovation.

LinkedIn: http://nl.linkedin.com/in/robinmuilwijk // Twitter: http://twitter.com/i_robin // Skype: robin.muilwijk

Andy Caiger

Wednesday 19 May 2010 3:16:52 am

Well, I think the cronjob is working. It is:

 php runcronjobs.php frequent > cron.log 2>&1

and in cron.log I see:

Running cronjob part 'frequent'
Running cronjobs/notification.php
Starting notification event processing
Done

Running cronjobs/workflow.php
Checking for workflow processes
Status list
Workflow done(2): 1

1 out of 1 processes was finished

I forgot to say the normal notification emails are sent out correctly (when a page is edited in a user's notification sub-tree. Also, the approver sees the new item appears in My Account / Collaboration and can approve it (the object is then published) which I think is also done by cronjobs/workflow.php. Am I right?

Where is the code that sends the e-mail?

EAB - Integrated Internet Success
Offices in England, France & China.
http://www.eab.co.uk http://www.eab-china.com http://www.eab-france.com

Robin Muilwijk

Sunday 30 May 2010 10:56:29 am

Hi Andy,

Sorry for the late reply, I've tried tracing the poblem but had no success myself. I'll ask for some help to look at this.

Regards Robin

Board member, eZ Publish Community Project Board - Member of the share.ez.no team - Key values: Openness and Innovation.

LinkedIn: http://nl.linkedin.com/in/robinmuilwijk // Twitter: http://twitter.com/i_robin // Skype: robin.muilwijk

Andy Caiger

Sunday 30 May 2010 9:46:03 pm

Sorry, it was a stupid mistake on my part! There was no problem. The system was working fine but I hadn't set the user account to receive collaboration notifications! I didn't know that you had to do that! Is it documented somewhere?

Anyway, the procedure is: go to the admin interface and log in as the collaboration user approving new edits. Go to My Account -> My notification settings. Under Collaboration notification, make sure that the Approval checkbox is ticked.

Problem solved!

EAB - Integrated Internet Success
Offices in England, France & China.
http://www.eab.co.uk http://www.eab-china.com http://www.eab-france.com

Nicolas Pastorino

Monday 31 May 2010 12:05:50 am

Hi Andy,

Good to see this solved :)

You may want to mark the issue as solved (small ticker next to the topic's title above).

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

Nicolas OTTAVI

Monday 19 July 2010 3:53:33 am

Hi,

I am having the same kind of problems with ezapprove notification emails not send. As you I have checked the right checkbox in the notification settings for the concerned users, I have all emails getting out except those one. I tried to add the Transport=file in MailSettings, as it was the only difference I could see between your case and mine, but still do not receive emails ...

I am using ezpublish 4.3, and debuguing this part seems to be a little bit tricky as it implies lot of "classes", filters, handler etc ...

If you have any more tips to give it would be helpful.

Thanks,

Nico O

Andy Caiger

Monday 06 September 2010 8:36:59 pm

Sorry, the system was working fine but I hadn't set the user account to receive collaboration notifications! So there was no problem for me. Hope you can resolve your own problem.

EAB - Integrated Internet Success
Offices in England, France & China.
http://www.eab.co.uk http://www.eab-china.com http://www.eab-france.com

Andy Caiger

Wednesday 01 December 2010 11:20:11 pm

I spoke too soon! After doing the above (go to My Account -> My notification settings, under Collaboration notification, make sure that the Approval checkbox is ticked) the user started to receive collaboration notifications. But then we upgraded eZ Publish from 4.2 to 4.3 and the collaboration emails are no longer sent! Ordinary notification emails still work. What is going on?

EAB - Integrated Internet Success
Offices in England, France & China.
http://www.eab.co.uk http://www.eab-china.com http://www.eab-france.com

Andy Caiger

Thursday 02 December 2010 2:36:44 am

Ah! Problem solved by searching ez.no more deeply! This is due to a bug introduced into eZ Publish versions 4.3 and 4.4.

The solution at http://issues.ez.no/IssueView.php?Id=17353 worked for me.

EAB - Integrated Internet Success
Offices in England, France & China.
http://www.eab.co.uk http://www.eab-china.com http://www.eab-france.com

eZ debug

Timing: Jan 18 2025 02:54:17
Script start
Timing: Jan 18 2025 02:54:17
Module start 'content'
Timing: Jan 18 2025 02:54:18
Module end 'content'
Timing: Jan 18 2025 02:54:18
Script end

Main resources:

Total runtime0.9489 sec
Peak memory usage4,096.0000 KB
Database Queries219

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0090 588.9453180.8281
Module start 'content' 0.00900.8258 769.7734729.2109
Module end 'content' 0.83480.1141 1,498.9844348.4453
Script end 0.9489  1,847.4297 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00490.5202210.0002
Check MTime0.00170.1745210.0001
Mysql Total
Database connection0.00120.121410.0012
Mysqli_queries0.820186.42812190.0037
Looping result0.00270.28122170.0000
Template Total0.902895.120.4514
Template load0.00220.234120.0011
Template processing0.900594.900120.4503
Template load and register function0.00010.014210.0001
states
state_id_array0.00090.096610.0009
state_identifier_array0.00120.124420.0006
Override
Cache load0.00210.2204640.0000
Sytem overhead
Fetch class attribute can translate value0.00130.139150.0003
Fetch class attribute name0.00130.1332140.0001
XML
Image XML parsing0.00440.465950.0009
class_abstraction
Instantiating content class attribute0.00010.0069200.0000
General
dbfile0.02422.5455470.0005
String conversion0.00000.000630.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
10content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
10content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
14content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
2content/datatype/view/ezxmltags/strong.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/strong.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 41
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs