Disabling PLL_COOKIE gives PHP Warning
-
Hello,
The polylang cookie was interfering with our host Kinsta’s Edge Caching system, so I had to disable it using the suggestion in this post:
https://ww.wp.xz.cn/support/topic/any-way-to-disable-pll_cookie-without-changing-wp-config-php/
By adding:
define( ‘PLL_COOKIE’, false );
To our theme’s functions.php file.
However, now on every page load, we are getting:
PHP Warning: Constant PLL_COOKIE already defined in /www/someka_108/public/wp-content/themes/someka-custom-theme/functions.php on line 752
Edit: I realized this is because I’m not doing it in a MU Plugin. The problem is resolved and this post can be deleted. 🙂
The topic ‘Disabling PLL_COOKIE gives PHP Warning’ is closed to new replies.