Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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. Updated 12/18/2019

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 command string

    Image Added

  3.  Run the 4 command string shown below:

    first command:

    terminus wp cornell-alumni.live -- option update cornell_events_last_sync

    1515628800
  4. The password required is the one you entered when setting up  Terminus

  5.  Run that command and the following 3 commands:

  6. Turn the auto sync off:1576083600;terminus wp cornell-alumni.live -- cornell events cron --offStart the sync running: ;terminus wp cornell-alumni.live -- cornell events sync --allTurn the auto sync on: ;terminus wp cornell-alumni.live -- cornell events cron --onImage Removed



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



...