backdrop-contrib / search_api

Provides a generic API for modules offering search capabilities
GNU General Public License v2.0
0 stars 6 forks source link

Upgrade from D7 fails due to Entity Plus dependency #64

Open laryn opened 11 months ago

laryn commented 11 months ago

Workaround is to enable an Entity Plus stub module on D7, or temporarily disable this module to get through the upgrade.

argiepiano commented 11 months ago

This should not be happening, as Backdrop now automatically enables Entity Plus when upgrading (provided the Backdrop module is present in the upgraded site's modules folder).

I've found instances where this happened, and those were usually due to code problems; for example, having a class that extends an E+ class in a file shared by other functions that are loaded early in the upgrade process (e.g. hook_views_data()).

The only way to find out what the problem is is to step debug the upgrade process. Typically these issues can be fixed relatively easily.

argiepiano commented 11 months ago

Can you post the error and line where this happened?

argiepiano commented 11 months ago

OK, I took a quick look. There are a few spots where Entity Plus is needed before it's enabled in the upgrade process. Some of these could be fixed, but I agree that it's simpler to enable the stub module in the D7 site before upgrading.