Skip to content

Connectors screen: Users are blocked on sites with a read-only file system (DISALLOW_FILE_MODS) #77352

Description

@westonruter

Description

This is a follow-up to #75980 (and #77089).

Normally, the Connectors screen looks as follows on a fresh install:

Image

However, when DISALLOW_FILE_MODS is enabled in an environment, it looks like this:

Image

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_MODS constant. 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

  1. Add define( 'DISALLOW_FILE_MODS', true ); to the wp-config.php.
  2. Access the Connectors screen.

Screenshots, screen recording, code snippet

No response

Environment info

  • WordPress trunk (7.1-alpha)
  • Gutenberg trunk at 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

[Feature] Connectors screenTracks connectors screen related tasks[Status] In ProgressTracking issues with work in progress[Type] BugAn existing feature does not function as intended

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions