concretecms-community-store / community_store

An open, free and community developed eCommerce system for Concrete CMS
https://concretecms-community-store.github.io/community_store/
MIT License
106 stars 66 forks source link

Trying to edit example Products page produces error #807

Open BloodyIron opened 11 months ago

BloodyIron commented 11 months ago

In my dev Concrete CMS space (running Concrete CMS v8.5.7) when I installed Community Store, I think it created an example Products page for me. I'm using the Elemental theme on this website, if that makes any difference. It's been months since I installed the Community Store so I don't recall if I was presented with an option to set up example content or not, let alone whether I said yes to that.

However, there's a Products page, with an empty Products Block. When I try to put the page into edit mode I get this error:

Entity 'Concrete\Package\CommunityStore\Entity\Attribute\Key\StoreProductKey' has to be part of the discriminator map of 'Concrete\Core\Entity\Attribute\Key\Key' to be properly mapped in the inheritance hierarchy. Alternatively you can make 'Concrete\Package\CommunityStore\Entity\Attribute\Key\StoreProductKey' an abstract class to avoid this exception from occurring.

Referring to:

…/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/MappingException.php679

What's up with that?

Mesuva commented 11 months ago

I think this is very similar to the other issue you raised here: https://github.com/concretecms-community-store/community_store/issues/806

This has been one of those long-standing issues that has popped up from time-to-time, but most people find it either resolves itself from cache flushes or similar. We've never actually found the true cause of this, but a contributor did submit some code into another branch of community store that may resolve this - I'm just yet to be able to merge it in.

BloodyIron commented 11 months ago

I wonder if it's possibly a shortcoming of the on_install step of Community Store, maybe missing something... hmmm, but unsure what to do about this (I've responded in the other thread btw as of this writing).