WordPress.org

Ready to get started?Download WordPress

Forums

Media Library Assistant
[resolved] Getting an error message when adding a new tag (7 posts)

  1. stefanodotta
    Member
    Posted 1 year ago #

    I just started evaluating your plugin a couple of days ago.
    Very well done plugin I must say.

    I intend to use it mainly to tag or categorize the media attachments, and not necessarily for the gallery functionality. I am satisfied with the new tiled gallery form the Jetpack plugin.

    My issue: whenever I add a new tag (both Tag and Attachment Tag), I get the following error message:
    Fatal error: Call to a member function get_error_message() on a non-object in /home/content/11/10232711/html/wp-content/plugins/media-library-assistant/includes/class-mla-objects.php on line 145

    Please note that the tag eventually gets added, despite the error message.

    A request: would it be possible to add a search by ID the Assistant view? I currently use the "Search by ID" plugin but it only works in the library view.

    Thank you,
    Stefano

    http://wordpress.org/extend/plugins/media-library-assistant/

  2. David Lingren
    Member
    Plugin Author

    Posted 1 year ago #

    Thanks for trying the plugin, for your kind words and for this report. You have definitely found a defect (which I will fix), but the "Fatal error" is actually a side-effect, not the real problem.

    I cannot reproduce this issue yet, so I'd like more information if you can help me.

    First, so I understand, you are using the "edit tags" (e.g., Media/Att. Tag) screen to add new tags; is that right? You can also add tags in the quick edit area and Media/Edit Media screens for a particular attachment; does that work? Is it only tags, or do categories have the same problem?

    Doe this error always happen, or only for some tag names? Can you give me a couple of the tag names you're adding?

    The "Fatal error" you report happens in the function that computes the "Attachment" column on the edit tags screen, because something else has gone wrong looking up the term object for the term you're adding.

    If you leave the edit tags screen and then come back to it, does the error still appear? In other words, does it only occur when you add the tag for the first time? Does it still happen after the tag has been assigned to one or more attachments?

    Finally, are you using other plugins that affect or work with taxonomies? You mention Search by ID, which I'll look at, but that seems like an unlikely contributor to this issue.

    I am sorry to pester you with these questions, but anything you have time to try and report would be helpful.

    Thanks again for your interest and your patience.

    By the way, when you say "add a search by ID", do you mean the attachment ID or the "parent ID", the ID of the parent to which the attachment is attached? It's a good suggestion.

  3. David Lingren
    Member
    Plugin Author

    Posted 1 year ago #

    You can ignore most of the questions in my first response. I did some more testing and have found the problem. My apologies for following up too quickly.

    I am still interested in your suggestion about "search by ID" - do you want the attachment or the attachment's parent? I would guess you want the attachment; it's easy to get to the parent, if any, once you have the attachment itself.

    Maybe I can add that feature into the bug-fix release I will do very soon.

    Thanks again for your help.

  4. David Lingren
    Member
    Plugin Author

    Posted 1 year ago #

    I have just released version 1.11, which fixes this issue, implements the "search by ID" feature and contains one other fix.

    I tested the "Search by ID" plugin you mentioned as well. If you go to the Posts screen and enter the ID of an attachment, this plugin finds it and returns it in the "Posts" screen. That works, but it's a bit confusing. Media Library Assistant restricts its search to the attachment post type. If you enter a post or page ID in the MLA searchbox you will get "no attachments found."

    Hope you enjoy the new release. Let me know if you find anything else.

  5. stefanodotta
    Member
    Posted 1 year ago #

    Wow, David, that was quick!

    Thanks for your prompt answer and the fix.
    I am traveling today and I will not be able to test, but I let you know the results on Tuesday.

    To answer your question, yes I use the search by ID to find attachments (images).
    When I create galleries I pick pictures I like without necessarily knowing to which post they're attached... That's why I want to find the images, to know when and where they were taken.

    For this gallery, figuring out the location it's easy though.
    I am sure you recognize where they were taken... It's in the country I live!
    http://www.twoswisshikers.net/portfolio/le-mont-cervin/

    By the way, can you explain me the difference between the attachment tags and tags?
    I read somewhere that WP 3.5 supports attachment taxonomy. Is this related?

    Many thanks again for your time,
    Stefano

  6. stefanodotta
    Member
    Posted 1 year ago #

    David,

    I had the opportunity to test the latest plugin update, and I must say it rocks!

    Adding new tags (both post and attachment tags) works like a charm now, and the new search by ID it's really useful.

    What shall I say more about MLA: tried and adopted!

    Many thanks again for your time,
    Stefano
    http://www.twoswisshikers.net/

  7. David Lingren
    Member
    Plugin Author

    Posted 1 year ago #

    Thanks for the good news and the encouragement.

    It would be great if you could take a moment to post your comment as a review, or give the plugin a rating that reflects your experience.

    Thanks for your support! Your site is beautiful.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic