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

bojanz’s picture

Priority: Critical » Normal

Looks 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?

andrewscullion’s picture

Hi,

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??

drush pmi entityreference
Extension:entityreference                                                                                                               
Project:entityreference                                                                                                                     
Type:module                                                                                                                              
Title:Entity Reference                                                                                                                    
Description:Provides a field that can reference other entities.                                                                                 
Version:7.x-1.0                                                                                                                             
Package:Fields                                                                                                                              
Core:7.x                                                                                                                                 
PHP:5.2.4                                                                                                                               
Status:disabled                                                                                                                            
Path:profiles/commerce_kickstart/modules/contrib/entityreference                                                                         
Schema:7002        version                                                                                                                                              
Files:entityreference.migrate.inc, plugins/selection/abstract.inc, plugins/selection/views.inc, plugins/behavior/abstract.inc,            
                  views/entityreference_plugin_display.inc, views/entityreference_plugin_style.inc, views/entityreference_plugin_row_fields.inc,      
                  tests/entityreference.handlers.test, tests/entityreference.taxonomy.test, tests/entityreference.admin.test                          
Requires:entity, ctools                                                                                                                      
Required by:commerce_discount, commerce_discount_date, commerce_discount_usage, commerce_message, commerce_kickstart_order, commerce_kickstart, 
                  commerce_kickstart_product, entityreference_behavior_example, message_example, message_notify_example, message_og_example           

I then tried drush en entityreference and got the following error again, so how do you re-enable this to get the site back??

The following extensions will be enabled: entityreference, entity
Do you really want to continue? (y/n): y
Drush command terminated abnormally due to an unrecoverable error.                                                                                        [error]
Error: Call to undefined function entityreference_get_behavior_handlers() in
/profiles/commerce_kickstart/modules/contrib/entityreference/entityreference.install, line 44

And most importantly, how do you update commerce kickstart without causing this problem??

bojanz’s picture

Category: bug » support
Status: Active » Fixed

Try 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.

andrewscullion’s picture

Hi 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.

andrewscullion’s picture

Category: support » bug
Priority: Normal » Major
Status: Fixed » Active

Based 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.

jsacksick’s picture

Status: Active » Fixed

A 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.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

drvdt’s picture

I have same problem with 1.1 version