Where should Library go using Composer to install module

Created on 15 September 2022, over 2 years ago
Updated 16 August 2023, over 1 year ago

Documentation states download Library Mobile_Detect.php and install with other Library files. I have done this BUT

When using DRUSH to enable the module, I get an error stating that Library is not found where expected and should be:

$ drush pm:enable mobile_detect
 [error]  File not found: /home/cqsaservices/public_html/modules/contrib/mobile_detect/lib/mobiledetect-mobiledetectlib/v2.8.37/Mobile_Detect.php.

Creating this folder structure then allows the module to be enabled. However , this is NOT what is set out in the README file.

Additionally, can you please explain what version of the Library is required with the various Module versions?

v2.8.39 seems to work with module version 3.0.1, BUT NOT with version 3.0.4

I am confused by the documentation. Equally Composer says that it updates the Library folder, but editing the php file, the version does not seem to get updated.

💬 Support request
Status

Closed: works as designed

Version

3.0

Component

Documentation

Created by

🇬🇧United Kingdom cebab54

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.

  • 🇧🇪Belgium nonom Brussels

    It needs to be installed with composer to download the library into the /vendor folder.

  • 🇳🇱Netherlands dennis cohn

    I've got the same error like cebab54
    I've installed the module with composer but also got the error when clearing the cache

    [error] File not found: /data/sites/web/modules/contrib/mobile_detect/lib/mobiledetect-mobiledetectlib/v2.8.38/Mobile_Detect.php.
    And doesn't seems to work. How to fix this?

Production build 0.71.5 2024