Title: Error with warining and array_map()
Last modified: August 30, 2016

---

# Error with warining and array_map()

 *  Resolved [fireleaf](https://wordpress.org/support/users/fireleaf/)
 * (@fireleaf)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/error-with-warining-and-array_map/)
 * Hi there,
 * I’m receiving the following error: Warning: array_map() [function.array-map]:
   Argument #2 should be an array in /home/fireleaf/public_html/siamdreams/wp-includes/
   category-template.php on line 1158
    for all events on the listing pages and in
   the widget. Here is an example: [http://fireleaf-solutions.com/siamdreams/cooking-classes/](http://fireleaf-solutions.com/siamdreams/cooking-classes/)
   Has someone experience with this issue? It appears since today – not sure if 
   it is related to the 4.4 core update. Please help…
 * [https://wordpress.org/plugins/events-manager/](https://wordpress.org/plugins/events-manager/)

Viewing 5 replies - 1 through 5 (of 5 total)

 *  [Alex Stucchi](https://wordpress.org/support/users/alexinovela/)
 * (@alexinovela)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/error-with-warining-and-array_map/#post-6842670)
 * I had the same issue this morning after upgradind to WP version 4.4.
    The issues
   seems related to bad use of $terms variable in function get_the_terms at line
   1158 in WP core code. I had to verify if $terms was an array, if not make a new
   instance of it:
 * `$terms = is_array($terms) ? $terms : array();`
 * I am confident in a minor release including this bugfix. Meanwhile my solution
   seems to work fine.
 *  [folmolen](https://wordpress.org/support/users/folmolen/)
 * (@folmolen)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/error-with-warining-and-array_map/#post-6842850)
 * I have the same issue, also in the widget.
    When will the update be availble?
 *  [thejesslawson](https://wordpress.org/support/users/thejesslawson/)
 * (@thejesslawson)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/error-with-warining-and-array_map/#post-6842856)
 * I had the same problem. WP released a patch for 4.4:
 * [https://wordpress.org/support/topic/getting-warning-array_map-argument-2-should-be-in-array](https://wordpress.org/support/topic/getting-warning-array_map-argument-2-should-be-in-array)
 * Hope that helps!
 *  Plugin Support [angelo_nwl](https://wordpress.org/support/users/angelo_nwl/)
 * (@angelo_nwl)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/error-with-warining-and-array_map/#post-6842896)
 * I get this too, I’ve let devs know about it. should get fixed soon.
 *  [caimin_nwl](https://wordpress.org/support/users/caimin_nwl/)
 * (@caimin_nwl)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/error-with-warining-and-array_map/#post-6842951)
 * Just to let you know a new version of Events Manager has just been released that
   should fix this issue.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Error with warining and array_map()’ is closed to new replies.

 * ![](https://ps.w.org/events-manager/assets/icon-256x256.png?rev=1039078)
 * [Events Manager - Calendar, Bookings, Tickets, and more!](https://wordpress.org/plugins/events-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/events-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/events-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/events-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/events-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/events-manager/reviews/)

## Tags

 * [array_map()](https://wordpress.org/support/topic-tag/array_map/)
 * [warning](https://wordpress.org/support/topic-tag/warning/)

 * 5 replies
 * 6 participants
 * Last reply from: [caimin_nwl](https://wordpress.org/support/users/caimin_nwl/)
 * Last activity: [10 years, 3 months ago](https://wordpress.org/support/topic/error-with-warining-and-array_map/#post-6842951)
 * Status: resolved