Okay
  Public Ticket #2200529
cron settings
Closed

Comments

  •  2
    kb12321 started the conversation

    Followed the directions in the FAQ to set up the reminder email notifications. I used the WP CRon plug0in that was suggested.

    I followed the steps, but inside the plugin, in the cron event details it says this:

    Cron events trigger actions in your code. A cron event needs a corresponding action hook somewhere in code, e.g. the functions.php file in your theme.

    I didn't see any instructions do do this...

  • [deleted] replied

    Hello kb12321,

    Could you please tell me have you followed these steps? 

    In the Tools -> Cron Events admin panel, 

    5870820090.png

    click on the “Add PHP Cron Event” tab underneath the cron event table. 

    2764191073.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).

    6717743478.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 link "Manage Cron Schedules". You will find example how you can make custom interval inserting:

    • Interval name
    • Interval(in seconds)
    • Display name
    6861925456.png

    and click "Add Cron Schedules" and it will be added.

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

    8850513929.png


    Is the cron created like in the above picture? Where exactly do you get the error message, could you please send me a screenshot? 

    Thanks!


  •  2
    kb12321 replied

    I've attached two screenshots. As far as I can tell, I followed the directions you've posted

  • [deleted] replied

    Hello kb12321, 

    Could you please try setting cron up in the "Add PHP Cron Event" not in the 'Modify Cron Event'? 

    And set the 'Next run' on "Now". 

    Thanks!

    Please let me know if you still have issues, 

  •  2
    kb12321 replied

    I initially used the "Add PHP Cron event" to set it up, but to show you the settings, I had to screen shot the Modify tab

  • [deleted] replied

    Hello kb12321,

    Could you please tell me have you tested these notifications? (Making some fake appointment) And didn't get the notification? 

    Thanks!

  •  2
    kb12321 replied

    yes, that is the reason I am contacting you

  •   [deleted] replied privately