Unpublishing in ezPublish 4.0.0

Unpublishing in ezPublish 4.0.0

Monday 22 December 2008 6:09:04 am - 7 replies

Author Message

Kristof Coomans

Monday 22 December 2008 9:34:16 am

Hi Mark

Does the class with ID 16 have a date &time attribute with identifier 'unpublish_date' ?
How are you executing the cron job?

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Mark Hofleitner

Tuesday 23 December 2008 6:54:05 am

Hi Kristof,

yes, my article class has an identifier "unpublish_date".

Actually we haven't executed any cronjobs yet. Do I have to run the script like this within the system shell:

php runcronjobs.php group_of_tasks

?

Mark

Mark Hofleitner

Tuesday 03 February 2009 1:25:09 am

Hello,

I tried to run the "runcronjobs.php" within an Windows command script:

@ECHO OFF
php "C:\xampp\htdocs\ezpublish\runcronjobs.php"

but the article I wanted to unpublish is still active.

Does anyone know why I doesn't work yet?

Regards,

Mark

Noicokuna Niemoge

Tuesday 03 February 2009 2:22:51 am

runcronjobs.php must be executed within eZ publish folder.

"cd path/to/ezpublish php runcronjobs.php" (something like this)

Shiki soku ze ku...

Mark Hofleitner

Tuesday 03 February 2009 4:10:38 am

Hello,

thanks for your advice. I just tried to execute the script in the ezPublish folder but it still doesn't unpublish our article(s). Any other suggestions?

Regards,

Mark

Mark Hofleitner

Monday 16 February 2009 6:20:13 am

Hi!

I made some new attempts to run the script:

When I try to run the script via browser

http://ourdomain/runcronjobs.php

the following message appears:

#!/usr/bin/env php PHP is currently using the 'apache2handler' interface. Make sure it is using the 'cli' interface. 

When I use the Windows Command Line by typing in

php C:\xampp\htdocs\ezpublish\runcronjobs.php

the following error message is displayed:

Warning: require_once(lib/ezutils/classes/ezdebug.php): failed to open stream: N
o such file or directory in C:\xampp\htdocs\ezpublish\kernel\classes\ezpersisten
tobject.php on line 57

Fatal error: require_once(): Failed opening required 'lib/ezutils/classes/ezdebu
g.php' (include_path='.;C:\xampp\php\pear\') in C:\xampp\htdocs\ezpublish\kernel
\classes\ezpersistentobject.php on line 57

Any suggestions?

Mark

Steven E. Bailey

Monday 16 February 2009 6:48:44 am

Failure to open an included file is one of two things: either you did not execute
php C:\xampp\htdocs\ezpublish\runcronjobs.php in the ezpublish root directory or your ezpublish installation or your files are not readable because of permissions problems or your installation is incomplete etc. etc.

Try executing php C:\xampp\htdocs\ezpublish\runcronjobs.php while in the C:\xampp\htdocs\ezpublish directory and see what other error messages might be generated.

Certified eZPublish developer
http://ez.no/certification/verify/396111

Available for ezpublish troubleshooting, hosting and custom extension development: http://www.leidentech.com

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

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.