WordPress.org

Ready to get started?Download WordPress

Forums

Uploaded images get post_parent of -1175525942 (3 posts)

  1. elementalist
    Member
    Posted 7 years ago #

    I am uploading images into Pages... and for some of the pages, it seems that the first image gets the correct post_parent id... but the rest get an id of -1175525942.
    So I have to go into phpmyadmin and correct them... quite time consuming as there are a lot of them!

    I did a search so excuse me if this is a known bug.

  2. waydomatic
    Member
    Posted 7 years ago #

    Same deal here. I remember a while back that this occurred when posts were placed in and out of draft a few times.

    This isn't the case for me.

    The code behind my site has not changed since the site went live, and now all of a sudden I'm getting these incorrect post_parent numbers all of the time.

    Would really love some assistance.

  3. waydomatic
    Member
    Posted 7 years ago #

    So I did a bit of searching and found this:

    http://trac.wordpress.org/ticket/3757

    Seems it's something to do with the new Auto-Save feature.

    Anyway, if you make changes to your admin-functions.php as demonstrated here: http://trac.wordpress.org/attachment/ticket/3757/3757b.diff, you should be good.

    I tested it - worked perfectly.

Topic Closed

This topic has been closed to new replies.

About this Topic