ZenphotoCMS Forum
zp_openstreetmap doesn't work - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: zp_openstreetmap doesn't work (/thread-11903.html)



zp_openstreetmap doesn't work - vincent3569 - 03-03-2015

hi

I tried zp_openstreetmap on zpardoise, but it doesn't work for me.
html flow is broken after ``, but I can't see any error in debug log




zp_openstreetmap doesn't work - acrylian - 03-03-2015

Do you have an example link and did you look into the server log?




zp_openstreetmap doesn't work - vincent3569 - 05-03-2015

hi

the map is supposed to be displayed after album

http://test.vincentbourganel.fr/20140629-vacances-ete-corse/




zp_openstreetmap doesn't work - fretzl - 05-03-2015

Just tried with Zenphoto 1.4.7 and zpArdoise 1.4.6 (the version for Zenphoto 1.4.6) and the map is displayed just fine.

I could not download your latest version (for Zenphoto 1.4.7) because none of your downloads seem to work :-(
(Zenphoto Error: the requested object was not found.)

UPDATE:
Sorry, forget about the downloads. I was trying to download from your [i]test[/i] install.

The map works for me with Zenphoto 1.4.7 and zpArdoise 1.4.6 (latest version)




zp_openstreetmap doesn't work - acrylian - 05-03-2015

Since part of the page is missing there must be a kind of fatal error somewhere.




zp_openstreetmap doesn't work - vincent3569 - 05-03-2015

so...
I disabled googlemap plugin
I enabled zp_OpenStreetMap plugin
in album.php, I replace my code about google map by this one :

`

and it doesn't work




zp_openstreetmap doesn't work - acrylian - 05-03-2015

Please try to remove the favorites and the comment form parts to find out if there is a conflict. But in any case there must be any error (browser log, server, ZP logs) or we keep guessing…

Btw, I assume you just include theme custom comment form? You don't need to do it that way. Just create /comment_form/comment_form.php (aka same names as on the plugin) within your theme's folder and it loads automatically the theme based one with the standard function. Same works with the contact_form plugin.




zp_openstreetmap doesn't work - vincent3569 - 05-03-2015

I removed some code around printOpenStreetMap.
It still doesn't work and I still have any browser and, ZP logs.
Can you explain to me how to enable server log and how to see them ?

I use standard comment and contact forms in zpArdoise ;-)




zp_openstreetmap doesn't work - vincent3569 - 05-03-2015

I changed TEST_RELEASE to true and I have this error in my browser :

Fatal error: Call to a member function getImages() on a non-object in /home2/avbo7291/public_html/zenphoto_test/plugins/zp_openstreetmap.php on line 426




zp_openstreetmap doesn't work - acrylian - 05-03-2015

[i]Can you explain to me how to enable server log and how to see them ?[/i]
No, that is different on every host. Please ask them where to find that.

Thanks, the error gives a clue at least. WIll take a look.




zp_openstreetmap doesn't work - vincent3569 - 05-03-2015

I have a look to your code, and I am unable to understand where is the issue
line 426 it should be an album object and I don't see a reason why it isn't...




zp_openstreetmap doesn't work - acrylian - 05-03-2015

I could reproduce the issue and I should have fixed it. Try the master of the plugin please.




zp_openstreetmap doesn't work - vincent3569 - 05-03-2015

hi
the fix allows to display a map (both in album and image page).
but I can't see any markers.




zp_openstreetmap doesn't work - acrylian - 05-03-2015

Did you set the right options? In my test I got markers both on the album and the image.




zp_openstreetmap doesn't work - vincent3569 - 06-03-2015

what option could affect display of markers ?
you can see the link here : http://test.vincentbourganel.fr/20140629-vacances-ete-corse/




zp_openstreetmap doesn't work - acrylian - 06-03-2015

Ahm, I do see lots of markers on both maps, all looks as it should to me:
http://www.zenphoto.org/test/maps.jpg.html




zp_openstreetmap doesn't work - vincent3569 - 06-03-2015

I don't know how you can see makers and not me.
I try at home (personnal PC) and at work (PC behind an secure access to the net), and I can't see any markers on both.
WTF ?




zp_openstreetmap doesn't work - acrylian - 06-03-2015

I have really no idea. I have tried Safari, Firefox and Chrome and all fine for me. Do you have anything in your browser console log? Maybe something is blocked by something?