Forums / General / unpublish event in eZ 3.3 missing?

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

eZ debug

Timing: Jan 18 2025 15:00:21
Script start
Timing: Jan 18 2025 15:00:21
Module start 'content'
Timing: Jan 18 2025 15:00:22
Module end 'content'
Timing: Jan 18 2025 15:00:23
Script end

Main resources:

Total runtime1.3115 sec
Peak memory usage4,096.0000 KB
Database Queries219

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0082 587.7109180.8359
Module start 'content' 0.00821.1082 768.5469777.8750
Module end 'content' 1.11630.1951 1,546.4219340.4375
Script end 1.3114  1,886.8594 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00520.3941210.0002
Check MTime0.00190.1462210.0001
Mysql Total
Database connection0.00080.060310.0008
Mysqli_queries1.216492.74912190.0056
Looping result0.00300.22742170.0000
Template Total1.275197.220.6375
Template load0.00230.176520.0012
Template processing1.272797.042220.6364
Template load and register function0.00020.018410.0002
states
state_id_array0.00190.145010.0019
state_identifier_array0.00130.102420.0007
Override
Cache load0.00210.1575540.0000
Sytem overhead
Fetch class attribute can translate value0.00150.114680.0002
Fetch class attribute name0.00140.1074110.0001
XML
Image XML parsing0.00260.201380.0003
class_abstraction
Instantiating content class attribute0.00000.0015110.0000
General
dbfile0.00660.5016390.0002
String conversion0.00000.000430.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 31
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs