Wp-calypso: Jetpack Plugins: installing a network-only plugin doesn't work

Created on 29 Nov 2015  路  2Comments  路  Source: Automattic/wp-calypso

There are several issues with installing network-enabled-only plugins on network sites.

Currently we don't activate plugins when installing them on multi site, but it's a strange experience:

Issue 1: The install button for network-enabled-only plugins installs the plugin, but does not activate and does not provide that information
Issue 2: The install button appears on the main network site for plugins that have already been installed on the network
Steps to reproduce issue 1 & issue 2:

  1. Start with a network that doesn't have W3 Total Cache installed
  2. Go to to the plugin browser for a main site of a network
    https://wordpress.com/plugins/browse/example.com
  3. Find 'W3 Total Cache'
  4. See and click the Install button:
    screen shot 2015-11-29 at 6 27 07 am
  5. See that the installation went through successfully:
    screen shot 2015-11-29 at 6 27 14 am
  6. Go to the Plugins page for the main network site, but do not see W3 Total Cache in the list (as expected in general, but strange in this case)
  7. Go to wp-admin > Plugins from network admin, and see that W3 Total Cache was correctly installed, but not activated:
    screen shot 2015-11-29 at 6 31 56 am
  8. Go back to the W3 Total Cache single site view for the main network site -
    https://wordpress.com/plugins/w3-total-cache/example.com - you still see the install button (this is a bug):
    screen shot 2015-11-29 at 6 27 07 am
  9. But this time, the install fails (as expected):
    screen shot 2015-11-29 at 6 28 22 am

The steps above indicate that it's unclear what's really happening on a main site for a network. When on WordPress.com - is the main site acting as the main site or the network admin? It would be great to make that clearer the way it is clear in wp-admin by the URL and interface:
ie. example.com/wp-admin/network/plugins.php vs example.com/wp-admin/plugins.php

Right now the .org API does not provide the data to see whether a plugin is network-enabled only. The API endpoints that would need to be updated are:
https://api.wordpress.org/plugins/info/1.1/?action=query_plugins and https://api.wordpress.org/plugins/info/1.0/w3-total-cache

Jetpack [Status] Stale [Type] Bug

Most helpful comment

Tested and confirmed that a plugin installed on a Jetpack multisite parent site via https://wordpress.com/plugins/ does not show up in the plugin list on WordPress.com after it is installed and that if you click the Install button again it results in an error.

My testing steps:

  1. Go to https://wordpress.com/plugins/browse/
  2. Click "Switch Site" and select a Jetpack network site that doesn't have W3 Total Cache installed.
  3. Search for "W3 Total Cache" and click on it.
  4. Click the Install button.
  5. Click Plugins in the left menu and look for "W3 Total Cache."
  6. Go to https://wordpress.com/plugins/w3-total-cache/
  7. Click "Switch Site" and select the same site.
  8. Check to see if the Install button is active or not.
  9. Click the Install button.

Result: after installing the plugin, I see a success notice that says the plugin was activated even though it was not:

Successfully installed and activated W3 Total Cache on [sitename].

screen shot 2016-05-05 at thu may 5 9 13 35 am
Seen at https://wordpress.com/plugins/w3-total-cache/disambiguously.com using Firefox 46.0.1 on Mac OS X 10.11.4

Result: the plugin does not appear in the list of plugins at https://wordpress.com/plugins/ for the site and the following error appears if you try to click the Install button again:

An error occurred while installing W3 Total Cache on [sitename].

screen shot 2016-05-05 at thu may 5 9 19 52 am
Seen at https://wordpress.com/plugins/w3-total-cache/disambiguously.com using Firefox 46.0.1 on Mac OS X 10.11.4

I also noticed that the wp-admin > Plugins page lists the plugin as "Network Only":

screen shot 2016-05-05 at thu may 5 9 33 42 am
Seen at http://disambiguously.com/wp-admin/plugins.php using Firefox 46.0.1 on Mac OS X 10.11.4

And the wp-admin > My Sites > Network Admin > Plugins page has a link to "Network Activate":

screen shot 2016-05-05 at thu may 5 9 52 10 am
Seen at http://disambiguously.com/wp-admin/network/plugins.php using Firefox 46.0.1 on Mac OS X 10.11.4

All 2 comments

Tested and confirmed that a plugin installed on a Jetpack multisite parent site via https://wordpress.com/plugins/ does not show up in the plugin list on WordPress.com after it is installed and that if you click the Install button again it results in an error.

My testing steps:

  1. Go to https://wordpress.com/plugins/browse/
  2. Click "Switch Site" and select a Jetpack network site that doesn't have W3 Total Cache installed.
  3. Search for "W3 Total Cache" and click on it.
  4. Click the Install button.
  5. Click Plugins in the left menu and look for "W3 Total Cache."
  6. Go to https://wordpress.com/plugins/w3-total-cache/
  7. Click "Switch Site" and select the same site.
  8. Check to see if the Install button is active or not.
  9. Click the Install button.

Result: after installing the plugin, I see a success notice that says the plugin was activated even though it was not:

Successfully installed and activated W3 Total Cache on [sitename].

screen shot 2016-05-05 at thu may 5 9 13 35 am
Seen at https://wordpress.com/plugins/w3-total-cache/disambiguously.com using Firefox 46.0.1 on Mac OS X 10.11.4

Result: the plugin does not appear in the list of plugins at https://wordpress.com/plugins/ for the site and the following error appears if you try to click the Install button again:

An error occurred while installing W3 Total Cache on [sitename].

screen shot 2016-05-05 at thu may 5 9 19 52 am
Seen at https://wordpress.com/plugins/w3-total-cache/disambiguously.com using Firefox 46.0.1 on Mac OS X 10.11.4

I also noticed that the wp-admin > Plugins page lists the plugin as "Network Only":

screen shot 2016-05-05 at thu may 5 9 33 42 am
Seen at http://disambiguously.com/wp-admin/plugins.php using Firefox 46.0.1 on Mac OS X 10.11.4

And the wp-admin > My Sites > Network Admin > Plugins page has a link to "Network Activate":

screen shot 2016-05-05 at thu may 5 9 52 10 am
Seen at http://disambiguously.com/wp-admin/network/plugins.php using Firefox 46.0.1 on Mac OS X 10.11.4

This issue has been marked as stale because it hasn't been updated in a while. It will be closed in a week.
If you would like it to remain open, can you please you comment below and see what you can do to get things moving with this issue?
Thanks! 馃檹

Was this page helpful?
0 / 5 - 0 ratings