I did a fresh install of latest commerce 2.20 and Marketplace dev. on drupal 9.
I followed all the steps in the help document and created a marketplace owner user, added a store and then went to my store page and click add product.
I get the following error messages.
Notice: Undefined property: Drupal\commerce_marketplace\Form\MarketplaceProductForm::$entityManager in Drupal\commerce_marketplace\Form\MarketplaceProductForm->buildForm() (line 18 of MarketplaceProductForm.php)
Error: Call to a member function getStorage() on null in Drupal\commerce_marketplace\Form\MarketplaceProductForm->buildForm() (line 18 of MarketplaceProductForm.php)
This is whats on line 18
if ($product = \Drupal::request()->attributes->get('commerce_product')) {
Am I missing some setting in my default product setup?
Thanks
Edit: Admin cant add products either.
Comments
Comment #2
vlooi vlerke commentedComment #4
drugan commented@Vlooi Vlerke
Please, try it now.
Comment #5
drugan commentedComment #6
vlooi vlerke commented@drugan
It works! Thanks
Comment #7
drugan commentedFixed.