Is there a message template that is filled? Also, please make sure to check your Cron settings.
cron is a Linux utility which 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.
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 jobx. 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:
Then, go to Tools/Cron Events, and click on "Cron Schedules" tab. In it, add a 15 minute interval:
Then go back to "Cron Events" tab and click on "Add new":
Below it, select "PHP Cron event" radio button, and add the URL you copied from Amelia/Notifications in this form:
file_get_contents("yourURL");
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:
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.
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.
They have been forwarded to our level 2 support to investigate as the test notification worked fine, so we need to find the source of the reminder issue.
In Marios's last messages it look like the problem has been fixed but I can't see how because. Can someone explain me how to fix the point 1 (and, possibly what causes the double sent).
Do you maybe have the cron configured twice? For example, if you configred it on your server, and in WP Crontrol (or some similar plugin), it could be triggered twice, but I can't say for sure.
The cron looks for messages that are scheduled to be sent, and once it runs, the notification that's sent is added to the database tables wp_amelia_notifications_log and wp_amelia_notificaions_sms_history. They have the appointment ID, so when the cron runs again, it sees that the message or the email related to this appointment is already sent. In Amelia's logic - there's no way that one message can be sent twice, so it is most likely coming from something else.
As for the output message that you see - this was an issue with an older version of Amelia, and even though it was displayed for all messages, it was only related to the SMS Birthday Greeting. Please update the plugin to the latest version (4.3.1), and this will be resolved.
thanks for your reply. I double checked my cron configuration and, no, it has not been configured twice. My WP installation has no cron plugin. The strange thing is that not every sms is sent twice but I'm unable to find out a pattern. I'll have a look at the wp_amelia_notifications_log db table and let you know if something weird is happening.
For the second problem, thanks for your explanation. I'll upgrade my Amelia installation to the latest version and let you know if the problem persist.
hi, unfortunately the sms notification for the next day's reminder is not sent (again). I am getting this message:: {"message":"Invalid key 0."}
Thanks
Hi Marios,
thank you for reaching out to us
Is there a message template that is filled? Also, please make sure to check your Cron settings.
cron is a Linux utility which 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 jobx. 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:
Then, go to Tools/Cron Events, and click on "Cron Schedules" tab. In it, add a 15 minute interval:
Then go back to "Cron Events" tab and click on "Add new":
Below it, select "PHP Cron event" radio button, and add the URL you copied from Amelia/Notifications in this form:
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:
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.
Hej Ivana,
Unfortunately it doesn’t work.. Please see attached file
Hi Marios,
thank you for letting me know!
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.
Ok, please try again! Thanks
Hi Marios!
Thank you, the credentials work now
They have been forwarded to our level 2 support to investigate as the test notification worked fine, so we need to find the source of the reminder issue.
We will contact you back as soon as possible.
Hej Ivana,
It's been a week now since our last contact and 2 weeks ago since i first posted! Any updates?
Thanks in advance!
Mario
Thanks, everything is working now!
Hej, another problem occured... i can't have access nowhere else ecxept at the bookings...
furthermore i get this error on the pluggin page..
Hej, another problem occured... i can't have access nowhere else ecxept at the bookings...
furthermore i get this error on the pluggin page..
Good morning everyone! I'm stuck with the same problem a Marios.
I set the cronjob from my Plesk server to fetch the following url: https://cosmilano.it/wp-admin/admin-ajax.php?action=wpamelia_api&call=/notifications/scheduled/send
The cronjob looks like working correctly but I have two major problem:
`Url 'https://cosmilano.it/wp-admin/admin-ajax.php?action=wpamelia_api&call=/notifications/scheduled/send' fetched
Status: 500
Output: {"message":"Invalid key 0."}
`
In Marios's last messages it look like the problem has been fixed but I can't see how because. Can someone explain me how to fix the point 1 (and, possibly what causes the double sent).
Thanks in advance.
Hello Pier
Do you maybe have the cron configured twice? For example, if you configred it on your server, and in WP Crontrol (or some similar plugin), it could be triggered twice, but I can't say for sure.
The cron looks for messages that are scheduled to be sent, and once it runs, the notification that's sent is added to the database tables wp_amelia_notifications_log and wp_amelia_notificaions_sms_history. They have the appointment ID, so when the cron runs again, it sees that the message or the email related to this appointment is already sent. In Amelia's logic - there's no way that one message can be sent twice, so it is most likely coming from something else.
As for the output message that you see - this was an issue with an older version of Amelia, and even though it was displayed for all messages, it was only related to the SMS Birthday Greeting. Please update the plugin to the latest version (4.3.1), and this will be resolved.
Kind Regards,
Aleksandar Vuković
[email protected]
Rate my support
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
Hello Aleksandar,
thanks for your reply. I double checked my cron configuration and, no, it has not been configured twice. My WP installation has no cron plugin. The strange thing is that not every sms is sent twice but I'm unable to find out a pattern. I'll have a look at the wp_amelia_notifications_log db table and let you know if something weird is happening.
For the second problem, thanks for your explanation. I'll upgrade my Amelia installation to the latest version and let you know if the problem persist.
By now, thank you very much for support!
-Pier Paolo-
You're welcome, Pier
Do let me know if you find something weird in regard to the notifications.
Kind Regards,
Aleksandar Vuković
[email protected]
Rate my support
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