WordPress.org

Ready to get started?Download WordPress

Forums

Media Uploader problem with Custom Post Type (7 posts)

  1. jrstaatsiii
    Member
    Posted 2 years ago #

    Hey All,

    We updated to 3.3.1 from 3.2.1 last week, and everything seems to be working fine. I was updating a CPT we created, adding a new sponsor item, and I noticed that after adding a featured item, clicking save in the media uploader, and then clicking the "X" to return to the editor screen, the grey modal background remained...rendering the rest of the page useless. I linked to screen cast of this. To debug, I checked to see if the problem existed on posts/pages. With These Post Types there was no issue, which makes me think my code for the CPT is causing the problem. I've pasted it below...maybe someone can spot something.

    One thing to note, is that I have my CPT's in a core functionality plugin to keep it independent from the theme. I don't think this matters, but figured I would let you know.

    Screen cast: http://vimeo.com/35155467

    [Code moderated as per the Forum Rules. Please use the pastebin]

  2. jrstaatsiii
    Member
    Posted 2 years ago #

    link to pastebin: http://pastebin.com/hccUanJe

  3. jrstaatsiii
    Member
    Posted 2 years ago #

    I found the problem. it was a conflict with the plugin "file gallery" -- what's interesting is this problem is only apparent with custom post types, and potentially only "this CPT" I have running. I'll alert the plugin author of the issue.

  4. Aesqe
    Member
    Posted 2 years ago #

    @jrstaatsiii: thanks for letting me know about this, I haven't thought of checking for situations in which the editor is not present :/

    The bug is simple to fix, I'll release an updated version of the plugin tomorrow.

  5. jrstaatsiii
    Member
    Posted 2 years ago #

    oh duh...i didn't even think about the sans editor setup...thanks!

    Rich

  6. michapixel
    Member
    Posted 2 years ago #

    What exactly is the fix?

  7. jrstaatsiii
    Member
    Posted 2 years ago #

    there was an update to the plugin (File Gallery) which fixes the problem.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.