Hey there, Awesome Customers!

Just a heads up: We'll be taking a breather to celebrate International Workers' Day (May 1st and 2nd - Wednesday and Thursday) and Orthodox Easter from Good Friday (May 3rd) through Easter Monday (May 6th). So, from May 1st to May 6th, our team will be off enjoying some well-deserved downtime.

During this time, our customer support will be running on a smaller crew, but don't worry! We'll still be around to help with any urgent matters, though it might take us a bit longer than usual to get back to you.

We'll be back in action at full throttle on May 7th (Tuesday), ready to tackle your questions and requests with gusto!

In the meantime, you can explore our documentation for Amelia and wpDataTables. You'll find loads of helpful resources, including articles and handy video tutorials on YouTube (Amelia's YouTube Channel and wpDataTables' YouTube Channel). These gems might just have the answers you're looking for while we're kicking back.

Thanks a bunch for your understanding and support!

Catch you on the flip side!

Warm regards,

TMS

Okay
  Public Ticket #3409943
Amelia Cron Setup
Closed

Comments

  • Mohamed Rashad started the conversation

    Amelia Cron isn't running, reminder notifications are not being sent. Here's my cron setup using WP Cron plugin.

    4959579848.png


  •  1,314
    Marko replied

    Hello Mohamed,

    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

    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

  • Mohamed Rashad replied

    Hello Marko, Thanks for your feedback.

    Comparing your notes with my screenshot, I still can't see what is wrong with my setup. Are you able to give feedback based on the screenshot I posted?

  •  1,314
    Marko replied

    Hello Mohamed,

    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 this doesn't help you can send us temporary admin credentials so that we can test this.

    We wish you all the best.

    Have a nice day. 



    Kind Regards, 

    Marko Davidovic
    [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

  •  1,692
    Miloš replied

    Hello Mohamed,

    we just wish to add one more detail about setting the cron with WPCrontrol Plugin.

    This is rare, but we had a couple of users who reported that WPCrontrol was showing a syntax error when they look in their Cron Events for the Amelia PHP Event they made.

    Please check under the "Cron Events", can you notice any syntax error coming up?

    For example, like on this image :

    8472575868.png

    Or does it look like this, with no syntax error?

    5713357460.png

    If you see a syntax error, please edit the Cron Event PHP code, and change the double quotes (") to single quotes around the URL line in the brackets (') , for example like this

    file_get_contents('http://localhost/current/wp-admin/admin-ajax.php?action=wpamelia_api&call=/notifications/scheduled/send');

    Of course, just change the URL inside the brackets to yours from your Scheduled Notification in Amelia.

    2599706324.png

    Then do the test for the Cron by manually running it, as colleague Marko advised,

    and see if it works after that.

    If this doesn't help you can send us temporary admin credentials so that we can test this.

    If you send us URL with Admin credentials, just make sure to send a PRIVATE reply for security reasons,

    then only we can see the message.

    Thank you.

    Kind Regards, 

    Miloš Jovanović
    [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

  • Raphaël Largeron replied

    Hello Everybody,

    I have an issue with this Cron event, everything works fine but after several days my event disappear ... and I have to recreate it.

    Someone have an idea what's going on ?


    Thanks for your help

  •  1,692
    Miloš replied

    Hi Raphaël,

    Are you using the WP Crontrol Plugin to create your Cron Events?

    If that is the case, that is not an issue with Amelia, but an issue with WP Crontrol Plugin.

    Since WP Crontrol is not our Plugin, our Support does not cover it - 

    so if your Cron Event disappears afer some time and you need to recreate it, please reach out to the WP Crontrol Support, they should be able to help you isolate why this issue happens in their Plugin.

    Thank you.

    Kind Regards, 

    Miloš Jovanović
    [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

  • Tolga replied

    I tried lots of cron command and finally this one works like a charm for cPanel Cron Jobs

    curl --silent 'https://yourdomain.com/wp-admin/admin-ajax.php?action=wpamelia_api&call=/notifications/scheduled/send'

  •  1,692
    Miloš replied

    Hi Tolga,

    Thank you for sharing the command which works well on your hosting server's configuration.

    That can be useful if another user comes across this ticket, if they have the same configuration.

    But, there can be different ways to configure a Cron job on WordPress, each hosting server could have a different setup, so there is no universal way.

    For any other users who might come across this ticket and are new to this, we will just repeat the basics.

    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 possible 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.


    We hope that might help other users who could experience similar issues.

    Thank you.

    Kind Regards, 

    Miloš Jovanović
    [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

  • Tolga replied

    Sorry i replied wrong discussion.

  •  1,692
    Miloš replied

    Hi Tolga,

    No problem at all.

    Please don't hesitate to open new tickets for any new/unrelated issues and our Support will always be there to respond.

    Thank you.

    Kind Regards, 

    Miloš Jovanović
    [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