pixelant / pxa_product_manager

Product Manager. Allow to create and list products on a site. Create dynamical attributes for products. Filter by categories and attributes
11 stars 13 forks source link

Attribute type zero not supported on clear cache #278

Closed mabolek closed 3 years ago

mabolek commented 3 years ago

The error appears if there is an attribute with type zero in database. This should not be possible.

  [ UnexpectedValueException ]            
  Attribute with type "0" not supported.  

Exception code: 1568986135545

Exception trace:
#0 ()
   typo3conf/ext/pxa_product_manager/Classes/Attributes/ConfigurationProvider/ConfigurationProviderFactory.php:52
#1 Pixelant\PxaProductManager\Attributes\ConfigurationProvider\ConfigurationProviderFactory::create()
   typo3conf/ext/pxa_product_manager/Configuration/TCA/tx_pxaproductmanager_domain_model_attributevalue.php:26
#2 require()
   typo3/sysext/core/Classes/Utility/ExtensionManagementUtility.php:1688
#3 TYPO3\CMS\Core\Utility\ExtensionManagementUtility::buildBaseTcaFromSingleFiles()
   typo3/sysext/core/Classes/Utility/ExtensionManagementUtility.php:1662
#4 TYPO3\CMS\Core\Utility\ExtensionManagementUtility::loadBaseTca()
   typo3/sysext/core/Classes/Core/Bootstrap.php:518
#5 TYPO3\CMS\Core\Core\Bootstrap::loadBaseTca()
   typo3/sysext/install/Classes/Service/LateBootService.php:141
#6 TYPO3\CMS\Install\Service\LateBootService->loadExtLocalconfDatabaseAndExtTables()
   typo3/sysext/install/Classes/Service/ClearCacheService.php:87
#7 TYPO3\CMS\Install\Service\ClearCacheService->clearAll()
   vendor/helhum/typo3-console/Classes/Console/Command/Cache/CacheFlushCommand.php:67
#8 Helhum\Typo3Console\Command\Cache\CacheFlushCommand->execute()
   vendor/symfony/console/Command/Command.php:255
#9 Symfony\Component\Console\Command\Command->run()
   vendor/symfony/console/Application.php:971
#10 Symfony\Component\Console\Application->doRunCommand()
   vendor/helhum/typo3-console/Classes/Console/Mvc/Cli/Symfony/Application.php:189
#11 Helhum\Typo3Console\Mvc\Cli\Symfony\Application->doRunCommand()
   vendor/symfony/console/Application.php:290
#12 Symfony\Component\Console\Application->doRun()
   vendor/symfony/console/Application.php:166
#13 Symfony\Component\Console\Application->run()
   vendor/helhum/typo3-console/Classes/Console/Core/Kernel.php:113
#14 Helhum\Typo3Console\Core\Kernel->handle()
   vendor/helhum/typo3-console/Scripts/typo3-console.php:31
#15 {closure}()
   vendor/helhum/typo3-console/Scripts/typo3-console.php:33
#16 require()
   vendor/helhum/typo3-console/typo3cms:3