Shadowbox has worked very well for a long time on one of my clients sites. Until now. Every time a user clicks on a image that has rel=shadowbox attribute an error looking like this shows up in the sites reports: /sites/all/modules/shadowbox/shadowbox/build/lang/shadowbox-nb.js?5

is this an error?

i'm using norwegain bokmål and the only language file in that folder is shadowbox-no.js

Comments

psynaptic’s picture

Status: Active » Fixed

If the language you are using does not have a language file associated with it you will get this error. Just copy the file that matches what you want to be displayed to the filename you mention in your post and it will fix your issue.

minus’s picture

I did as you suggested, but now these messages appears in the reports section. Shadowbox does not work.

sites/all/modules/shadowbox/shadowbox/build/lang/shadowbox-nb.js?R
sites/all/modules/shadowbox/shadowbox/build/lang/shadowbox-nb.js?v

Any idea?

The norwegian language have two "languages" nb and nn. The file that is within the language folder has the .no extension, I guess this is the norwegian language file?

I have 4 sites with this conflict now :-S

psynaptic’s picture

Title: Error » Language file not found error

So is Drupal is looking for a file called shadowbox-nb.js?

If so just rename one of the language files to this and it should work.

minus’s picture

I have done that but I still get the error messages. Shadowbox is not working :-/

guldi’s picture

i have a similar error:

sites/all/modules/shadowbox/shadowbox/build/lang/shadowbox-de.js not found.

correct filename to search for would be: shadowbox-de-CH.js. this is what is delivered by shadowbox.

the problem is easy to solve: rename shadowbox-de-CH.js to shadowbox-de.js. but the question is, if it's a module-issue.

Status: Fixed » Closed (fixed)

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