Title: Media Library Assistant Plugin Causing High CPU and Memory Usage
Last modified: December 2, 2025

---

# Media Library Assistant Plugin Causing High CPU and Memory Usage

 *  Resolved [seejanraj](https://wordpress.org/support/users/seejanraj/)
 * (@seejanraj)
 * [6 months, 1 week ago](https://wordpress.org/support/topic/media-library-assistant-plugin-causing-high-cpu-usage/)
 * Media Library Assistant plugin (v3.30) is causing severe CPU spikes on production
   server.
    - 936 errors per 1000 log entries (93.6% of all errors)
    - Peak spike: 232 errors per second
    - Errors occur in pairs:
       * Undefined array key “labels”
       * Attempt to read property “name” on null
 * **“PHP Warning: Undefined array key “”labels”” in wp-content/plugins/media-library-
   assistant/includes/class-mla-media-modal-ajax.php on line 297″,**
 * **“PHP Warning: Attempt to read property “”name”” on null in wp-content/plugins/
   media-library-assistant/includes/class-mla-media-modal-ajax.php on line 297″**
    -  This topic was modified 6 months, 1 week ago by [seejanraj](https://wordpress.org/support/users/seejanraj/).
    -  This topic was modified 6 months, 1 week ago by [seejanraj](https://wordpress.org/support/users/seejanraj/).

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [David Lingren](https://wordpress.org/support/users/dglingren/)
 * (@dglingren)
 * [6 months, 1 week ago](https://wordpress.org/support/topic/media-library-assistant-plugin-causing-high-cpu-usage/#post-18740072)
 * Thank you for your report. It looks like there’s some sort of problem with the
   way MLA is supporting taxonomies in the Media Manager Modal Window (MMMW) on 
   your site, e.g., the Media/Library “grid” view or selecting an image to add to
   a post, page or gallery in admin mode.
 * When you fill the grid of image thumbnails in the MMMW, MLA prepares taxonomy
   support for the “ATTACHMENT DETAILS” pane that displays when you select an image.
   The problem occurs when MLA cannot find a taxonomy label, such as “Categories”
   or “Att. Tags”.
 * I have uploaded a new MLA Development Version that may correct the problem and
   also has some debug log messages that would help diagnose it. It would be most
   helpful if you can install the Development Version and run some tests. The Development
   Version has no other changes from v3.30 beyond the possible fix and log messages.
 * I have uploaded a new MLA Development Version dated 20251202 that contains the
   updates. You can find step-by-step instructions for using the Development Version
   in this earlier topic:
 * [How to download & install the current development version of MLA](https://wordpress.org/support/topic/how-to-download-install-the-current-development-version-of-mla/)
 * Once the Development Version is installed you can retest the handling of taxonomy
   labels in the MMMW. 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 “**0x401**“. This will
       turn on MLA debug logging for this specific AJAX operation.
    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.
 * You should be able to see some messages in the log that contain “`DEBUG: MLAModal_Ajax::
   mla_attachment_fields_to_edit_filter`“. Only one set of messages is logged each
   time the MMMW is filled, so just a few messages should appear. You can post them
   here or [contact me at my web site](http://davidlingren.com/#two) if email would
   be more convenient. I can post a summary here when the issue is resolved.
 * 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.
 * If the problem persists you can avoid it by disabling some MLA options:
    1. Go to the Settings/Media Library Assistant General tab.
    2. Scroll down to the “Media Manager/Media Grid Enhancements” section.
    3. Uncheck the boxes for the “Media Manager Checklist meta boxes” and “Media Manager
       Flat meta boxes” options.
    4. Scroll down to the bottom of the page and click “Save Changes” to record the
       new setting.
 * I will leave this topic unresolved, and I hope to hear from you soon. Thanks 
   for alerting me to this MLA defect.
 *  Plugin Author [David Lingren](https://wordpress.org/support/users/dglingren/)
 * (@dglingren)
 * [6 months ago](https://wordpress.org/support/topic/media-library-assistant-plugin-causing-high-cpu-usage/#post-18745781)
 * I found and fixed a small error in the debug logging logic I added to the 20251202
   Development Version. I have uploaded a new Development Version dated 20251206.
   Please use that new version for your testing. Thanks for your help; I regret 
   any inconvenience.
 *  Plugin Author [David Lingren](https://wordpress.org/support/users/dglingren/)
 * (@dglingren)
 * [5 months, 2 weeks ago](https://wordpress.org/support/topic/media-library-assistant-plugin-causing-high-cpu-usage/#post-18763370)
 * [@seejanraj](https://wordpress.org/support/users/seejanraj/) – I am preparing
   my next MLA release. I would love to resolve this problem before the update. 
   Have you had a chance to try the 20251206 Development Version? If so, can you
   post or send the debug log information to help me investigate further. Thanks
   for your help!
 *  Plugin Author [David Lingren](https://wordpress.org/support/users/dglingren/)
 * (@dglingren)
 * [4 months, 1 week ago](https://wordpress.org/support/topic/media-library-assistant-plugin-causing-high-cpu-usage/#post-18800636)
 * I have released MLA v3.31, which contains the fix for this problem and retains
   the debug log logic outlined above in case you still have a problem.
 * I am marking this topic resolved, but please update it if you have any problems
   or further questions regarding the fix. Thank you for your patience!

Viewing 4 replies - 1 through 4 (of 4 total)

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fmedia-library-assistant-plugin-causing-high-cpu-usage%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/media-library-assistant/assets/icon-256x256.png?rev=973502)
 * [Media Library Assistant](https://wordpress.org/plugins/media-library-assistant/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/media-library-assistant/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/media-library-assistant/)
 * [Active Topics](https://wordpress.org/support/plugin/media-library-assistant/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/media-library-assistant/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/media-library-assistant/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [David Lingren](https://wordpress.org/support/users/dglingren/)
 * Last activity: [4 months, 1 week ago](https://wordpress.org/support/topic/media-library-assistant-plugin-causing-high-cpu-usage/#post-18800636)
 * Status: resolved