Disabling PLL_COOKIE gives PHP Warning

[ad_1]

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:

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. 🙂

  • This topic was modified 49 minutes ago by ovsmk.
  • This topic was modified 36 minutes ago by ovsmk.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer