[Map Module]Google Map Tab not working in Edit Album

clifc

Joined: 2006-03-14
Posts: 33
Posted: Wed, 2006-03-15 03:42

Error Detail -
Error (ERROR_BAD_PARAMETER) : Smarty error: unable to read resource: "gallery:modules/map/templates/mapItemAdmin.tpl"
in modules/core/classes/GallerySmarty.class at line 108 (gallerystatus::error)
in lib/smarty/Smarty.class.php at line 1584 (gallerysmarty::trigger_error)
in lib/smarty/Smarty.class.php at line 1410 (gallerysmarty::_fetch_resource_info)
in lib/smarty/Smarty.class.php at line 1859 (gallerysmarty::_compile_resource)
in g2data/smarty/templates_c/%%2936627180/%%54^542^542DC2EF%%ItemEdit.tpl.php at line 66 (gallerysmarty::_smarty_include)
in lib/smarty/Smarty.class.php at line 1861
in g2data/smarty/templates_c/%%2936627180/%%AD^AD3^AD313681%%ItemAdmin.tpl.php at line 68 (gallerysmarty::_smarty_include)
in lib/smarty/Smarty.class.php at line 1861
in g2data/smarty/templates_c/%%2936627180/%%42^425^4250C1B1%%admin.tpl.php at line 4 (gallerysmarty::_smarty_include)
in lib/smarty/Smarty.class.php at line 1861
in modules/core/classes/GalleryTemplateAdapter.class at line 634 (gallerysmarty::_smarty_include)
in g2data/smarty/templates_c/%%2936627180/%%2C^2C0^2C06EEA0%%theme.tpl.php at line 51 (gallerytemplateadapter::theme)
in lib/smarty/Smarty.class.php at line 1251
in modules/core/classes/GallerySmarty.class at line 90 (smarty::fetch)
in modules/core/classes/GalleryTemplate.class at line 228 (gallerysmarty::fetch)
in main.php at line 318 (gallerytemplate::display)
in main.php at line 87
in main.php at line 80
System Information
Gallery version 2.0
PHP version 4.3.11 apache
Webserver Apache/1.3.34 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 PHP/4.3.11 FrontPage/5.0.2.2634a mod_ssl/2.8.25 OpenSSL/0.9.7a
Database mysql 4.0.25-standard
Toolkits ImageMagick, Gd
Operating system Linux shark.whbdns.com 2.6.14.3whb #3 SMP Sat Dec 10 18:08:41 EST 2005 i686
Browser Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; InfoPath.1)

 
clifc

Joined: 2006-03-14
Posts: 33
Posted: Wed, 2006-03-15 03:43

This error only occurs under "Edit Album", but works fine under "Edit Item"

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Wed, 2006-03-15 03:58

Try to reupload modules/map/templates/mapItemAdmin.tpl

Dave

____________________________________________________
Gallery Frames / Mods || G1 Test Gallery

 
clifc

Joined: 2006-03-14
Posts: 33
Posted: Wed, 2006-03-15 04:17

Where can I find this file? I checked my unzipped directories for the map module, but couldn't locate that file.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Wed, 2006-03-15 04:59

I guess I should have look a bit closer...
YOur error says it is looking for modules/map/templates/mapItemAdmin.tpl
but that is not a file in the map module.

How many items have you added so far?
Did you clear your template cache?

 
clifc

Joined: 2006-03-14
Posts: 33
Posted: Wed, 2006-03-15 05:08

I've added just one item. How do I clear my template cache?

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Wed, 2006-03-15 06:34

site admin > Maintenance

If that does not work then I would suggest starting over again.
Uninstall the map module and then remove the directory and start again. Perhaps a file was not uploaded or a table was not created durring the install.

 
clifc

Joined: 2006-03-14
Posts: 33
Posted: Wed, 2006-03-15 19:48

Thanks! It's working now.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Wed, 2006-03-15 20:13

Had me worried for a bit.
Glad you got it sorted.

Dave
____________________________________________________
Gallery Frames / Mods || G1 Test Gallery

 
clifc

Joined: 2006-03-14
Posts: 33
Posted: Thu, 2006-03-16 03:03

Oh no... the same old problem came back... I don't even know how it got fixed previously...

 
clifc

Joined: 2006-03-14
Posts: 33
Posted: Thu, 2006-03-16 03:29

I found out why this occurs, this only occurs when I add the customized field GPS to the album for my Map theme. So what should I do?

 
galmoid

Joined: 2005-11-07
Posts: 364
Posted: Thu, 2006-03-16 07:51

The Map Theme and The Map Module have nothing to do with each
other (you may already be aware of this). Are you actually using
The Map Theme? If not, you do not need to use the customized field
GPS. If you are then I see no reason why it would cause any complaint
about anything having to do with The Map Module. If you still have a
problem, I would gladly have a look if you PM me the necessary
information to gain admin access.

 
clifc

Joined: 2006-03-14
Posts: 33
Posted: Thu, 2006-03-16 12:54

Yes, of course. I am using the Map Theme, only for this one album, and GPS customized field was created for just this one album.

 
clifc

Joined: 2006-03-14
Posts: 33
Posted: Thu, 2006-03-16 13:04

I just found out why this was "magically fixed" yesterday:

When I go to "Edit Album", and click on "Custom Fields" tab,
if it shows the "Edit custom field settings for this album" link only, then the "Goggle Map" tab works.

If I happen to click the "Edit custom field settings for this album" link before going to the "Goggle Map" tab, then that tab does not work.

Is this a bug in either the module or the theme?

 
galmoid

Joined: 2005-11-07
Posts: 364
Posted: Thu, 2006-03-16 16:06

This is indeed odd.
The only thing -I- can come up with would be grabbing at a straw; but,
you can try it if you are inclined.

In map/module.inc find:

WHERE [GalleryCustomFieldMap::field] = \'GPS\'

and change it to:
[code]
WHERE [GalleryCustomFieldMap::field] = \'xGPS\'
[/code

and then go back through your testing procedures.

I would be surprised if this case check stiil applies to anybody; but,
one never knows.

 
clifc

Joined: 2006-03-14
Posts: 33
Posted: Thu, 2006-03-16 16:22

Related to this problem, I was wondering with the help of Google Map module, can I actually automatically populate the GPS field for my Map theme?

 
galmoid

Joined: 2005-11-07
Posts: 364
Posted: Thu, 2006-03-16 18:39

"Related..."
That's stretchin' it. :-)

No, not automatically (unless you write it ;-)).

Did you get a chance to check out the module.inc thing?

 
clifc

Joined: 2006-03-14
Posts: 33
Posted: Thu, 2006-03-16 20:16

Nope, I decided that it is not really a big issue since I know what causes it, I'll just avoid clicking that link under "Custom Fields" in "Edit Album".

 
Termitenshort
Termitenshort's picture

Joined: 2005-10-09
Posts: 1894
Posted: Wed, 2006-03-22 08:55

To export the coordinated from one to the other you can export the table called CustomFieldMap into a SQL query and then just keep all the lines that are the "GPS" customfield (delete the other)

After that you can just rename all instances of CustomFieldMap to mapMap and then re-import the modified SQL query.

You can do that in both direction of course (CustomFieldMap <-> mapMap). At this point it is only a manual process coz there should be no need for using both the module and the theme :-D

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

 
keefian

Joined: 2006-03-30
Posts: 4
Posted: Mon, 2006-05-22 14:47

Hi,

It looks like I have the same problem when I click on the "Google Map" tab under "Edit Album" (see error detail below).
I have tried to change the code in map/module.inc as suggested :
WHERE [GalleryCustomFieldMap::field] = \'xGPS\'
changed to :
WHERE [GalleryCustomFieldMap::field] = \'xGPS\'

But I still get the same errors.

It works fine under "Edit Item".

Can someone help me ?

Thanks in advance,

Fabrice

Error Detail -
Error (ERROR_BAD_PARAMETER) : Smarty error: unable to read resource: "gallery:modules/map/templates/mapItemAdmin.tpl"

* in modules\core\classes\GallerySmarty.class at line 109 (gallerycoreapi::error)
* in lib\smarty\Smarty.class.php at line 1584 (gallerysmarty::trigger_error)
* in lib\smarty\Smarty.class.php at line 1410 (gallerysmarty::_fetch_resource_info)
* in lib\smarty\Smarty.class.php at line 1859 (gallerysmarty::_compile_resource)
* in g2data\smarty\templates_c\%%3144082268\%%54^542^542DC2EF%%ItemEdit.tpl.php at line 66 (gallerysmarty::_smarty_include)
* in lib\smarty\Smarty.class.php at line 1861
* in g2data\smarty\templates_c\%%3144082268\%%AD^AD3^AD313681%%ItemAdmin.tpl.php at line 68 (gallerysmarty::_smarty_include)
* in lib\smarty\Smarty.class.php at line 1861
* in g2data\smarty\templates_c\%%3144082268\%%54^54D^54D7A448%%admin.tpl.php at line 4 (gallerysmarty::_smarty_include)
* in lib\smarty\Smarty.class.php at line 1861
* in modules\core\classes\GalleryTemplateAdapter.class at line 659 (gallerysmarty::_smarty_include)
* in g2data\smarty\templates_c\%%3144082268\%%3A^3A8^3A818B59%%theme.tpl.php at line 53 (gallerytemplateadapter::theme)
* in lib\smarty\Smarty.class.php at line 1258
* in modules\core\classes\GallerySmarty.class at line 90 (smarty::fetch)
* in modules\core\classes\GalleryTemplate.class at line 206 (gallerysmarty::fetch)
* in main.php at line 418 (gallerytemplate::fetch)
* in main.php at line 87
* in main.php at line 80

System Information
Gallery version 2.1.1
PHP version 4.4.2-pl1 apache2handler
Webserver Apache/2.2.0 (Win32) DAV/2 mod_ssl/2.2.0 OpenSSL/0.9.8a mod_autoindex_color PHP/4.4.2
Database mysql 5.0.20-community
Toolkits Gd
Operating system Windows NT PC051519 5.1 build 2600
Browser Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.3) Gecko/20060426 Firefox/1.5.0.3

 
Termitenshort
Termitenshort's picture

Joined: 2005-10-09
Posts: 1894
Posted: Mon, 2006-05-22 15:39

Did you by any chance upgraded the module from a very old version to this last one ? (I'm assuming here that you are using the module 0.5.1d)

Also there is no reference in the module for mapItemAdmin.tpl unless it was left behind some place, this file has been removed from the module a while ago.

try to delete the template cache to see if that helps, maybe some left over from before ....

If this does not help, you can PM me some access to your gallery/files and I'll take a look at it.

Thanks !
-------------------------
The Termite :-)

 
keefian

Joined: 2006-03-30
Posts: 4
Posted: Tue, 2006-05-23 08:49

Unfortunately I can't give you access to the gallery as it's not on the network. I did a fresh install of Gallery 2.1.1 and of the map module (0.5.1d) on my PC for test purposes. I also installed the map themes (and removed it after the problem occured).

I'll try your suggestion and if it does not work I'll try to re-install the whole thing.

Thanks for your help.

Fabrice

 
keefian

Joined: 2006-03-30
Posts: 4
Posted: Tue, 2006-05-23 10:23

I re-installed everything (Gallery 2.1.1 and map module 0.5.1d). Everything worked fine until (as "clifc" mentioned it) I clicked the "Override global custom field settings for this album" option under the "Custom fields" in the "Edit Album" section. Then I get the error when I try to access the "Google Map" tab under the "Edit Album" section.

If I click the "Revert to global custom field settings for this album" option then everything is back to normal.

Fabrice

 
Termitenshort
Termitenshort's picture

Joined: 2005-10-09
Posts: 1894
Posted: Tue, 2006-05-23 13:02

Hmmm, thanks for reporting this. I finaly find out where the issue was :-)

Can you try the enclosed file (replace your existing) and let me know if that works for you ?

Thanks !
-------------------------
The Termite :-)

 
Termitenshort
Termitenshort's picture

Joined: 2005-10-09
Posts: 1894
Posted: Thu, 2006-05-25 18:25

I have not gotten an answer on this. Does the enclosed file work & fix the problem decribed above or not ?

Thanks !
-------------------------
The Termite :-)

 
keefian

Joined: 2006-03-30
Posts: 4
Posted: Fri, 2006-05-26 06:39

Sorry for the late answer but I wasn't home these last 2 days.

I have replaced the mapItemEdit.inc file by yours : it fixed my problem. I can now access both the Custom Fields and the Google Map tabs under the "Edit Album" section.

Thanks for your help.

Fabrice

 
Termitenshort
Termitenshort's picture

Joined: 2005-10-09
Posts: 1894
Posted: Fri, 2006-05-26 12:52

sweet, thanks :-)
-------------------------
The Termite :-)