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.