SyliusCustomOptionsPlugin icon indicating copy to clipboard operation
SyliusCustomOptionsPlugin copied to clipboard

$translatable must not be defined (as in class Sylius\Component\Resource\Model\AbstractTranslation)

Open bellu opened this issue 1 year ago • 3 comments

After updating my php version to 8.1 and SyliusCustomOptionsPlugin to 4.0, i've this error during composer install:

!! Fatal error: Type of Brille24\SyliusCustomerOptionsPlugin\Entity\CustomerOptions\CustomerOptionGroupTranslation::$translatable must not be defined (as in class Sylius\Component\Resource\Model\AbstractTranslation) in /var/www/html/website/vendor/brille24/sylius-customer-options-plugin/src/Entity/CustomerOptions/CustomerOptionGroupTranslation.php on line 21

bellu avatar Apr 16 '24 07:04 bellu

Hey thanks for reporting this issue. Can you have a look at what version of Sylius are you running but most importantly what version of the resource bundle. It should be compatible.

mamazu avatar Apr 16 '24 09:04 mamazu

I'm using sylius 1.10.9 and brille24/sylius-customer-options-plugin 4.0.0

bellu avatar Apr 16 '24 09:04 bellu

If you are running that old of a version of Sylius you might need to upgrade the resource bundle:

composer update sylius/resource-bundle

It has to be at least version 1.10.

mamazu avatar Apr 16 '24 11:04 mamazu