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:
...where $filter is defined in constants as
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?
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
}
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?


