Okay
  Public Ticket #2703241
Notifications and Cron
Closed

Comments

  • Mohamed Rashad started the conversation

    Hi, 

    I tried adding the Notifications events to Cron but failed.

    6655605614.png

    please let me know did I do wrong.

    Best

  • [deleted] replied

    Hi Mohamed, 

    Depending on the server, there are different configurations for the cron, so you can contact your hosting provider to ask them what is the configuration needed , or you can check out one of the solutions for it on this link.

    Also, you can try this:

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

    Or this:

    */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, my suggestion is to install 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 you are setting it up with this plugin, you should check out if you configured it properly, and what is the right cron configuration for your server.

  • Mohamed Rashad replied

    Hello there,

    I went through the FAQs documentations on using Amelia cron with WPCrontrol plugin,

    However, I see the following error:

    5077529067.png

    Here's the cron job details

    9825044711.png
    Kindly assist
  •  3
    lynob replied

    hello try this 

    maybe you put the wrong quotation

    try this

     file_get_contents("yoursite/wp-admin/admin-ajax.php?action=wpamelia_api&call=/notifications/scheduled/send");

  • Mohamed Rashad replied

    Thanks for your reply, now we see another syntax error. I think we need to use escape characters? Are you able to test at your end? or maybe I can share admin details for my site?

    1006245159.png
  •  2,572
    Aleksandar replied

    Hello Mohamed.

    Please don't share your admin credentials in a public response. I appreciate lynob trying to help (and the quotation remark was correct, by the way, thanks!) but lynob is not a member of TMS Support.

    I can advise copying and pasting this code:

    file_get_contents("https://www.khawla-almutaiwaei.com/wp-admin/admin-ajax.php?action=amelia_api&call=/notifications/scheduled/send");
    

    Make sure to paste it without formatting, with CTRL+SHIFT+V and if that doesn't work, please do provide us with your wp-admin credentials, but make sure to send us a PRIVATE response, so only you and support agents can see those credentials.

    Kind Regards, 

    Aleksandar Vuković
    [email protected]

    Rate my support

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia demo sites | Docs | Discord Community

    You can try wpDataTables add-ons before purchasing on these sandbox sites:

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables