Support » Plugin: Media Library Assistant » Updating alt text for images already in post [Insert Fixit Tools]

  • Resolved Jamie Delaney


    Hi there,

    I have been using the MLA plugin, which is great. Now, I am trying to use Insert Fixit to update my alt tags from the Media library to an existing post that has images that I added before the alt tags were updated.

    I am using Insert Fixit Tools v1.16.

    This is the error I get: ALT from Item matched 1 posts/pages to 0 attachments and made 0 update(s) in 0 posts/pages. There were 0 error(s).

    This is the example code in one of the images from the post:
    <img class="alignnone size-full wp-image-71" src="" alt="" width="3128" height="2346" />

    Thanks you!

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

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


    Thanks for your report, for the source of your image insert and the link to your sample page. The insert processing can be sensitive to variations in the insert text and the overall context of the site. The best way to help you would be to gather more information so I can investigate further. To do that, I’d like to ask you to activate some debug logging and send me the results.

    To activate MLA’s debug logging:

    1. Navigate to the Settings/Media Library Assistant Debug tab.
    2. Scroll down to the “MLA Reporting” text box and enter “0x1”. This will turn on MLA debug logging for the Insert Fixit processing.
    3. Click the Save Changes button to record your new setting.
    4. Optionally, scroll to the bottom of the screen and click “Reset” to clear the error log. You may not want to do this depending on how you manage your error log.

    Once that’s done you can run the test. The debug log will be very detailed, so restricting the test as best you can will be very helpful. You can use the “First Post/Page ID” to restrict processing to just the “Sete Cidades: A Story of Green and Blue” page and try setting the “First Attachment ID” to “66” and the “Last Attachment ID” to “75”. Then click the “ALT from item” button, which I assume is the tool you are trying to use..

    When you’ve finished testing, go back to the Debug screen and:

    1. Enter “0” in the MLA Reporting text box to turn debug logic off.
    2. Click the Save Changes button to record your new setting.
    3. Scroll to the bottom and click “Download” to get the log content in a text file.

    There should be a lot of messages written to the log, so limit the amount of activity during the logging period. You should see messages in the log like these:

    [27-Jun-2020 23:09:30 UTC] 610 MLACore::mla_plugins_loaded_action() MLA 2.83 (20200621) mla_debug_level 0x13

    Of course, the details will be different.

    Let me know how that goes. You can contact me at my web site for instructions on where to send the file. Good luck; I look forward to hearing from you..

    Thread Starter Jamie Delaney


    Thanks for the quick reply David! I have sent you an email with the log.

    Plugin Author David Lingren


    Thanks for working with me by email to investigate and resolve the problems you encountered. I have made changes to the MLA Insert Fixit “ALT from item” tool that addresses these two situations:

    1. Your site is running with secure HTTP and WordPress returns the site URL as However, the URLs in your image inserts use the unsecure HTTP scheme, e.g., This confuses the pattern matching logic the tool uses to match the file name in the insert to the attached file for the Media Library item.
    2. Some of your images exceeded the “allowed full size” check added to WP 5.3. For these images a smaller version of the original image is stored with a “-scaled” postfix. In the body of your post, the insert is for the original file without the postfix. WordPress stores the original file as well as the scaled version, but the name of the original file must be obtained by calling the wp_get_original_image_path() function.

    I have uploaded a new MLA Development Version dated 20210224 that corrects the problems. You can find step-by-step instructions for using the Development Version in this support topic:

    PHP Warning on media upload with Polylang

    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 these MLA Insert Fixit defects.

    Note for other MLA users: These changes may also resolve the problems reported in these earlier topics:

    Updating decsription and alternative text for image already linked to a post
    Reported by: @scubarob, @danieltotherescue, @dannanelli, @chandni24, @mademoisellebel, @alyxp

    Update ALT Text values problem
    Reported by: @jarjarbinks

    Alt Text Update in Posts from Library
    Reported by: @webmasterfsd

    Update Image Title Attribute on Posts and Pages from Media Library
    Reported by: @dg_amanda

    Image Title from Media Library insert to the Post …. Image Title is not added
    Reported by: @liaris

    Replace changed ALT attributed in posts
    Reported by: @samuuel77

    Update/Add/Replace Image figcaption on Post
    Reported by: @liaris

    Plugin Author David Lingren


    I have released MLA v2.95, which contains the fix for these defects.

    Once you have updated MLA you can visit the Settings/Media Library Assistant Documentation page, click the “Example Plugins” button and update the MLA Insert Fixit example plugin to the latest version, if necessary.

    I am marking this topic resolved, but please update it if you have any problems or further questions regarding the fix. Thanks for your patience and helping me find and fix these MLA Insert Fixit defects.

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.