WorkFlow runcronjob frequent error

Author Message

Tom W

Thursday 23 December 2010 1:49:47 pm

Hello, I'm in need of some help. In the site I'm maintaining, a workflow was setup for content approval. Before the "runcronjob.php frequent" was ran, someone deleted the approved resource.
When the script is ran, it returns an error.

"Fatal error: Call to a member function fetchEventIndexed() on a non-object in /var/www/..../kernel/classes/ezworkflowprocess.php on line 427"

Does anyone know if the deleted resource is the cause of this error? And what can I do to resolve it(possibly without tempering with the database to pick out the empty object reference)?

Thank you,

Tom W

Wednesday 29 December 2010 3:19:15 pm

just to follow up on a few details.

Ez Publish 4.4.0 on Apache/MySQL

A similar issue can be reproduced:
1. Have an content approval workflow, allow Admins to approval.
2. An editor updates an article.
3. Admin(A) deletes the current article
4. Admin(B) approves the update
5. Run runcronjob.php frequent, error occurs

Tom W

Tuesday 04 January 2011 1:55:54 pm

Resolved the issue after looking through a lot of data.

Somehow a workflow entry went missing from the DB.

Manually added it in, and the cronjob ran ok.

My issue with it is fixed for now. Still found quite a few other unpleasant things along the way.
-no way to clear inbox
-processed items still appear in collaboration item list
...

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 02:22:16
Script start
Timing: Jan 18 2025 02:22:16
Module start 'layout'
Timing: Jan 18 2025 02:22:16
Module start 'content'
Timing: Jan 18 2025 02:22:17
Module end 'content'
Timing: Jan 18 2025 02:22:17
Script end

Main resources:

Total runtime0.8037 sec
Peak memory usage4,096.0000 KB
Database Queries56

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0062 591.6719152.6250
Module start 'layout' 0.00620.0041 744.296939.4531
Module start 'content' 0.01030.7921 783.7500438.1484
Module end 'content' 0.80230.0013 1,221.89848.1563
Script end 0.8037  1,230.0547 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.4191160.0002
Check MTime0.00150.1834160.0001
Mysql Total
Database connection0.00110.136410.0011
Mysqli_queries0.758794.4001560.0135
Looping result0.00050.0581540.0000
Template Total0.768395.620.3842
Template load0.00220.278220.0011
Template processing0.766195.321520.3831
Template load and register function0.00010.017310.0001
states
state_id_array0.00080.100210.0008
state_identifier_array0.00080.097220.0004
Override
Cache load0.00180.2236260.0001
Sytem overhead
Fetch class attribute can translate value0.00060.068610.0006
Fetch class attribute name0.00090.107730.0003
XML
Image XML parsing0.00010.012310.0001
class_abstraction
Instantiating content class attribute0.00000.000830.0000
General
dbfile0.00070.0933100.0001
String conversion0.00000.001240.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
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/link.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/link.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 15
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs