[Google map/matrix] Markers do not display in FF and IE

wavelet

Joined: 2006-04-02
Posts: 20
Posted: Mon, 2006-04-03 00:22

I use Gallery 2.1 and Google map 0.5.0e. The problem might be related to Fedora 5 too. It started happening after I upgraded to Fedora 5. I do change memory usage to 16M in php.ini.

http://shine.homelinux.com/~gduan/travel

If you use IE, as you can see, most markers won't show up. Following script error is given by IE

Line: 302
Char: 1
Error: Object expected
Code: 0
URL: http://shine.homelinux.com/~gduan/travel/main.php?g2_view=map.ShowMap

Using FF, more markers show up, but there are still quite some are missing. I can even see the shadow of markers, but not the markers themselves.


Gallery version = 2.1 core 1.1.0
PHP version = 5.1.2 apache2handler
Webserver = Apache/2.2.0 (Fedora)
Database = mysql 5.0.18, lock.system=flock
Toolkits = ArchiveUpload, Exif
Acceleration = full/900, full/900
Operating system = Linux ipstown 2.6.15-1.2054_FC5 #1 Tue Mar 14 15:48:33 EST 2006 i686
Default theme = matrix
Locale = en_US
Browser = Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 2.0.50727)

 
Termitenshort
Termitenshort's picture

Joined: 2005-10-09
Posts: 1894
Posted: Mon, 2006-04-03 00:34

I saw that you were using routes and something is preventing the routes marker to be created:

- Permissions on the images folder ? (you need the webserver to be able to write to this folder and subfolder)
- Imagemagick not installed or not functionning ?

Let me know !
-------------------------
The Termite :-)

 
wavelet

Joined: 2006-04-02
Posts: 20
Posted: Mon, 2006-04-03 02:03

I activated ImageMagick module and did "chmod -R 777 images", but the problem is not solved.

Using FF, it seems only markers on routes are missed; but with IE, most of markers are not there.

I can exactly remember the sequence. First, I upgraded to Fedora 5. I think at that time, I found there were some problems, then I upgraded to Gallery 2.1, then upgraded google map module. I untar-ed the clean Gallery 2.1 and copy old config.php over.

 
Termitenshort
Termitenshort's picture

Joined: 2005-10-09
Posts: 1894
Posted: Mon, 2006-04-03 03:54

The routes folder in 'images" still does not get created, there must be some permission problem of some sort. did you try giving ownership on the image folder to the webserver user ?

Let me know
-------------------------
The Termite :-)

 
Termitenshort
Termitenshort's picture

Joined: 2005-10-09
Posts: 1894
Posted: Mon, 2006-04-03 04:05

For your problem in IE, you are experiencing a bug that I'm trying to fix at this point :-) (see the posted bug here)

That's why I was focusing on fixing the problem in FF ;-)

-------------------------
The Termite :-)

 
wavelet

Joined: 2006-04-02
Posts: 20
Posted: Mon, 2006-04-03 07:43

I change images directory's owner and group to apache, it doesn't solve the problem.

Can you tell me which line of code tries to create directory under image?

 
Termitenshort
Termitenshort's picture

Joined: 2005-10-09
Posts: 1894
Posted: Mon, 2006-04-03 11:50

line 1289 in ShowMap.inc:

GalleryUtilities::guaranteeDirExists($absolutegallerydir."modules/map/images/routes/".$routeinfo[1]);

Maybe try to do an echo on the $absolutegallerydir to check it's putting it in the right place :-)
-------------------------
The Termite :-)

 
wavelet

Joined: 2006-04-02
Posts: 20
Posted: Mon, 2006-04-03 20:08

Ok. I were changing mode or owner of 'images' directory under gallery.

After I changed owner of 'modules/map/images' to apache, FF is working fine. IE still has the same problem, but as you said, it's different issue.

Thanks.

 
wavelet

Joined: 2006-04-02
Posts: 20
Posted: Tue, 2006-04-04 00:49

I saw the IE6 related bug is closed. Is there any fix? I am using API 1.0, replacing MapHeader.tpl doesn't work.

 
Termitenshort
Termitenshort's picture

Joined: 2005-10-09
Posts: 1894
Posted: Tue, 2006-04-04 02:06

The bug was related to the infowindow template used, if you switch to default does it work better ?
-------------------------
The Termite :-)

 
Termitenshort
Termitenshort's picture

Joined: 2005-10-09
Posts: 1894
Posted: Tue, 2006-04-04 02:12

If it doesn't work, try to disable the thumbnail bar and see if that works .

Let me know :)
-------------------------
The Termite :-)

 
wavelet

Joined: 2006-04-02
Posts: 20
Posted: Tue, 2006-04-04 08:12

change to default infowindow template fix the problem in IE. Thumbnail bar doesn't matter in my case.

Thanks for the help.

 
Termitenshort
Termitenshort's picture

Joined: 2005-10-09
Posts: 1894
Posted: Tue, 2006-04-04 10:58

Out of curiosity which template were you using before ? I think we have a problem with some of the infowindow templates and I'd like to know what it is before I implement an infowindow creation tool :-)

thx !
-------------------------
The Termite :-)

 
wavelet

Joined: 2006-04-02
Posts: 20
Posted: Wed, 2006-04-05 03:24

I was using 'table'.

Now there is another issue after I add some markers and route. The page only shows "noo 1" when I try to load Google map page. Comment out "die("noo 1");" solve the issue, but I think it should indicate some problem you already knew.

 
Termitenshort
Termitenshort's picture

Joined: 2005-10-09
Posts: 1894
Posted: Wed, 2006-04-05 12:41

It's been in fixed in 0.4.10e and wil also be fixed in the next release, the fix is posted in sourceforge (search in the closed bugs)

See you :-)
-------------------------
The Termite :-)