drupalcommerce / project-base

Provides a Composer template for a new Commerce 2.x project
GNU General Public License v2.0
54 stars 28 forks source link

Error on Site Install: Error: Class 'Drupal\shortcut\Entity\Shortcut' not found in commerce_base_install() #35

Closed z3cka closed 3 years ago

z3cka commented 3 years ago

After setting up a new project with composer create-project ... I was greeted with the following error on site install:

Error
The website encountered an unexpected error. Please try again later.
Error: Class 'Drupal\shortcut\Entity\Shortcut' not found in commerce_base_install() (line 25 of profiles/contrib/commerce_base/commerce_base.install).
commerce_base_install()
call_user_func_array('commerce_base_install', Array) (Line: 392)
Drupal\Core\Extension\ModuleHandler->invoke('commerce_base', 'install', Array) (Line: 328)
Drupal\Core\Extension\ModuleInstaller->install(Array, ) (Line: 83)
Drupal\Core\ProxyClass\Extension\ModuleInstaller->install(Array, ) (Line: 1649)
install_install_profile(Array) (Line: 690)
install_run_task(Array, Array) (Line: 565)
install_run_tasks(Array, NULL) (Line: 118)
install_drupal(Object) (Line: 48)

Anyone else having this issue?

z3cka commented 3 years ago

This is caused by a missing dependency in drupalcommerce/commerce_base; here's a PR for the fix: https://github.com/drupalcommerce/commerce_base/pull/12

z3cka commented 3 years ago

Looks like shortcuts are no longer created during install so this issue should be fixed.