• Resolved theletter

    (@theletter)


    Dear Complianz,

    We develop our website in seperate development version in Plesk. When the new changes can go online, I copy the development site to the production site (files and database) with Plesk Copy Site functionality. Unfortunetely the site than asks again for the consent, even when it has already been given earlier.
    Do you know about this happening? And maybe something I can do about it?

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

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

    (@jarnovos)

    Hoi @theletter,

    This would depend on what the staging environment contains exactly, but if you copy the DB over as well, it could very well be that the Cookie Policy ID differs from the production environment, meaning that you would have to consent once more.

    Simply put, it likely has to do with the Policy ID’s being out of sync between these sites. To re-synchronize them, you can use the script below as an MU Plugin (/wp-content/mu-plugins) and change the value ’10’ to the same ID as the value of “cmplz_policy_id” on your other environment. You have to be logged in as an admin for the value to be updated.

    <?php
    if (is_admin()) {
    update_option( 'complianz_active_policy_id', 10 );
    }
    

    Hope this helps.
    Kind regards,
    Jarno

    Thread Starter theletter

    (@theletter)

    Thank you for the proposed solution. I will check it out.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘New Cookie consent when site copied from development to production’ is closed to new replies.