ZenphotoCMS Forum
a long image-description eliminates the OSM-map - 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: a long image-description eliminates the OSM-map (/thread-12314.html)



a long image-description eliminates the OSM-map - Eli15 - 2015-09-18

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




a long image-description eliminates the OSM-map - acrylian - 2015-09-19

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.




a long image-description eliminates the OSM-map - acrylian - 2015-09-19

I cannot reproduce this, sorry.




a long image-description eliminates the OSM-map - acrylian - 2015-09-19

Ok, finally I could with a little help by fretzl. Please try the just released update.




a long image-description eliminates the OSM-map - Eli15 - 2015-09-20

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:

...
desc : "Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut l",
...

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

Eli




a long image-description eliminates the OSM-map - acrylian - 2015-09-20

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.




a long image-description eliminates the OSM-map - Eli15 - 2015-09-20


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




a long image-description eliminates the OSM-map - acrylian - 2015-09-21

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.




a long image-description eliminates the OSM-map - Eli15 - 2015-09-21

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