OFFLINE-GmbH / oc-gdpr-plugin

October CMS plugin to make websites GDPR and ePrivacy compliant

Home Page:https://octobercms.com/plugin/offline-gdpr

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Undefined index message

codebugs opened this issue · comments

Thank you for the plugin. It really saved me a lot of time.
However I find a bug...or possibly I just missed something in documentation.

When I do not enable a cookie with cookie manager than I receive an error:

An exception has been thrown during the rendering of a template ("Undefined index: oracles-addthis").

This is in my gdpr partial:

{% if gdprCookieAllowed('oracles-addthis') %}
	...my content...
{% endif %}

Of course I've created cookie called oracles-addthis.
Is it a bug or am I doing something wrong?

Thank you!
CB

I'm sorry. It was my fault.
I forgot about partial reload...

Kids, never forget to define "partial for soft reload" property in cookie banner component settings or you will also have this error message... 😃

Plugin is still awesome!
Thanks,
CB