Title: undefined function: get_users_drafts()
Last modified: August 18, 2016

---

# undefined function: get_users_drafts()

 *  Resolved [liveinalpharetta](https://wordpress.org/support/users/liveinalpharetta/)
 * (@liveinalpharetta)
 * [19 years, 9 months ago](https://wordpress.org/support/topic/undefined-function-get_users_drafts/)
 * I have a new (clean) install. Actually, i’ve installed WP about 5 or 6 times 
   now just to make sure i don’t have any corrupted files.
 * When i try to “write a post” i get this –>
 * Fatal error: Call to undefined function: get_users_drafts() in /home/sites/site78/
   web/blog/wp-admin/post.php on line 358
 * I’ve searched all the php source files and can’t find this get_users_drafts()
   function defined anywhere.
 * Where does this code reside? What am i missing?
 * Much thanks for any help or suggestions.
 * k.

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

 *  [Austin Matzko](https://wordpress.org/support/users/filosofo/)
 * (@filosofo)
 * [19 years, 9 months ago](https://wordpress.org/support/topic/undefined-function-get_users_drafts/#post-447740)
 * It’s called in wp-admin/edit.php, wp-admin/post.php and wp-admin/admin-db.php,
   and it’s defined in wp-admin/admin-db.php
 * I would be very surprised if it’s not a matter of missing or corrupted files.
   Try downloading it again from wordpress.org–perhaps your original download is
   corrupted.
 *  Thread Starter [liveinalpharetta](https://wordpress.org/support/users/liveinalpharetta/)
 * (@liveinalpharetta)
 * [19 years, 9 months ago](https://wordpress.org/support/topic/undefined-function-get_users_drafts/#post-447768)
 * thanks for the pointer…that was the weirdest darn thing. the admin-db.php had
   a 0 file size on the server, but my source file was 9703 bytes. admin-db.php 
   was the only 0 byte file on the server…all the others ftped fine. Strange. However,
   when i moved over just the admin-db.php file, everything seems to work now, so
   far.
 * thanks for the help.
 * k.
 *  [highoctane](https://wordpress.org/support/users/highoctane/)
 * (@highoctane)
 * [19 years, 9 months ago](https://wordpress.org/support/topic/undefined-function-get_users_drafts/#post-447947)
 * I have re-installed those files, re-downloaded the zipfile, re-installed the 
   files again and I still get the same error?
    The file sizes are the same. In 
   my case, I updated from version 1.5.4 to 2.0.4. I also can’t edit the existing
   posts, the editing box is empty. Any other suggestions?
 * UPDATE: I had files in other areas that shouldn’t have been there. My Bad.

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

The topic ‘undefined function: get_users_drafts()’ is closed to new replies.

## Tags

 * [fatal](https://wordpress.org/support/topic-tag/fatal/)
 * [installation](https://wordpress.org/support/topic-tag/installation/)

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 3 replies
 * 3 participants
 * Last reply from: [highoctane](https://wordpress.org/support/users/highoctane/)
 * Last activity: [19 years, 9 months ago](https://wordpress.org/support/topic/undefined-function-get_users_drafts/#post-447947)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
