Hi, I was just in the process of installing Drupal 8 and I had just put in my database info, it waited for my site for a while until I got the message "No data recieved". Now when I try and load my site I get a white screen. I put the code in index.php to show the error message and it's showing this:

Fatal error: Call to a member function isAuthenticated() on a non-object in /home/whatahit/public_html/core/includes/session.inc on line 256

Fatal error: Call to a member function id() on a non-object in /home/whatahit/public_html/core/includes/session.inc on line 181

My site is whatahitson.com if you want to check it out.

Comments

John_B’s picture

I hesitate to answer since there is no sign that you read the answers of previous support posts? So many people ask questions here and do not come back to read the answers.

Anyway, you should check that the files where isAuthenticated() and id() are defined actually exists on your installation. I googled for isAuthenticated(), it should be here core/lib/Drupal/Core/Session/AccountInterface.php (source https://api.drupal.org/api/drupal/core%21lib%21Drupal%21Core%21Session%2...) so check the AccountInterface.php file exists.

Of course Drupal 8 is far from production-ready, and updated versions are likely to break your site, so if you wish to use it, you will be doing a lot of debugging. The first thing is to consult the Drupal 8 issue queues to see whether your problems are known issues. There are quite a few critical issues which make it virtually impossible to go live with a Drupal 8 site now, unless you are a developer and willing to work on these bugs.

Digit Professionals specialising in Drupal, WordPress & CiviCRM support for publishers in non-profit and related sectors

nickpwnes’s picture

Ok, thanks, I might just end up using Drupal 7 as I am not much of a developer

nickpwnes’s picture

Ok, thanks, I might just end up using Drupal 7 as I am not much of a developer