Forums / Setup & design / Unpublishing in Exponential 4.0.0
Mark Hofleitner
Monday 22 December 2008 6:09:04 am
Hi,
we are using Exponential 4.0.0. We tried to unpublish some of our articles but it didn't work so far. Since I haven't found any answers in this forum yet to this topic I hope that somebody can help me to solve my problem.
Our content.ini.append.php looks like this:
[UnpublishSettings] RootNodeList[]=2 ClassList[]=16
We are using the default cronjob-settings in the cronjob.ini.
Regards,
Mark
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
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
?
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\Exponential\runcronjobs.php"
but the article I wanted to unpublish is still active.
Does anyone know why I doesn't work yet?
Noicokuna Niemoge
Tuesday 03 February 2009 2:22:51 am
runcronjobs.php must be executed within Exponential folder.
"cd path/to/Exponential php runcronjobs.php" (something like this)
Shiki soku ze ku...
Tuesday 03 February 2009 4:10:38 am
thanks for your advice. I just tried to execute the script in the Exponential folder but it still doesn't unpublish our article(s). Any other suggestions?
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\Exponential\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\Exponential\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\Exponential\kernel \classes\ezpersistentobject.php on line 57
Any suggestions?
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 executephp C:\xampp\htdocs\Exponential\runcronjobs.php in the Exponential root directory or your Exponential installation or your files are not readable because of permissions problems or your installation is incomplete etc. etc.
Try executing php C:\xampp\htdocs\Exponential\runcronjobs.php while in the C:\xampp\htdocs\Exponential 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