Okay
  Public Ticket #3753033
Cron For Notification Never Works
Closed

Comments

  • Arslan started the conversation

    Hello Amelia Support Team,

    I hope this message finds you well. I am experiencing an issue with the follow-up notifications in the Amelia plugin. While I have configured all settings according to your documentation, the automatic notifications are not functioning as expected.

    Details:

    1. Settings Configuration:

      • I have ensured that all the necessary settings for follow-up notifications are correctly configured in the Amelia plugin.
      • I followed the guidelines provided on your website to set everything up, including the appropriate scheduling.
    2. Cron Job Execution:

      • I understand that the follow-up notifications require a cron job to run automatically. However, despite my configurations, the notifications are not being sent automatically.
      • I tested the functionality by manually triggering the cron job using the following link: https://joiiiful.com/wp-admin/admin-ajax.php?action=wpamelia_api&call=/notifications/scheduled/send When I run this link, notifications are sent successfully, which indicates that the system is capable of sending them when triggered manually.
    3. Additional Plugins:

      • I have also installed the recommended plugins that are supposed to assist with cron jobs, and I’ve configured them as instructed.
    4. Expected Behavior:

      • I expect the follow-up notifications to be sent automatically based on the settings provided, without needing to run the cron job manually.

    Could you please assist me in resolving this issue? If there are any additional logs or settings I should check, please let me know.

    Thank you for your support!

  •  2
    Marcin replied

    I have the same issue

  •  698
    Stefan replied

    Hello Arslan,

    Thanks for reaching out to us. The follow-up messages ( generally scheduled messages) require the configuration of the third-party plugin such as cronjob. This is configured through the WP Crontrol plugin (or a similar one, but we recommend WP Crontol)

    Here is the overview of cron job and how it should be configured - 

    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.

     

    Kind Regards, 

    Stefan Petrov
    [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

  •  2
    Marcin replied

    Stefan I've configureted this as you mentioned below and it's not working 

  •  2
    Marcin replied

    Notifications from Amelia are a serious problem. For example, I don’t know if the notification was sent to the customer and employee, and in Amelia, there is zero information about this.

    The customer might not receive information about their appointment, and as business owners, we aren’t notified of this because Amelia doesn’t inform us.

  •  698
    Stefan replied

    Hi Marcin,

    Please don't reply to other public tickets of other customers. This creates confusion and if you have a similar issue, please open a new ticket with the details and we will provide assistance there. If you already opened a new ticket, we will provide assistance as soon as possible.

    Thank you for your understanding. 

     

    Kind Regards, 

    Stefan Petrov
    [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

  •  2
    Marcin replied

    So do not allow the others to answear on public tickets. If it’s a public tickets everybody can answer if not please delete this option and allow to answer only person who made a public ticket. 

  •  2
    Marcin replied

    if it’s a public everybody can said that have a similar problem and It’s showing a scale of problem. The notifications are big problem of your solution and you should focus on this. 

  •   Arslan replied privately
  •   Stefan replied privately
  •   Arslan replied privately
  •   Stefan replied privately
  •   Arslan replied privately
  •  698
    Stefan replied

    Hi Arslan,

    You have configured the schedule to "amelia follow up" but you need to configure it to a specific time. 

    1635790330.png

    Here is an example - 

    7642938415.png

    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.

    7642938415.png

     

     

     

     

     

     

     

     

     

     

     

     

    Kind Regards, 

    Stefan Petrov
    [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