Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
dawehnerOh, 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.
Comment #2
BerdirI'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?
Comment #3
xjmWell, 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.)
Comment #4
dawehnerAt least for this error message we don't have to fight with windows.
@Andrzej7
Which distribution do you use exactly?
Comment #5
BerdirOk, 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
Comment #6
dawehnerWe can't fight against broken PHP
Comment #7
xjmWell, 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.
Comment #8
Andrzej7 CreditAttribution: Andrzej7 commentedNo 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.
Comment #9
YesCT CreditAttribution: YesCT commentedd8 dev environment tag to add to the collection of problems people have getting a local to work.
Comment #10
Fabianx CreditAttribution: Fabianx commentedWaiting for provider feedback then ...
Comment #11
alexpottI think this is a duplicate of #2421419: CategorizingPluginManagerTrait not compatible with CategorizingPluginManagerInterface
Comment #12
alexpottComment #13
Berdir@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.
Comment #14
alexpott@Berdir I guess you right - it certainly looks a bug of a similar nature.
Comment #15
larowlanBoldly bumping this down, because looks to be environment specific.
Feel free to disagree.
Comment #16
Andrzej7 CreditAttribution: Andrzej7 commentedSorry, 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.
Comment #17
alexpott@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.
Comment #18
alexpott@Andrzej7 see #2508231: Raise minimum required version of PHP to 5.5.9
Comment #19
Andrzej7 CreditAttribution: Andrzej7 commentedthanks for your answer.
I will post a question to my provider
Comment #20
Andrzej7 CreditAttribution: Andrzej7 commentedHave changed PHP to 5.6.10
New problem - installation script cannot work with database:
Tried on 3 new databases, didn't work. Then installed Drupal 7 on them - without any problem.
Comment #21
BerdirNow you're running into #2529188: Provide better error handling for MySQL client and server utf8mb4 incompatibility. You certainly have a fun hoster ;)