[Map Module] Multisite not working
hillcj
Joined: 2006-02-06
Posts: 4 |
![]() |
I have the map module working great for my main site but when I try to use it on an multisite install it doesn't seem to work. In the admin panel I get Warning: loadtemplate(modules/map/includes/MapAdminViewInit.inc): failed to open stream: No such file or directory in /var/www/site/gallery/modules/map/MapSiteAdmin.inc on line 242 Warning: loadtemplate(): Failed opening 'modules/map/includes/MapAdminViewInit.inc' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/site/gallery/modules/map/MapSiteAdmin.inc on line 242 Warning: loadtemplate(modules/map/includes/MapAdminEdits.inc): failed to open stream: No such file or directory in /var/www/site/gallery/modules/map/MapSiteAdmin.inc on line 268 Warning: loadtemplate(): Failed opening 'modules/map/includes/MapAdminEdits.inc' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/site/gallery/modules/map/MapSiteAdmin.inc on line 268 Warning: array_key_exists(): The second argument should be either an array or an object in /var/www/site/gallery/modules/map/MapSiteAdmin.inc on line 271 I modified lines 242 and 268 to read Not sure if that is right, but with my limited knowledge of the gallery api that seem to work. Unfortunately when I try to get coordinates via the map, all I get is a grey map. I have setup the key in both the main site and the multisite. No go. Using map-module 0.4.9c /w gallery 2.0.2 Thanks |
|
Termitenshort
![]()
Joined: 2005-10-09
Posts: 1894 |
![]() |
There is already a bug report for that Please check the sourceforge page Otherwise your fix is -correct- but needs to be done everywhere in the module for the multisite to work right. It will be released in the next revision See you |
|
mindless
![]()
Joined: 2004-01-04
Posts: 8601 |
![]() |
we generally use GalleryCoreApi::requireOnce rather than include/require/require_once.... |
|
Termitenshort
![]()
Joined: 2005-10-09
Posts: 1894 |
![]() |
Well when I had requireOnce from the API it wouldn't work at all. As if it loads the fie and then forget about the vriable setup there. I'll take a closer look at it ;-) |
|