Eztrigger broken

Author Message

Willie Seabrook

Thursday 13 November 2003 3:14:20 pm

Hi,

Triggers/workflows aren't working for any event that causes a template return: IE: the shipping, hello and wrapping events. (Also my custom event). Having the trigger at before or after makes no difference. If the trigger is before the workflow simply takes you back to the main admin page and doesn't publish the object, if the trigger is after publish it publihes and takes you back to the main content folder. You never get to see the fetch template like your supposed to. Is this a bug? I assum it is.... but I havn't seen anyone else with the same problems on the forum. I'm using 3.2-1 and 3.2-3

Anything I can try?

Willie Seabrook

Thursday 13 November 2003 4:17:32 pm

The output showing what happens on trigger after publish and publishing a folder. As you can see.... the correct templates are being loaded but just not displayed:

-------------------------------------------------------------------------------

Timing:
Nov 14 2003 13:17:38

Script start

Timing:
Nov 14 2003 13:17:38

Module start 'content'

Debug: input data
Nov 14 2003 13:17:38

ds

Debug: input
Nov 14 2003 13:17:38

<section xmlns:image='http://ez.no/namespaces/ezpublish3/image/' xmlns:xhtml='http://ez.no/namespaces/ezpublish3/xhtml/' xmlns:custom='http://ez.no/namespaces/ezpublish3/custom/' ><paragraph>ds</paragraph></section>

Debug: unprocessed xml
Nov 14 2003 13:17:38

<?xml version="1.0" encoding="UTF-8"?>
<section xmlns:image="http://ez.no/namespaces/ezpublish3/image/"
xmlns:xhtml="http://ez.no/namespaces/ezpublish3/xhtml/"
xmlns:custom="http://ez.no/namespaces/ezpublish3/custom/">
<paragraph>ds</paragraph>
<paragraph />
</section>

Debug: domstring
Nov 14 2003 13:17:38

<?xml version="1.0" encoding="UTF-8"?><section xmlns:image="http://ez.no/namespaces/ezpublish3/image/" xmlns:xhtml="http://ez.no/namespaces/ezpublish3/xhtml/" xmlns:custom="http://ez.no/namespaces/ezpublish3/custom/"> <paragraph>ds</paragraph> </section>

Debug: stored xml
Nov 14 2003 13:17:38

<?xml version="1.0" encoding="UTF-8"?>
<section xmlns:image="http://ez.no/namespaces/ezpublish3/image/"
xmlns:xhtml="http://ez.no/namespaces/ezpublish3/xhtml/"
xmlns:custom="http://ez.no/namespaces/ezpublish3/custom/">
<paragraph>ds</paragraph>
</section>

Debug: input data
Nov 14 2003 13:17:38

ds

Debug: input
Nov 14 2003 13:17:38

<section xmlns:image='http://ez.no/namespaces/ezpublish3/image/' xmlns:xhtml='http://ez.no/namespaces/ezpublish3/xhtml/' xmlns:custom='http://ez.no/namespaces/ezpublish3/custom/' ><paragraph>ds</paragraph></section>

Debug: unprocessed xml
Nov 14 2003 13:17:38

<?xml version="1.0" encoding="UTF-8"?>
<section xmlns:image="http://ez.no/namespaces/ezpublish3/image/"
xmlns:xhtml="http://ez.no/namespaces/ezpublish3/xhtml/"
xmlns:custom="http://ez.no/namespaces/ezpublish3/custom/">
<paragraph>ds</paragraph>
<paragraph />
</section>

Debug: domstring
Nov 14 2003 13:17:38

<?xml version="1.0" encoding="UTF-8"?><section xmlns:image="http://ez.no/namespaces/ezpublish3/image/" xmlns:xhtml="http://ez.no/namespaces/ezpublish3/xhtml/" xmlns:custom="http://ez.no/namespaces/ezpublish3/custom/"> <paragraph>ds</paragraph> </section>

Debug: stored xml
Nov 14 2003 13:17:38

<?xml version="1.0" encoding="UTF-8"?>
<section xmlns:image="http://ez.no/namespaces/ezpublish3/image/"
xmlns:xhtml="http://ez.no/namespaces/ezpublish3/xhtml/"
xmlns:custom="http://ez.no/namespaces/ezpublish3/custom/">
<paragraph>ds</paragraph>
</section>

Warning: eZModuleOperationInfo::execute
Nov 14 2003 13:17:38

Missing main operation memento for key: 68953b17a9112ce2009ac8c9c4909630

Debug: changing value of main_node_id to default
Nov 14 2003 13:17:38

Debug: changing value of contentobject_version to default
Nov 14 2003 13:17:38

Debug: changing value of contentobject_is_published to default
Nov 14 2003 13:17:38

Debug: changing value of sort_field to default
Nov 14 2003 13:17:38

1

Debug: changing value of sort_order to default
Nov 14 2003 13:17:38

1

Debug: changing value of priority to default
Nov 14 2003 13:17:38

Debug: changing value of path_identification_string to default
Nov 14 2003 13:17:38

Warning: PHP
Nov 14 2003 13:17:38

Undefined index: real_translation in /opt/apache/htdocs/kernel/classes/ezcontentobjecttreenode.php on line 2331

Warning: PHP
Nov 14 2003 13:17:38

Undefined index: real_translation in /opt/apache/htdocs/kernel/classes/ezcontentobjecttreenode.php on line 2331

Debug: changing value of status to default
Nov 14 2003 13:17:38

Warning: PHP
Nov 14 2003 13:17:38

Undefined index: user_id in /opt/apache/htdocs/kernel/classes/ezworkflowprocess.php on line 156

Debug: changing value of user_id to default
Nov 14 2003 13:17:38

Debug: changing value of event_state to default
Nov 14 2003 13:17:38

Debug: changing value of activation_date to default
Nov 14 2003 13:17:38

Debug: changing value of status to default
Nov 14 2003 13:17:38

Debug: changing value of memento_key to default
Nov 14 2003 13:17:38

Notice: process
Nov 14 2003 13:17:38

object(ezworkflowprocess)(23) {
["PersistentDataDirty"]=>
bool(false)
["ID"]=>
int(3)
["WorkflowID"]=>
NULL
["UserID"]=>
int(0)
["ContentID"]=>
int(0)
["NodeID"]=>
int(0)
["EventID"]=>
string(1) "2"
["EventPosition"]=>
int(1)
["LastEventID"]=>
int(0)
["LastEventPosition"]=>
int(0)
["LastEventStatus"]=>
int(0)
["EventStatus"]=>
int(0)
["Created"]=>
int(1068769057)
["Modified"]=>
int(1068769057)
["ActivationDate"]=>
int(0)
["ProcessKey"]=>
string(32) "ac1c76ce6b039f4bce43872c575567d8"
["WorflowID"]=>
string(2) "31"
["ContentVersion"]=>
int(0)
["SessionKey"]=>
int(0)
["EventState"]=>
int(0)
["Status"]=>
int(0)
["Parameters"]=>
string(83) "a:3:{s:9:"object_id";s:4:"2544";s:7:"version";s:1:"1";s:11:"workflow_id";s:2:"31";}"
["MementoKey"]=>
string(0) ""
}

Notice:
Nov 14 2003 13:17:38

eZTemplate: Loading template "workflow/eventtype/result/event_ezwrapping.tpl" with resource "design"

Notice:
Nov 14 2003 13:17:38

design/standard/templates/workflow/eventtype/result/event_ezwrapping.tpl, iso-8859-1

Warning: PHP
Nov 14 2003 13:17:38

Undefined index: real_translation in /opt/apache/htdocs/kernel/classes/ezcontentobjecttreenode.php on line 2331

Warning: PHP
Nov 14 2003 13:17:38

Undefined index: real_translation in /opt/apache/htdocs/kernel/classes/ezcontentobjecttreenode.php on line 2331

Error: eZINI
Nov 14 2003 13:17:38

Undefined variable: 'AvailableSiteDesigns' in group 'VersionView'

Error: eZINI
Nov 14 2003 13:17:38

Undefined variable: 'AvailableSiteDesigns' in group 'VersionView'

Warning: PHP
Nov 14 2003 13:17:38

Invalid argument supplied for foreach() in /opt/apache/htdocs/kernel/classes/ezcontentcache.php on line 302

Notice:
Nov 14 2003 13:17:38

eZTemplate: Loading template "content/edit.tpl" with resource "design"

Notice:
Nov 14 2003 13:17:38

eZTemplate: Loading template "content/edit_validation.tpl" with resource "design"

Notice:
Nov 14 2003 13:17:38

eZTemplate: Loading template "content/edit_placement.tpl" with resource "design"

Notice:
Nov 14 2003 13:17:38

eZTemplate: Loading template "content/edit_attribute.tpl" with resource "design"

Notice:
Nov 14 2003 13:17:38

eZTemplate: Loading template "content/datatype/edit/ezstring.tpl" with resource "design"

Notice:
Nov 14 2003 13:17:38

eZTemplate: Loading template "content/datatype/edit/ezxmltext.tpl" with resource "design"

Notice:
Nov 14 2003 13:17:38

eZTemplate: Loading template "content/edit_right_menu.tpl" with resource "design"

Warning: PHP
Nov 14 2003 13:17:38

Undefined index: real_translation in /opt/apache/htdocs/kernel/classes/ezcontentobjecttreenode.php on line 2331

Notice:
Nov 14 2003 13:17:38

eZTemplate: Loading template "redirect.tpl" with resource "design"

Timing:
Nov 14 2003 13:17:38

End

Paul Borgermans

Friday 14 November 2003 1:51:31 am

Willie,

Do you see anything from the template in the xhtml source? Hans (Melis) told me that for a similar situation, it was IE at fault (CSS issue with relative positioning).

-paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

Willie Seabrook

Friday 14 November 2003 2:09:46 am

I'm on RH9 with Mozilla so it isn't IE.

I worked through with the debugger and have modified edit.php to get the template to show.

I am quite positive this is a serious code issue, not front end stuff as the result from the template (it does get parsed) gets dropped about three levels down the execution.

So now I have the templated (both fetch and repeat) eventtypes working fine on view mode. And showing the first time on edit mode. I must get them to repeat in the edit mode. I am doing that now. :-( :-( :-(

I hope to god this stuff isn't in svn because I have spent the last two days on this. (pubsvn is down at the moment) I also don't understand why its working for everyone else without the modifications.

Paul Borgermans

Friday 14 November 2003 2:24:04 am

Hello Willie

>I hope to god this stuff isn't in svn because I have

I just looked at it, only the waituntil... event type was changed in the last weeks.

>spent the last two days on this. (pubsvn is down at

I think you tried svn in the middle of an update, safe times are between 35 min past each hour until 15 min past the next hour (as far as the svn database is healthy).

>the moment) I also don't understand why its
>working for everyone else without the modifications.

The answer is that only few are using the workflow features. Only a small fraction of the people trying it, will also report failures. The majority either waits for it to be fixed, or looks at alternatives.

-paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

Willie Seabrook

Friday 14 November 2003 2:30:05 am

1. Are you getting the same problems?

2. I'm starting to get quite deep into the ez code and am making modifications etc so it is usable.... your a moderator - would you know how to get write svn access.... or at least reliable access to the trunk?

3. Otherwise, when I'm done I'll post my fixes here so poor other sods don't have to spend 2 days fixing this and that bug... ;-)

Paul Borgermans

Friday 14 November 2003 2:51:27 am

>1. Are you getting the same problems?

Yes, and things get worse with the ez multiplexer as noted elsewhere :-(

>2. I'm starting to get quite deep into the ez code
>and am making modifications etc so it is usable....
>your a moderator - would you know how to get write
>svn access.... or at least reliable access to the
>trunk?

No write access to the main svn trunk, but you can have write access to the community part. Email me pborgerm [at] sckcen [dot] be. If you start from a current version, it is easy to track the changes and for the ez crew to merge fixes in the main trunk.

The instabilities for the main svn repository arise because I have to use rsync to copy over the master svn database (transient states kill the integrity) + svn is still buggy under heavy load.

>3. Otherwise, when I'm done I'll post my fixes here
>so poor other sods don't have to spend 2 days fixing
>this and that bug...

That's fine too

Regards

-paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

Willie Seabrook

Friday 14 November 2003 3:22:35 am

I have a fixed copy of the multiplexer if you want it. Have you already emailed me about that? Lots of people do - my email inbox is the *real* public svn server. :-) :-)

Progress.....

I've just got down to the ezworkflowprocess code on the db level and it doesn't even look like its implemented properly. I still should be able to come up with some kind of hack.

Georg Franz

Friday 14 November 2003 3:42:38 am

Hi,

I've tried to use the workflow-system of ez. But I give it up because of the bugs in the multiplexer type.

Another big problem is the lack of documentation. The workflow examples which are given in the online docs aren't enough.

bye,
Emil.

Best wishes,
Georg.

--
http://www.schicksal.com Horoskop website which uses eZ Publish since 2004

Willie Seabrook

Friday 14 November 2003 6:16:59 am

Fixed: 3:20am NZ time. You (I) can now use publish before triggers with FETCH_TEMPLATE and FETCH_TEMPLATE_REPEAT. I will post code asap. In the mean time: willie [dot] seabrook [at] levity [dot] co [dot] nz.

Its a *little* (but not too) hacky but if you've got a deadline to meet (why I bothered to delve so deep in the first place) it works and thats what counts.

I might even do the read_after and publish_after triggers soon too... I may as well seeing I know too damn much about how ezpublish works now ;-)

Regards,
Willie

Paul Forsyth

Friday 14 November 2003 7:29:03 am

willie,

it would be great if you could speak with paul b and put your patches onto pubsvn :)

paul

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