Title: Error message &#8220;function implode&#8221;
Last modified: August 19, 2016

---

# Error message “function implode”

 *  Resolved [khairun](https://wordpress.org/support/users/khairun/)
 * (@khairun)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/error-message-function-implode/)
 * After upgrading my word press website to 2.7 the following message appear & my
   website cannot be seen
 * Warning: implode() [function.implode]: Invalid arguments passed in /home/khairun/
   public_html/dknphoto/wp-includes/query.php on line 1805
 * Warning: Cannot modify header information – headers already sent by (output started
   at /home/khairun/public_html/dknphoto/wp-includes/query.php:1805) in /home/khairun/
   public_html/dknphoto/wp-includes/pluggable.php on line 850
 * How to correct this?
 * Khairun

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

 *  [MichaelH](https://wordpress.org/support/users/michaelh/)
 * (@michaelh)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/error-message-function-implode/#post-982477)
 * [How do I solve the Headers already sent warning problem?](http://codex.wordpress.org/FAQ_Troubleshooting#How_do_I_solve_the_Headers_already_sent_warning_problem.3F)
 *  Thread Starter [khairun](https://wordpress.org/support/users/khairun/)
 * (@khairun)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/error-message-function-implode/#post-982638)
 * I have **solved** the problem.
 * I simply copy & paste the file query.php from wp ver 2.65 into the file query.
   php wp ver 2.7
 * Thank you.
 *  [kswedberg](https://wordpress.org/support/users/kswedberg/)
 * (@kswedberg)
 * [17 years, 2 months ago](https://wordpress.org/support/topic/error-message-function-implode/#post-982659)
 * I had the same problem after upgrading to 2.7.1. The implode function expects
   an array (because it “joins” the array into a string), but for some reason the
   value being passed into it is numeric. It meant have something to do with the
   contentboxes plugin for me. Anyway, it’s easy to hack a fix for this in version
   2.7’s query.php, which, though still not ideal, is better (IMO) than replacing
   the whole file with an earlier version.
 * Replace this (line 1805):
 * `$cat_string = "'" . implode("', '", $q['category__not_in']) . "'";`
 * With this:
 *     ```
       $cat_not_in = is_numeric($q['category__not_in']) ? array($q['category__not_in']) : $q['category__not_in'];
       $cat_string = "'" . implode("', '", $cat_not_in) . "'";
       ```
   
 * Hope that helps.

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

The topic ‘Error message “function implode”’ is closed to new replies.

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 3 replies
 * 3 participants
 * Last reply from: [kswedberg](https://wordpress.org/support/users/kswedberg/)
 * Last activity: [17 years, 2 months ago](https://wordpress.org/support/topic/error-message-function-implode/#post-982659)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
