• I have a large multisite with 25 subsites and have installed Complianz on it. I have setup each site individually even if I have it network activated.

    The problem is that it often keeps poping up for the administrators also after they have clicked accept all which make it very har for them to work undisturbed. It is OK on front end when not logged in. It is not for all and not all the time, but enough to render many complaints.

    Any specific settings that can cause this? (Should it even need to popup when logged in as administrators…)?

    I have for now disabled it entirely since a lot of work is ongoing…

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor jarnovos

    (@jarnovos)

    Hi @alhbin,

    You can use the attached PHP filter below to set the consent cookies on the root domain: https://github.com/Really-Simple-Plugins/complianz-integrations/blob/master/force-cookies-on-root.php

    Upload the PHP file to the folder /wp-content/mu-plugins/ on all of the subsites.

    Please let me know if that works for you.
    Kind regards,
    Jarno

    Thread Starter Anders Alhbin

    (@alhbin)

    Hello, will try this.
    However one question – should I upload the file as it is to all sub-sites?
    Or do I need to modify for each subsite?
    In the file (see below) it says “add /subfolder/ on line 6, but line 6 is *return string…

    2`/**
    3 * Force consent cookies on the root as shown below, or choose a subfolder
    4 * Add subfolder between ” on line 6 e.g. /subfolder/
    5 * @param string @path
    6 * @return string
    7 */
    8 function my_cookie_path($path) {
    9 return ”;
    10 }
    11 add_filter( ‘cmplz_cookie_path’, ‘my_cookie_path’);`

    Then – what will this do? Will I have to work different with the settings compared to today?
    And please remember that the issue was the cookie-popup keeps popping up even if the user (admin only) had clicked on “accept all” and is only working within one sub-site…

    Plugin Contributor jarnovos

    (@jarnovos)

    Hi @alhbin,

    I seem to previously have glanced over the fact that this only happens for logged-in administrators. The earlier provided solution should not be necessary in this case.

    There are a few reasons I can imagine for the banner constantly reappearing for admins, it could be a jQuery-related error that causes this, or perhaps an active security plugin.

    Could you perhaps try visiting the site in an Incognito window, log in as admin afterwards, and show a screenshot of which Complianz cookies are getting created after you’ve switched between pages a few times?

    Just let us know, we’d gladly assist further. You may also reach us on support(at)complianz.io.

    Kind regards,
    Jarno

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Banner keeps popping up’ is closed to new replies.