Title: function (){if(l){var t=l.length;(function i(t){x.each(t,function(t,n){var r=x.t
Last modified: August 21, 2016

---

# function (){if(l){var t=l.length;(function i(t){x.each(t,function(t,n){var r=x.t

 *  [funsail](https://wordpress.org/support/users/funsail/)
 * (@funsail)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/function-iflvar-tllengthfunction-itxeachtfunctiontnvar-rxt/)
 * every now and then
 * function (){if(l){var t=l.length;(function i(t){x.each(t,function(t,n){var r=
   x.type(n);”function”===r?e.unique&&p.has(n)||l.push(n):n&&n.length&&”string”!
   ==r&&i(n)})})(arguments),n?o=l.length:r&&(s=t,c(r))}return this}
 * [http://wordpress.org/plugins/regenerate-thumbnails/](http://wordpress.org/plugins/regenerate-thumbnails/)

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

 *  [hollowmyth](https://wordpress.org/support/users/hollowmyth/)
 * (@hollowmyth)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/function-iflvar-tllengthfunction-itxeachtfunctiontnvar-rxt/#post-4127157)
 * I’m getting this error, too. Lots of errors and it appears like the site is unreachable
   for a while afterward, sort of like it is restarting. The site is on shared hosting
   on godaddy and I’ve got the entire uploads folder writable as 777. Any help would
   be appreciated.
 *  [underclass](https://wordpress.org/support/users/underclass/)
 * (@underclass)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/function-iflvar-tllengthfunction-itxeachtfunctiontnvar-rxt/#post-4127172)
 * This seems to be a common error with force regen thumbs plugin
 *  [Raul Illana](https://wordpress.org/support/users/raulillana/)
 * (@raulillana)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/function-iflvar-tllengthfunction-itxeachtfunctiontnvar-rxt/#post-4127176)
 * Related: [http://wordpress.org/support/topic/failure-after-upgrading-wp-to-36](http://wordpress.org/support/topic/failure-after-upgrading-wp-to-36)
 *  [Nevis-1](https://wordpress.org/support/users/nevis-1/)
 * (@nevis-1)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/function-iflvar-tllengthfunction-itxeachtfunctiontnvar-rxt/#post-4127186)
 * This is what I get. I am running this plugin from Solostream’s WP-Clear 3.2.1
   theme. They are using version 2.2.4.
 * Almost an 80% failure rate. Permission set at 755 for uploads folder, and files
   permission are 644.
 * Any ideas?
 * function (){if(l){var t=l.length;(function i(t){x.each(t,function(t,n){var r=
   x.type(n);”function”===r?e.unique&&p.has(n)||l.push(n):n&&n.length&&”string”!
   ==r&&i(n)})})(arguments),n?o=l.length:r&&(s=t,c(r))}return this}
 *  [Nevis-1](https://wordpress.org/support/users/nevis-1/)
 * (@nevis-1)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/function-iflvar-tllengthfunction-itxeachtfunctiontnvar-rxt/#post-4127187)
 * Any new thoughts on this?
 *  [salvatore6420](https://wordpress.org/support/users/salvatore6420/)
 * (@salvatore6420)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/function-iflvar-tllengthfunction-itxeachtfunctiontnvar-rxt/#post-4127188)
 * I had the same problem and fixed giving 777 to the uploads folder
 *  [Nevis-1](https://wordpress.org/support/users/nevis-1/)
 * (@nevis-1)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/function-iflvar-tllengthfunction-itxeachtfunctiontnvar-rxt/#post-4127189)
 * Thanks salvatore6420, tried this and still got the same error. Permissions now
   set back to default, and tried again….no luck. Thanks for the suggestion though,
   will keep hunting.
 *  [Jonnyirish](https://wordpress.org/support/users/jonnyirish/)
 * (@jonnyirish)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/function-iflvar-tllengthfunction-itxeachtfunctiontnvar-rxt/#post-4127190)
 * same problem here. could not be a folder permissions issue as I could upload 
   some successfully. would be great to see a solution!
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/function-iflvar-tllengthfunction-itxeachtfunctiontnvar-rxt/#post-4127191)
 * **[@jonnyirish](https://wordpress.org/support/users/jonnyirish/)**: If you require
   assistance then, as per the [Forum Welcome](http://codex.wordpress.org/Forum_Welcome#Where_To_Post),
   please post your own topic.
 *  [David Cameron Law](https://wordpress.org/support/users/seo-dave/)
 * (@seo-dave)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/function-iflvar-tllengthfunction-itxeachtfunctiontnvar-rxt/#post-4127197)
 * I was getting this error message on two PNG images.
 * Suspect it was a timeout issue caused by another plugin EWWW Image Optimizer 
   which optimizes images as they are created. So as the new thumbnails were created
   they were automatically optimized as well.
 * What I found was jpgs were running through both plugins no problem, but PNGs 
   popped out the above error.
 * Disabling EWWW Image Optimizer while I regenerated images resulted in fast regen.
   After the regen turned the plugin back on and optimized, though was still having
   problems because it’s a process that takes time and it was timing out.
 * The optimizing plugin wasn’t the issue per se, it’s the time it takes to regen
   the thumbnails AND optimize at the same time. I had the optimization set high,
   with PNGs there’s levels and I had it set at 48 levels (quite high) and it was
   taking too long for my server settings. Most servers have PHP script timeout 
   set to 30 seconds (Max Execution Time), if the script isn’t done in that time
   it times out. Usually I’d see a 500 error, but not in this case, no idea why.
 * On localhost tests I have execution time set to 60 minutes (sometime import large
   amounts of data), so the setup worked that wouldn’t work on a live server with
   a shorter PHP script execution time set. I’ve run this setup on thousands of 
   images on localhost and it’s never failed.
 * Though I wouldn’t suggest setting Max Execution time to several minutes on a 
   production site for long periods of time, you could try it to rule out timeouts
   and after regen set back to a lower value. You could also check you don’t have
   other plugins that do something to images as they are created that’s slowing 
   the regen down.
 * David
 *  [ovxsolutions](https://wordpress.org/support/users/ovxsolutions/)
 * (@ovxsolutions)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/function-iflvar-tllengthfunction-itxeachtfunctiontnvar-rxt/#post-4127198)
 * Same issue for my wallpapers based site. Just shifted to new hosting and some
   images thumb lost in transferring process. For New images which we upload there
   is no problem. But when we try regenerating thumbs for old images, it gives following
   error
    `function (){if(l){var t=l.length;(function i(t){x.each(t,function(t,n){
   var r=x.type(n);"function"===r?e.unique&&p.has(n)||l.push(n):n&&n.length&&"string"!
   ==r&&i(n)})})(arguments),n?o=l.length:r&&(s=t,c(r))}return this}`
 * If anyone got success to fix that issue, please let me know. I will be thank 
   full to you.
 *  [Sean Hayes](https://wordpress.org/support/users/seanchayes/)
 * (@seanchayes)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/function-iflvar-tllengthfunction-itxeachtfunctiontnvar-rxt/#post-4127199)
 * I found it was a permissions issue with some of my images. Those that had this
   error returned were not readable (had permissions / ownership that restricted
   access to the server) Apache in my case.
 * Once I had gone to the filesystem (I had command line access) and updated the
   file permissions and retried the regenerate and all went as expected.
 *  [sledge81](https://wordpress.org/support/users/sledge81/)
 * (@sledge81)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/function-iflvar-tllengthfunction-itxeachtfunctiontnvar-rxt/#post-4127200)
 * Same issue here… Notice no response from the author…
 * Does anyone have a fix for this?
 *  [kaleida](https://wordpress.org/support/users/kaleida/)
 * (@kaleida)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/function-iflvar-tllengthfunction-itxeachtfunctiontnvar-rxt/#post-4127201)
 * [https://github.com/getsource/default-to-gd](https://github.com/getsource/default-to-gd)
   Worked for me! I installed, activated and magically I was able to regenerate 
   all my thumbnails without errors. I was having about 344 errors before.
 * Using WordPress version 3.6, Theme Top Shop from Theme Forest. Hope this works
   for anyone else.

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

The topic ‘function (){if(l){var t=l.length;(function i(t){x.each(t,function(t,n){
var r=x.t’ is closed to new replies.

 * ![](https://ps.w.org/regenerate-thumbnails/assets/icon-128x128.png?rev=1753390)
 * [Regenerate Thumbnails](https://wordpress.org/plugins/regenerate-thumbnails/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/regenerate-thumbnails/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/regenerate-thumbnails/)
 * [Active Topics](https://wordpress.org/support/plugin/regenerate-thumbnails/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/regenerate-thumbnails/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/regenerate-thumbnails/reviews/)

 * 14 replies
 * 13 participants
 * Last reply from: [kaleida](https://wordpress.org/support/users/kaleida/)
 * Last activity: [12 years, 4 months ago](https://wordpress.org/support/topic/function-iflvar-tllengthfunction-itxeachtfunctiontnvar-rxt/#post-4127201)
 * Status: not resolved