Actually, I add this dev/null 2>&, because in Cpanel, there is mentionned that we can add this to stop receive all email notifications. As I already try this :
If it is sending the email notifications correctly and does not send to you the email that you mentioned in the attachments below to run it should be ok.
So I made some test, an email with cron job was planned this morning at 7am. But I received nothing. I didn't know what I can do. I read the article that you send me. But I don't know what's wrong...
With bookly it worked so I don't think it comes from my host provider.
Lets try to 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.
If you have any confusion about this feel free to ask us, and we will help you.
I have called my host provider. And they can help me. I did some things :
- 1 : I chose "SMTP" into notification seeting in Amelia
- 2 : Then my host provider correct my cron job as "wget -q -O - 'https://jeremyetmickael.fr/wp-admin/admin-ajax.php?action=wpamelia_api&call=/notifications/scheduled/send'"
- 3 : Then I received every minute a mail that the cron job worked so my host provider stop to send me notification, but I don't know how I could do this step
Hi,
I put this cron task into my cpanel for email notifications. But I received every hour a mail saying that : "/usr/local/cpanel/bin/jailshell: https://jeremyetmickael.fr/wp-admin/admin-ajax.php?action=wpamelia_api: no file or folder of this type"
I had this to the cron task senddev/null 2>&1 to not received email but doesn't work. Can you help me ?
HI Jrm57,
Thank you for your purchase.
Can you please tell me what does the dev/null 2>&1 stads for.
Did you added it or it is something else
The cron job should be
*/15 * * * * https://yourwebsite.com/wp-admin/admin-ajax.php?action=wpamelia_api&call=/notifications/scheduled/send
Like it is said in our documentation.
Best regards.
Kind Regards,
Miloš Jovanović
[email protected]
Rate my support
Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps and 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
Hi Bodgan,
Actually, I add this dev/null 2>&, because in Cpanel, there is mentionned that we can add this to stop receive all email notifications. As I already try this :
*/15 * * * * https://yourwebsite.com/wp-admin/admin-ajax.php?action=wpamelia_api&call=/notifications/scheduled/send
I would like try it for myself before contacting you. But it's still received every hour this mail.
Hi Jeremy,
Can you please provide me your cpanel credentials to your site so I can inspect this code in the cron job menu.
Just please check PRIVATE reply so nobody can see it except me and you.
Best regards.
Kind Regards,
Miloš Jovanović
[email protected]
Rate my support
Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps and 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
HI jeremy
I will need to make a test employee and make him to have birthday today so I can test the cron job.
Let me know if that is ok with you.
Best regards.
Kind Regards,
Miloš Jovanović
[email protected]
Rate my support
Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps and 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
Yes you can make a test sure no prob. I don't think cron doesn't work. But I received all the time this email with a error from Cpanel.
Ok you can
Thank you
Hi Jeremy,
I am still investigating this, and also forwarded to my team to see what may cause receiving this mail below.
Can you please tell me do YOU only receive this email or someone else as well.
Best regards.
Kind Regards,
Miloš Jovanović
[email protected]
Rate my support
Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps and 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
Hi Bogdan,
Ok thank you. I hope no, I mean none of my customer tell me that they received this kind of mail.
I set up to 4 hours, if not a I received every minute an email.
I think I receive this email when Amelia doesn't send an cron notification to my customer. It's a kind of state.
Hi Jeremy,
very strange.
Ok lets try this method , in your cron job can you please add ticks ' at the beginning and at the end of the code
like this
'*/15 * * * * https://yourwebsite.com/wp-admin/admin-ajax.php?action=wpamelia_api&call=/notifications/scheduled/send'
Best regards.
Kind Regards,
Miloš Jovanović
[email protected]
Rate my support
Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps and 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
Hi Bodgan,
Yes really it is
I tried it, but still received same mail.
Hi Jeremy,
Ok can you please tell me did you follow this guide maybe
Under Basic Cron Syntax there is explanation.
Best regards.
Kind Regards,
Miloš Jovanović
[email protected]
Rate my support
Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps and 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
Ok I tried to create an account on easycron but I still an error :
"Dear user,
We're sorry to inform that the execution of your cron job "Unnamed" (#1718572) failed.
The URL of the cron job is:
https://jeremyetmickael.fr/wp-admin/admin-ajax.php?action=wpamelia_api&call=/notifications/scheduled/send
The error we get is:
Internal Server Error
Please check the availability of the above URL.
Sometimes cron job fails due to execution timeout. Upgrading your plan (https://www.easycron.com/user/plan) will help increase the max timeout limit."
Here the logout
Server: o2switch PowerBoost
Date: Tue, 12 Feb 2019 19:04:09 GMT
Cache-Control: no-cache, must-revalidate, max-age=0
Content-Type: text/html;charset=UTF-8
Pragma: no-cache
X-Frame-Options: SAMEORIGIN
Set-Cookie: PHPSESSID=fa44c73c3cb8373ae76b8fcab513a2e7; path=/
X-Powered-By: PHP/7.1.26
X-Robots-Tag: noindex
X-Content-Type-Options: nosniff
Expires: Wed, 11 Jan 1984 05:00:00 GMT
Referrer-Policy: strict-origin-when-cross-origin
<html><head><meta http-equiv='Content-Type' content='text/html; charset=utf-8'><title>Slim Application Error</title><style>body{margin:0;padding:30px;font:12px/1.5 Helvetica,Arial,Verdana,sans-serif;}h1{margin:0;font-size:48px;font-weight:normal;line-height:48px;}strong{display:inline-block;width:65px;}</style></head><body><h1>Slim Application Error</h1><p>The application could not run because of the following error:</p><h2>Details</h2><div><strong>Type:</strong> Error</div><div><strong>Message:</strong> Call to a member function getValue() on null</div><div><strong>File:</strong> /home/jzen/jeremyetmickael.fr/wp-content/plugins/ameliabooking/src/Application/Services/Notification/EmailNotificationService.php</div><div><strong>Line:</strong> 112</div><h2>Trace</h2><pre>#0 /home/jzen/jeremyetmickael.fr/wp-content/plugins/ameliabooking/src/Application/Commands/Notification/SendScheduledNotificationsCommandHandler.php(40): AmeliaBooking\Application\Services\Notification\EmailNotificationService->sendBirthdayGreetingNotifications()
#1 /home/jzen/jeremyetmickael.fr/wp-content/plugins/ameliabooking/vendor/league/tactician/src/Handler/CommandHandlerMiddleware.php(71): AmeliaBooking\Application\Commands\Notification\SendScheduledNotificationsCommandHandler->handle(Object(AmeliaBooking\Application\Commands\Notification\SendScheduledNotificationsCommand))
#2 /home/jzen/jeremyetmickael.fr/wp-content/plugins/ameliabooking/vendor/league/tactician/src/CommandBus.php(62): League\Tactician\Handler\CommandHandlerMiddleware->execute(Object(AmeliaBooking\Application\Commands\Notification\SendScheduledNotificationsCommand), Object(Closure))
#3 /home/jzen/jeremyetmickael.fr/wp-content/plugins/ameliabooking/vendor/league/tactician/src/Plugins/LockingMiddleware.php(36): League\Tactician\CommandBus->League\Tactician\{closure}(Object(AmeliaBooking\Application\Commands\Notification\SendScheduledNotificationsCommand))
#4 /home/jzen/jeremyetmickael.fr/wp-content/plugins/ameliabooking/vendor/league/tactician/src/Plugins/LockingMiddleware.php(66): League\Tactician\Plugins\LockingMiddleware->League\Tactician\Plugins\{closure}()
#5 /home/jzen/jeremyetmickael.fr/wp-content/plugins/ameliabooking/vendor/league/tactician/src/Plugins/LockingMiddleware.php(45): League\Tactician\Plugins\LockingMiddleware->executeQueuedJobs()
#6 /home/jzen/jeremyetmickael.fr/wp-content/plugins/ameliabooking/vendor/league/tactician/src/CommandBus.php(62): League\Tactician\Plugins\LockingMiddleware->execute(Object(AmeliaBooking\Application\Commands\Notification\SendScheduledNotificationsCommand), Object(Closure))
#7 /home/jzen/jeremyetmickael.fr/wp-content/plugins/ameliabooking/vendor/league/tactician/src/CommandBus.php(42): League\Tactician\CommandBus->League\Tactician\{closure}(Object(AmeliaBooking\Application\Commands\Notification\SendScheduledNotificationsCommand))
#8 /home/jzen/jeremyetmickael.fr/wp-content/plugins/ameliabooking/src/Application/Controller/Controller.php(108): League\Tactician\CommandBus->handle(Object(AmeliaBooking\Application\Commands\Notification\SendScheduledNotificationsCommand))
#9 [internal function]: AmeliaBooking\Application\Controller\Controller->__invoke(Object(Slim\Http\Request), Object(Slim\Http\Response), Array)
#10 /home/jzen/jeremyetmickael.fr/wp-content/plugins/ameliabooking/vendor/slim/slim/Slim/Handlers/Strategies/RequestResponse.php(41): call_user_func(Array, Object(Slim\Http\Request), Object(Slim\Http\Response), Array)
#11 /home/jzen/jeremyetmickael.fr/wp-content/plugins/ameliabooking/vendor/slim/slim/Slim/Route.php(356): Slim\Handlers\Strategies\RequestResponse->__invoke(Array, Object(Slim\Http\Request), Object(Slim\Http\Response), Array)
#12 /home/jzen/jeremyetmickael.fr/wp-content/plugins/ameliabooking/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(117): Slim\Route->__invoke(Object(Slim\Http\Request), Object(Slim\Http\Response))
#13 /home/jzen/jeremyetmickael.fr/wp-content/plugins/ameliabooking/vendor/slim/slim/Slim/Route.php(334): Slim\Route->callMiddlewareStack(Object(Slim\Http\Request), Object(Slim\Http\Response))
#14 /home/jzen/jeremyetmickael.fr/wp-content/plugins/ameliabooking/vendor/slim/slim/Slim/App.php(516): Slim\Route->run(Object(Slim\Http\Request), Object(Slim\Http\Response))
#15 /home/jzen/jeremyetmickael.fr/wp-content/plugins/ameliabooking/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(117): Slim\App->__invoke(Object(Slim\Http\Request), Object(Slim\Http\Response))
#16 /home/jzen/jeremyetmickael.fr/wp-content/plugins/ameliabooking/vendor/slim/slim/Slim/App.php(407): Slim\App->callMiddlewareStack(Object(Slim\Http\Request), Object(Slim\Http\Response))
#17 /home/jzen/jeremyetmickael.fr/wp-content/plugins/ameliabooking/vendor/slim/slim/Slim/App.php(315): Slim\App->process(Object(Slim\Http\Request), Object(Slim\Http\Response))
#18 /home/jzen/jeremyetmickael.fr/wp-content/plugins/ameliabooking/ameliabooking.php(130): Slim\App->run()
#19 /home/jzen/jeremyetmickael.fr/wp-includes/class-wp-hook.php(286): AmeliaBooking\Plugin::wpAmeliaApiCall('')
#20 /home/jzen/jeremyetmickael.fr/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters('', Array)
#21 /home/jzen/jeremyetmickael.fr/wp-includes/plugin.php(453): WP_Hook->do_action(Array)
#22 /home/jzen/jeremyetmickael.fr/wp-admin/admin-ajax.php(114): do_action('wp_ajax_nopriv_...')
#23 {main}</pre></body></html>"
Hey,
I tried with another cron job. Before purshased Amelia, I've get Bookly and for the cron job there is this :
"wget -q -O - https://jeremyetmickael.fr/wp-cron.php"
So I used this "wget -q -O - https://jeremyetmickael.fr/wp-admin/admin-ajax.php?action=wpamelia_api&call=/notifications/scheduled/send"
And it seems ok for the moment, I didn't received error email yet. Do you think it's ok to run the cron job. Or I did a mistake ?
Thank you
Hi Jeremy,
If it is sending the email notifications correctly and does not send to you the email that you mentioned in the attachments below to run it should be ok.
Let me know if some other issue pops up.
Best regards.
Kind Regards,
Miloš Jovanović
[email protected]
Rate my support
Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps and 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
Hi Bodgan,
So I made some test, an email with cron job was planned this morning at 7am. But I received nothing. I didn't know what I can do. I read the article that you send me. But I don't know what's wrong...
With bookly it worked so I don't think it comes from my host provider.
HI Jeremy
OK lets try this approach
Lets try to 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.
If you have any confusion about this feel free to ask us, and we will help you.
Best regards.
Kind Regards,
Miloš Jovanović
[email protected]
Rate my support
Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps and 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
Hi,
Thank you so much Bogdan.
I have called my host provider. And they can help me. I did some things :
- 1 : I chose "SMTP" into notification seeting in Amelia
- 2 : Then my host provider correct my cron job as "wget -q -O - 'https://jeremyetmickael.fr/wp-admin/admin-ajax.php?action=wpamelia_api&call=/notifications/scheduled/send'"
- 3 : Then I received every minute a mail that the cron job worked so my host provider stop to send me notification, but I don't know how I could do this step
So right it's ok ! Thank for you investigation.
HI Jeremy
Thank you for your feedback, this can be helpful if some other customer have the same issue.
Nevertheless, I hope that everything will work fine now.
Best regards.
Kind Regards,
Miloš Jovanović
[email protected]
Rate my support
Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps and 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