• Resolved fob

    (@fob)


    Hi,

    I wanted to replace another script with yours, but the banner can not be shown in the frontend yet. The script stops with the following message:

    “ReferenceError: complianz is not defined”.
    The problem starts here:

    if(complianz.geoip&&(cmplz_user_data.length===0||cmplz_user_data.version!==complianz.version||cmplz_user_data.banner_version!==complianz.banner_version)){$.ajax...

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

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Rogier Lankhorst

    (@rogierlankhorst)

    It looks like it is caused by the minification tool you use. The inline script that contains the base settings for the Complianz script is not loaded. Can you try to deactivate the caching tool you use to see if that helps?

    Thread Starter fob

    (@fob)

    Thank you for supporting this question.

    I played a bit with it yesterday but this did not help:
    – clearing the Cache
    – deactivating the Cache Tool
    – downgrading PHP version (7.x -> 5.6)
    – switching to Apache only (temp. no Nginx Cache))

    That is the reason why I installed another tool (in order to make sure jQuery is loaded early, then the Cookie tool.

    Cleared the browser cache and reconfigured it as well.
    (Just wondered why it seems to work for everyone else. :-))

    Right now I deactivated the caching and optimizing tools. Perhaps I will make a short test with a modern theme as well as the client is running on a very old one…

    I thought your plugin should be fully compatible with Analytify. Is it?

    Plugin Contributor Aert Hulsebos

    (@aahulsebos)

    Hi @fob,

    It works with Analytify. You just need to let Complianz configure Analytics under Cookies > Statistics.

    After, Analytify can do the rest. (You should not enable adding the code by Analytify to prevent double implementation)

    regards Aert

    Thread Starter fob

    (@fob)

    Hmmm… okay.

    I checked out a few most recent themes, deactivated plugins one by one, deactivated code in Analytics (to be done by Complianz) … still get browser debugging issues with your cookieconfig.min.js file (complianz not defined) – tested with 3 browsers (Edge, Firefox, Chrome). Will reinstall caching and optimizing now.

    Plugin Contributor Aert Hulsebos

    (@aahulsebos)

    Hi @fob,

    It’s a minification issue, so this would be the main culprit.

    If you can exclude the cookconfig.min.js file, this would be a great first step.

    regards Aert

    Thread Starter fob

    (@fob)

    Found the bug. It has to do with plugin options for statistics. The banner works if you say no to those options. (Should be explained why you insist on its usage then.)

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Banner not shown (script stopped)’ is closed to new replies.