gdprCookieAllowed error

I have strange error and i cannot find solution
OC 3.7.4

In plugin Rainlab.Pages i add new page and error without stack trace appears (debug mode on):

“Unknown “gdprCookieAllowed” function in “getTwigNodeTree” at line 172.” on line 806 of /home/users/xxx/public_html/vendor/twig/twig/src/ExpressionParser.php

I searched entire project and i cannot find “gdprCookieAllowed”

What i tried to fix it:

  • all gdpr plugins are uninstalled removed
  • php artisan cache:clear
  • php artisan plugin:install Rainlab.Pages

Hey @mkinternet

This suggests a Twig template (likely a CMS page, partial, or layout) is using {{ gdprCookieAllowed() }} or {% if gdprCookieAllowed() % somewhere.

It is pretty cut and dry, can’t be anything else. Not sure why the search doesn’t find it though!

1 Like

Maybe stored in database?

Many thanks! Many thanks!