Okay
  Public Ticket #2768256
CRON JOB
Closed

Comments

  • Wilkenson started the conversation

    Cron job not executing in Google Cloud Wordpress site.


    Added cronjob to crontab via ssh using crontab -e command. 

    Cronjob appears with crontab -l. 


    Any idea how to fix? 

  • Wilkenson replied

    ive tried using 
    */15 * * * * wget -q -O - "https://www.yourwebsite.com/wp-admin/admin-ajax.php?action=wpamelia_api&call=/notifications/scheduled/send"


    and 


    */15 * * * * https://yourwebsite.com/wp-admin/admin-ajax.php?action=wpamelia_api&call=/notifications/scheduled/send


    and 


    */15 * * * * curl https://yourwebsite.com/wp-admin/admin-ajax.php?action=wpamelia_api&call=/notifications/scheduled/send

  • [deleted] replied

    Hi Wilkenson,

    Depending on the server, there are different configurations for the cron, which you can contact your hosting provider about, or you can check out one of the solutions for it on this link.

    Also, since you tried this one:

    */15 * * * * wget -q -O - "https://www.yourwebsite.com/wp-admin/admin-ajax.php?action=wpamelia_api&call=/notifications/scheduled/send"

    You can try this now:

    */15 * * * * /usr/local/bin/php ~/public_html/wp-cron.php --action='wpamelia_api' --call='/notifications/scheduled/send'

    Or this:

    GET 'https://yourdomain.com/wp-admin/admin-ajax.php?action=wpamelia_api&call=/notifications/scheduled/send' > /dev/null

    If that doesn't help you, you can try with the WP Crontrol plugin. You can find more info about it, and detailed instructions on how to set it up in our FAQ section.

    If nothing of the above helps, please contact your hosting provider and ask them why these solutions don't work and how to set a cron for Amelia on your website.