• Resolved liveinalpharetta

    (@liveinalpharetta)


    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)
  • 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 www.remarpro.com–perhaps your original download is corrupted.

    Thread Starter liveinalpharetta

    (@liveinalpharetta)

    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.

    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.