[map module] Integration problem
ledom
Joined: 2007-10-08
Posts: 77 |
![]() |
Hi, I have a problem with module map on my old post card site: http://picturevolution.com. First, I used joomla 1.0.15, gallery2.2.4 with gallery bridge from 4theweb on an apache serveur with php4 I need to change php version to 5 (to use iconv option). For that I add "SetEnv PHP_VER 5" to my root .htaccess (joomla directory). The problem is that, if I do that, map module don't work on embedded gallery2. You can see the page I obtain here: http://picturevolution.com/photos-anciennes/?g2_view=map.ShowMap there is an error in the console: Erreur : myWidth is not defined But: the map work fine in gallery2 without integration!!!: http://picturevolution.com/photos2/main.php?g2_view=map.ShowMap So, I upgrade gallery2 to 2.2.6 and joomla to 1.5.6: same problem If I remove "SetEnv PHP_VER 5", it work fine again... There is another post about this subject into gallery2 into wordpress integration forum: http://gallery.menalto.com/node/74900 If someone could help me.... Thanks Gallery version = 2.2.6 noyau 1.2.0.8 |
|
Posts: 77
If it can help... I don't understand why but if gallery2 debug mode is on "buffered", the map is shown and seems to work.
I can see this message before the map: Notice: Undefined index: sidebarBlocksHtml in .../www/components/com_g2bridge/models/gallery.php on line 108
Posts: 77
e
Posts: 77
Nobody can help me?
http://rubbishbusters.com
Posts: 27300
Does it work standalown?
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 77
Hi Dave,
Yes, it works good standalone!
It's like if the javascript that follow googleMap.js into mapHeader.tpl is invisible...
I have two installation of gallery2 on this server. I try with the second gallery2 and it work, I can see the map. Not with the first installation.
MapHeader.tpl files are the same.
Attachements are code of the embeded page in firebug, when it works (second installation of gallery2) and when it don't works (first installation).
Hope it will help you. Thanks.
Posts: 77
I upgrade to 2.3
Always the same problem:
the map is always showing with gallery2 standelone, no problem
-with PHP4 the map showned correctly into joomla 1.5
-with PHP4 with gallery2 debug mode ON the map showned correctly
-with PHP5 the map doesn't show at all (error "myWidth is not defined" in firebug)
and I need php5...
must I let debug ON?
do you have just an idea of the cause of this problem?
Posts: 27300
So let me get this right...
standalown works in php 4 and 5?
embedded only works in php4 but not in php5?
you will have to leave it on php 5 so we can see the error and source.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 77
Yes you're right Dave
embedded don't work in php5 (only the map, not the complete gallery)
you'll find html sources for each case in attachment. Ask me if you want I put php5 ON because now it's on php4 for visitors to see the map.
If you look at this sources, you'll see that the script containing <script type="text/javascript">
//<
Spent 10 hours today to try to understand this problem... I dont"t want to become a nerd..
The problem is not only with joomla bug it seems there is the same with wordpress: http://gallery.menalto.com/node/74900
Do you know for witch reason a javascript is not transmit by a tpl file? It seems all is good
I try that:
gallery2 standalone I can see: Position 1 Position 2 Position 3Position 4
into joomla: Position 1 Position 2
Do you think I can put this the javascript part to another place (or file) to see it work? maybe in the body?
Posts: 77
http://rubbishbusters.com
Posts: 77
Think there is a problem with function ShowMeTheMap
If it is in the script, the script doesn't appear in source
If I delete it from mapheader.tpl, the rest of the srcipt appear normally
Now I'll search where is the problem into ShowMeTheMap
Posts: 77
Ok I know the problem come from this code (if I remove it all works good without market, the map is showing correctly):
now I need to understand why it work under php4 and not on php5... execution time? memory?
may be tomorrow...
Posts: 77
Not a memory problem, I think. Tested with php5 (128Mo memory) on my localhost, the script is not executed and the map doesn't show.
Posts: 39
Hi guys,
I have exactly same problem, I tried to upgrade to 2.3 and it is the same, the global map doesn't work, but ok in stand alone mode.
Only the mini map works fine...
If you have any clue, I am interested in your bug profiling when you will have a solution.
Thanks
David
Posts: 508
I'll look into this after I finish reworking some sections and make a release. I haven't used the integration personally so I'll have to get something set up on my development/testing gallery installation.
Posts: 39
Great and thank you so much SiliconFiend! If I can be of any help regarding this issue.. let me know
I can make some test if you like. Ledom has started to profile the bug. Thanks to him too.
Keep us posted
Rgds
David
Posts: 39
Hi again
If i activate php error in config.php, i have this error when loading the map of an album in Joomla:
Fatal error: Maximum execution time of 30 seconds exceeded in /var/www/gallery2/lib/smarty/Smarty_Compiler.class.php on line 1627
Without :
Erreur : myWidth is not defined
Fichier Source : http://www.arnoult.com/index.php?option=com_g2bridge&view=gallery&Itemid=55&g2_view=map.ShowMap&g2_Mode=Normal&g2_Group=&g2_album=2008
Ligne : 872
Hope this helps...
Posts: 508
Well, it would seem that it's timing out. Do you have a lot of items with geodata? The ShowMap view is very inefficient in how it's loading the items to display; that's one aspect I'm working on fixing.
Posts: 508
I pointed to this thread by mistake. Let's continue discussion at this thread in the 3rd Party plugins forum.