I tried zp_openstreetmap on zpardoise, but it doesn't work for me. html flow is broken after `<?php printOpenStreetMap(); ?>`, but I can't see any error in debug log
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 test install.
The map works for me with Zenphoto 1.4.7 and zpArdoise 1.4.6 (latest version)
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.
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 ;-)
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`
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...
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 ?
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?
Comments
the map is supposed to be displayed after album
http://test.vincentbourganel.fr/20140629-vacances-ete-corse/
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 test install.
The map works for me with Zenphoto 1.4.7 and zpArdoise 1.4.6 (latest version)
I disabled googlemap plugin
I enabled zp_OpenStreetMap plugin
in album.php, I replace my code about google map by this one :
`
<?php if ((zp_loggedin()) && (extensionEnabled('favoritesHandler'))) { ?>
<?php } ?>
<?php printOpenStreetMap(); ?>
<?php if (extensionEnabled('comment_form')) { ?>
<?php include('inc_print_comment.php'); ?>
<?php } ?>
`
and it doesn't work`
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.
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 ;-)
`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`
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.
line 426 it should be an album object and I don't see a reason why it isn't...
the fix allows to display a map (both in album and image page).
but I can't see any markers.
you can see the link here : http://test.vincentbourganel.fr/20140629-vacances-ete-corse/
http://www.zenphoto.org/test/maps.jpg.html
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 ?