WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Problem selecting images from media library while editing pages (12 posts)

  1. fshequin
    Member
    Posted 3 years ago #

    Greetings,

    I have a problem with WordPress 3.1.1. When editing a page in the admin section, and I want to insert an image into that page, I click on the Add Image button above the editing area, the popup shows and then when I click on the media library tab, no images show in the list, however it does show that there are 29 images in the media library, but does not show a list of images to select from.

    If I use the Add Media button then the images do show in the list and can be selected and inserted into a page.

    This behaviour is quite odd as it does not happen on any other wordpress installations I'm working on.

    Any help troublshooting this is much appreciated.

    Kind Regards, Fred Shequine

  2. esmi
    Forum Moderator
    Posted 3 years ago #

    Have you tried:

    - deactivating all plugins to see if this resolves the problem. If this works, re-activate the plugins one by one until you find the problematic plugin(s).

    - switching to the Twenty Ten theme to rule out any theme-specific problems.

    - resetting the plugins folder by FTP or PhpMyAdmin. Sometimes, an apparently inactive plugin can still cause problems.

  3. fshequin
    Member
    Posted 3 years ago #

    Esmi,

    Thank you for this....I found a plugin that I think is the problem....

    it's called Custom Post Type UI...also another plugin which is a variation on this one is called Custom Post Type UI Enhanced...either one if activated stops the Add an Image button's pop up from displaying the images that I know are in the Media Library. However, if I use the Add Media Button instead then all the items in the Media Library do show regardless of whether the plugin is turned on.

    This got me thinking....it used to work before...with this plugin activated...hmmm and I thought wait a minute I recently added a Custom Taxonomy using this plugin and that taxonomy is associated with two custom post types and the word I used for this taxonomy is "type" to create a unique category to associate type's of Events and Exhibitions, the site is for an arts organization....could that be the real culprit, that the word I used is conflicting with something in the Add Image pop up code?

    Any help is much appreciated!

    Best, Fred

  4. esmi
    Forum Moderator
    Posted 3 years ago #

    If I follow you correctly, it is just possible that your new taxonomy is creating an issue. The only way to know for sure is to change it to something a little less generic.

  5. fshequin
    Member
    Posted 3 years ago #

    Esmi,

    I just tested removing the taxonomy and the problem went away...so it was my very generic term "Type" that was the issue.....is it possible to add a custom taxonomy called "etype" but give it the label "Type" for rewrite purposes ?

    Best, Fred

  6. esmi
    Forum Moderator
    Posted 3 years ago #

    Oh - that's interesting! Tell you what - I'll see if I can get some other people to have a look at this.

  7. Andrew Nacin
    Lead Developer
    Posted 3 years ago #

    I've seen this before -- known issue: http://core.trac.wordpress.org/ticket/12917.

    Yes, you can have a query variable (query_var arg) and rewrite slug (rewrite arg) that are both different from the name of the taxonomy.

    So something like this for the rewrite parameter: rewrite => array( 'slug' => 'type' ).

    By default, when it is simply just rewrite => true, then the name of the taxonomy is used. That's what you're seeing.

  8. esmi
    Forum Moderator
    Posted 3 years ago #

    Thanks, Nacin :-)

  9. Andrew Nacin
    Lead Developer
    Posted 3 years ago #

    It should be noted that /type/(.+)/ is currently the post formats rewriting. So you may end up conflicting with that as well. Note though that the Trac ticket I linked to, pre-dates URL rewriting for post formats.

  10. fshequin
    Member
    Posted 3 years ago #

    Andrew,

    That ticket does accurately describe the issue I'm having...and it seems the word type is reserved in certain areas related to media "type". That must have been the conflict....I'll choose a different word if necessary.

    Thank you for getting involved and Emsi thank you for getting Andrew involved....

    I have at this point not enabled any taxonomy based templates for this site, as the use and display of this taxonomy will not be displayed anywhere except the following .... I am building some custom templates that will use this custom taxonomy to filter a list of custom post types...that is why I'm using a custom taxonomy because I'll need to populate a "Select" box with a limited set of values to filter against that each of the items in said list will be associated with....so I was asking the question only to understand if I'd get into trouble later...but right now I think I'm OK....and i've re-written the taxonomy to use the term "etype" and the media tabs work correctly now. I'm still using the word "Type" Singular and "Types" Plural for display purposes...I realize that this may get me into trouble. I'll change if I see any other conflicts.

    Again thank you both for your assistance!

    Kind Regards,

    Fred Shequine

  11. salocined
    Member
    Posted 3 years ago #

    I am having the same issues as people above.
    Media Library not showing up.

    I do have a taxonomy called Types, which I cant remove because of the site being already populated.

  12. catnip216
    Member
    Posted 2 years ago #

    Same problem as salocined. I've already got hundreds of posts using my Type taxonomy. Is it possible to make some changes in the database to fix this without having to re-add all the terms to all the posts? (Btw, This is really something that should either be fixed in WordPress, or it should be made VERY clear not to use that taxonomy name.)

Topic Closed

This topic has been closed to new replies.

About this Topic