Okay
  Public Ticket #3348422
Checking Cron events work
Closed

Comments

  •  3
    tom needham started the conversation

    is there a way to check the cron notification emails work?


    I could ask client if he is recieived them but is there a way for me to check this?

  •  1,623
    Marko replied

    Hello tom,

    Thank you for purchasing our product, and for reaching out to us.

    You can test the cron and see if it works this is the command: https://www.yourwebsite.com/wp-admin/admin-ajax.php?action=wpamelia_api&call=/notifications/scheduled/send

    So, to test notification, you need to book an appointment, then simply copy the URL above (just change yourwebsite.com to your domain name) and paste it in another browser window.

    If you have any further questions or issues, please feel free to open a new ticket, and we'll gladly help you there.

    We wish you all the best.

    Have a nice day. 

    Kind Regards, 

    Marko Davidovic [email protected]

    Rate my support

    Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps, floor plans, choropleth maps, and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/

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

    Amelia: FAQ | Facebook | Twitter | Instagram | Amelia 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

  •  3
    tom needham replied

    Hi 

    The cron emails are not working. I have done everything correct I believe and set the Cron Jobs at my backend server with siteground - see screenshot.

    Thanks

    Attached files:  Capture.PNG

  •  1
    claudia replied

    You can enable to receive an email if the cron did not work, you will receive an email every time that cron command had a problem.

    You can find the ability to do this in manage email in the siteground cron menu.

    But even in the last few weeks I'm having problems with cron notifications with email and whatsapp that don't arrive, not even using the wpcron plugin.


  •  1,623
    Marko replied

    Hello Tom,

    Thank you for reaching out to us.

    Cron is not Amelia's feature cron is a WordPress feature. You can use cron with Amelia, but setting cron is not part of Amelia's support because it is not our feature. 

    If your cron is not working and you cannot set it up, you need to contact your hosting provider so that they can set up cron for you.

    We will try to help you as best we can in the meantime cron is a Linux utility that schedules a command or script on your server to run automatically at a specified time and date. A cron job is the scheduled task itself. Cron jobs can be very useful to automate repetitive tasks like in our plugin for notifications.

    Depending on the server, there are different configurations for it, which you can contact your hosting provider about, 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

    WP Crontrol plugin is the best option if you're not familiar with cron jobs. You can find more info about it, and detailed instructions on how to set it up in our FAQ section.

    So, if you already read that, and still need some clarification here's some further info.

    You copy only the URL from below a scheduled notification:

    7810032183.png

    Then, go to Tools/Cron Events, and click on the "Cron Schedules" tab. In it, add a 15-minute interval:

    2487877415.png

    Then go back to the "Cron Events" tab and click on "Add new":

    9085918175.png

    Below it, select the "PHP Cron event" radio button, and add the URL you copied from Amelia/Notifications in this form:

    file_get_contents("yourURL");
    2095163400.png

    Below it add the name and set it to run a few minutes in the future, using the provided time format. So, if you're adding the cron event at 12:45 (local, current time), set it to run at 12:50; and then select the schedule you previously selected:

    7642938415.png

    Click on Add Event, and that's it.

    The cron runs every 15 minutes and checks if there's an email to be sent. So, in Amelia Notifications, your scheduled notifications are set to run every day at a certain time. If you set that time to be 15:00 (for example), the emails will be sent when the cron runs after that time.

    For example, there's an appointment booked for tomorrow, and it's currently 14:44 - the cron runs, but since it's not yet 15:00, it doesn't send anything. It runs again after 15 minutes, so at 14:59, but there are still no emails flagged by Amelia, so it doesn't send anything. Then it runs again at 15:14 and it sees there's an email that should've been sent at 15:00, so it sends the email. It will only send emails when Amelia sees an appointment scheduled for the next day.

    I hope that helps in case it doesn't please contact your hosting provider.

    If you have any more questions please open another ticket and we will gladly help you there.

    We wish you all the best.

    Have a nice day. 

    Kind Regards, 

    Marko Davidovic [email protected]

    Rate my support

    Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps, floor plans, choropleth maps, and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/

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

    Amelia: FAQ | Facebook | Twitter | Instagram | Amelia 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

  •  1
    claudia replied

    Hi Marko,

    I have already tried all the options you wrote, I also paid for the additional support of my hosting to have them configure the cron.

    But there is nothing to do, it works for a while but often scheduled notification emails skip, and I always get the same error message in the email 

    In fact, I also opened my ticket because, for example, whatsapp has also completely stopped working, neither scheduled nor standard notifications are delivered.

    Attached files:  error_message_cron.png

  •  1,623
    Marko replied



    Hello Tom,

    We can try and help out with WhatsApp but for cron, you need to reach out to your hosting provider again since this is set on your server and it part of WordPress this is not Amelia product. And something is not set up properly on their end. 

    Also for cron you can test the cron and see if it works this is the command: https://www.yourwebsite.com/wp-admin/admin-ajax.php?action=wpamelia_api&call=/notifications/scheduled/send

    So, to test notification, you need to book an appointment, then simply copy the URL above (just change yourwebsite.com to your domain name) and paste it in another browser window.

    As for WhatsApp please provide me a temporary WP-admin (administrator) user for your site where this happens, so we could log in and take a look ‘from the inside’ as that’s the most efficient way to see and resolve the issue. 

    We do not interfere with any data or anything else except for the plugin (in case that’s a production version of the site), and of course, we do not provide login data to third parties. 

    You can write credentials here just check PRIVATE Reply so nobody can see them except us.

    Looking forward to your reply. 


    Kind Regards, 

    Marko Davidovic [email protected]

    Rate my support

    Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps, floor plans, choropleth maps, and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/

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

    Amelia: FAQ | Facebook | Twitter | Instagram | Amelia 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