What are the Slack Archives?
It’s a history of our time together in the Slack Community! There’s a ton of knowledge in here, so feel free to search through the archives for a possible answer to your question.
Because this space is not active, you won’t be able to create a new post or comment here. If you have a question or want to start a discussion about something, head over to our categories and pick one to post in! You can always refer back to a post from Slack Archives if needed; just copy the link to use it as a reference..
Hello everyone, when i try to execute `propel:install` on a fresh installation, i get this following
Hello everyone, when i try to execute propel:install
on a fresh installation, i get this following exception. Does anybody know, where it could come from?
// Exception in Thread
Comments
-
php vendor/bin/console propel:install <https://yves.onrender.comStore>: DE | Environment: production Creating Database Adjust propel config for PostgreSQL and missing functions (group_concat) Clean schema directory Copy and merge schema files Build Propel2 classes Generate diff for Propel2 36 tables found in all databases. Comparing models... Structure of database was modified in datasource "zed": 262 added tables, 36 removed tables Error - Exception: Call to a member function getName() on null in /data/vendor/propel/propel/src/Propel/Generator/Platform/DefaultPlatform.php (484) Command: vendor/bin/console propel:install Trace: #0 /data/vendor/propel/propel/src/Propel/Generator/Platform/DefaultPlatform.php(604): Propel\Generator\Platform\DefaultPlatform->getColumnListDDL(Array) #1 /data/vendor/propel/propel/src/Propel/Generator/Platform/PgsqlPlatform.php(913): Propel\Generator\Platform\DefaultPlatform->getAddIndexDDL(Object(Propel\Generator\Model\Index)) #2 /data/vendor/propel/propel/src/Propel/Generator/Platform/DefaultPlatform.php(580): Propel\Generator\Platform\PgsqlPlatform->getAddIndexDDL(Object(Propel\Generator\Model\Index)) #3 /data/vendor/propel/propel/src/Propel/Generator/Platform/DefaultPlatform.php(804): Propel\Generator\Platform\DefaultPlatform->getAddIndicesDDL(Object(Propel\Generator\Model\Table)) #4 /data/vendor/propel/propel/src/Propel/Generator/Command/MigrationDiffCommand.php(213): Propel\Generator\Platform\DefaultPlatform->getModifyDatabaseDDL(Object(Propel\Generator\Model\Diff\DatabaseDiff)) #5 /data/vendor/spryker/propel-orm/src/Spryker/Zed/PropelOrm/Communication/Generator/Command/MigrationDiffCommand.php(28): Propel\Generator\Command\MigrationDiffCommand->execute(Object(Symfony\Component\Console\Input\ArrayInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #6 /data/vendor/spryker/propel/src/Spryker/Zed/Propel/Communication/Command/Runner/PropelCommandRunner.php(64): Spryker\Zed\PropelOrm\Communication\Generator\Command\MigrationDiffCommand->run(Object(Symfony\Component\Console\Input\ArrayInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #7 /data/vendor/spryker/propel/src/Spryker/Zed/Propel/Communication/Console/DiffConsole.php(51): Spryker\Zed\Propel\Communication\Command\Runner\PropelCommandRunner->runCommand(Object(Spryker\Zed\PropelOrm\Communication\Generator\Command\MigrationDiffCommand), Object(Symfony\Component\Console\Input\InputDefinition), Object(Symfony\Component\Console\Output\ConsoleOutput)) #8 /data/vendor/symfony/console/Command/Command.php(255): Spryker\Zed\Propel\Communication\Console\DiffConsole->execute(Object(Symfony\Component\Console\Input\ArrayInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #9 /data/vendor/spryker/kernel/src/Spryker/Zed/Kernel/Communication/Console/Console.php(234): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArrayInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #10 /data/vendor/spryker/propel/src/Spryker/Zed/Propel/Communication/Console/PropelInstallConsole.php(57): Spryker\Zed\Kernel\Communication\Console\Console->runDependingCommand(Object(Spryker\Zed\Propel\Communication\Console\DiffConsole)) #11 /data/vendor/symfony/console/Command/Command.php(255): Spryker\Zed\Propel\Communication\Console\PropelInstallConsole->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /data/vendor/symfony/console/Application.php(1018): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /data/vendor/symfony/console/Application.php(271): Symfony\Component\Console\Application->doRunCommand(Object(Spryker\Zed\Propel\Communication\Console\PropelInstallConsole), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /data/vendor/spryker/console/src/Spryker/Zed/Console/Communication/Bootstrap/ConsoleBootstrap.php(110): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /data/vendor/symfony/console/Application.php(147): Spryker\Zed\Console\Communication\Bootstrap\ConsoleBootstrap->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /data/vendor/spryker/console/bin/console(27): Symfony\Component\Console\Application->run()
0 -
I would set a breakpoint in the method (e.g. in line 482) and run the command again with
-x
to see what's inside$columns
.0 -
Probably an schema.xml file with no content inside or a table definition without any columns.
At least that's mostly the reason I got this error0 -
Thanks for your tips! Unfortunately, both have not worked for me. All schemas have at least one column per table and strangely
die();
doen’t work on line 482 (with flushed opcache). I’ll debug further.0 -
It can be happen also when a column in schema xml has no definition of type... it happend also for generate entity transfer.. maybe also in this case.. just check it too
0 -
or an index has no name definition,,, the same for fk etc..
0 -
it’s a fresh copy from b2c-demo-shop and as far as i know there are all schem xmls correct.. i am still debugging
0 -
and strangely
die();
doen’t work on line 482This is really strange, are you sure you work on the same file?
0 -
Yes, i am absolutely sure that i work in the correct file. But i think i have found the error: it seems that the PostgreSQL-Database which i have used has some default-tables. When create and use a fresh database it works. However, the error message still irritates me.
0
Categories
- All Categories
- 42 Getting Started & Guidelines
- 7 Getting Started in the Community
- 8 Additional Resources
- 7 Community Ideas and Feedback
- 76 Spryker News
- 929 Developer Corner
- 787 Spryker Development
- 89 Spryker Dev Environment
- 362 Spryker Releases
- 3 Oryx frontend framework
- 35 Propel ORM
- 68 Community Projects
- 3 Community Ideation Board
- 30 Hackathon
- 3 PHP Bridge
- 6 Gacela Project
- 26 Job Opportunities
- 3.2K 📜 Slack Archives
- 116 Academy
- 5 Business Users
- 370 Docker
- 551 Slack General
- 2K Help
- 75 Knowledge Sharing
- 6 Random Stuff
- 4 Code Testing
- 32 Product & Business Questions
- 70 Spryker Safari Questions
- 50 Random