I installed the navbar module and it's working great (thanks!), but the module looks for a non-existing/not-required modernizr location. The installation instructions say the library should live at sites/all/libraries/modernizr/modernizr.min.js, but after clearing caches, when I visit the front page I get:
Warning: file_get_contents(sites/all/libraries/modernizr/modernizr.js): failed to open stream: No such file or directory in _locale_parse_js_file() (line 1488 of includes/locale.inc).

Comments

ar-jan’s picture

Component: Code » Documentation

It looks like we can just use modernizr.js instead of modernizr.min.js. If correct this should be changed on the project page (and docs).

theohawse’s picture

Where can I get this file from? The modernizr site doesn't have a permalink for drush make to grab the file...

theohawse’s picture

Oh hmm, nvm I think I figure it out, how does this look?

; Modernizr
libraries[modernizr][directory_name] = modernizr
libraries[modernizr][download][type] = get
libraries[modernizr][download][url] = https://github.com/Modernizr/Modernizr/archive/v2.7.1.zip
libraries[modernizr][overwrite] = TRUE
ar-jan’s picture

That gives you a 1.4 MB folder though, while you only need a 3.5 KB file. I put the preconfigured js file in a bitbucket repository for my make files.

hass’s picture

Category: Bug report » Support request
Status: Active » Fixed

See project home, please.

ar-jan’s picture

Can you clarify then: the project homepage says "so the modernizr file can be found at sites/all/libraries/modernizr/modernizr.min.js". If you do this, you get "Warning: file_get_contents(sites/all/libraries/modernizr/modernizr.js): failed to open stream: No such file or directory in _locale_parse_js_file() (line 1488 of includes/locale.inc)."

So it looks like those instructions should be changed to "so the modernizr file can be found at sites/all/libraries/modernizr/modernizr.js".

Status: Fixed » Closed (fixed)

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

ar-jan’s picture

Status: Closed (fixed) » Active

Sorry but the issue was not adressed. The project page still reads "The file should be named modernizr.min.js", which gives a warning. It seems the filename should be modernizr.js.

markbannister’s picture

Getting log messages along the same lines modernizr.min.js page not found. Installed in Commons libraries (profiles/commons/libraries/modernizr/). File modernizr.js exists but not modernizer.min.js

markbannister’s picture

Latest release and following release notes solved this for me, 7.x.3.1
http://drupal.org/node/2172847

wim leers’s picture

Status: Active » Fixed

Indeed, this is fixed now.

Status: Fixed » Closed (fixed)

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