Title: Warning: array_map() in post.php
Last modified: August 19, 2016

---

# Warning: array_map() in post.php

 *  [Niklas Högefjord](https://wordpress.org/support/users/niklashogefjord/)
 * (@niklashogefjord)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/warning-array_map-in-postphp/)
 * Hi!
    I have three different custom post types on my website. On my locale server(
   running MAMP on my computer) it works just fine. When I upload my plugin (have
   it as a plugin, not in my functions.php) I can’t edit the posts in one of the
   three custom post types. Instead I get following message:
 * Warning: array_map() [function.array-map]: Argument #2 should be an array in /
   link-to-my-website/wp-includes/post.php on line 1426
 * Warning: Cannot modify header information – headers already sent by (output started
   at /link-to-my-website/wp-includes/post.php:1426
 * I’m running version 3.0.1. I have tested to upload the whole WordPress installation
   again if there where some corrupt files. I have stripped down my code as far 
   I can get but I still get the same message.
 * Just wondering – have any of you here in the forums experienced the same error
   message?

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

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/warning-array_map-in-postphp/#post-1679875)
 * [Solving “headers already sent” warnings](http://codex.wordpress.org/FAQ_Troubleshooting#How_do_I_solve_the_Headers_already_sent_warning_problem.3F)
 *  [slamstar](https://wordpress.org/support/users/slamstar/)
 * (@slamstar)
 * [15 years ago](https://wordpress.org/support/topic/warning-array_map-in-postphp/#post-1680093)
 * Niklas, did you solve your problem – I’ve got the same issue in 1426 line with
   3.1.1 – 3.1.4. I’m using more fields plugin
 *  Thread Starter [Niklas Högefjord](https://wordpress.org/support/users/niklashogefjord/)
 * (@niklashogefjord)
 * [15 years ago](https://wordpress.org/support/topic/warning-array_map-in-postphp/#post-1680094)
 * Hi!
    I’m truly sorry, but I don’t remember how I solved my issue. I was diggi’n
   deep in my code and forgot to post my solution here at the forums.
 * But if you want you can email me your code and I can take a quick look at it.
   Use niklas[at]krokedil.se.

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

The topic ‘Warning: array_map() in post.php’ is closed to new replies.

## Tags

 * [plugin-development](https://wordpress.org/support/topic-tag/plugin-development/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 3 participants
 * Last reply from: [Niklas Högefjord](https://wordpress.org/support/users/niklashogefjord/)
 * Last activity: [15 years ago](https://wordpress.org/support/topic/warning-array_map-in-postphp/#post-1680094)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
