Title: Error: /wp-includes/post.php on line 1762
Last modified: August 19, 2016

---

# Error: /wp-includes/post.php on line 1762

 *  [TobiasHeuken](https://wordpress.org/support/users/tobiasheuken/)
 * (@tobiasheuken)
 * [16 years, 11 months ago](https://wordpress.org/support/topic/error-wp-includespostphp-on-line-1762/)
 * Hi there
 * WP-Version: 2.8.1
    PHP 5.2.9 mySQL: 5.0.8.3 Hoster: all-inkl.com
 * After my update to WP 2.8.1 (german version) I get the following error when editing
   PAGES above the FCK-Editor box:
 * Warning: implode() [function.implode]: Invalid arguments passed in /www/htdocs/
   my-webseite.xyz/wp-includes/post.php on line 1762
 * When I want to save this page, I’ll get this error:
 * Warning: implode() [function.implode]: Invalid arguments passed in /www/htdocs/
   my-webseite.xyz/wp-includes/post.php on line 1762
 * Warning: Cannot modify header information – headers already sent by (output started
   at /www/htdocs/my-webseite.xyz/wp-includes/post.php:1762) in /www/htdocs/my-webseite.
   xyz/wp-includes/pluggable.php on line 865
 * What I tried to solve the problem:
    – Deacticate EVERY/ALL plugins -> the error
   is still there
 * – changing to the lastest default theme
    -> the error is still there
 * – delete every cache, deaktivate every cache-plugins
    -> the error is still there
 * What can I do???
 * Greatings, Tobias

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

 *  Thread Starter [TobiasHeuken](https://wordpress.org/support/users/tobiasheuken/)
 * (@tobiasheuken)
 * [16 years, 11 months ago](https://wordpress.org/support/topic/error-wp-includespostphp-on-line-1762/#post-1140403)
 * PS: see also answer from marX from WPD-Team @
    [http://forum.wordpress-deutschland.org/installation/55007-fehlermeldung-wp-includes-post-php-line-1762-a.html](http://forum.wordpress-deutschland.org/installation/55007-fehlermeldung-wp-includes-post-php-line-1762-a.html)
 *  [zimm0r](https://wordpress.org/support/users/zimm0r/)
 * (@zimm0r)
 * [16 years, 11 months ago](https://wordpress.org/support/topic/error-wp-includespostphp-on-line-1762/#post-1140520)
 * Seems like the problem is in $wpdb->escape(), which in 2.8.1 does nothing but
   addslashes() to the string passed to it.
 * On line 1762, though, $hierarchical_post_types is an array… so it’s trying to
   addslashes() on an array, which is crapping out, which causes the implode to 
   crap out, which results in the error.
 *  Thread Starter [TobiasHeuken](https://wordpress.org/support/users/tobiasheuken/)
 * (@tobiasheuken)
 * [16 years, 11 months ago](https://wordpress.org/support/topic/error-wp-includespostphp-on-line-1762/#post-1140571)
 * hmmmmm ?????
 * By the way – WHAT can I do solve this problem?
 * Sorry, I installed over 10 blogs which are basing on static sides – and I want
   to change some sides …
 * Greatings, Tobias
 *  [zimm0r](https://wordpress.org/support/users/zimm0r/)
 * (@zimm0r)
 * [16 years, 11 months ago](https://wordpress.org/support/topic/error-wp-includespostphp-on-line-1762/#post-1140604)
 * A temporary fix would be to open /wp-includes/post.php, navigate to line 1762,
   and remove the $wpdb->escape() function from the statement.
 * change this:
 * `$check_sql = "SELECT post_name FROM $wpdb->posts WHERE post_name = %s AND post_type
   IN ( '" . implode("', '", $wpdb->escape($hierarchical_post_types)) . "' ) AND
   ID != %d AND post_parent = %d LIMIT 1";`
 * to this:
 *     ```
       $hierarchical_post_types_string = implode("', '", $hierarchical_post_types);
       $hierarchical_post_types_string = addslashes($hierarchical_post_types_string);
       $check_sql = "SELECT post_name FROM $wpdb->posts WHERE post_name = %s AND post_type IN ( '" . $hierarchical_post_types_string . "' ) AND ID != %d AND post_parent = %d LIMIT 1";
       ```
   
 * I found your post looking for the same issue but couldn’t find anything so I 
   made the above changes to fix it.
 *  Thread Starter [TobiasHeuken](https://wordpress.org/support/users/tobiasheuken/)
 * (@tobiasheuken)
 * [16 years, 11 months ago](https://wordpress.org/support/topic/error-wp-includespostphp-on-line-1762/#post-1140645)
 * Hey buddy …
 * THANKS … yes, this works!
 * Ok … I hope the WP-programmers still read this article and they will fix this
   problem with WP 2.8.2
 * Greatings, Tobias
 *  [frankyatesgmailcom](https://wordpress.org/support/users/frankyatesgmailcom/)
 * (@frankyatesgmailcom)
 * [16 years, 9 months ago](https://wordpress.org/support/topic/error-wp-includespostphp-on-line-1762/#post-1140786)
 * Thanks Zimmor,
    your trick worked perfectly. I also, when i moved to WP2.8.4 
   could not edit Pages anymore because of the error
 * “Warning: implode() [function.implode]: Bad arguments. in /mnt/104/sdb/8/1/pfcs/
   wp-includes/post.php on line 1762”
 * I edited the line in POST.PHP and now it works fine.
 * I am on a website hosted by the provider free.fr
 *  [brettbum](https://wordpress.org/support/users/brettbum/)
 * (@brettbum)
 * [16 years, 9 months ago](https://wordpress.org/support/topic/error-wp-includespostphp-on-line-1762/#post-1140802)
 * getting this error in 2.8.4 with or without plugins activated. 🙁 can’t find 
   a fix anywhere 🙁
 *  [ravetildon](https://wordpress.org/support/users/ravetildon/)
 * (@ravetildon)
 * [16 years, 6 months ago](https://wordpress.org/support/topic/error-wp-includespostphp-on-line-1762/#post-1140834)
 * I am also getting this error.
 * I believe it happened when a person tried to publish a post, but the post didn’t
   publish due to heavy server load.
 * They then hit reload to this page multiple times:
 * [http://www.example.com/wp-admin/post.php](http://www.example.com/wp-admin/post.php)
 * After that the blog is unable to post new articles or pages.
 * Also all the “pages” (not “posts”) had the post slug (the one they tried to publish
   when server was under load) inserted into every page slug.
 * Any help to you? Any ideas?

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

The topic ‘Error: /wp-includes/post.php on line 1762’ is closed to new replies.

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 8 replies
 * 5 participants
 * Last reply from: [ravetildon](https://wordpress.org/support/users/ravetildon/)
 * Last activity: [16 years, 6 months ago](https://wordpress.org/support/topic/error-wp-includespostphp-on-line-1762/#post-1140834)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
