• Resolved phototrope

    (@phototrope)


    Hi
    Firstly thanks for developing this plugin.

    All I’m trying to do is view salesforce Opportunity objects in WordPress. So I only want them pushed from SF -> WP.

    I’ve managed to get the Authorize working. I’ve set up Custom Types using Pods (because it has a nice admin page), and I’ve mapped my custom fields. But nothing is being pushed through. There are no errors in the logs.

    So my questions are:
    1. How do I start debugging this?
    2. What is your recommended way of creating Custom types for a wordpress opportunity object? I used Pods, but if you say using SQL is better I’ll do that. Just give me a few pointers on what SQL I should use.

    Thanks

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

    (@jonathanstegall)

    @phototrope we have some suggestions for debugging in the FAQ under troubleshooting fieldmaps. Try those things first.

    I’d also say that I’m familiar with Pods but haven’t used it, with or without this plugin, so I’m not sure about whether it will work. But one way you can test – after you’ve done all the other debugging things – is to try to sync something with more of a default structure – sync users with contacts, for example, and see if that works.

    Thread Starter phototrope

    (@phototrope)

    Hi Jonathan,

    Yes, I tried exactly that – syncing users with contacts – because I wasn’t sure about Pods either. That had the same problem. Nothing is pushed, nothing in the queues, nothing in the logs. Which I why I suspect I’ve done something else wrong.

    By the way, when syncing users -> Contacts, are there any mandatory field mappings which need to be set up?

    Plugin Author Jonathan Stegall

    (@jonathanstegall)

    @phototrope I can’t speak to any mandatory field requirements. That depends on your Salesforce setup. But usually last name is required to create a contact.

    Aside from that, I think you might want to:

    1. Check your database and make sure both tables (wp_object_sync_sf_field_map and wp_object_sync_sf_object_map) have been created.
    2. Try the plugin with asynchronous enabled, and with it disabled.
    3. Check if your cron jobs are running.
    4. Make sure your log settings are aggressive (for now, since you’re testing)
    5. Check both your server logs, and the log content type this plugin creates.

    If none of those things work, I don’t have much else to offer.

    Thread Starter phototrope

    (@phototrope)

    Hmm. That might be it. No cron jobs.
    Can you please tell what cron job(s) needs to be running for push to work?

    • This reply was modified 7 years, 6 months ago by phototrope.
    Plugin Author Jonathan Stegall

    (@jonathanstegall)

    Well, the plugin creates some cron tasks on its own. But if your server does not support cron, it won’t work.

    However if that is your issue, you can run push tasks with asynchronous turned off. As in this screenshot. With this setting, you might run into server performance issues if you are pushing a lot of data, but certainly you could test that way and see if cron is the issue. If it doesn’t work without that setting, cron is not the issue. Or at least it’s not the only issue.

    If cron is the only issue, that would seem to be a server config thing and is beyond our scope here.

    Thread Starter phototrope

    (@phototrope)

    Hi Jonathan

    Both wp_object_sync_sf_field_map and wp_object_sync_sf_object_map have been created.

    wp_object_sync_sf_field_map is populated but wp_object_sync_sf_object_map is empty

    Should it be populated (I’ve created mappings for Opportuniy and Contact objects)

    Also, where can i find the logs for content type logs this plugin creates?

    Thanks! (I’m not giving up)

    Plugin Author Jonathan Stegall

    (@jonathanstegall)

    The object_map table doesn’t get populated until records have been synced – either successfully or with an error message (in your case it would be something like a Salesforce API error if there were anything in that table, probably).

    You can read about how the plugin does logging here.

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

The topic ‘Authorize works but push doesn’t work’ is closed to new replies.