Error Argument #2 should be an array

Home » Knowledge Base » Error Argument #2 should be an array
Knowledge Base No Comments

If you get these errors when editing a property

Warning: array_map(): Argument #2 should be an array in wp-includes/post.php on line 1949

Warning: Cannot modify header information – headers already sent by (output started at /public_wp-includes/post.php:1949) in wp-admin/post.php on line 197

Check Features and Amenities and make sure you do not have 1 set as single feature.

PHP reads 1 as an array and returns this error as it cannot find 1 as array This cannot be controlled from theme code. Make sure you use a different feature than 1 (can be A1 and so on).