Support » Plugin: Advanced Cron Manager - debug & control » Trying to get your cron manager to run on a hosted web site

  • Resolved ntflavio06

    (@ntflavio06)


    Hi there,

    I thought I should contact you re: a problem I am having with my Web Hosting Provider. I am trying to get your cron manager to run on my hosting providers linux server, but I don’t know what to do or how to set that up as I got the following message from my provider and thought you may be able to help me out:

    “”Sorry for the inconvenience, however from cron job normally php scripts are executed and also you can execute bash scripts however make sure that path of file/script you are executing is correct. Can you please check with Zapier support and let us know which script/file need to be executed in cron job so that we can guide you accordingly. Currently I am not seeing any cron job setup in your account.””

    These are the words that was quoted from my client’s hosting provider. If you could help me out with this it would be greatly appreciated.

    Thanks
    Leo

    https://wordpress.org/plugins/advanced-cron-manager/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Kuba Mikita

    (@kubitomakita)

    Hi ntflavio06,

    When (or on which screen) do you get this message?

    I think you should contact your hosting provider not me, but I’ll try to help 🙂

    Thread Starter ntflavio06

    (@ntflavio06)

    Hi Kuba,

    And thanks for the quick response.

    This error doesn’t happen on a screen. I get an error in an email that tells me that a cron job that was initiated through wordpress, i.e. when an order is created which is supposed to create a zapier action gives me errors.

    This is what i get in an email:

    /bin/sh: zapier_triggered_woocommerce_order_status_on-hold_to_processing: command not found

    I have also emailed the hosting provider, but they said that what they had mentioned in bold.

    I don’t know if I should contact Zapier on this matter as it is this plugin creating this cron task that I need to run which won’t run.

    Plugin Author Kuba Mikita

    (@kubitomakita)

    Leo,

    now I get the problem but I don’t get the approach and error 🙂

    This error says that it want to trigger bash script, which is available from server cron but it’s not from php.

    I don’t understand your approach to this problem. I can see that called action is triggered when order status is changed from on-hold to processing. Where is the place for cron here? 🙂 it’s called right a way I think.

    Or you are creating cron job from ACM plugin and as an action hook you are providing the ‘zapier_triggered_woocommerce_order_status_on-hold_to_processing’ ? In this case it will not work because you need to pass order object within the action I think.

    Thread Starter ntflavio06

    (@ntflavio06)

    Thanks Kuba,

    Actually it’s not my approach. This is how this whole cron job is supposed to work.

    1. I have Woocommerce plugin installed so an order generated through wordpress uses woocommerce.
    2. When an order is placed, the order is saved in a holding state before it can be processed using woocommerce.
    3. Once an administrator, such as myself, changes the order status from holding to processing, a Zapier feed which is created in my wordpress site, listens to the order status change.
    4. Once the order status is changed to processing, the Zapier feed requires a cron plugin to feed the change, i.e. order changed from holding to processing through a Zapier web hook which passes the data to its appropriate connection which could be Freshbooks, Outlook Exchange, etc.
    5. These feeds that run through a cron engine simply feed the data using the web hook stated above and the eventual connection using the appropriate Zapier feed, gets the data and creates an appropriate action, i.e. create a calendar event.

    Now I know your plugin works because it works on my web site. But my site is not hosted third party, it is my own web server and there are no block whatsoever, and the cron jobs run whenever Zapier asks for a request in change.

    Lastly, these cron jobs are created solely for a single run, not to be run all the time. So once the event has run its course, it is complete and will never run again. But with my client’s ISP, somehow they don’t allow for these cron jobs to run as they have to be configured through their cPanel management console. And this is where the problem starts.

    So like I said before any little bit of help would be a great help as I know all the plumbing of this web site. I just needs to connect a few pipes and I am good to go.

    Thanks

    Plugin Author Kuba Mikita

    (@kubitomakita)

    Leo,

    To be honest I don’t know how to help you. I don’t know Zapier and I didn’t ever used it.

    But as you describe it you should use simple action, not cron job. Please look at this: http://codex.wordpress.org/Post_Status_Transitions

    On this action you can call any function once.

    Creating cron jobs to fire only once is without sense in my opinion, but maybe it’s Zapier reqirement.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Trying to get your cron manager to run on a hosted web site’ is closed to new replies.