Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Thomas Maier

    (@webzunft)

    Hi William,

    thank you for your message.
    Did this work before for you?
    This is a JavaScript error, right?

    I moved some functions, but on my environments, everything looks fine. Are you using a script that maybe caches or minifies javascript files in the dashboard?

    Are there any other error messages? Maybe another plugin has a critival javascript issue that might interfere with Advanced Ads.

    Thanks
    Thomas

    Thread Starter William Rufino

    (@williamhrs)

    It was normal just before the two last updates, I really don’t know what’s happening, if I create just this function on the console I can work with the plugin

    Plugin Author Thomas Maier

    (@webzunft)

    Could you check if the following file is loaded in your dashboard (on the page with the error) and if it includes the advads_toggle function?

    wp-content/plugins/advanced-ads/admin/assets/js/admin.js

    Does the error message indicate where the function is called?

    Thanks
    Thomas

    Thread Starter William Rufino

    (@williamhrs)

    admin.js is not being loaded ( that’s where I got the function to create it manually) only admin-global is being loaded.

    Plugin Author Thomas Maier

    (@webzunft)

    Thanks!

    I recently added a check for the script to load only on pages related to Advanced Ads. The placement page should be there though.

    It seems like you are more advanced with code, so I hope this is not too much to ask:

    Please go to admin/class-advanced-ads-admin.php line 190 and add echo $screen->id after it. I would like to know what the output is here so that I know if I missed a page.

    Thanks
    Thomas

    Thread Starter William Rufino

    (@williamhrs)

    ger-banners_page_advanced-ads-placements

    Thread Starter William Rufino

    (@williamhrs)

    by the way, mine is using the pt-br translation.

    Plugin Author Thomas Maier

    (@webzunft)

    That was it, thank you!

    The plugin name was translated into Portuguese and that broke the check.

    I am going to make the plugin name untranslatable in the next version.

    Thsnks for your help!
    Thomas

    Thread Starter William Rufino

    (@williamhrs)

    Yeah, I figured it when I “echoed” the value!

    Thank you ??

    Plugin Author Thomas Maier

    (@webzunft)

    Just uploaded the newest version (1.6.5) with the fix.

    Thanks
    Thomas

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘advads_toggle is not defined’ is closed to new replies.