[SOLVED][Drupal FCKeditor] FCKeditor Unknown You are using a feature that requires $cookie_domain to be set, but it is not set in your settings.php.

| | 1 min read

FCKeditor Unknown You are using a feature that requires $cookie_domain to be set, but it is not set in your settings.php. A few Drupal users have reported the presence of this warning message in the status reports of their Drupal site. If you are encountering this warning in the status report of your Drupal site then continue reading to solve the problem.

This warning message will appear if you have enabled Drupal FCKeditor's inbuilt file browser or when quick uploads are enabled

  • To fix the problem you should set the $cookie_domain variable in sites/default/settings.php so that FCKeditor file browser could authenticate each user that is trying to use it
  • <?php
    $cookie_domain = $_SERVER['SERVER_NAME'];
    ?>
  • You can also try this if the Drupal Domain access module is installed in your Drupal site
  • <?php
    $base_domain = explode('.', $_SERVER['SERVER_NAME']);
    unset($base_domain[0]);
    $base_domain = '.' . implode($base_domain, '.');
    
    $cookie_domain = $base_domain;
    ?>

Hope that helps.

The easiest way to solve a Drupal issue is to hand it to the Drupal experts. Do you need professional help in building your Drupal site? We can provide a wide range of Drupal services to help you deploy your Drupal site easily and quickly. Get in touch with us to know more.