Custom content classes don't appear in subtree notifications

Author Message

Nathan Kelly

Monday 02 June 2008 12:44:20 am

Hi all,

I'm having some trouble getting a custom content class to show up in my subtree notifications.

I have tested notifications by adding a node of class_identifier = folder to my notifications and I get notified of any updates to the node and its children so I know the notification system is working.

The problem is when I add a subtree that uses a custom content class (lets say class_identifier = my_folder) the notification email is delivered but everything is blank, no subject, no message body, even the basic stuff like the owner of the object etc.. is missing?

Do I need to add my custom classes to an ini file somewhere to include them in notifications? I have looked but can't find anywhere that this might be needed?

Also I should add that my custom classes are in their own class group, not in the content group. I feel quite stupid asking this but I have exhausted my knowledge on the issue and I can't for the life of me get custom classes to show up in notification emails...

Just so you know... Yes I cleared cache etc... I'm not a noob, but this has me completely stumped.

I'm using eZ 4.0 on:
RHEL5
Apache 2.2.3
PHP 5.2.6-1
MySQL 5.0.22

All cronjobs are working correctly too.

Any ideas of what I might be missing?

Cheers
Nathan.

Pardon me while I burst into flames...

Nathan Kelly

Tuesday 03 June 2008 1:44:54 am

Well I seem to have waisted another whole day trying to figure this out...

Surely it has to be something so simple but I'm overlooking it because its just not obvious...

Does any one else have this problem running eZ 4.0? I tested on one of my 3.8 sites and there is no problem... Has something changed between 3.8 and 4.0 that would affect custom content classes in subtree notifications?

Any ideas?

Cheers
Nathan.

Pardon me while I burst into flames...

Maxime Thomas

Tuesday 03 June 2008 10:33:27 pm

Some ideas :

- Have you looked at the mail config ?Do you use SMTP or sendmail ? Is it properly set up ?
- Have you debugged the nottification event (I think it's in this) which has to send the mail ? have you looked at the log (ez and mail) ?
- Have tried on other content ?

Hope it helps.

Maxime Thomas
maxime.thomas@wascou.org | www.wascou.org | http://twitter.com/wascou

Company Blog : http://www.wascou.org/eng/Company/Blog
Technical Blog : http://share.ez.no/blogs/maxime-thomas

Nathan Kelly

Tuesday 03 June 2008 10:49:48 pm

Hi Maxime,

thanks for the reply, just before this notification came in I finally figured out the problem, it was a simple (but hard to spot) typo in my override ini, there was a 1 in place of a lower case l... Oops, don't know how that happened.

Funny it didn't show up in debug, but then suddenly it did...

Sorted now.

Cheers.

Pardon me while I burst into flames...

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 11:00:45
Script start
Timing: Jan 18 2025 11:00:45
Module start 'layout'
Timing: Jan 18 2025 11:00:45
Module start 'content'
Timing: Jan 18 2025 11:00:46
Module end 'content'
Timing: Jan 18 2025 11:00:46
Script end

Main resources:

Total runtime1.0646 sec
Peak memory usage4,096.0000 KB
Database Queries60

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0060 588.1719152.6563
Module start 'layout' 0.00600.0032 740.828139.5078
Module start 'content' 0.00921.0535 780.3359564.6484
Module end 'content' 1.06270.0018 1,344.984416.0938
Script end 1.0646  1,361.0781 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.3027160.0002
Check MTime0.00130.1264160.0001
Mysql Total
Database connection0.00120.111210.0012
Mysqli_queries0.993393.3041600.0166
Looping result0.00080.0787580.0000
Template Total1.023996.220.5120
Template load0.00220.203720.0011
Template processing1.021795.970020.5109
Template load and register function0.00010.010410.0001
states
state_id_array0.00120.108910.0012
state_identifier_array0.00220.205520.0011
Override
Cache load0.00190.1772420.0000
Sytem overhead
Fetch class attribute can translate value0.00090.081820.0004
Fetch class attribute name0.00210.200460.0004
XML
Image XML parsing0.00110.102720.0005
class_abstraction
Instantiating content class attribute0.00000.001580.0000
General
dbfile0.00250.2392220.0001
String conversion0.00000.000840.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
4content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
8content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 22
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs