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.
I have just tried upgrading a commerce kickstart 2.2 site on my local mamp to kickstart 2.3, following the method of:
downloading kickstart 2.3
copying the sites/default/settings.php
and sites/default/files
across from the old site
deleting the old site file set replacing it with the new 2.3 file set
On going to the home page I got a blank screen.
I then used drush updb
to run the database update. Still blank screen.
drush rq
reports everything ok.
drush cc
or drush cron
both return the following error:
Error: Call to undefined function entityreference_get_behavior_handlers() in
/../profiles/commerce_kickstart/modules/contrib/entityreference/entityreference.install, line 44
Have I misunderstood how to upgrade kickstart or missed something or is this a bug?
Comments
Comment #1
bojanz CreditAttribution: bojanz commentedLooks like an entityreference issue.
Searching their queue gave me the following issues:
#1836106: Fatal error: Call to undefined function entityreference_get_behavior_handlers() in entityreference_schema()
#1459540: People seems to be able to disable a Field module which still has fields, and core seems to call field hooks on disabled modules
And the issues say that this problem occurs if entityreference somehow got disabled.
Can you check if the module is still present and enabled?
Comment #2
andrewscullion CreditAttribution: andrewscullion commentedHi,
Thank you for the help.
I checked this with
drush pmi entity reference
Here is the output so it looks like it's been disabled, HOW??
I then tried
drush en entityreference
and got the following error again, so how do you re-enable this to get the site back??And most importantly, how do you update commerce kickstart without causing this problem??
Comment #3
bojanz CreditAttribution: bojanz commentedTry editing the entityreference row in the system table (and set the status to 1). That should do it.
You are not supposed to disable any modules prior to updating Kickstart.
Disabled modules are generally broken in Drupal.
Comment #4
andrewscullion CreditAttribution: andrewscullion commentedHi Bojanz,
I tried that and nothing has changed. Plus I didn't disable any modules, this was a fresh Kickstart 2.2 install on local mamp. All I did was update the slide show content with some new images and added some text info to the pages. I had not even started adding products.
So to replicate, install a fresh install of kickstart 2.2 with no demo store.
Follow the upgrade instructions to upgrade to kickstart 2.3 and it breaks.
Comment #5
andrewscullion CreditAttribution: andrewscullion commentedBased on the fact that everything went from working to completely broken as a result of following the drupal commerce upgrade instructions exactly, I am not sure why this has been marked as a support request or as fixed. The upgrade process has clearly done something messy which has broken everything.
Comment #6
jsacksick CreditAttribution: jsacksick commentedA kind of similar bug happened to me and it was because I ran drush updb with missing modules. You probably did a mistake when you replaced the files.
Comment #8
drvdt CreditAttribution: drvdt commentedI have same problem with 1.1 version