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
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
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
admin.js is not being loaded ( that’s where I got the function to create it manually) only admin-global is being loaded.
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
ger-banners_page_advanced-ads-placements
by the way, mine is using the pt-br translation.
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
Yeah, I figured it when I “echoed” the value!
Thank you 🙂
Just uploaded the newest version (1.6.5) with the fix.
Thanks
Thomas