Problem with notification.php

Author Message

Javier Rodriguez

Thursday 15 September 2005 4:32:06 am

Hi,

I'm trying working cronjobs/notification.php

I do these steps:

1. $php4 notification.php

/* notification.php code*/

   $event =& eZNotificationEvent::create( 'ezcurrenttime', array() );
   $event->store();

/* notification.php code*/

$event is an eznotificationevent Object but function $event->store(); doesn't exist. why?

/* notification.php code*/

   eZNotificationEventFilter::process();

/* notification.php code*/

/*eznotificationeventfilter.php code*/

    function process()
    {
        $eventList =& eZNotificationEvent::fetchUnhandledList();

/*eznotificationeventfilter.php code*/

$eventList is array() and next script doesn't work

What am i doing erroneus?
Exec notification.php is any kind to send mail (for example to Admin) when forum message is stored? Can I try with another method?

Thanks in advance!

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 31 2025 07:38:08
Script start
Timing: Jan 31 2025 07:38:08
Module start 'layout'
Timing: Jan 31 2025 07:38:08
Module start 'content'
Timing: Jan 31 2025 07:38:09
Module end 'content'
Timing: Jan 31 2025 07:38:09
Script end

Main resources:

Total runtime0.9171 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0047 588.1328151.2109
Module start 'layout' 0.00470.0026 739.343836.6484
Module start 'content' 0.00740.9089 775.9922829.0781
Module end 'content' 0.91630.0007 1,605.07037.8516
Script end 0.9171  1,612.9219 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00300.3305160.0002
Check MTime0.00120.1320160.0001
Mysql Total
Database connection0.00060.067210.0006
Mysqli_queries0.875195.4172460.0190
Looping result0.00030.0363440.0000
Template Total0.884696.520.4423
Template load0.00180.194520.0009
Template processing0.882896.261020.4414
Template load and register function0.00130.146210.0013
states
state_id_array0.00140.157210.0014
state_identifier_array0.00080.088220.0004
Override
Cache load0.00150.1593220.0001
Sytem overhead
Fetch class attribute can translate value0.00040.044210.0004
Fetch class attribute name0.00150.163710.0015
XML
Image XML parsing0.00010.011410.0001
class_abstraction
Instantiating content class attribute0.00000.000510.0000
General
dbfile0.00200.2136100.0002
String conversion0.00000.001040.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
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/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/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: 13
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs