{"id":6881014,"date":"2015-12-24T23:08:10","date_gmt":"2015-12-24T23:08:10","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/array_map-error\/"},"modified":"2016-08-30T23:45:57","modified_gmt":"2016-08-30T23:45:57","slug":"array_map-error","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/array_map-error\/","title":{"rendered":"array_map() Error"},"content":{"rendered":"<p>I use the latest version of Events Manager and i did regognize an error like the last on with the categories of events manager enabled.<\/p>\n<p>When i disable the categories and try to edit an old event which i have published and want so save it i got the following error:<\/p>\n<pre><code>Warning: array_map(): Argument #2 should be an array in \/....\/wp\/wp-includes\/category-template.php on line 1158\n\nWarning: Cannot modify header information - headers already sent by (output started at \/....\/wp\/wp-includes\/category-template.php:1158) in \/....\/wp\/wp-admin\/post.php on line 197\n\nWarning: Cannot modify header information - headers already sent by (output started at \/....\/wp\/wp-includes\/category-template.php:1158) in \/....\/wp\/wp-includes\/pluggable.php on line 1228<\/code><\/pre>\n<p>So this error looks similiar to the last one, where WordPress 4.4 was released. there the array_map() Error was on the Frontend. Hope you could reproduce the error and fix it.<\/p>\n<p>When i have categories enabled all works perfectly.<\/p>\n<p>https:\/\/wordpress.org\/plugins\/events-manager\/<\/p>\n","protected":false},"template":"","class_list":["post-6881014","topic","type-topic","status-publish","hentry","topic-tag-array_map","topic-tag-categories"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/6881014","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/6881014\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=6881014"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}