-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Jetpack: can't enable Manage module #8404
Comments
I couldn't reproduce right away. Manage seemed to be already enabled for me after clicking the link and when reaching Calypso's plugins page. I'm going to try to reproduce again, by cleaning local storage (IndexedDB) and doing it all over. Also, while trying to reproduce this, I found a bug in Jetpack's Admin Page, (fix proposed in Automattic/jetpack#5245) . This bug was avoiding a redirection after clicking the enable Manage link. I don't think this bug is directly involved in the error you've encountered, but the steps mentioned here for reproducing it, would have been different if this bug hadn't been there. Note: Mentioned bug was present on Jetpack latest |
@jeherve you experienced this with Jetpack |
I've just reproduced with 4.3.1 BUT while I was staring at the plugins page, it updated itself to show that Manage was indeed enabled. Like if it had synced it a few seconds after I enabled OR Jetpack somehow is caching Manage's state. |
Even after force-refreshing Calypso's plugin page, the old state remained until some update was received about Manage state. |
Right, that seems to be the issue for me too. But that's pretty annoying, and should not happen since I clicked that button to start using Calypso! |
@oskosk Do you have a pull request or fix ready for review? What are the next steps to solve this? |
@lancewillett still digging this. The thing is that Manage is in fact enabled, but there's a certain time between Manage activation on the Jetpack side and .com being updated about its new state. This is what's being experienced here as reported by this issue. |
Also reported in P4evON-1e2-p2. |
I believe this is simply a combination of:
So you enable the module in Jetpack, then it has to sync that data over to WP.com (takes "some time"), then once the data is synced, and you're looking at Calypso, it only periodically polls for fresh information, so it takes "some time" before it gets the new data. Until we have real-time data updates (push from WP.com to clients) I think we need some query parameter or something that we can pass around, which tells Calypso to force-refresh the data for this site. |
+1 on the suggested solution from Beau to use a query parameter to force-reload data rather than waiting on the normal sync schedule. |
Looks like a related issue in p2JiWH-1Aj-p2. |
Is anyone working on this one? What's the next step to wrap it up? |
@lancewillett I was able to reproduce it today, and if I'm correct about my assumption, the fix is pretty straightforward - see #12715. |
A fix for this was applied in p7rcWF-l0-p2 (thanks @lezama). Since then I've tried to reproduce it multiple times, with no luck. |
Steps to reproduce
wordpress.com/plugins/yoursite.com
mysite.com/wp-admin/admin.php?page=jetpack&configure=manage§ion=plugins#/
/wp-admin/admin.php?page=jetpack&action=activate&module=manage&_wpnonce=nonce
that returns a 302. Here are the response headers:The text was updated successfully, but these errors were encountered: