Unpublish fails

Author Message

Brendan Pike

Tuesday 31 July 2007 9:40:02 pm

With a default site running 3.9.2 I have found articles won't unpublish.

in my content.ini.append.php I have:

[UnpublishSettings]
RootNodeList[]=2 (the sites root node id)
ClassList[]=16 (the default article class id)

And I get no debug errors when running the cron. Does anyone have any suggestions as to what might be causing this?

www.dbinformatics.com.au

We are always interested in hearing from experienced eZ PHP programmers and eZ template designers interested in contract work.

Ɓukasz Serwatka

Tuesday 31 July 2007 11:54:49 pm

Hello,

Your content class should have an attribute unpublish_date which is time or datetime type. Attribute need to have a value.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Brendan Pike

Wednesday 01 August 2007 12:03:05 am

Thanks Lukasz

I should mentioned that the article class does in fact have a datetime attribute named unpublish_date. It is the default article class that ships with ezp 3.9.2.

www.dbinformatics.com.au

We are always interested in hearing from experienced eZ PHP programmers and eZ template designers interested in contract work.

Philip K.

Monday 03 December 2007 8:13:25 am

Same problem :)

I'm using eZ 3.9.0 and want the cronjob to unpublish some pictures in a gallery.
The image class includes a date/time attribute named "unpublish_date".
My <override>/content.ini.append.php looks like:

[UnpublishSettings]
RootNodeList[]=2 (RootNode)
ClassList[]=5 (Image class)

But if I run the cronjob I always get an error:

#  /usr/bin/php4 runcronjobs.php --unpublish
# Running cronjobs/unpublish.php
# Fatal error: Call to a member function on a non-object in /<path-to-ez>/cronjobs/unpublish.php on line 53
# Fatal error: eZ publish did not finish its request
# The execution of eZ publish was abruptly ended, the debug output is present below.

Any ideas?

Thanks for your help,
Philip

Linux is like a wigwam; no windows, now gates, and apache inside!

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

Main resources:

Total runtime0.0139 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0050 588.9141152.6094
Module start 'layout' 0.00500.0030 741.523439.3984
Module start 'content' 0.00800.0042 780.921993.3828
Module end 'content' 0.01220.0017 874.304734.3047
Script end 0.0139  908.6094 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002215.8803140.0002
Check MTime0.00106.9676140.0001
Mysql Total
Database connection0.00086.028510.0008
Mysqli_queries0.002417.269430.0008
Looping result0.00000.107810.0000
Template Total0.001510.410.0015
Template load0.00085.395510.0008
Template processing0.00075.022610.0007
Override
Cache load0.00053.782310.0005
General
dbfile0.00021.693680.0000
String conversion0.00000.042840.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs