Warning: file_get_contents(sites/all/libraries/chosen/chosen.jquery.min.js) [function.file-get-contents]: failed to open stream: No such file or directory в функции _locale_parse_js_file() (строка 1393 в файле /var/www/virtual/ul7.ru/www/includes/locale.inc).

Problem:

If I use a git to load/update files of library I go to path sites/all/libraries and in this place run git command. In result I have:
libraries
-- chosen
---- chosen
------ chosen.css
------ chosen.jquery.js
------ chosen.jquery.min.js
------ chosen.proto.js
------ chosen.proto.min.js
------ chosen-sprite.png
---- coffee
------ ...

on line 25 and 27 i see, what files can't be loaded. You can check real path of files to load.

CommentFileSizeAuthor
#2 directory info97.24 KBXaber
#2 .git location7.68 KBXaber

Comments

xano’s picture

Are you sure the files are located at /sites/all/libraries/chosen/chosen instead of /sites/all/libraries/chosen?

Xaber’s picture

StatusFileSize
new7.68 KB
new97.24 KB

of course. view attached images

Dylanotron’s picture

As a side question, why does the Chosen module request files to be located at /sites/all/libraries/chosen/chosen instead of /sites/all/modules/libraries/chosen/chosen?

xano’s picture

Because it's not part of libraries.module.

Dylanotron’s picture

But why does the libraries module need to exist outside the modules folder?

xano’s picture

Libraries.module should be placed within the modules folder. It's the libraries themselves that are placed in /sites/*/libraries.

If you don't agree with this, please file an issue in Libraries' queue. It has nothing to do with Chosen.

Cyclodex’s picture

Status: Active » Closed (works as designed)

I see no problem here. It works as designed.