• Resolved mrengy

    (@mrengy)


    I’m using [siteurl]/wp-admin/media-new.php to upload items to the media library and also set some terms on them, using custom taxonomies I registered in functions.php using register_taxonomy().

    I made sure to set all the fields in the form before uploading files. Under this custom taxonomy called “Year”, I clicked “add new term” and entered the term of “1973”. It showed up with its checkbox checked under the list in “Year”, indicating that it should be added to what I upload. screenshot

    The upload completed, and when I searched for and found the item in my media library, it did not have a value set for “year”. screenshot

    However, “1973” was a new term available in the list of “year” terms. It was unchecked on the media item. screenshot

    I just realized this was happening after I uploaded 27 batches of media items, so now I’m going to have to go back and fix them. ?? I have 130 or so more to do, so if there’s a workaround or a resolution, it would save me a lot of time. Thank you!

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author David Lingren

    (@dglingren)

    Thank you for your report and especially for the screen shots; very helpful. You have uncovered an apparent MLA defect, and I regret the amount of trouble it has caused you. I hope you can use the Media/Assistant Bulk Edit function to make fixing the images you’ve uploaded a bit easier.

    I ran some tests on my system and I believe I have reproduced your problem. Your “Year” taxonomy is flat, i.e., not hierarchical; is that right? You have set the “Checklist” option for this taxonomy in the Taxonomy Support section of the Settings/Media Library Assistant General tab; is that right?

    In my tests the “Add New Term” feature does not work for flat taxonomies with the checklist format. I will correct the problem as quickly as I can. In the interim there are two workarounds you can use to mitigate the problem:

    1. Uncheck the “Checklist” option and simply type your new term into the text area.
    2. Use the Media/Edit Taxonomy screen to add the term before using it in the upload Bulk Edit area.

    In my tests both of those workarounds were effective.

    Thank you for alerting me to this MLA defect and for your interest in the plugin.

    Plugin Author David Lingren

    (@dglingren)

    I have uploaded a new MLA Development Version dated 20230222 that corrects the problem you identified. You can find step-by-step instructions for using the Development Version in this earlier topic:

    PHP Warning on media upload with Polylang

    Once the Development Version is installed you can retest the handling of adding and assigning new terms for flat taxonomies using the checklist-style interface.

    The fix will be part of my next MLA version, but in the interim it would be great if you could install the Development Version and let me know if it works for you. Thanks again for alerting me to this MLA defect.

    Thread Starter mrengy

    (@mrengy)

    Thank you very much for the prompt response with the diagnosis, workarounds, and for a dev version to resolve it!

    Correcting the images with bulk edit turned out to be a lot quicker than I had feared.

    I’ve been focusing on a couple of other critical tasks ahead of an upcoming site launch and will check my taxonomy configuration and test the development version to see if it resolves the issue when I get back into bulk uploading media like I was before.

    • This reply was modified 2 years ago by mrengy.
    Thread Starter mrengy

    (@mrengy)

    To answer your questions:

    Correct, my year taxonomy is not hierarchical.

    Correct, I had the “checklist” option checked for this taxonomy in settings.

    The 20230222 development version resolved my issue. Thanks again!

    Plugin Author David Lingren

    (@dglingren)

    @mrengy – Further testing revealed that the “fix” I added to the 20230222 Development Version had some side effects that damaged the handling of flat taxonomy checklists on the Media/Edit Media screen and in the Media Manager Modal (popup) Window.

    I have uploaded a new Development Version dated 20230302. You should replace the previous version with this new version. Thanks for your understanding; I regret the inconvenience.

    Thread Starter mrengy

    (@mrengy)

    Thank you for the heads-up and the updated dev version. I’ve updated it on my site. Earlier I did see that when I edited a single media item and added a new term that way, on the front end where I displayed the term, it showed an ID rather than the name. Thought maybe that bug had been there all along, but perhaps that’s what you’re talking about here that was introduced with the 20230222 version.

    Plugin Author David Lingren

    (@dglingren)

    I have released MLA version 3.07, which contains the fixes required for this topic.

    I am leaving this topic resolved, but please update it if you have any problems or further questions regarding MLA’s support for adding terms to flat taxonomies that use the checklist format. Thanks for alerting me to this MLA defect.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Add new term when uploading – term not set on the media item’ is closed to new replies.