After upgrading to the beta9 version I receive several warning messages.

I'' l guess they are related to the Localization support

this is the first one:

Warning: file_get_contents(/lib/OpenLayers/Lang.js) [function.file-get-contents]: failed to open stream: No such file or directory in _locale_parse_js_file() ...

Our site is in englisch and dutch but the same issue was mentioned from a german site at: http://www.drupalcenter.de/node/49441)

Thanks for any help

Comments

jenna1’s picture

I have the same problem, after these updates:

https://drupal.org/project/l10n_update and Open Layers

my bug report:
Site not found: my-domain.de/lib/OpenLayers/Lang/de.js
Site not found: my-domain.de/lib/OpenLayers/Lang.js

Warning: file_get_contents(/lib/OpenLayers/Lang/de.js) [function.file-get-contents]: failed to open stream: No such file or directory in _locale_parse_js_file() (Zeile 1488 von...
Warning: file_get_contents(/lib/OpenLayers/Lang.js) [function.file-get-contents]: failed to open stream: No such file or directory in _locale_parse_js_file() (Zeile 1488 von...

thanks for help, jenna

pol’s picture

I will fix this pretty soon.

Kolo’s picture

Another bug after update:

Notice: Undefined index: title_rendered in openlayers_views_style_data->coalesce_groups() (line 434 of ...\all\modules\openlayers\modules\openlayers_views\views\openlayers_views_style_data.inc).
Notice: Undefined index: title_1_rendered in openlayers_views_style_data->coalesce_groups() (line 437 of ...sites\all\modules\openlayers\modules\openlayers_views\views\openlayers_views_style_data.inc).

I have a map with Venues with Events. Each venue can have multiply events. In format settings I just choose in Grouping field Nr.1 title field of my Venue. Until last update everything works fine.
I also check with newest dev but error continue to occurs.

pmusaraj’s picture

I created a temporary patch to comment out the offending lines in openlayers.module. The patch is attached.

The issue can also be resolved by downloading the open layers library locally and including that instead of the external version.

(In our case, we can't use the local library, because our /libraries folder is not in /sites/all and the openlayers module seems to only look for it in sites/all. This is a related issue, fyi.)

giorgosk’s picture

luk.stoops’s picture

Tried to upgrade again (now from 7.x-2.0-beta7 to 7.x-2.0-beta11). No problem on my local testserver but on my productionserver I got these warnings:

• Warning: file_exists(): open_basedir restriction in effect. File(/lib/OpenLayers/Lang.js) is not within the allowed path(s): (/customers/6/0/c/brouwerijhetnest.be/httpd.www:/customers/6/0/c/brouwerijhetnest.be/httpd.private:/customers/6/0/c/brouwerijhetnest.be/tmp:/customers/brouwerijhetnest.be/brouwerijhetnest.be:/var/www/diagnostics:/usr/share/php) in openlayers_include() (regel 148 van/customers/6/0/c/brouwerijhetnest.be/httpd.www/sites/all/modules/openlayers/openlayers.module).
• Warning: file_exists(): open_basedir restriction in effect. File(/lib/OpenLayers/Lang/nl.js) is not within the allowed path(s): (/customers/6/0/c/brouwerijhetnest.be/httpd.www:/customers/6/0/c/brouwerijhetnest.be/httpd.private:/customers/6/0/c/brouwerijhetnest.be/tmp:/customers/brouwerijhetnest.be/brouwerijhetnest.be:/var/www/diagnostics:/usr/share/php) in openlayers_include() (regel 153 van/customers/6/0/c/brouwerijhetnest.be/httpd.www/sites/all/modules/openlayers/openlayers.module).
• Warning: file_exists(): open_basedir restriction in effect. File(/lib/OpenLayers/Lang/nl-BE.js) is not within the allowed path(s): (/customers/6/0/c/brouwerijhetnest.be/httpd.www:/customers/6/0/c/brouwerijhetnest.be/httpd.private:/customers/6/0/c/brouwerijhetnest.be/tmp:/customers/brouwerijhetnest.be/brouwerijhetnest.be:/var/www/diagnostics:/usr/share/php) in openlayers_include() (regel 158 van/customers/6/0/c/brouwerijhetnest.be/httpd.www/sites/all/modules/openlayers/openlayers.module).

any idea how solve this? (I 'm back to 7.x-2.0-beta7 )
thx

knalstaaf’s picture

@luk.stoops: how you figured out this issue?

As I mentionned in this topic, it probably has something to do with the Belgian language code (nl-BE): #2407917: File(/lib/OpenLayers/Lang.js) is not within the allowed path(s)

luk.stoops’s picture

I guess these were part of the warnings I got after the upgrade to 7.x-2.0-beta9 (see first post in this issue)
after upgrading to 7.x-2.0-beta11 the warnings:
file_get_contents(/lib/OpenLayers/Lang.js) [function.file-get-contents]: failed to open stream: No such file or directory in _locale_parse_js_file() ...
were no longer there but the 3 warnings
file_exists(): open_basedir restriction in effect...
are still there so I see no other solution than reverting back to 7.x-2.0-beta7.

Probably it is related with the fact that the production site runs in shared hosting (one.com) On my local acquia desktop testserver there are no warnings!
thx

knalstaaf’s picture

I was able to solve it by taking the steps described here: #2407917: File(/lib/OpenLayers/Lang.js) is not within the allowed path(s)