• Resolved ItzCookie

    (@sawsainis)


    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)
  • Checking.

    Dear @sawsainis

    I checked it and I can not reproduce it. “wp-util” is a standard WP js library. (see on wp_register_script).

    Could you check that you do not deregister this script?

    Marcin

    Thread Starter ItzCookie

    (@sawsainis)

    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

    (@sawsainis)

    Error Notice

    Dear @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

    Marcin

    Thread Starter ItzCookie

    (@sawsainis)

    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

    (@truongwp)

    I meet same error. Please update your plugin. I don’t want to edit plugin code. Thank you.

    jpen365

    (@jpen365)

    I had the same issue and the updated code from the GitHub link above fixed it.

    • This reply was modified 8 years ago by jpen365.
    Thread Starter ItzCookie

    (@sawsainis)

    Dear @iworks,

    Thanks for the code, that did solve the issue. Will be waiting for an update ??

    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

    (@sawsainis)

    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.