• Resolved dtti

    (@dtti)


    Hello, your plugin is a life saver and works perfectly.

    I have only one question: in console I see this error:

    Uncaught ReferenceError: advads is not defined
    at (index):3
    at HTMLDocument.listener ((index):1)

    How can I fix this?

    Thank you

    The page I need help with: [log in to see the link]

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

    (@webzunft)

    Hi dtti,

    thanks for reaching out.

    That problem is normally caused by plugins that minify JavaScript on your site or moves code to the footer. Are you using anything like that?

    I put a lot of thinking into making it work with such solutions, but maybe I overlooked something.

    Please make sure that you also use the latest version of Advanced Ads (1.10.4) since I there was a fix for this not long ago.

    Thanks,
    Thomas

    Thread Starter dtti

    (@dtti)

    Hi Thomas thank you for your quick reply.
    It’s the last version of Advanced Ads.
    I use WP-Rocket but I tried to deactivate all Javascript minify/defer options in wp-rocket but i still see this error.

    Plugin Author Thomas Maier

    (@webzunft)

    Thanks for testing.

    Could you check if this also happens when you have the Privacy module disabled?

    Thanks

    Thread Starter dtti

    (@dtti)

    Hi Thomas, with privacy module disabled the error doesn’t appair.

    Plugin Author Thomas Maier

    (@webzunft)

    Thank you. Could you please enable the module again so that I can get a screenshot of the code generated?

    I saw a huge difference between the code the plugin normally generates and the one on your site and would like to try to reproduce it.

    Thanks,
    Thomas

    Thread Starter dtti

    (@dtti)

    Ok it’s turned on again. (please note that now are also active minification/defer js)

    Thanks,
    Loris

    • This reply was modified 6 years, 6 months ago by dtti.
    Plugin Author Thomas Maier

    (@webzunft)

    Thank you. I don’t think it will break anything, but you can turn the module off again if this is annoying. I will start investigating this problem.

    Thomas

    Plugin Author Thomas Maier

    (@webzunft)

    Hi there, could I trouble you testing this:
    Enable the Privacy module
    Also go to Advanced Ads > Settings > General and enable the “Use advanced JavaScript” option.

    Does that change anything?

    Thanks

    Thread Starter dtti

    (@dtti)

    Perfect! Your suggestion resolved the problem.
    Now the error disappeared.

    Thank you Thomas!!

    Plugin Author Thomas Maier

    (@webzunft)

    Thanks for letting me know.

    I will make sure that we will get that dependency solved automatically.

    Thomas

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