You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 7 Next »

The automatic sync from iModules to WP does not always capture new or more often updated events. Running these steps on the schedule described will keep the events more in sync.

Step-by-step guide

Run these steps 3 days a week on Monday, Wednesday, & Friday:

  1. Convert a date 1 week (don't enter a time) previous using a UNIX timestamp converter, https://www.unixtimestamp.com/index.php 
  2. Copy that timestamp into the first command: terminus wp cornell-alumni.live -- option update cornell_events_last_sync 1515628800
  3. The password required is the one you entered when setting up  Terminus

  4.  Run that command and the following 3 commands:

  5. Turn the auto sync off: terminus wp cornell-alumni.live -- cornell events cron --off

  6. Start the sync running: terminus wp cornell-alumni.live -- cornell events sync --all

  7. Turn the auto sync on: terminus wp cornell-alumni.live -- cornell events cron --on



  8. Errors:
    1. Most likely if you get an error it will be because the date entered was too far in the past, as is shown in the example below. If it error-ed out after you ran the

      terminus wp cornell-alumni.live -- cornell events sync --all command, check your timestamp from the starting command using the converter. mentioned in step 1.

    2. As you can see in this example the date of the timestamp is from 1 year in the past instead of 1 week.

    3. Put the correct date in the converter (https://www.unixtimestamp.com/index.php)

    4. Run the terminus wp cornell-alumni.live -- option update cornell_events_last_sync 1547164800 command line again.

    5. Finish up by running the command (terminus wp cornell-alumni.live -- cornell events cron --on)  to turn cron back on.
       



 

  • No labels