Viewing 15 replies - 1 through 15 (of 17 total)
  • Plugin Author Fernando Claussen

    (@fclaussen)

    Hi Nicola,
    I cannot see the plugin running on this site.

    Also, why does your consent names look like this?

    Thread Starter studiotopweb

    (@studiotopweb)

    This is the error, I don’t have this consent name.
    I’ve deactivated the plugin because it crashes the website.
    Where is created the consent_type cookie?

    Thank you

    Plugin Author Fernando Claussen

    (@fclaussen)

    class-gdpr-admin.php:851
    class-gdpr.php:309
    class-gdpr.php:584
    class-gdpr.php:611
    class-gdpr-public.php:215
    class-gdpr-public.php:299
    class-gdpr-public.php:309
    class-gdpr-public.php:312
    class-gdpr-public.php:323

    Thread Starter studiotopweb

    (@studiotopweb)

    I’ve activated it again, I’m trying to debug…

    Thread Starter studiotopweb

    (@studiotopweb)

    addendum
    also
    [gdpr_preferences text=”Privacy Preferences”]
    is not working

    Plugin Author Fernando Claussen

    (@fclaussen)

    I just tested it. It is working. Check your quotation marks and try again.
    If it still doesn’t work, it might be something specific to your environment.

    Thread Starter studiotopweb

    (@studiotopweb)

    Hi Fernando,
    pls take a look now, maybe you were watching while I was deactivating.

    Thank you

    Thread Starter studiotopweb

    (@studiotopweb)

    Uncaught SyntaxError: Unexpected token l in JSON at position 0
    at JSON.parse (<anonymous>)
    at window.has_consent (gdpr-public.js?ver=1.4.4:1)
    at HTMLDocument.<anonymous> (gdpr-public.js?ver=1.4.4:1)
    at i (jquery.js?ver=1.12.4:2)
    at Object.fireWith [as resolveWith] (jquery.js?ver=1.12.4:2)
    at Function.ready (jquery.js?ver=1.12.4:2)
    at HTMLDocument.K (jquery.js?ver=1.12.4:2)

    Thread Starter studiotopweb

    (@studiotopweb)

    if (Cookies.get(“gdpr[consent_types]”) && JSON.parse(Cookies.get(“gdpr[consent_types]”)).indexOf(e) > -1)

    Thread Starter studiotopweb

    (@studiotopweb)

    Cookies.get(“gdpr[consent_types]”)=”lyZuA3ioFHGKkzEYUSltB7LQFFGLXw3yT6kC1zPQqo0.”

    Plugin Author Fernando Claussen

    (@fclaussen)

    The problem seems to be when parsing the JSON. Maybe a strange character?

    Thread Starter studiotopweb

    (@studiotopweb)

    what jquery version is needed?

    Plugin Author Fernando Claussen

    (@fclaussen)

    The one that comes packaged with WP. There is no need to load an external jquery with WordPress

    Thread Starter studiotopweb

    (@studiotopweb)

    is necessary https enabled?

    Plugin Author Fernando Claussen

    (@fclaussen)

    Not necessary.

Viewing 15 replies - 1 through 15 (of 17 total)
  • The topic ‘JS Crash’ is closed to new replies.