coreshop / CoreShop

CoreShop - Pimcore enhanced eCommerce
http://www.coreshop.org
Other
275 stars 157 forks source link

Errors after update to the new version #1012

Closed turgic closed 5 years ago

turgic commented 5 years ago
Q A
Bug report? yes/no
Feature request? yes/no
BC Break report? yes/no
RFC? yes/no

Hello guys, I update the coreshop to the version 2.0.8, to be able to use import/definitions plugin. So I did :

composer require coreshop/core-shop:2.0.8

composer runs whitout problems, but now I have the error when I reload the browser :

Attempted to load class "ProductUnitDefinitions" from namespace "CoreShop\Bundle\ProductBundle\CoreExtension".
 var/classes/definition_CoreShopProduct.php

I tried to rebuild classe like

bin/console pimcore:deployment:classes-rebuild -c

But I have the same issue :confused:

dpfaffenbauer commented 5 years ago

it seems you downgraded your version. ProductUnitDefinitions was introduce in the master (2.1-dev) branch

dpfaffenbauer commented 5 years ago

manually clear your definition file and remove fields that aren't in 2.0 and rebuild the classes

turgic commented 5 years ago

@dpfaffenbauer what is the last version that I need to update ? composer require coreshop/core-shop:dev-master

dpfaffenbauer commented 5 years ago

the latest version is 2.0.8. But if you installed 2.1-dev, downgrading is possible, but difficult. A lot of new things have been introduced. You are better if you completely reinstall.

turgic commented 5 years ago

@dpfaffenbauer So I need to remove actual coreshop, and install : 2.0.8 ? in order to be able to use product variants, import/definitions, etc ? Thx

dpfaffenbauer commented 5 years ago

you can also use 2.1-dev.....

turgic commented 5 years ago

composer require coreshop/core-shop:2.1-dev : Error : Could not find package coreshop/core-shop in a version matching 2.1-dev
@dpfaffenbauer any ideas please ?

dpfaffenbauer commented 5 years ago

can you please read the composer docs.