I can't say if the cron is configured correctly since, 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.
The command that has to be added can be found on the “Notifications” page when notification that requires scheduling is active. You can recognize these notifications by the clock icon next to the notification name. Copy command and paste it in the cron file. The command looks like this:
If you are not familiar with this you can use plugin WP Crontrol for creating cronjob.
In the Tools -> Cron Events admin panel,
click on the “Add PHP Cron Event” tab underneath the cron event table.
In the form that appears, enter the schedule and next run time in the boxes. The event schedule is how often your event will be executed. In the “PHP code” area, enter the PHP code that should be run when your cron event is executed. Please insert this:
You don’t need to provide the PHP opening tag (<?php).
Please replace "https://yourwebsite.com" with your real web address.
If you don’t see a good interval, then add one in the Settings -> Cron Schedules admin panel or click on link "Manage Cron Schedules". You will find example how you can make custom interval inserting:
Interval name
Interval(in seconds)
Display name
and click "Add Cron Schedules" and it will be added.
When you made custom interval you need to go back to Tools -> Cron Events admin panel and click on the “Add PHP Cron Event” tab underneath the cron event table where you will insert that custom interval and all other field that are described above. After clicking on "Add PHP Cron Event" it will be added on Event table and you are done.
I've got a cronjob running in cPanel for automatic SMS reminders, the command is:
/usr/local/bin/php /home/appletre/public_html/wolverhampton/wp-admin/admin-ajax.php?action=wpamelia_api&call=/notifications/scheduled/send
However, I've had an error email to confirm the cron didn't run, the error was:
Could not open input file: /home/appletre/public_html/wolverhampton/wp-admin/admin-ajax.php?action=wpamelia_api
Any idea how to fix it? Thanks
Hello Kyle,
Thank you for reaching out to us.
I can't say if the cron is configured correctly since, 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.
The command that has to be added can be found on the “Notifications” page when notification that requires scheduling is active. You can recognize these notifications by the clock icon next to the notification name. Copy command and paste it in the cron file. The command looks like this:
*/15 * * * * https://yourwebsite.com/wp-admin/admin-ajax.php?action=wpamelia_api&call=/notifications/scheduled/send
If you are not familiar with this you can use plugin WP Crontrol for creating cronjob.
In the Tools -> Cron Events admin panel,
click on the “Add PHP Cron Event” tab underneath the cron event table.
In the form that appears, enter the schedule and next run time in the boxes. The event schedule is how often your event will be executed. In the “PHP code” area, enter the PHP code that should be run when your cron event is executed. Please insert this:
You don’t need to provide the PHP opening tag (<?php).
Please replace "https://yourwebsite.com" with your real web address.
If you don’t see a good interval, then add one in the Settings -> Cron Schedules admin panel or click on link "Manage Cron Schedules". You will find example how you can make custom interval inserting:
and click "Add Cron Schedules" and it will be added.
When you made custom interval you need to go back to Tools -> Cron Events admin panel and click on the “Add PHP Cron Event” tab underneath the cron event table where you will insert that custom interval and all other field that are described above. After clicking on "Add PHP Cron Event" it will be added on Event table and you are done.
Let us know if it helps, please.
Look forward to your reply.
Have a nice day!
Kind Regards,
Stanislav Snagovskiy
[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
You can try wpDataTables add-ons before purchase on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables