Title: javascript error for me on 3.8
Last modified: August 21, 2016

---

# javascript error for me on 3.8

 *  [Seth Carstens](https://wordpress.org/support/users/sethcarstens/)
 * (@sethcarstens)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/javascript-error-for-me-on-38/)
 * Uncaught SyntaxError: Unexpected token < tools.php?page=ajax-thumbnail-rebuild:
   194
    jQuery.ajax.success tools.php?page=ajax-thumbnail-rebuild:194 c load-scripts.
   php?c=0&load%5B%5D=jquery-core,jquery-migrate,utils,farbtastic&ver=3.8:3 p.fireWith
   load-scripts.php?c=0&load%5B%5D=jquery-core,jquery-migrate,utils,farbtastic&ver
   =3.8:3 k load-scripts.php?c=0&load%5B%5D=jquery-core,jquery-migrate,utils,farbtastic&
   ver=3.8:5 r load-scripts.php?c=0&load%5B%5D=jquery-core,jquery-migrate,utils,
   farbtastic&ver=3.8:5
 * [http://wordpress.org/plugins/ajax-thumbnail-rebuild/](http://wordpress.org/plugins/ajax-thumbnail-rebuild/)

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

 *  [thirdboxcar](https://wordpress.org/support/users/thirdboxcar/)
 * (@thirdboxcar)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/javascript-error-for-me-on-38/#post-4522601)
 * Same for me.
 *  [InHouse](https://wordpress.org/support/users/inhouse/)
 * (@inhouse)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/javascript-error-for-me-on-38/#post-4522694)
 * This is unfortunate; I love this plugin. Hope it gets fixed soon. Anyone find
   a solution/workaround?
 *  [spbriggs](https://wordpress.org/support/users/spbriggs/)
 * (@spbriggs)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/javascript-error-for-me-on-38/#post-4522705)
 * I was able to fix this error on my site by making the following change at line
   181 of ajax-thumbnail-rebuild.php
 * Replace this code
 *     ```
       $attachments =& get_children( array(
       				'post_type' => 'attachment',
       				'post_mime_type' => 'image',
       				'numberposts' => -1,
       				'post_status' => null,
       				'post_parent' => null, // any parent
       				'output' => 'object',
       			) );
       ```
   
 * with this
 *     ```
       $args = array( 'post_type' => 'attachment', 'posts_per_page' => -1, 'post_status' =>'any', 'post_parent' => null );
       $attachments = get_posts($args);
       ```
   
 * Edit: fix might be even simpler : [https://github.com/breiti/ajax-thumbnail-rebuild/issues/5](https://github.com/breiti/ajax-thumbnail-rebuild/issues/5)

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

The topic ‘javascript error for me on 3.8’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/ajax-thumbnail-rebuild.svg)
 * [AJAX Thumbnail Rebuild](https://wordpress.org/plugins/ajax-thumbnail-rebuild/)
 * [Support Threads](https://wordpress.org/support/plugin/ajax-thumbnail-rebuild/)
 * [Active Topics](https://wordpress.org/support/plugin/ajax-thumbnail-rebuild/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ajax-thumbnail-rebuild/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ajax-thumbnail-rebuild/reviews/)

 * 3 replies
 * 4 participants
 * Last reply from: [spbriggs](https://wordpress.org/support/users/spbriggs/)
 * Last activity: [12 years, 3 months ago](https://wordpress.org/support/topic/javascript-error-for-me-on-38/#post-4522705)
 * Status: not resolved