{"action":"closed","issue":{"url":"https://api.github.com/repos/overviewer/Minecraft-Overviewer/issues/889","labels_url":"https://api.github.com/repos/overviewer/Minecraft-Overviewer/issues/889/labels{/name}","comments_url":"https://api.github.com/repos/overviewer/Minecraft-Overviewer/issues/889/comments","events_url":"https://api.github.com/repos/overviewer/Minecraft-Overviewer/issues/889/events","html_url":"https://github.com/overviewer/Minecraft-Overviewer/issues/889","id":11366291,"number":889,"title":"Uncaught TypeError: Cannot call method 'push' of undefined worldguard.js.php:2 (anonymous function)","user":{"login":"Jakky89","id":3612385,"avatar_url":"https://avatars.githubusercontent.com/u/3612385?v=3","gravatar_id":"","url":"https://api.github.com/users/Jakky89","html_url":"https://github.com/Jakky89","followers_url":"https://api.github.com/users/Jakky89/followers","following_url":"https://api.github.com/users/Jakky89/following{/other_user}","gists_url":"https://api.github.com/users/Jakky89/gists{/gist_id}","starred_url":"https://api.github.com/users/Jakky89/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jakky89/subscriptions","organizations_url":"https://api.github.com/users/Jakky89/orgs","repos_url":"https://api.github.com/users/Jakky89/repos","events_url":"https://api.github.com/users/Jakky89/events{/privacy}","received_events_url":"https://api.github.com/users/Jakky89/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2013-02-25T16:29:53Z","updated_at":"2015-02-01T17:52:49Z","closed_at":"2015-02-01T17:52:49Z","body":"I am using a slightly modified worldguard region markers php script to generate a javascript array of all regions from database. This is the part that doesn't seem to work as described in the overviewer addons directory:\r\n```php\r\n        while ($wg_cuboid_row=mysqli_fetch_row($wg_cuboid_res)) {\r\n            $color = $color_normal;\r\n            $label = $wg_cuboid_row[0];\r\n            $minx = $wg_cuboid_row[2];\r\n            $miny = $wg_cuboid_row[3];\r\n            $minz = $wg_cuboid_row[4];\r\n            $maxx = $wg_cuboid_row[5];\r\n            $maxy = $wg_cuboid_row[6];\r\n            $maxz = $wg_cuboid_row[7];\r\n            $cube = false;\r\n            if(abs($miny-$minx)>3) {\r\n                $cube = true;\r\n            }\r\n            //center\r\n            $output .= '{\"label\": \"' . $label . '-top\", \"color\": \"' . $color . '\", \"opacity\": 0.5, \"closed\": true, \"path\": [';\r\n            $output .= '{\"x\": ' . $minx . ', \"y\": ' . $maxy . ', \"z\": ' . $minz . '},';\r\n            $output .= '{\"x\": ' . $minx . ', \"y\": ' . $maxy . ', \"z\": ' . $maxz . '},';\r\n            $output .= '{\"x\": ' . $maxx . ', \"y\": ' . $maxy . ', \"z\": ' . $maxz . '},';\r\n            $output .= '{\"x\": ' . $maxx . ', \"y\": ' . $maxy . ', \"z\": ' . $minz . '}';\r\n            $output .= ']},';\r\n            if($cube) {\r\n                //isometric cube draw\r\n                $output .= '{\"label\": \"' . $label . '-isoleft\", \"color\": \"' . $color . '\", \"opacity\": 0.5, \"closed\": true, \"path\": [';\r\n                $output .= '{\"x\": ' . $minx . ', \"y\": ' . $miny . ', \"z\": ' . $minz . '},';\r\n                $output .= '{\"x\": ' . $minx . ', \"y\": ' . $miny . ', \"z\": ' . $maxz . '},';\r\n                $output .= '{\"x\": ' . $minx . ', \"y\": ' . $maxy . ', \"z\": ' . $maxz . '},';\r\n                $output .= '{\"x\": ' . $minx . ', \"y\": ' . $maxy . ', \"z\": ' . $minz . '}';\r\n                $output .= ']},';\r\n                $output .= '{\"label\": \"' . $label . '-isoright\", \"color\": \"' . $color . '\", \"opacity\": 0.5, \"closed\": true, \"path\": [';\r\n                $output .= '{\"x\": ' . $maxx . ', \"y\": ' . $maxy . ', \"z\": ' . $maxz . '},';\r\n                $output .= '{\"x\": ' . $minx . ', \"y\": ' . $maxy . ', \"z\": ' . $maxz . '},';\r\n                $output .= '{\"x\": ' . $minx . ', \"y\": ' . $miny . ', \"z\": ' . $maxz . '},';\r\n                $output .= '{\"x\": ' . $maxx . ', \"y\": ' . $miny . ', \"z\": ' . $maxz . '}';\r\n                $output .= ']},';\r\n            }\r\n            if($debug) { print($name);print_r($region); }\r\n        }\r\n```\r\nSo what should I use instead of overviewer.collections.markerDatas.push? It is also described to work in the regions.js example file but it doesn't.\r\n"}}