a long image-description eliminates the OSM-map

hi,

a funny behaviour on my installation (version 1.4.9):

if I have a description with more than about 12 words,
I just see the OSM placeholder/empty space, not anymore the map.

Anybody knows something about a possible connection
between those both code operation areas: the description and the osm-PlugIn??

The behaviour happens (again) only on my hosters space,
not on my home environment.

Eli

Comments

  • acrylian Administrator, Developer
    You mean the whole map is missing then? Will try to reproduce that. In any case please review your browser log/konsole about any Javascript errors.
  • acrylian Administrator, Developer
    I cannot reproduce this, sorry.
  • acrylian Administrator, Developer
    Ok, finally I could with a little help by fretzl. Please try the just released update.
  • > Ok, finally I could with a little help by fretzl. Please try the just released update.
    thank you! But - how?
    I just upgrade with
    ...zenphoto/archive/zenphoto-1.4.9.zip
    but its "just" again 1.4.9 [36167d6556] and no betterment :(

    on the other hand there is an zenphoto-master.zip on github?

    witch update? Where?

    --------------------

    I too search for the "bug". In browsers website-sources:

    <div id="osm_map" style="width:100%; height:300px;"></div>
    <script>
    ...
    desc : "Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut l",
    ...
    </script>

    there might happen a linebreak on char >100.
    so with the following "a" (101), the osm isn't shown anymore...

    Eli
  • acrylian Administrator, Developer
    You should try the just release plugin update to 1.1 of course (besides that it has a master as well as every GitHub repo does)… The osm plugin is not part of the Zenphoto release package.
  • :)

    great!! Thank you very much.
    better - 100 character-texts are very ambitious ... but stringent.

    :\

    there are some Warnings above the map:

    Warning: Missing argument 2 for shortenContent(), called in .../plugins/zp_openstreetmap.php on line 547 and defined in .../zp-core/functions.php on line 169
    Warning: Missing argument 3 for shortenContent(), called in .../plugins/zp_openstreetmap.php on line 547 and defined in .../zp-core/functions.php on line 169
    Warning: Missing argument 2 for shortenContent(), called in .../plugins/zp_openstreetmap.php on line 548 and defined in .../zp-core/functions.php on line 169
    Warning: Missing argument 3 for shortenContent(), called in .../plugins/zp_openstreetmap.php on line 548 and defined in .../zp-core/functions.php on line 169

    so at the moment I set on the zp_openstreetmap.php top
    error_reporting(0);

    ( that with the original ZenPhoto - without my doubtful features ... (from an other posting) )

    Eli
  • acrylian Administrator, Developer
    The 100 char lenght was set before. Might consider to change that to options though.

    Thanks for the error report, a small oversite error with the last fixes. Try the master of the osm plugin please.
  • > The 100 char lenght was set before. Might consider to change that to options though.
    ah - for something like "ellipsis" plus text like "open", "more" ... - too with optional 100, 200, 500 ... thats worthwhile.

    > ... a small oversite error with the last fixes.
    Everything ok now. :)
    the plugin works fine! Thank you!

    Eli
Sign In or Register to comment.