Jump to:

10846 Posts in 2516 Topics by 1792 members

All other Modules

SilverStripe Forums » All other Modules » CMS Workflow Module: Not Scheduling - Maybe Cron Issue

Discuss all other Modules here.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 759 Views
  • Bstarr
    Avatar
    Community Member
    25 Posts

    CMS Workflow Module: Not Scheduling - Maybe Cron Issue Link to this post

    I have installed the CMS Workflow module however when I set the embargo date of posts they aren't publishing on their own. I found these two discussions which lead me down the path of creating a CRON job.

    http://www.silverstripe.org/all-other-modules/show/12001
    http://www.silverstripe.org/general-questions/show/6960

    GoDaddy is my web host (Linux server) and has the ability to create the CRON job through the console. I set one up using the /sapphire/cli-script.php file as the command file. But either that isn't the right file or I'm missing a set. Below is what came over via email in the cron log.

    Content-type: text/html

    <br />
    <b>Notice</b>: Undefined index: SCRIPT_NAME in <b>/home/content/07/7202507/html/cassiusblueco/sapphire/core/Core.php</b> on line <b>145</b><br />
    <br />
    <b>Notice</b>: Undefined index: SCRIPT_NAME in <b>/home/content/07/7202507/html/cassiusblueco/sapphire/core/Core.php</b> on line <b>154</b><br />
    <br />
    <b>Notice</b>: Undefined index: SCRIPT_NAME in <b>/home/content/07/7202507/html/cassiusblueco/sapphire/core/Core.php</b> on line <b>156</b><br />
    <br />
    <b>Warning</b>: Director::protocolAndHost() lacks sufficient information - HTTP_HOST not set. in <b>/home/content/07/7202507/html/cassiusblueco/sapphire/core/control/Director.php</b> on line <b>388</b><br />
    <br />
    <b>Notice</b>: Undefined index: HTTP_HOST in <b>/home/content/07/7202507/html/cassiusblueco/mobile/code/MobileSiteConfigExtension.php</b> on line <b>43</b><br />
    <br />
    <b>Notice</b>: Undefined index: HTTP_HOST in <b>/home/content/07/7202507/html/cassiusblueco/mobile/code/MobileSiteConfigExtension.php</b> on line <b>44</b><br />
    Please specify an argument to cli-script.php/sake. For more information, visit http://doc.silverstripe.org/doku.php?id=sake

    I visited the URL it gave for more information http://doc.silverstripe.org/doku.php?id=sake which also lead me to http://doc.silverstripe.org/sapphire/en/topics/environment-management

    I'm not a developer, so I'm a bit confused on what I need to do to make this work and fear screwing up my site so I wanted to first reach out to the community for help. Can anyone tell me what I'm missing? What steps to take? Or if there is a better way to complete the task?

    My end goal is to schedule my blog posts so they publish on a specific day. In the future I can see a need for set pages to expire but at this point I'd be happy if I can finally get this to work.

    759 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.