Are you using a drupal 8 module ? Hello, is this (F:\wamp64\www\oxshot-rep-sandeep\your_auto_login.php) a drupal 8 module ? If you use it out side of drupal, the error is normal. Reply