Okay
  Public Ticket #2418769
Happy Birthday option
Closed

Comments

  • Javier Andrade started the conversation

    Hi!

    I was talking with my hosting people about to add this line and they told me this line must be stay in your servers... Can you please tell me what to do?

    Thanks.
    Javier

    */15 * * * * https://www.jg-andrade.com/Odontologia/wp-admin/admin-ajax.php?action=wpamelia_api&call=/notifications/scheduled/send

  • [deleted] replied

    Hello Javier,

    Scheduled notifications require a bit of additional configuration with your server cron scheduler. 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

    You can see the more detailed tutorial of how to set up cron at this link.

    If you are not familiar with this you can use the plugin WP Crontrol for creating a cronjob on your website. This is the instructions for using this plugin for setting up a cron for  Amelia:

    In the Tools -> Cron Events admin panel, click on the “Add PHP Cron Event” tab underneath the cron event table.

    1..png1.-1024x447.png

    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:

    file_get_contents("https://yourwebsite.com/wp-admin/admin-ajax.php?action=wpamelia_api&call=/notifications/scheduled/send");

    You don’t need to provide the PHP opening tag (<?php).

    2..png2.-1024x454.png

    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 the link “Manage Cron Schedules”. You will find an example of how you can make custom interval inserting:

    • Interval name
    • Interval(in seconds)
    • Display name
    3..png3.-1024x346.png

    and click “Add Cron Schedules” and it will be added.

    4..png4.-1024x123.png

    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 fields that are described above. After clicking on “Add PHP Cron Event” it will be added on Event table and you are done.

    5..png5.-1024x224.png

  • Javier Andrade replied

    Hi Maija,
    I'm just a WordPress user, I like your pluging, but I think if I need to do all you are telling me, I would be working in NASA....

    Forget my question.

    Regards
    Javier 

  • [deleted] replied

    Hello Javier,

    Setting up a cron on your website is a bit more complicated, and it can differ based on your server as well, on some servers it is not supported at all. That doesn't depend on Amelia. But if you want , you can try setting it up using the suggested plugin for this purpose, it is easier with it(WP Crontrol). And the explanation provided is step by step, in details.

    If you have any other questions or concerns feel free to open a new ticket and we will gladly help.

  • Javier Andrade replied

    Thanks Marija, really.
    Hope nex release of Amelia, put this field easier to setup, now, hope NASA has a vacancy for me!

    Best regards!!!!!

    Javier

  • [deleted] replied

    You are welcome, Javier.

    bigsmile.png Unfortunately, these crons are not setup in Amelia and this doesn't depend on our plugin, they are set on your server and those plugins like WP Crontrol and similar are created to make this process easier for people who are not familiar with this. But the scheduled notification in Amelia need these cron on your server in order to be sent at some specific time, so you need them on your website for using these notifications in Amelia. 

    If you have any other questions or concerns feel free to open a new ticket and we will gladly help.