• Resolved Jisan Polara

    (@jpolara)


    Issue Description: We are experiencing recurring disconnects with the HubSpot WordPress plugin on a production website. The plugin unexpectedly loses its authentication/connection to the HubSpot portal every 7 to 10 days, stopping buyer tracking until an admin manually reconnects it via the WordPress dashboard. This has now occurred multiple times.

    Steps Already Taken:

    • Verified third-party cookie handling in the admin browser environment.
    • Excluded HubSpot JavaScript assets and REST API endpoints from site-level page caching and minification.
    • Checked server security and WAF (Wordfence/Cloudflare) logs to ensure OAuth callback URLs are not being blocked.

    Questions & Assistance Needed:

    1. Token Refresh Mechanism: Are there specific WP-Cron tasks or REST API endpoints responsible for maintaining/refreshing the OAuth token that might be failing or getting purged?
    2. Debug Logging: Is there a constant or flag we can define in wp-config.php to enable detailed API logging specifically for the HubSpot plugin to capture the exact disconnect event?
    3. Known Conflicts: Are there known conflicts with specific object caching, host-level database cleanups, or host security policies that silently invalidate the auth keys?

    Any guidance on diagnosing why the authentication token is consistently dropping would be greatly appreciated.

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support cheffernan

    (@cheffernan)

    Hi @jpolara

    When we see this issue it is caused by users having a plugin that periodically rotates the wp key and salts on your wordpress instance.

    You can prevent this from recurring by adding the following to your wp-config.php, which pins the plugin to stable keys independent of WordPress’s own:

    define( ‘LEADIN_KEY’, ‘your-stable-custom-key’ );
    define( ‘LEADIN_SALT’, ‘your-stable-custom-salt’ );

    If reconnecting doesn’t resolve the issue, please email wordpress-support-groups@hubspot.com with any error messages or logs and we can investigate further.

    Best,

    Conor

    Plugin Support cheffernan

    (@cheffernan)

    Closing due to inactivity. Feel free to reopen if the issue persists.

    Best,

    Conor

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

You must be logged in to reply to this topic.