Support » Plugins and Hacks » Jetpack by WordPress.com » [Resolved] Jetpack redirects to admin home

[Resolved] Jetpack redirects to admin home

  • We have followed this steps:

    Registered a developer app on wordpress.com (oauth2)
    Tested oauth2 auth flow with wordpress.com blog, it worked
    Installed latest wordpress on my own domain
    Installed Jetpack on my own domain
    Connected jetpack to wordpress.com, it worked
    Tried to authorize client to post on my own domain, it failed

    The flow starts with this url:

    When trying to authorize the client it asks which blog I want to connect, then I select the one on my own domain and I click to “Authorize”.

    The url at this point is:

    Then it asks the login in my domain, which I think is a bit strange because I already connected my blog to wordpress, when I login with admin account it just shows the admin panel main page.

    I also tried disabling all plugins but jetpack.

    Any help would be appreciated.



Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Contributor Ben Lobaugh (blobaugh)


    Mazard what client are you using to connect to your site?

    It is our own client, it works fine with wordpress.com blogs.

    But it really never reaches the client domain.

    It starts with the first url at http://public-api.wordpress.com where it is being redirected to http://blog.qlinkbox.com/wp-login.php…. (which I belive is the plugin endpoint).

    Plugin Contributor Ben Lobaugh (blobaugh)


    I hope this is a silly question, but have you activated the JSON API module in Jetpack?

    Yes, jetpack is connected to wordpress.com and the json api module is activated.
    I disabled and activated both the json api module and the connection to wordpress.com many times.

    Any help would be appreciated… it looks more like a plugin’s bug

    Tried installing wordpress and jetpack from scratch in my localhost and it’s working without problems.

    So it looks like a server requirement problem, any idea?
    Can it be some problem with ngnix? Is there any site with system requirements to check?

    Plugin Contributor Ben Lobaugh (blobaugh)


    Hmm, it seems my last response to you did not post. Apologies about that.

    I am not positive on the server-side. As long as Jetpack has access to the servers and can be pinged back it should work. I am not experienced enough to know any gotchas with nginx configs.

    we got exact same problem, I just posted this to support:

    1. jetpack installed on our blog
    2. modules json and single-sign-on are activated
    3. connected to our user account (prismahub) at wordpress.com
    4. when trying to get access key, authorize page shows up and our blog can be chosen in drop-down (screenshot1 – http://postimg.org/image/4ssm88inh/)
    5. after clicking “Authorize” we get login prompt for our blog (screenshot2 – http://postimg.org/image/4yhbbeb9p/)
    6. after logging in, we don’t get redirected back but instead get dashboard page (screenshot3 – http://postimg.org/image/bx7hb5hi7/)

    Please note that steps above work perfectly with our blog hosted @ wordpress.com and as you see not with our blog hosted @ our server

    Fortunately we found and fixed this issue.

    suhosin (security module for php) dropped one or many variables in url. ( private data have been substituted with ? )

    Jun  2 10:47:17 vps suhosin[5612]: ALERT - configured GET variable value length limit exceeded - dropped variable 'redirect_to' (attacker '??.??.??.??', file '/var/www/???/wp-login.php')
    Jun  2 10:47:23 vps suhosin[9646]: ALERT - configured GET variable value length limit exceeded - dropped variable 'redirect_to' (attacker '??.??.??.??', file '/var/www/???/wp-login.php')
    Jun  2 10:47:24 vps suhosin[8178]: ALERT - script tried to increase memory_limit to 268435456 bytes which is above the allowed value (attacker '??.??.??.??', file '/var/www/???/wp-admin/admin.php', line 131)
    Jun  2 10:47:26 vps suhosin[5612]: ALERT - script tried to increase memory_limit to 268435456 bytes which is above the allowed value (attacker '??.??.??.??', file '/var/www/???/wp-admin/admin.php', line 131)
    Jun  2 10:47:27 vps suhosin[9646]: ALERT - script tried to increase memory_limit to 268435456 bytes which is above the allowed value (attacker '??.??.??.??', file '/var/www/???/wp-admin/admin.php', line 131)

    we solved this by editing /etc/php5/conf.d/suhosin.ini

    ;suhosin.get.max_value_length = 512


    suhosin.get.max_value_length = 1024

    and restarting php /etc/init.d/php-fastcgi restart

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘[Resolved] Jetpack redirects to admin home’ is closed to new replies.
Skip to toolbar