Technology Tools for Ministry

Community

Web-Empowered Church User Community
All Categories > Ministry Tools > Map Extension > TS-setup of a map with v2.21
Total Posts: 2 - Pages (1): [1]
Author: Martin Keller
Posted: Mar 16 2009 - 05:51 PM
Subject: TS-setup of a map with v2.21
Dear WEC,
I tried to setup a map completly on TS and ran into two serious warnings:

Warning: Invalid argument supplied for foreach() in /***/htdocs/typo3conf/ext/wec_map/class.tx_wecmap_map.php on line 223

Warning: Invalid argument supplied for foreach() in /***/htdocs/typo3conf/ext/wec_map/map_service/google/class.tx_wecmap_map_google.php on line 265

Looking at the code I saw it coming from $this->groups being empty. Nevertheless, a message like this should not appear under PHP5 because we have such behavior since PHP4 and wec_map is brandnew ;-)

So the main question is: what is wrong with the TS creating this wec_map, or why is $this->groups empty?

I tried this setup:
plugin.tx_wecmap_pi2 {
pid = 44
userGroups = {$filter}
controls.showMapType = 1
centerLong = 8.356135
centerLat = 49.013451
zoomLevel = 15
height = 480
}

page.10.marks.CONTENT=COA
page.10.marks.CONTENT {
10 < plugin.tx_wecmap_pi2
20 < styles.content.get
}


...where $filter is defined in constants as
filter=99,136,139,155,158,162,205,207,217,218,224,244,279,280,303,323,324,332,337,426

These are all valid entries as fe_groups.uid

Typo3 4.2.6, "include static from template" for api and feusermap is there, no JS-Errors, empty map showing with correct center and zoom. Object browser looks fine withe the values being there where they should (I think)

Some background: I try to create a map for many categories by creating a pagetree and an HMENU for navigation. The top page contains the setup, all subpages define the scope in {$filter}. Good approach?
Author: Martin Keller
Posted: Mar 17 2009 - 05:52 AM
Subject: re: TS-setup of a map with v2.21
If I use "filter=99" (the short version), the warnings disappear and some POI's show up. At least sometimes
Total Posts: 2 - Pages (1): [1]
You must login to post a message to this conference.