Problem/Motivation

If the Package Manager module is not found, then the message on the configuration page /admin/config/development/project_browser has the "Allow installing via UI (experimental)" option disabled, with the message

The ability to install modules via the Project Browser UI requires Package Manager version 2.5 or newer. Package Manager is provided as part of the Automatic Updates module.

An inexperienced user might not know how to enable this feature.

The message does not distinguish between

  • Package Manager is not added to the site (in the codebase).
  • Package Manager is added but not installed (enabled).

Steps to reproduce

  1. Install Drupal with the Standard profile and no contrib modules other than Project Browser.
  2. Add and enable the Project Browser module.
  3. Visit /admin/config/development/project_browser.

Proposed resolution

Make the text "Automatic Update" link to the project page: https://www.drupal.org/project/automatic_updates.

If the Package Manager module is in the codebase but is not installed, then replace the message with one that recommends installing it, with a link to the Extend page (/admin/modules).

Remaining tasks

  • ✅ File an issue about this project
  • ☐ Manual Testing
  • ☐ Code Review
  • ☐ Accessibility Review
  • ☐ Automated tests needed/written?
Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

benjifisher created an issue. See original summary.

benjifisher’s picture

Issue summary: View changes

After I added the Automatic Updates module and enabled the included Package Manager module, I saw the following warning message on /admin/modules/browse:

Unable to download modules via the UI

The active directory at "/var/www/html" contains symlinks, which is not supported. The first one is "/var/www/html/vendor/drupal/core-project-message". See the help page for information on how to resolve the problem.

When I see this message, I have to go back to the configuration page. It would be more convenient if this message appeared on the configuration page, either before enabling the "Allow installing via UI (experimental)" option or after I check the box and submit the form.

I am not sure whether to expand the scope of this issue or to open a new one.

Also, the link text "the help page" is not ideal for screen readers, which often list all links without context.

tim.plunkett’s picture

Issue tags: +core-post-mvp

cmah made their first commit to this issue’s fork.

cmah’s picture

Status: Active » Needs review
chrisfromredfin’s picture

Status: Needs review » Reviewed & tested by the community

Simple and sweet!

fjgarlin’s picture

Thanks all. The code looks good, I tested via Drupalpod too. Merging!

  • fjgarlin committed 39a42e02 on 1.0.x authored by cmah
    Issue #3323860 by cmah, benjifisher: On config page, "Automatic Updates...
fjgarlin’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.