Approved Content not being published

Author Message

Mark Emms

Sunday 22 April 2007 5:22:27 am

...and when I do a manual run of runcronjobs.php from a browser I get:

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

I'm running version 3.8.6 on a dedicated server with a virtual host setup. I have tried puttting in the code suggested in index.php to make it run from there but without immediate success.

Assistance greatly appreciated.

J-A Eberhard

Sunday 22 April 2007 8:55:08 am

Hi,
Cron should not be run from browser. They use the php-cli interface from command line.
Check if php-cli in installed (apt-get install php4-cli for debian / Ubuntu based server) and run php runcronjobs.php -frequent from a console. The cron will publish the content.
Good luck testing..

Open Source Solution Provider
Open-Net Ltd Switzerland
http://www.open-net.ch

Mark Marsiglio

Sunday 22 April 2007 2:11:37 pm

Kracker was nice enough to post a complied standalone cli version of php 4-4-4 that I use to run cron on several of my sites.

http://ez.no/community/forum/developer/php_cli_php_4_4_4_for_ez_publish

http://www.thinkcreative.com
Turning Ideas Into Strategic Solutions

Mark Emms

Monday 23 April 2007 3:00:39 am

Thanks for that.

At the moment I am running cron jobs through CPanel and don't have shell access on the account I'm using. The job appears as expected in the cpanel web interface with a bunch of asterisks * * * * * * which I believe means it will run every minute - but nothing gets published.

I am working on getting shell access sorted out so I can do as suggested.

Mark Emms

Monday 23 April 2007 3:22:35 am

I think maybe I am being stupid ;-)

In a virtual hosting setup with eZ running in a user account - when entering a cron job path should it be from the server's root or from the account's root?

I am wondering whether the problem is as simple as me entering the incorrect path to the command. At the moment it is set to

public_html/ezpublish/runcronjobs

which is from the account's root. My email address is set to receive any output it generates and I'm getting no emails either.

Without shell access what's my best way forward?

Mark Emms

Tuesday 24 April 2007 7:00:08 am

OK

I believe that the runcronjobs.php script is being run every 2 minutes now.

Am I right in thinking that if it wasn't then the new articles etc for publication would not appear in the collaboration section of the approvers pages?

Whatever - I can write an article and it is sent to be approved. Once the approver has approved it the article is not being published.

Not sure what to do next?

Mark Emms

Thursday 26 April 2007 1:07:33 am

I ahve had my hosting provider install php-cli and increased script execution timeout to 60 seconds (just in case!).

Still no joy....

Ɓukasz Serwatka

Thursday 26 April 2007 3:22:56 am

Hi,

You can try solution described here:
http://ez.no/ezpublish/documentation/configuration/configuration/cron_jobs

It allows run script via web interface.

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

Mark Emms

Thursday 26 April 2007 3:56:00 am

I tried that - I even manually set the

$runFilter = true;

and

$filterAutoRunInterval=5;

with no results.

I have a horrible feeling there might be something more fundamental the matter

Mark Emms

Thursday 26 April 2007 4:03:27 am

does the file:

ezpublish.cron

in the root of the ezPublish directory do anything? Mine has not been set up with correct parameters (work in progress)

Thanks

Betsy Gamrat

Friday 27 April 2007 9:56:38 pm

Hi,

Here is the crontab/command I use:

MAILTO="[email protected]"
11 4 * * * cd /home/example/www/ez; /usr/local/bin/php -C runcronjobs.php -splain_site_user

At 4:11am, every day, it changes into the eZ directory and executes the cronjobs. The -s indicates the siteaccess that is used. In most cases, it is optional.

You should be able to do this, using just cPanel.

For a regular workflow configuration, I have never had to make changes to any files - just the workflow and trigger settings.

Good luck.

Mark Emms

Saturday 28 April 2007 9:51:54 am

Hi

I am sure you are absolutely right!

My hosting provider tells me the problem is related to the nameserver setting for the domain (which will ultimately point to this installation) being set to point somewhere else. I don't quite see how that would be but for the time being have used the http method described elsewhere (as recommended by Lucasz):

http://ez.no/ezpublish/documentation/configuration/configuration/cron_jobs

until the installation is ready to go public and will revert to the original mechanisms when the time is right.

Many thanks all

ez man

Monday 30 April 2007 3:08:34 am

In news_events we have some items(like contact us ) that are hardcoded and not editable through GUI. Is it possible to run contact info in such a way that it pulls information from somewhere that staff could edit it ?

Mark Emms

Monday 30 April 2007 3:38:31 am

I'm not sure I understand why you ask. Is there a reason why it has been "hard coded"?

Is there a reason why you don't want to just add a page with the contact details on?

Mark Emms

Monday 30 April 2007 3:39:31 am

BTW: Your question doesn't belong here!!!

ez man

Monday 30 April 2007 3:56:33 am

Yes,i want to add page with contact details on but i want it to be editable ..
That is, i want to know how you can change dynamically using code instead of hard coding it.

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