zp_openstreetmap doesn't work

vincent3569 Member, Translator
hi

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

Comments

  • acrylian Administrator, Developer
    Do you have an example link and did you look into the server log?
  • vincent3569 Member, Translator
    hi

    the map is supposed to be displayed after album

    http://test.vincentbourganel.fr/20140629-vacances-ete-corse/
  • fretzl Administrator, Developer
    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)
  • acrylian Administrator, Developer
    Since part of the page is missing there must be a kind of fatal error somewhere.
  • vincent3569 Member, Translator
    so...
    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 printAddToFavorites($_zp_current_album); ?>

    <?php } ?>

    <?php printOpenStreetMap(); ?>

    <?php if (extensionEnabled('comment_form')) { ?>
    <?php include('inc_print_comment.php'); ?>
    <?php } ?>
    `
    and it doesn't work`
  • acrylian Administrator, Developer
    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.
  • vincent3569 Member, Translator
    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 ;-)
  • vincent3569 Member, Translator
    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`
  • acrylian Administrator, Developer
    Can you explain to me how to enable server log and how to see them ?
    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.
  • vincent3569 Member, Translator
    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...
  • acrylian Administrator, Developer
    I could reproduce the issue and I should have fixed it. Try the master of the plugin please.
  • vincent3569 Member, Translator
    hi
    the fix allows to display a map (both in album and image page).
    but I can't see any markers.
  • acrylian Administrator, Developer
    Did you set the right options? In my test I got markers both on the album and the image.
  • vincent3569 Member, Translator
    what option could affect display of markers ?
    you can see the link here : http://test.vincentbourganel.fr/20140629-vacances-ete-corse/
  • acrylian Administrator, Developer
    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
  • vincent3569 Member, Translator
    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 ?
  • acrylian Administrator, Developer
    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?
Sign In or Register to comment.