Title: Fix for admin error when debug is on
Last modified: August 21, 2016

---

# Fix for admin error when debug is on

 *  [BackuPs](https://wordpress.org/support/users/backups/)
 * (@backups)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/fix-for-admin-error-when-debug-is-on/)
 * Hi
 * The plugin still works which is very good.
 * It only needs a small fix for wp.3.7.1
 * remove this line (76) from the plugin if you have back and frontend wp enqueue
   messages.
 *     ```
       wp_enqueue_script('jquery');
       ```
   
 * jquery is already enqueued in most themes
 * change line 131 to
 *     ```
       'z-index' => '9999'
       ```
   
 * also change line 410 to this to avoid issues with the admin bar.
 *     ```
       <div id="jQuery-page-peel"<?php if(is_admin_bar_showing()) echo ' style="margin-top: 28px;">';?>>
       ```
   
 * have a nice day
 * [http://wordpress.org/plugins/jquery-page-peel/](http://wordpress.org/plugins/jquery-page-peel/)

Viewing 1 replies (of 1 total)

 *  Thread Starter [BackuPs](https://wordpress.org/support/users/backups/)
 * (@backups)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/fix-for-admin-error-when-debug-is-on/#post-4280131)
 * Hi
 * i made a typo above. Sorry for that.
 *     ```
       <div id="jQuery-page-peel"<?php if(is_admin_bar_showing()) echo 'style="margin-top: 28px;"';?>>
       ```
   
 * you also need this css for responsive themes.
 *     ```
       #jQuery-page-peel img {
          max-width:none;
       }
       ```
   
 * Best regards.

Viewing 1 replies (of 1 total)

The topic ‘Fix for admin error when debug is on’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/jquery-page-peel.svg)
 * [jQuery Page Peel](https://wordpress.org/plugins/jquery-page-peel/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/jquery-page-peel/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/jquery-page-peel/)
 * [Active Topics](https://wordpress.org/support/plugin/jquery-page-peel/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/jquery-page-peel/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/jquery-page-peel/reviews/)

## Tags

 * [jquery](https://wordpress.org/support/topic-tag/jquery/)

 * 1 reply
 * 1 participant
 * Last reply from: [BackuPs](https://wordpress.org/support/users/backups/)
 * Last activity: [12 years, 5 months ago](https://wordpress.org/support/topic/fix-for-admin-error-when-debug-is-on/#post-4280131)
 * Status: not resolved