rrssb-plus library location in Drupal 9 environment

Created on 10 January 2021, about 4 years ago
Updated 19 May 2023, almost 2 years ago

Problem/Motivation

Upon initial install in Drupal 9 the "Status report" page complains that rrsb-plus library can not be found.

Current module documentation offers to install the library with either drush or download and extract it manually into sites/all/libraries.
drush is not available as a built-in utility in Drupal9, and doesn't want to get installed easily. The manual placement of the rrssb-plus library folder into sites/all/libraries doesn't resolve the "not found" issue either. This is because function rrssb_library_path() doesn't return {drupal root folder}/sites/all/libraries/rrssb-plus

Steps to reproduce

  1. Install Drupal 9
  2. Add rrrsb module
  3. Observe "not found" error on "Status report" page
  4. Extract rrsb-plus into sites/all/libraries folder
  5. Observe that "Status report" page still has "not found" error related to rrssb-plus library

Proposed resolution

An immediate workaround that resolves the issue: place libraries/rrssb-plus folder into the root folder of drupal installation. e.g.: /var/www/html/drupal

Alternatively modify the constant string returned by function rrssb_library_path located in modules/rrssb/rssb.module script.

🐛 Bug report
Status

Fixed

Version

2.0

Component

Documentation

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • @ptmkenny opened merge request.
  • Status changed to Needs review almost 2 years ago
  • 🇯🇵Japan ptmkenny

    I updated the error message to state that when the library is not found in Drupal 9+, it should be installed with composer.

  • Status changed to Needs work almost 2 years ago
  • 🇬🇧United Kingdom adamps

    Great thanks everyone, sorry for the delay.

    The bug is that the instructions refer to sites/all/libraries and it should be libraries.

    As a task, the recommended install mechanism should be composer. However I believe that manual install is still allowed in D9. D8 is no longer supported.

    It seems that most modules are no longer including installation instructions on the project page. I have just fixed the project page to link to the README file for installation instructions. However the README is also wrong.

    So I suggest:

    1) Update the changes to rrssb_requirements() to match the above.
    2) Update the readme

  • Status changed to Needs review almost 2 years ago
  • Open in Jenkins → Open on Drupal.org →
    Core: 9.5.5 + Environment: PHP 7.3 & MySQL 5.7
    last update almost 2 years ago
    1 pass
  • 🇬🇧United Kingdom adamps

    The README changes were done in 📌 Replace README.txt with README.md Fixed

    • AdamPS committed 96b11d45 on 8.x-2.x
      Issue #3191900 by marciaibanez, ptmkenny, AdamPS: rrssb-plus library...
  • Status changed to Fixed almost 2 years ago
  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.71.5 2024