Title: PHP Warning: array_map()
Last modified: March 14, 2019

---

# PHP Warning: array_map()

 *  Resolved [massimod](https://wordpress.org/support/users/massimod/)
 * (@massimod)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/php-warning-array_map-2/)
 * Hello.
 * I’m seeing this:
 * [14-Mar-2019 11:02:38 UTC] PHP Warning: array_map(): Argument #2 should be an
   array in /home/wp-content/plugins/complianz-gdpr/class-cookie.php on line 1083
 * I use WP 4.9.9 in a perfectly stable site. Is this something i should be worried
   about ?
 * Thanks

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

 *  Plugin Contributor [Rogier Lankhorst](https://wordpress.org/support/users/rogierlankhorst/)
 * (@rogierlankhorst)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/php-warning-array_map-2/#post-11312895)
 * Hi [@massimod](https://wordpress.org/support/users/massimod/),
 * Thanks for the feedback. This is the result of a completely empty localstorage
   on your site. When it’s empty, it’s not an array, causing this error. The plugin
   should check if it is an array or not.
 * I have added a check to prevent this error which will be shipped with the next
   release, but there’s nothing to worry: it’s just a warning and won’t cause any
   issues.
 * Let me know if you have any questions about this.
 *  Thread Starter [massimod](https://wordpress.org/support/users/massimod/)
 * (@massimod)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/php-warning-array_map-2/#post-11313028)
 * No problem. Apparently that happened during my tests and several cookie clear
   i did.
 * Thanks

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

The topic ‘PHP Warning: array_map()’ is closed to new replies.

 * ![](https://ps.w.org/complianz-gdpr/assets/icon-256x256.png?rev=2881064)
 * [Complianz - GDPR/CCPA Cookie Consent](https://wordpress.org/plugins/complianz-gdpr/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/complianz-gdpr/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/complianz-gdpr/)
 * [Active Topics](https://wordpress.org/support/plugin/complianz-gdpr/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/complianz-gdpr/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/complianz-gdpr/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [massimod](https://wordpress.org/support/users/massimod/)
 * Last activity: [7 years, 2 months ago](https://wordpress.org/support/topic/php-warning-array_map-2/#post-11313028)
 * Status: resolved