Title: Error When Adding Custom Field Mapping
Last modified: August 22, 2016

---

# Error When Adding Custom Field Mapping

 *  Resolved [thburkart](https://wordpress.org/support/users/thburkart/)
 * (@thburkart)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/error-when-adding-custom-field-mapping/)
 * Hello,
    I am trying to use this plugin for the custom field mapping, to sort 
   images by file size.
 * I followed instructions from documentation for how to do this, but plugin keeps
   having error during actual mapping process. This is the latest error below. Has
   happened thrice so far.
 * ** Close undefined (error), jqXHR( 0, error, )**
 * I have only gotten up to 24,000 images out of 126,000 before the error happens.
   Then next time, it has to go through all the mapped ones first… and just cant
   get through much without erroring out.
 * Any advice on how to troubleshoot this? i realize it is alot of images. if there
   is a way to break the mapping into segments, that might help at least get some
   of them usable.
 * thanks
    tom
 * [https://wordpress.org/plugins/media-library-assistant/](https://wordpress.org/plugins/media-library-assistant/)

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

 *  Plugin Author [David Lingren](https://wordpress.org/support/users/dglingren/)
 * (@dglingren)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/error-when-adding-custom-field-mapping/#post-5834336)
 * Thanks for your report and your question. I regret the trouble you’re having 
   with the custom field mapping process.
 * I will try to investigate the error; is the example you posted the complete text
   of the message?
 * How are you starting the mapping process? For example, are you clicking the “
   Map All Attachments” for just the “file_size” rule in the Settings/Media Library
   Assistant Custom Fields tab?
 * As a work-around, you can “**_break the mapping into segments_**“, skipping over
   the items you’ve already processed to get past the problem. Once the mapping 
   process starts, click the “Cancel” button. It will dim, and a new “Resume” button
   will appear. Next to the button is a text box with the index of the next item
   to be processed. If you change the value in the box you can skip over (or back
   up and re-process) as many items as you like.
 * Once you get most of the items processed you can try sorting on the custom field
   in the Media/Assistant submenu table to see which items do not have a value. 
   That may help identify item-specific problems. You can use the Bulk Edit area
   to map just the items with no value and narrow down the list of potential problem
   items.
 * Let me know how it goes. I will leave this topic unresolved until I hear back
   from you. Good luck, and thanks for your patience!
 *  Thread Starter [thburkart](https://wordpress.org/support/users/thburkart/)
 * (@thburkart)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/error-when-adding-custom-field-mapping/#post-5834338)
 * hi there! i actually was able to get it all mapped. trick was to change the default‘
   chunks’ from 25 to 2500. So it did 2500 per bite, if that makes sense.
 * thanks for the reply tho.
 *  Plugin Author [David Lingren](https://wordpress.org/support/users/dglingren/)
 * (@dglingren)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/error-when-adding-custom-field-mapping/#post-5834369)
 * Thanks for the update and the good news. I was going to suggest playing with 
   the chunk size, but setting it up to 2500 was a bold move!
 * Thanks for marking the topic resolved. If you have any other problems or questions
   the mapping process, please update this topic or start another.
 * You’ve got a large Media Library. If you have any MLA performance problems, let
   me know and I can try to improve things.
 * Thanks for your interest in the plugin!
 *  Thread Starter [thburkart](https://wordpress.org/support/users/thburkart/)
 * (@thburkart)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/error-when-adding-custom-field-mapping/#post-5834466)
 * Hey David,
    Thanks very much for your helpfulness and info. Yes, i am having 
   performance issues with the plugin…. what do you recommend? Basically, the prob
   i have so far is that it seems to be using alot of memory just when activated
   but not doing things.
 * secondly, when i try to load the ‘assistant’ pane from the media sidebar menu,
   it often times out before it can even load any photos… same goes for sorting.
   my max processing time is super high. like 680 seconds. =]
 * thirdly, and this is just an “i wonder” question: my goal is to basically get
   all my image sizes, sort descending to see largest, and then optimize those images
   via EWW-image-optimizer or Kraken.IO. Usually there are bulk options on the images
   checkbox/dropdown thing to “optimize” … but not seeing in Assistant dropdown.
   any ideas?
 * thanks man!!! i appreciate your time and effort for this plugin.
    this is my 
   site btw, if you are curious what could have sooo many images =-]
 * [http://www.car-revs-daily.com/](http://www.car-revs-daily.com/)
 * tom
 *  Plugin Author [David Lingren](https://wordpress.org/support/users/dglingren/)
 * (@dglingren)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/error-when-adding-custom-field-mapping/#post-5834474)
 * You’re welcome – thanks for the kind words.
 * It’s a terrific site!
 * I will have a look at the issues you mentioned. I will also look at the EWW and
   Kraken plugins. I am not surprised that it takes a while to sort; 126,000 images
   is just a lot of work. Sorting on a custom field is expensive, because it requires
   a table join and a database view. I will ponder an alternative.
 * If you haven’t already done so, I would suggest going to the Settings/Media Library
   Assistant General tab, scrolling down to the “Where-used database access tuning”
   section and disabling those four options. You can turn them back on when you 
   need the information.
 * I’ll post an update when I know more. Thanks for your interest in the plugin.
 *  Plugin Author [David Lingren](https://wordpress.org/support/users/dglingren/)
 * (@dglingren)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/error-when-adding-custom-field-mapping/#post-5834632)
 * Tom,
 * Thanks for our patience; it has been a busy time. I am starting to look at the
   issues/questions you raised in your last post.
 * First, you wrote “**_it seems to be using a lot of memory just when activated
   but not doing things._**” On my test system, MLA requires a bit less than 10MB
   of memory to load; there is no difference between admin mode and “front end” 
   mode. Does that match your findings? I believe this is mostly code and “autoload”
   option values. I have not yet made any attempt to factor the code and load only
   the admin code or only the front end code. I will add that to my list of future
   enhancement projects.
 * Second, I loaded and activated EWWW Image Optimizer version 2.2.2, by Shane Bishop;
   is that the EWWW plugin you’re using? I see that it adds an “Image Optimizer”
   column to the (list view) Media/Library submenu table and a “Bulk Optimize” action
   to the Bulk Actions dropdown list. Are those the two features you asked about?
   I think I can develop a small custom plugin to add these to the MLA submenu; 
   would that be acceptable?
 * Finally, I am very interested to know if you found and disabled the “Where-used
   database access tuning” options as I suggested. If so, did that improve your 
   performance? If not, what were the original settings?
 * Thanks for any additional information you can give me.
 *  Thread Starter [thburkart](https://wordpress.org/support/users/thburkart/)
 * (@thburkart)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/error-when-adding-custom-field-mapping/#post-5834634)
 * hey David,
    thanks for the reply. I appreciate your time. Unfortunately i had
   to uninstall the plugin bc my website was getting really bogged down and not 
   loading in a quick enough time for users. thanks anyway for the assistance.
 * my one thought would be to break out the plugin into modules to do fewer things.
   i really appreciate your reply tho. sorry i cant help troubleshoot.
 * tom
 *  Plugin Author [David Lingren](https://wordpress.org/support/users/dglingren/)
 * (@dglingren)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/error-when-adding-custom-field-mapping/#post-5834635)
 * Thanks for your quick reply. I am sorry you’ve removed the plugin, but I understand
   your reasons.
 * If your primary issue was “front end” load time and performance I could narrow
   my focus to that specific issue. In particular, I could try to minimize the load
   when accessing a post/page that did not include an `[mla_gallery]` and/or `[mla_tag_cloud]`
   shortcode.
 * If I am able to do that, would you give MLA another try?
 *  Plugin Author [David Lingren](https://wordpress.org/support/users/dglingren/)
 * (@dglingren)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/error-when-adding-custom-field-mapping/#post-5834738)
 * I have released MLA version 2.20, which significantly reduces the MLA memory 
   and load time requirements for several situations, especially when MLA is “**
   _activated but not doing anything_**“, such as front end post/page loads that
   do not involve MLA shortcodes.
 * Thanks for motivating these improvements.

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

The topic ‘Error When Adding Custom Field Mapping’ is closed to new replies.

 * ![](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/)

## Tags

 * [custom](https://wordpress.org/support/topic-tag/custom/)
 * [field](https://wordpress.org/support/topic-tag/field/)
 * [image](https://wordpress.org/support/topic-tag/image/)
 * [mapping](https://wordpress.org/support/topic-tag/mapping/)
 * [size](https://wordpress.org/support/topic-tag/size/)

 * 9 replies
 * 2 participants
 * Last reply from: [David Lingren](https://wordpress.org/support/users/dglingren/)
 * Last activity: [10 years, 6 months ago](https://wordpress.org/support/topic/error-when-adding-custom-field-mapping/#post-5834738)
 * Status: resolved