Title: When editing comments in 2.8.1 I get Warning: array_merge() [function.array-merg
Last modified: August 19, 2016

---

# When editing comments in 2.8.1 I get Warning: array_merge() [function.array-merg

 *  [sushant](https://wordpress.org/support/users/noteeboyz/)
 * (@noteeboyz)
 * [16 years, 11 months ago](https://wordpress.org/support/topic/when-editing-comments-in-281-i-get-warning-array_merge-functionarray-merg/)
 * I recently upgraded to WP 2.8.1. Now while editing the comment, when I click 
   Update comment; I get this error:
 * Warning: array_merge() [function.array-merge]: Argument #1 is not an array in/
   home/xxxxx/public_html/wp-includes/comment.php on line 1097
 * Warning: Cannot modify header information – headers already sent by (output started
   at /home/xxxxx/public_html/wp-includes/comment.php:1097) in /home/xxxxx/public_html/
   wp-includes/pluggable.php on line 865
 * I checked those files on that line mentioned in the error and here is what was
   there:
 * **LINE 1097 IN COMMENT.PHP FILE:**
    `$commentarr = array_merge($comment, $commentarr);`
 * **LINE 865 in PLUGGABLE.PHP FILE**
    `header("Location: $location");`
 * Please help me. I checked the codex information but didn’t find it working.

Viewing 1 replies (of 1 total)

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [16 years, 11 months ago](https://wordpress.org/support/topic/when-editing-comments-in-281-i-get-warning-array_merge-functionarray-merg/#post-1139048)
 * [http://codex.wordpress.org/Answers-Trouble_Shooting#Headers_already_sent](http://codex.wordpress.org/Answers-Trouble_Shooting#Headers_already_sent)
   
   [http://codex.wordpress.org/FAQ_Troubleshooting#How_do_I_solve_the_Headers_already_sent_warning_problem.3F](http://codex.wordpress.org/FAQ_Troubleshooting#How_do_I_solve_the_Headers_already_sent_warning_problem.3F)

Viewing 1 replies (of 1 total)

The topic ‘When editing comments in 2.8.1 I get Warning: array_merge() [function.
array-merg’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [esmi](https://wordpress.org/support/users/esmi/)
 * Last activity: [16 years, 11 months ago](https://wordpress.org/support/topic/when-editing-comments-in-281-i-get-warning-array_merge-functionarray-merg/#post-1139048)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
