• Resolved nabopheres

    (@nabopheres)


    Hi,

    I’m trying to identify a recurring problem with this plugin.

    I’ve successfully configured the plugin to sync two object types from Salesforce to WordPress but after a few days of working it seems to stop working. Is only after I make any changes to the scheduling values ( 1 to 2 minutes o viceversa) that te plugin starts to sync again.

    PHP error log is empty and the Logs Page are not displaying errors either.

    What could be causing this?
    Should I switch to wp_cron option? and how would that work?

    Thank you.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Jonathan Stegall

    (@jonathanstegall)

    @nabopheres this plugin doesn’t have another wp_cron option, so I can’t really speak to how you would do that. But here are some ways you could possibly learn more about what the problem is:

    1. In the Tools menu of WordPress, this plugin creates a menu item called Scheduled Actions. You can check there and see what actions the plugin is aware of and if they’re successfully running.
    2. Turn on debug mode on this plugin at the main Settings screen. This creates additional log entries. It can create a lot of entries, but it will tell you if what API calls and data queries it is sending to Salesforce, and if there are any errors, what the results are. You may be able to tell what is happening from that.
    3. Install the WP Crontrol plugin and see that the cron jobs in the plugin are running.

    Thread Starter nabopheres

    (@nabopheres)

    Thank you for responding!

    I wasn’t aware of that “Scheduled actions” tool so I just had a look and I found that around 10% of the pull requests failed. I mostly see this two error types displayed: “action timed out after 300 seconds”, “action failed: The requested resource does not exist”.

    Is there any configuration I could change to prevent this? When one of this processes fail, does it prevent all other records from syncing for all future syncs?

    Thanx.

    Plugin Author Jonathan Stegall

    (@jonathanstegall)

    @nabopheres if a task fails, if it’s a scheduled task it should keep running. It certainly shouldn’t stop future syncs.

    I think if you turn on debug mode in the plugin settings, you may get more useful logs. It should create a log entry for every query it is running. So for example, if it logs a SOQL query, you could run that query in the Salesforce developer console and see if it gives you any results. It’s potentially a complicated process to find out what’s going on, but I think debug is probably the next step.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Plugin randomly stops syncing’ is closed to new replies.