unpublish event in eZ 3.3 missing?

Author Message

Sebastian Sprenger

Wednesday 04 February 2004 12:43:01 am

Hi all,
I'm missing the unpublish-event in eZ 3.3. Is it "normal" that it's not there or is there a mistake in my system?
Thanks,
Sebastian

James Packham

Wednesday 04 February 2004 5:21:36 am

I haven't got it either. ez 3.3-2

Regards,

~James~

Sebastian Sprenger

Wednesday 04 February 2004 5:55:40 am

Hm, thanks, seems I have to create my own event.

Sebastian

Kjell Knudsen

Thursday 11 March 2004 4:15:36 am

would my suggested validate feature help on this?
http://www.ez.no/community/forum/suggestions/improvement_to_workflow_logic_object_validation_feature

I'm thinking that then one won't need publish/unpublish.

-kjell

Kjell Knudsen
http://www.icbl.org

Bruce Morrison

Thursday 11 March 2004 7:21:41 pm

There looks to be an unpublish cronjob "cronjobs/unpublish.php"

and the content.ini file has the following items

[UnpublishSettings]
RootNodeList[]
ClassList[]

Looking at the code of cronjobs/unpublish.php it appears that you set the root node(s) where the items you want to unpublish reside using RootNodeList[] and the classes you want to process with ClassList[]

The items you want to be able to unpublish need to have a date attribute with the identifier "unpublish_date" - this is checked against the current date.

I haven't tried this only looked at the code.

Hope this helps
Bruce

My Blog: http://www.stuffandcontent.com/
Follow me on twitter: http://twitter.com/brucemorrison
Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish

Iain MacLean

Tuesday 16 March 2004 2:21:27 am

Hi

I've tried what Bruce has suggested and it seems to work OK. You have to add a datetime or date field attribute with the identifier 'unpublish_date' to the classes you want to use this for. I wasn't able to get the unpublish event working by setting up a workflow to unpublish items.

Cheers
Iain

Bjarte Lunde

Wednesday 06 April 2005 5:46:58 am

I've added the unpublish_date attribute to the Article class and added the lines to content.ini.append in the siteaccess settings.

But when i run the cronjob i get this error:

Running cronjobs/unpublish.php

Fatal error: [] operator not supported for strings in /opt/ezpublish/sites/mysite/lib/ezutils/classes/ezini.php on line 638

Fatal error: eZ publish did not finish its request

John Smith

Monday 11 April 2005 5:56:08 am

I tried the same concept on ez publish 3.5.0, working very fine.

What when i implement the same concept on 3.5.1. it is giving me errors.

Moreover the code given below is from unpublish.php in cronjobs folder.

$articleNodeArray =& $rootNode->subTree( array( 'ClassFilterType' => 'include',
'ClassFilterArray' => $unpublishClasses ) );

is not returning any thing.

I think it is bug in 3.5.1

Can anybody help in this community.

cheers

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

Main resources:

Total runtime0.7700 sec
Peak memory usage4,096.0000 KB
Database Queries82

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0046 587.9141152.6250
Module start 'layout' 0.00460.0025 740.539139.4453
Module start 'content' 0.00710.7613 779.9844772.7969
Module end 'content' 0.76840.0015 1,552.781316.1563
Script end 0.7699  1,568.9375 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.4180160.0002
Check MTime0.00140.1764160.0001
Mysql Total
Database connection0.00060.080110.0006
Mysqli_queries0.697390.5639820.0085
Looping result0.00080.1091800.0000
Template Total0.741996.420.3709
Template load0.00230.298820.0012
Template processing0.739696.052120.3698
Template load and register function0.00020.019810.0002
states
state_id_array0.00150.190910.0015
state_identifier_array0.00110.142220.0005
Override
Cache load0.00210.2668540.0000
Sytem overhead
Fetch class attribute can translate value0.00090.123270.0001
Fetch class attribute name0.00170.2168110.0002
XML
Image XML parsing0.00360.465570.0005
class_abstraction
Instantiating content class attribute0.00000.0027110.0000
General
dbfile0.00280.3614280.0001
String conversion0.00000.000940.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
8content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
12content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 31
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs