Location of library

Created on 30 March 2019, over 5 years ago
Updated 30 July 2023, 11 months ago

The installation instructions for the Easy Responsive Tabs to Accordion plugin library say:
Uncompress the downloaded file, then rename main folder to "easy-responsive-tabs", and copy it to "/sites/all/libraries/" folder.
The folder "/sites/all/libraries/" did not work for me. I get the following error :-
Warning: file_get_contents(libraries/easy-responsive-tabs/js/easyResponsiveTabs.js): failed to open stream: No such file or directory in _locale_parse_js_file() (line 1130 of core/modules/locale/locale.module).
After a bit of digging around I discovered an alternative location - web/libraries (so libraries is at the same level as "core", "sites", etc. - see Directory Structure β†’ ). This works for me and I can readily reproduce the documented failure. All file ownership and permissions are the same. Mine is a relatively small site at the moment and I can't see any reason why "/sites/all/libraries/" doesn't work, but it doesn't. I tried with and without the #libraries_api module but it made no difference. Using web/libraries I don't need the libraries_api. I hope this helps someone.

πŸ“Œ Task
Status

RTBC

Version

1.0

Component

Documentation

Created by

πŸ‡¬πŸ‡§United Kingdom mautumn

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.

Production build 0.69.0 2024