Error Log Shows Floatbox Language Files Missing

Page: 1

Author Post
Registered: May 2012
Posts: 12

I am using the latest version 6.0.4 of floatbox. I was checking the error logs on my server and every day I see multiple entries of language files that could not be found. Here are some examples of entries from my error log. (Username changed for security)

[Tue Dec 23 05:55:32 2014] [error] [client] File does not exist: /home/USERNAME/public_html/video-floatbox/languages/nb.js, referer:

[Tue Dec 23 05:54:28 2014] [error] [client] File does not exist: /home/USERNAME/public_html/video-floatbox/languages/nb.js, referer:

[Mon Dec 22 14:51:53 2014] [error] [client] File does not exist: /home/USERNAME/public_html/video-floatbox/languages/C.js, referer:

[Sun Dec 21 15:55:02 2014] [error] [client] File does not exist: /home/USERNAME/public_html/video-floatbox/languages/C.js, referer:

[Sun Dec 21 15:29:43 2014] [error] [client] File does not exist: /home/USERNAME/public_html/video-floatbox/languages/C.js, referer:

[Sun Dec 21 15:21:18 2014] [error] [client] File does not exist: /home/USERNAME/public_html/video-floatbox/languages/ms.js, referer:

Any idea what is going on here?

Thank you,
Registered: Aug 2008
Posts: 3382

Floatbox checks the browser's navigator.language (and navigator.userLanguage) value and if it does not begin with "en" for English, an attempt is made to load the language localization files for the browser's current language. There are more languages in the world than are in the Floatbox languages folder, so on rare occasions a request will be made for a language file that does not exist. When this occurs, Floatbox carries on unaffected and uses the default English language strings.

"ms" is the Malay language from Brunei, Malaysia and Indonesia. Floatbox does not have that.

"nb" is a Norwegian dialect, as is "nn". Floatbox has a Norwegian language file called "no.js", but does not handle browsers that report the dialects. It's probably a good idea to copy the languages/no.js file to nb.js and nn.js to catch these browsers, and I'll be doing that for the next Floatbox release.

"C.js" is a strange one. I have a few of these in my logs as well. In my case they are all reporting as Chrome 35 running on OS X and originating from the Amazon Web Services IP address range. I don't know what's going on with this one - maybe a bug in Chrome's reporting of its localized language? These guys will get the English floatbox strings.
Registered: May 2012
Posts: 12
Thank you very much for the detailed response. Due to my OCD, I have been spending the last several days trying to resolve any issues that show up in my error log and this one was eluding me.

I will simply ignore the error log entries related to the language files.

Thanks again & have a great holiday!
Registered: Nov 2015
Posts: 4
I have been getting the C.js 404 error as well — a ton of them today on my Wordpress blog.

My fix was to just create a C.js file in the languages directory and that file now contains the contents of the en.js file.

Now I won't get the error, english is served up, and all is right with my world — hopefully.

Page: 1