• Resolved katze75

    (@katze75)


    After installing Complianz – GDPR/CCPA Cookie Consent plugin, the portfolio grid (isotope) is no longer displayed. If I disable the plugin and clear the cache, the grid reappears.
    Error message:
    isotope not initialized. Cannot call methods, i.e. $().isotope(“layout”)

    It may be the conflict with “layout” from Cookie plugin…

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

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Contributor Aert Hulsebos

    (@aahulsebos)

    Hi @katze75,

    I think the plugin triggered on the inline script, which refers to Google Maps functionality.

    You can white list the inline-script with below filter, by adding this to your functions.php or preferred as a MU Plugin

    add_filter ( 'cmplz_script_class',
    function( $class, $total_match, $found ) {
    if ( $found && false !== strpos( $total_match, 'isotopeMode-js-extra' ) ) {
    $class = 'cmplz-native'; // add cmplz-script for Marketing and cmplz-stats for Statistics
    }
    return $class;
    }, 10 , 3
    );
    Thread Starter katze75

    (@katze75)

    Hi @aahulsebos,

    I connected the filter first through functions.php, then as a MU Plugin plugin, it did not give any result at all. To exclude Google Maps as a reason, I deleted all the pages with Google Maps and the Google Maps API key, deactivated Google Maps in the settings of Complianz Cookie Consent plugin – nothing changed. The same mistake.

    Plugin Contributor Aert Hulsebos

    (@aahulsebos)

    Hi @katze75,

    If I visit https://gaestehaus-gruenaeugl.de/zimmeruebersicht/?cmplz_safe_mode=1

    (which enabled safe mode, disabling all cookie blockers and integrations)

    I don’t see a difference.

    Could you show me what it should be?

    regards Aert

    Thread Starter katze75

    (@katze75)

    Plugin Contributor Aert Hulsebos

    (@aahulsebos)

    Hi @katze75,

    Could you enable Complianz, and under settings enable Safe Mode under settings?

    If this works:

    Please disable Safe Mode and disable Integrations one by one to see which one it might be, make sure to check the script center as well.

    Now you might know which integration causes this.

    If this doesn’t work I need to see the error live on the page, or you can create an example page that isn’t available to the public so I can debug.

    Let me know! regards Aert

    Thread Starter katze75

    (@katze75)

    Switching to safe mode does nothing, as I showed above in the example. Therefore, experiments with integrations do not make sense. Only disabling the plugin completely solves the problem. Of course, I tried again in the settings to switch to safe mode. No result.

    I really like your plugin. But it causes problems in other places as well, for example, with the visual editor of one of the themes. A week has already passed and the problem has not been resolved. My client is not happy. Unfortunately, I have to give up this plugin and look for an alternative. Good luck.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Isotope + Compilanz: Error by displaying portfolio grid’ is closed to new replies.