Title: Fatal error &#8211; sanitize in post.php
Last modified: August 30, 2016

---

# Fatal error – sanitize in post.php

 *  Resolved [separator](https://wordpress.org/support/users/separator/)
 * (@separator)
 * [11 years ago](https://wordpress.org/support/topic/fatal-error-sanitize-in-postphp/)
 * Hi people,
    I just deleted my wordpress site from server and the database as 
   well. Now i wanted to make a fresh install of wordpress and suddenly i got this
   error:
 * Fatal error: Call to undefined function sanitize_key() in /home/my server/public_html/
   mysite.com/wp-includes/post.php on line 1342
 * Anyone that can help?

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

 *  Moderator [t-p](https://wordpress.org/support/users/t-p/)
 * (@t-p)
 * [11 years ago](https://wordpress.org/support/topic/fatal-error-sanitize-in-postphp/#post-6210378)
 * – then try **MANUAL** updating. Download a fresh copy of the WordPress .zip file
   to your computer, unzip it, and use that to copy up all files and folders EXCEPT
   the wp-config.php file and the /wp-content/ directory. You may need to delete
   the old copies of files & folder on your server before uploading the new ones.
   Read the [Manual Update ](http://codex.wordpress.org/Updating_WordPress#Manual_Update)
   directions first.
    – running the upgrade manually via wp-admin/upgrade.php
 *  Thread Starter [separator](https://wordpress.org/support/users/separator/)
 * (@separator)
 * [11 years ago](https://wordpress.org/support/topic/fatal-error-sanitize-in-postphp/#post-6210408)
 * thnx for the reply Tara,
    im not sure if u understand me. im doin a completely
   new install of everything. i deleted everything (WP, the database) and did a 
   fresh install of WP (4.2.2) via FTP (normally as i did before). i tried to access
   my site and to make the wp install and write the DB username and pass (as usual)
   this error appeared! i cant even start the wp install in my databse.
 *  Thread Starter [separator](https://wordpress.org/support/users/separator/)
 * (@separator)
 * [11 years ago](https://wordpress.org/support/topic/fatal-error-sanitize-in-postphp/#post-6210412)
 * …and now i cant even delete the “wp-admin” folder. i get this error: Error -126:
   remote rmdir failed
 *  Moderator [t-p](https://wordpress.org/support/users/t-p/)
 * (@t-p)
 * [11 years ago](https://wordpress.org/support/topic/fatal-error-sanitize-in-postphp/#post-6210427)
 * Who is your hosting provider?
 *  Thread Starter [separator](https://wordpress.org/support/users/separator/)
 * (@separator)
 * [11 years ago](https://wordpress.org/support/topic/fatal-error-sanitize-in-postphp/#post-6210441)
 * godaddy
 *  Thread Starter [separator](https://wordpress.org/support/users/separator/)
 * (@separator)
 * [11 years ago](https://wordpress.org/support/topic/fatal-error-sanitize-in-postphp/#post-6210446)
 * its ok Tara,
 * after i made the Manual Update it worked. i mean i managed to install wordpress.
   i dont know how its goin to work in the future…
 * thnx for u time 🙂
 *  Moderator [t-p](https://wordpress.org/support/users/t-p/)
 * (@t-p)
 * [11 years ago](https://wordpress.org/support/topic/fatal-error-sanitize-in-postphp/#post-6210473)
 * you are welcome 🙂

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

The topic ‘Fatal error – sanitize in post.php’ is closed to new replies.

## Tags

 * [php](https://wordpress.org/support/topic-tag/php/)
 * [Wordpress 4.2.2](https://wordpress.org/support/topic-tag/wordpress-4-2-2/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 7 replies
 * 2 participants
 * Last reply from: [t-p](https://wordpress.org/support/users/t-p/)
 * Last activity: [11 years ago](https://wordpress.org/support/topic/fatal-error-sanitize-in-postphp/#post-6210473)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
