Title: Bug Report: Ajax not working when Debug_Objects_Theme activated
Last modified: August 20, 2016

---

# Bug Report: Ajax not working when Debug_Objects_Theme activated

 *  Resolved [neyl](https://wordpress.org/support/users/neyl/)
 * (@neyl)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/bug-report-ajax-not-working-when-debug_objects_theme-activated/)
 * Ajax not working when Theme information is selected. This is because of line 
   40 in class-theme.php
    `add_action( 'shutdown', array( $this, 'get_list_ids' ));`
   which calls `get_list_ids()` #182. and
 *     ```
       <script>
       				var els = [];
       				jQuery( '[id]' ).each( function () {
       					els.push( this.id );
       				} );
       				els.sort();
       				var ids = '#' + els.join( '<br />#' );
       				jQuery( '#register_ids' ).html( ids );
       			</script>
       ```
   
 *  gets added to ajax response which breaks ajax jquery code which is waiting for
   valid JSON response. Please advise me if there is a way to write jquery ajax 
   code that will not break when markup is added to response or if the plugin is
   responsible?
    Anyway thanks for great plugin that rocks!!!
 * [http://wordpress.org/extend/plugins/debug-objects/](http://wordpress.org/extend/plugins/debug-objects/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Frank Bueltge](https://wordpress.org/support/users/bueltge/)
 * (@bueltge)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/bug-report-ajax-not-working-when-debug_objects_theme-activated/#post-3325567)
 * I think that the problem is, that jquery on this point not loaded; to early for
   my small script. I will change this and include the script via wp_enqueue_script()
   and then it is easier to control, that jquery is loaded. I add this to my issue
   list on the repo: [https://github.com/bueltge/Debug-Objects/issues/9](https://github.com/bueltge/Debug-Objects/issues/9)
 * Thanks for the hint. You can also use the current version of the github repo,
   is with more features, but not ready for a stable release on wp.org.

Viewing 1 replies (of 1 total)

The topic ‘Bug Report: Ajax not working when Debug_Objects_Theme activated’ is closed
to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/debug-objects_d0d0d1.svg)
 * [Debug Objects](https://wordpress.org/plugins/debug-objects/)
 * [Support Threads](https://wordpress.org/support/plugin/debug-objects/)
 * [Active Topics](https://wordpress.org/support/plugin/debug-objects/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/debug-objects/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/debug-objects/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Frank Bueltge](https://wordpress.org/support/users/bueltge/)
 * Last activity: [13 years, 5 months ago](https://wordpress.org/support/topic/bug-report-ajax-not-working-when-debug_objects_theme-activated/#post-3325567)
 * Status: resolved