Hi,
I am using OpenStreetMap Plugin but map is not shown.
Map is shown in any other theme I use. Map is also visible when I go to theme configuration and set "Picture info display position" to "Sidebar (like Boostrap Default)" but when I set "Tabs below the image" then the map is not shown.
It was working fine in earlier version (i.e. a few weeks ago)
Piwigo version: 2.9.0
Bootstrap darkroom Version: 1.5.10
OpenStreetMap Version: Version 2.8.d
PHP version: 7.0.11
MySQL version: 5.5.5-10.0.28-MariaDB
Any idea to fix it?
Best Regards
Wernfried
Offline
Oh, the last version 1.5.10 broke it. I will not revert the change that broke it, though.
As a quick workaround, edit plugins/piwigo-openstreetmap/picture.inc.php, line 60:
from:
$search = '#<div id="'. $conf['osm_conf']['right_panel']['add_before'] .'" class="imageInfo">#';
to:
$search = '#<(.*) id="'. $conf['osm_conf']['right_panel']['add_before'] .'" class="imageInfo">#';
Offline
Hi
I tried your workaround but it does not help. Still the same issue.
Offline
Hi
Yes I have the same problem. The map shows on album view but not for individual photos.I have also tried the work-around, but unsuccessfully.
My configuration is
Piwigo 2.9.0
Operating system: Linux
PHP: 7.0.16 (Show info) [2017-06-05 18:14:56]
MySQL: 5.5.51-38.2 [2017-06-05 10:14:56]
Graphics Library: External ImageMagick 6.9.3-10
OpenStreet map: 2.8.d
Bootstrap Darkroom: 1.5.10
Hope you can see what the problem is. Let me know if you need more info.
Many thanks
Martin
Offline
Hm, strange.
Try this instead:
$search = '#<tr id="'. $conf['osm_conf']['right_panel']['add_before'] .'" class="imageInfo">#';
Offline
Thanks for your quick response. That made no difference. However, I think I have solved the problem. I re-read the documentation for the OpenStreetMap plugin and there is a section under 'Right Panel configuration' on 'Add location before':
Make sure that the position you choose for the map is set in 'Display' options to be visible and does exist. Configuration -> Options -> Display
My positioning was set to 'Add location before: Rating Score' and on checking I see I had not made this visible to all (I do not use rating scores). So I changed it to 'Add location before: Created on' and now the map is displayed (using the original version of picture.php)
So it looks as though it was my mistake. But I am sure that the map did display a few weeks ago. I know I have had the problem with the 'EXIF GPS data not read' http://piwigo.org/forum/viewtopic.php?id=26785, so maybe while trying to sort that out I had changed the OpenStreetMap settings.
Best wishes
Martin
Offline
This is fixed in git now.
Offline