Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setup:upgrade: Call to a member function getBackend() on bool #16

Open
tim-breitenstein-it opened this issue May 25, 2023 · 0 comments
Open

Comments

@tim-breitenstein-it
Copy link

tim-breitenstein-it commented May 25, 2023

When upgrading MageSuite BrandManagement v1.9.2 to v1.9.3 (or higher) an error during setup:upgrade occurs:

Call to a member function getBackend() on bool
#0 /var/www/magento/vendor/creativestyle/magesuite-brand-management/Model/ResourceModel/Brands.php(94): MageSuite\BrandManagement\Model\ResourceModel\Brands->removeAttributeForStore()
#1 /var/www/magento/generated/code/MageSuite/BrandManagement/Model/ResourceModel/Brands/Interceptor.php(59): MageSuite\BrandManagement\Model\ResourceModel\Brands->removeAttribute()
#2 /var/www/magento/vendor/creativestyle/magesuite-brand-management/Model/BrandsRepository.php(118): MageSuite\BrandManagement\Model\ResourceModel\Brands\Interceptor->removeAttribute()
#3 /var/www/magento/vendor/creativestyle/magesuite-brand-management/Service/Upgrade/Migration.php(109): MageSuite\BrandManagement\Model\BrandsRepository->save()
#4 /var/www/magento/vendor/creativestyle/magesuite-brand-management/Service/Upgrade/Migration.php(74): MageSuite\BrandManagement\Service\Upgrade\Migration->transferXmlContentToJson()
#5 /var/www/magento/vendor/creativestyle/magesuite-brand-management/Service/Upgrade/Migration.php(65): MageSuite\BrandManagement\Service\Upgrade\Migration->setJsonValueForItemsInCollection()
#6 [internal function]: MageSuite\BrandManagement\Service\Upgrade\Migration->MageSuite\BrandManagement\Service\Upgrade\{closure}()
#7 /var/www/magento/vendor/magento/framework/App/State.php(187): call_user_func_array()
#8 /var/www/magento/generated/code/Magento/Framework/App/State/Interceptor.php(68): Magento\Framework\App\State->emulateAreaCode()
#9 /var/www/magento/vendor/creativestyle/magesuite-brand-management/Service/Upgrade/Migration.php(67): Magento\Framework\App\State\Interceptor->emulateAreaCode()
#10 /var/www/magento/vendor/creativestyle/magesuite-brand-management/Setup/Patch/Data/MigrateContentConfigToJsonFormat.php(17): MageSuite\BrandManagement\Service\Upgrade\Migration->transferOldXmlValuesToNewJsonFields()
#11 /var/www/magento/vendor/magento/framework/Setup/Patch/PatchApplier.php(162): MageSuite\BrandManagement\Setup\Patch\Data\MigrateContentConfigToJsonFormat->apply()
#12 /var/www/magento/setup/src/Magento/Setup/Model/Installer.php(1094): Magento\Framework\Setup\Patch\PatchApplier->applyDataPatch()
#13 /var/www/magento/setup/src/Magento/Setup/Model/Installer.php(960): Magento\Setup\Model\Installer->handleDBSchemaData()
#14 /var/www/magento/setup/src/Magento/Setup/Console/Command/UpgradeCommand.php(147): Magento\Setup\Model\Installer->installDataFixtures()
#15 /var/www/magento/vendor/symfony/console/Command/Command.php(255): Magento\Setup\Console\Command\UpgradeCommand->execute()
#16 /var/www/magento/vendor/symfony/console/Application.php(1021): Symfony\Component\Console\Command\Command->run()
#17 /var/www/magento/vendor/symfony/console/Application.php(275): Symfony\Component\Console\Application->doRunCommand()
#18 /var/www/magento/vendor/magento/framework/Console/Cli.php(115): Symfony\Component\Console\Application->doRun()
#19 /var/www/magento/vendor/symfony/console/Application.php(149): Magento\Framework\Console\Cli->doRun()
#20 /var/www/magento/bin/magento(23): Symfony\Component\Console\Application->run()
#21 {main}

PHP Fatal error:  Uncaught Exception: User Error: Some transactions have not been committed or rolled back in /var/www/magento/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php on line 4050 in /var/www/magento/vendor/magento/framework/App/ErrorHandler.php:61
Stack trace:
#0 [internal function]: Magento\Framework\App\ErrorHandler->handler()
#1 /var/www/magento/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(4050): trigger_error()
#2 [internal function]: Magento\Framework\DB\Adapter\Pdo\Mysql->__destruct()
#3 {main}
  thrown in /var/www/magento/vendor/magento/framework/App/ErrorHandler.php on line 61

Magento: v2.4.3-p3
Magesuite: v10.1.0
Brand Management Extension: v1.9.2 to v1.9.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant