site_id_invalid error

  • Unknown's avatar

    When I try to connect to WordPress.com to activate Jetpack on my site, it gives me the error code “site_id_invalid” and explains “Error Details: This site is already connected to WordPress.com.”

    I have tried deactivating/reactivating and uninstalling/reinstalling the plugin to no avail. Any advice?
    Blog url: http://www.sarahbrydenbrown.com/

  • Would you please try deactivating all other plugins to see if that makes a difference?

    Theme functions can also interfere like plugins, so if there wasn’t a plugin causing the issue, please try temporarily activating the Twenty Eleven theme.

  • Unknown's avatar

    Tried that, it did not work.

    I found the stats ID in the wp_options table under the key “stats_options,” which Jetpack appears to be controlling. I was considering clearing it to reset the plugin settings, but I am concerned that doing so will erase past stats for the site, it does not appear that Jetpack clears that option on its own when the plugin is deactivated or uninstalled. This is the code that Jetpack is sending to the WordPress.com server:

    Array
    (
    [method] => POST
    [body] => Array
    (
    [siteurl] => http://www.sarahbrydenbrown.com
    [home] => http://www.sarahbrydenbrown.com
    [gmt_offset] => -4
    [timezone_string] => America/New_York
    [site_name] => Blogstar
    [secret_1] => ***
    [secret_2] => ***
    [site_lang] => en_US
    [timeout] => 15
    [stats_id] => 29039538
    )

    [headers] => Array
    (
    [Accept] => application/json
    )

    [timeout] => 15
    )

    The background for the error is this: I made a copy of this site on a staging server and noticed that pages from this live site and staging site were showing up in each other’s stats, so I deactivated the plugin on both copies of the site, then when I activated it again on staging it gave this error on the live site.

    Will clearing the stats_option will delete the stats history? Is there a way to re-associate this ID with the correct site?

  • Deactivating and deleting the plugin will clear all settings, so you don’t have to worry about that.

    First, make sure that the plugin is deactivated and delete from both sites, then only reinstall it on the live site.

    It is possible that your stats may not be recoverable, and I don’t typically recommend running Jetpack on staging sites for this reason.

  • Unknown's avatar

    Deactivating and deleting the plugin does not clear the settings; a search on the wp-options table still shows stat_options. I did, however, delete it from the staging site.

    When logging into the WordPress.com account associated with this site (which was working fine with Jet Pack previously), the live site is showing up with the URL of the staging site. Is there any way to go in from the WordPress.com side and edit that info, or could someone at WordPress change it for us so we can keep using that profile rather than having to create a new one and lose all the subscriptions/past stats/other info that had been set up in Jet Pack?

  • That might work. So I don’t do the wrong one, which URL should be changed to what exactly?

  • Unknown's avatar
  • Alright, I have made the change.

    Any luck?

  • Unknown's avatar

    It works, thanks!

  • The topic ‘site_id_invalid error’ is closed to new replies.