Share » Forums » General » Unpublish fails

Unpublish fails

Unpublish fails

Tuesday 31 July 2007 9:40:02 pm - 3 replies

Author Message

Ɓ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!

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu