Repository navigation
Description
Description
This is a follow-up to #75980 (and #77089).
Normally, the Connectors screen looks as follows on a fresh install:
However, when DISALLOW_FILE_MODS is enabled in an environment, it looks like this:
This is not helpful, because a user is completely blocked from knowing how to enable the AI functionality. I know that on Pantheon, for example, all production live environments have a readonly filesystem. This is an issue for any site configured with the DISALLOW_FILE_MODS constant enabled in wp-config.php. Users will have no idea how to proceed.
Suggestions:
- A notice should be added that explains that plugin installation is disabled due to the
DISALLOW_FILE_MODSconstant. Users should perhaps be advised to install the AI plugin and AI provider plugins manually as they normally install plugins on their environment. Perhaps even a WP-CLI command could be displayed for each plugin, which would be particularly useful in this case since it is likely that Git is being used to manage the site. - There is no context for the "Not available" message. A link to the plugin on the directory should be displayed for each.
- The AI plugin banner should still be shown, but with a "Learn More" link instead of installation button.
- The paragraph at the bottom should remain, with an external link to the tag search on the localized plugin directory, e.g. https://wordpress.org/plugins/search/ai-connectors/
There is a similar issue faced by the Performance Lab plugin in the feature install screen, which also involves installing a plugin when a feature is activated. See WordPress/performance#1138 and WordPress/performance#1148 (comment).
Step-by-step reproduction instructions
- Add
define( 'DISALLOW_FILE_MODS', true );to thewp-config.php. - Access the Connectors screen.
Screenshots, screen recording, code snippet
No response
Environment info
- WordPress
trunk(7.1-alpha) - Gutenberg
trunkat b30d634
Please confirm that you have searched existing issues in the repo.
- Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
- Yes
Please confirm which theme type you used for testing.
- Block
- Classic
- Hybrid (e.g. classic with theme.json)
- Not sure
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fields✅ Done


Activity
coderGtm commentedon Apr 16, 2026
Hello,
I would like to work on this issue. Is there a consensus on which of the provided suggestions to work upon and anything I should keep in mind before working on it?
If required I can work on all of the suggested pointers.
Thanks!
coderGtm commentedon Apr 20, 2026
I started with the notice. Sharing it here for feedback and keeping everyone in loop.
fcoveram commentedon May 4, 2026
The notice above shows information that could confuse and alarm users not familiar with them. The notice messages should be simpler and provide links to solve and/or understand what's going on.
We're discussing here (WordPress/ai#457) the flow for the happy path, and this issue could tap into that same design.
If I understand the problem correctly, the are two blockers for installing the Connector plugins. Those are not errors but system conditions that limit user actions. If so, then the use cases for not being able to install plugins are:
If the above is correct, then I suggest showing two different screens with different messages. Here is a mockup for each.
westonruter commentedon May 4, 2026
Note: I'm seeing a similar blocked experience for non-superadmin admin users currently on Multisite (trunk at 7.1-alpha-62295 without Gutenberg):
Otherwise, an admin user without
install_pluginscapability or an admin user withfile_mod_alloweddisabled see what I shared initially (with #77897 checked out):Plugin: Disable File Mods
Plugin: Disable Install Plugins Capability
@fcoveram I like your designs, especially the first one for the case where a user lacks
install_pluginsbutfile_mod_allowedis not disabled. This is clearly a case where they need to escalate to an administrator who is able to install the plugin.For the second case, however, where an admin user cannot
install_pluginsandfile_mod_allowedis disabled, then this indicates the admin user themselves are likely responsible for installing the plugins using an alternative mechanism (e.g. WP-CLI). Where would the two CTAs lead? My assumptions:It seems either both or neither should get the external link icon. (Aside: neither of these are localized, which may or may not be a problem.)
In order to install the plugin manually, it is important that they know what the plugin slug is in order to install it. In the UI right now, there is no indication for how to find the plugins being listed here. I think instead of a disabled “Install” button it would make sense to show “Learn more” which opens the plugin on the directory. This would allow the administrator to learn what the plugin slug is, so they can install manually with WP-CLI, e.g. via
wp plugin install ai-provider-for-anthropic. Alternatively, clicking that “Learn more” button could expand the plugin card with additional information including the WP-CLI command to use in addition to the link to the plugin on the directory.In both cases, for users who can't install plugins for any reason, I think it is useful to provide that “Learn more” link so they can discover what plugin specifically needs to be installed. For example, an admin who can't install plugins may want to message the super-admin: "Hey, please install and activate this plugin: https://wordpress.org/plugins/ai-provider-for-anthropic/"
As you've showed in your designs, I think it does make sense to show this paragraph at the end:
Currently this paragraph is omitted for users without that capability. It's just that when the user cannot install plugins, the link will need to go directly to the plugin directory and not to
/wp-admin/plugin-install.php?s=connector&tab=search&type=tag. (Just to reiterate what was already suggested above.)coderGtm commentedon May 5, 2026
@fcoveram I loved the design. However, I'd like to clearly state the conditions just for clarity. Instead of
More clearly,
We can frame it in a better way. Just wanted to share the exact conditions.
westonruter commentedon May 13, 2026
New related Trac ticket: