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

Exception during instalation process #11

Closed
bartoll opened this issue Apr 18, 2019 · 4 comments
Closed

Exception during instalation process #11

bartoll opened this issue Apr 18, 2019 · 4 comments

Comments

@bartoll
Copy link

bartoll commented Apr 18, 2019

{
"name": "pimcore/demo-ecommerce",
"type": "project",
"description": "E-Commerce Demo Application for Pimcore 5",
"license": "GPL-3.0-or-later",
"config": {
"optimize-autoloader": true,
"sort-packages": true
},
"require": {
"php": ">=7.1",
"divante-ltd/pimcore-magento2-bridge": "^1.0",
"pimcore/customer-management-framework-bundle": "^1.9",
"pimcore/pimcore": "~5.7.0",
"pimcore/server-side-matomo-tracking": "^0.1",
"pimcore/web2print-tools-bundle": "^2.4",
"wikimedia/composer-merge-plugin": "^1.4"
},
}

I was installing your module according to description of installation process.
There is point:

Install Bundle by running bin/console pimcore:bundle:install DivanteMagentoIntegrationBundle

After running this command I have got an exception like below:

vagrant@vps617093:/var/www/vagrant/pimcore.project$ bin/console pimcore:bundle:install DivanteMagentoIntegrationBundle
Installing bundle DivanteMagentoIntegrationBundle

Migrating up to 00000001 from 0

++ migrating 00000001

11:04:36 ERROR [pimcore] Exception: There is no class with the name: integrationConfiguration in /var/www/vagrant/pimcore.project/vendor/pimcore/pimcore/models/DataObject/ClassDefinition.php:232
Stack trace:
#0 /var/www/vagrant/pimcore.project/vendor/divanteltd/pimcoredevkit/src/PimcoreDevkitBundle/Service/InstallerService.php(169): Pimcore\Model\DataObject\ClassDefinition::getByName('integrationConf...')
#1 /var/www/vagrant/pimcore.project/vendor/divanteltd/pimcoredevkit/src/PimcoreDevkitBundle/Service/InstallerService.php(157): PimcoreDevkitBundle\Service\InstallerService->createClassDefinitionFromString('integrationConf...', '{\n "id": "4"...')
#2 /var/www/vagrant/pimcore.project/vendor/divante-ltd/pimcore-magento2-bridge/src/Divante/MagentoIntegrationBundle/Migrations/Installer.php(72): PimcoreDevkitBundle\Service\InstallerService->createClassDefinition('integrationConf...', '/var/www/vagran...')
#3 /var/www/vagrant/pimcore.project/vendor/pimcore/pimcore/lib/Migrations/Migration/InstallMigration.php(44): Divante\MagentoIntegrationBundle\Migrations\Installer->migrateInstall(Object(ProxyManagerGeneratedProxy_PM_\Doctrine\DBAL\Schema\Schema\Generated93cb4e52be36d1a0ab1c551957e06e24), Object(Pimcore\Migrations\InstallVersion))
#4 /var/www/vagrant/pimcore.project/vendor/pimcore/pimcore/lib/Migrations/Version.php(312): Pimcore\Migrations\Migration\InstallMigration->up(Object(ProxyManagerGeneratedProxy_PM_\Doctrine\DBAL\Schema\Schema\Generated93cb4e52be36d1a0ab1c551957e06e24))
#5 /var/www/vagrant/pimcore.project/vendor/doctrine/migrations/lib/Doctrine/DBAL/Migrations/Migration.php(172): Pimcore\Migrations\Version->execute('up', false, false)
#6 /var/www/vagrant/pimcore.project/vendor/pimcore/pimcore/lib/Extension/Bundle/Installer/MigrationInstaller.php(351): Doctrine\DBAL\Migrations\Migration->migrate('00000001', false)
#7 /var/www/vagrant/pimcore.project/vendor/pimcore/pimcore/lib/Extension/Bundle/Installer/MigrationInstaller.php(145): Pimcore\Extension\Bundle\Installer\MigrationInstaller->executeInstallMigration(true)
#8 /var/www/vagrant/pimcore.project/vendor/pimcore/pimcore/lib/Extension/Bundle/PimcoreBundleManager.php(484): Pimcore\Extension\Bundle\Installer\MigrationInstaller->install()
#9 /var/www/vagrant/pimcore.project/vendor/pimcore/pimcore/bundles/CoreBundle/Command/Bundle/InstallCommand.php(45): Pimcore\Extension\Bundle\PimcoreBundleManager->install(Object(Divante\MagentoIntegrationBundle\DivanteMagentoIntegrationBundle))
#10 /var/www/vagrant/pimcore.project/vendor/symfony/symfony/src/Symfony/Component/Console/Command/Command.php(255): Pimcore\Bundle\CoreBundle\Command\Bundle\InstallCommand->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#11 /var/www/vagrant/pimcore.project/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php(978): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#12 /var/www/vagrant/pimcore.project/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Console/Application.php(86): Symfony\Component\Console\Application->doRunCommand(Object(Pimcore\Bundle\CoreBundle\Command\Bundle\InstallCommand), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#13 /var/www/vagrant/pimcore.project/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php(255): Symfony\Bundle\FrameworkBundle\Console\Application->doRunCommand(Object(Pimcore\Bundle\CoreBundle\Command\Bundle\InstallCommand), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#14 /var/www/vagrant/pimcore.project/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Console/Application.php(74): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#15 /var/www/vagrant/pimcore.project/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php(148): Symfony\Bundle\FrameworkBundle\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#16 /var/www/vagrant/pimcore.project/bin/console(26): Symfony\Component\Console\Application->run()
#17 {main}
Migration 00000001 was executed but did not result in any SQL statements.

Despite this exception, the module was installed and I was able to configure it in Pimcore.

@prugala
Copy link
Contributor

prugala commented Apr 18, 2019

Its output from logger. Pimcore throws an exception when Class definition dosent exists, then catches it.
https://github.com/pimcore/pimcore/blob/master/models/DataObject/ClassDefinition.php#L224

@bartoll
Copy link
Author

bartoll commented Apr 23, 2019

Is it acceptable situation in Pimcore 5.4 with coreshop ecommerce bundle?

@bartoll
Copy link
Author

bartoll commented May 9, 2019

TODO:

  • check if problem still exists after executing

bin/console pimcore:deployment:classes-rebuild
bin/console cache:clear

@mbolka
Copy link
Contributor

mbolka commented Jun 7, 2019

@bartoll Yes it is an acceptable situation

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

3 participants