After fresh install (php 5.4.36-0+tld0) I get such error:

Fatal error: Call to undefined method Drupal\user\Entity\User::traitSleep() in /home/users/test/public_html/core/lib/Drupal/Core/Entity/Entity.php on line 556

Comments

dawehner’s picture

Oh, that sounds like a specific bug of your php version.

I tried to add a test example to http://3v4l.org/JcRtA but it certainly doesn't fail ... also the testbot runs on 5.4, so it should fail immediately.

Berdir’s picture

I've seen this one before, seems to be a PHP version where aliases traits aren't working...

Searching for "traitSleep" pointed me to #2347661: PHP Unit tests are broken on Windows. My guess is that you're using windows?

I think we can close this as duplicate, possibly raising the other one to major, but I think not critical?

xjm’s picture

Status: Active » Postponed (maintainer needs more info)

Well, if it were currently impossible to install D8 on Windows using a PHP version we support, then that would be critical. Edit: The options would either be to fix it, to recommend a workaround, or to not support that version on Windows.

@Andrzej7, can you provide more information on your specific environment and the steps to reproduce the issue? I.e. do you get the message while running the installer? Does it appear just once and go away, or is the site totally unusable? Does installation fail entirely? (Be sure to start clean.)

dawehner’s picture

At least for this error message we don't have to fight with windows.

@Andrzej7
Which distribution do you use exactly?

Berdir’s picture

Ok, this is weird.

php 5.4.36-0+tld0 doesn't look like windows at all, that looks like a typical linux distribution suffix. Google finds very few hits, but someone was nice enough to leave the symfony debugger on and was using that version. The IP points to tld.pl (look, the suffix matches!), but there's nothing to see :p

Accessing the IP directly in turn points to https://www.kei.pl/, a polnish web hoster. Looks like they broke their PHP :p

dawehner’s picture

Status: Postponed (maintainer needs more info) » Fixed

We can't fight against broken PHP

xjm’s picture

Status: Fixed » Postponed (maintainer needs more info)

Well, let's wait to hear back. Presumably this will end up closed as a wontfix since we can't really do anything about rare PHP bugs in specific distros.

Andrzej7’s picture

Status: Postponed (maintainer needs more info) » Active

No Windows :-) KEI provider in Poland

The error is after first (FRESH) installation, some hours later the error disappears, but loging in is impossible.

Drupal fresh and newest version beta9.
base: MySQL, MariaDB, or equivalent
Linux 3.18.7.core2.52
Server API Apache 2.0 Handler

I will ask my provider.

YesCT’s picture

Issue tags: +d8 dev environment

d8 dev environment tag to add to the collection of problems people have getting a local to work.

Fabianx’s picture

Status: Active » Postponed (maintainer needs more info)

Waiting for provider feedback then ...

alexpott’s picture

alexpott’s picture

Berdir’s picture

@alexpott: Same category of problems (bugs with specific php versions), but why do you think it is a duplicate?

So far we don't know what the problem is, it's not just that PHP version. Unlike the other issue, which can easily be reproduced on 3v4l.org, this one works fine on that version.

alexpott’s picture

@Berdir I guess you right - it certainly looks a bug of a similar nature.

larowlan’s picture

Category: Bug report » Support request
Priority: Critical » Major

Boldly bumping this down, because looks to be environment specific.
Feel free to disagree.

Andrzej7’s picture

Version: 8.0.0-beta9 » 8.0.0-beta12

Sorry, still the same error in the process of installing

Fatal error: Call to undefined method Drupal\user\Entity\User::traitSleep() in /home/users/test/public_html/drupal8/core/lib/Drupal/Core/Entity/Entity.php on line 585

After a while I can continue the installing process, but creating admin account is impossible. After that I try to create new account - the same error appears.

I'm not a programmer, can't say if that is environment specific. I checked if ll files are uploaded.

alexpott’s picture

@Andrzej7 Drupal 8's minimum PHP version is 5.5 - in the issue summary it's saying php5.4 - I guess beta12 was before the version change.

alexpott’s picture

Andrzej7’s picture

thanks for your answer.
I will post a question to my provider

Andrzej7’s picture

Category: Support request » Bug report
Status: Postponed (maintainer needs more info) » Active

Have changed PHP to 5.6.10
New problem - installation script cannot work with database:

Failed to connect to your database server. The server reports the following message: SQLSTATE[HY000] [2019] Can't initialize character set utf8mb4 (path: /usr/share/mysql/charsets/).

Tried on 3 new databases, didn't work. Then installed Drupal 7 on them - without any problem.

Berdir’s picture

Status: Active » Closed (duplicate)