Title: Error After Update Enqueue Script
Last modified: March 6, 2017

---

# Error After Update Enqueue Script

 *  Resolved [ItzCookie](https://wordpress.org/support/users/sawsainis/)
 * (@sawsainis)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/error-after-update-enqueue-script/)
 * Hi there.
 * After the newest update there’s an error which throws a notice in the wordpress
   admin dashboard.
 * It envolves wp_enqueue_script( ‘wp-util’ ) on line 39 in the file
    “class-custom-
   sidebars-advertisement.php”.
 * I’ve commented out that part temporary, but please release an update to fix that,
   since it’s impossible to keep wp-debug on, because it’s throws that error. Thanks!

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

 *  [Marcin Pietrzak](https://wordpress.org/support/users/iworks/)
 * (@iworks)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/error-after-update-enqueue-script/#post-8878937)
 * Checking.
 *  [Marcin Pietrzak](https://wordpress.org/support/users/iworks/)
 * (@iworks)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/error-after-update-enqueue-script/#post-8879099)
 * Dear [@sawsainis](https://wordpress.org/support/users/sawsainis/)
 * I checked it and I can not reproduce it. “wp-util” is a standard WP js library.(
   see on [wp_register_script](https://developer.wordpress.org/reference/functions/wp_register_script/)).
 * Could you check that you do not deregister this script?
 * Marcin
 *  Thread Starter [ItzCookie](https://wordpress.org/support/users/sawsainis/)
 * (@sawsainis)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/error-after-update-enqueue-script/#post-8879373)
 * Hi, Marcin.
 * Yes i understand it’s a standard library and no i did not deregister any scripts.
   This notice is only visible IF wp debug is on, but it breaks the backend of the
   dashboard. Very strange, since this plugin was working miracles on my other projects,
   not sure what changed. I’ll attach a screenshort shortly.
 *  Thread Starter [ItzCookie](https://wordpress.org/support/users/sawsainis/)
 * (@sawsainis)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/error-after-update-enqueue-script/#post-8879390)
 * ![Error Notice](https://i0.wp.com/www.part.lt/img/a1a1d088fd0fa557760d7b48f6daca24254.
   jpg)
 *  [Marcin Pietrzak](https://wordpress.org/support/users/iworks/)
 * (@iworks)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/error-after-update-enqueue-script/#post-8879429)
 * Dear [@sawsainis](https://wordpress.org/support/users/sawsainis/)
 * It helps 😉 I tested with WP_DEBUG, but no results. Screenshot helps 😉
 * Could you replace file: `inc/class-custom-sidebars-advertisement.php` by this
   code:
 * [https://gist.github.com/iworks/0178ec1e840523ebd006fb010ffbb3f1](https://gist.github.com/iworks/0178ec1e840523ebd006fb010ffbb3f1)
 * Marcin
 *  Thread Starter [ItzCookie](https://wordpress.org/support/users/sawsainis/)
 * (@sawsainis)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/error-after-update-enqueue-script/#post-8879986)
 * I’ll do that first thing in the morning. But looking from the code you posted,
   that gives a lot of hope to work. I’ll post the results tomorrow!
 *  [truongwp](https://wordpress.org/support/users/truongwp/)
 * (@truongwp)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/error-after-update-enqueue-script/#post-8880190)
 * I meet same error. Please update your plugin. I don’t want to edit plugin code.
   Thank you.
 *  [jpen365](https://wordpress.org/support/users/jpen365/)
 * (@jpen365)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/error-after-update-enqueue-script/#post-8882083)
 * I had the same issue and the updated code from the GitHub link above fixed it.
    -  This reply was modified 9 years, 1 month ago by [jpen365](https://wordpress.org/support/users/jpen365/).
 *  Thread Starter [ItzCookie](https://wordpress.org/support/users/sawsainis/)
 * (@sawsainis)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/error-after-update-enqueue-script/#post-8882716)
 * Dear [@iworks](https://wordpress.org/support/users/iworks/),
 * Thanks for the code, that did solve the issue. Will be waiting for an update 
   😉
 *  [Marcin Pietrzak](https://wordpress.org/support/users/iworks/)
 * (@iworks)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/error-after-update-enqueue-script/#post-8887580)
 * Hi Guys!
 * Could you update the plugin and check this issue? It should be fixed in 3.0.0.1
 * Have a great day!
 * Marcin
 *  Thread Starter [ItzCookie](https://wordpress.org/support/users/sawsainis/)
 * (@sawsainis)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/error-after-update-enqueue-script/#post-8892990)
 * Hi, Marcin,
 * All good now, thanks! Glad to be helpful!
 * Cheers!

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

The topic ‘Error After Update Enqueue Script’ is closed to new replies.

 * ![](https://ps.w.org/custom-sidebars/assets/icon-256x256.png?rev=1414065)
 * [Custom Sidebars - Dynamic Sidebar Classic Widget Area Manager](https://wordpress.org/plugins/custom-sidebars/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/custom-sidebars/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/custom-sidebars/)
 * [Active Topics](https://wordpress.org/support/plugin/custom-sidebars/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/custom-sidebars/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/custom-sidebars/reviews/)

## Tags

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

 * 11 replies
 * 4 participants
 * Last reply from: [ItzCookie](https://wordpress.org/support/users/sawsainis/)
 * Last activity: [9 years, 1 month ago](https://wordpress.org/support/topic/error-after-update-enqueue-script/#post-8892990)
 * Status: resolved