cancel
Showing results for 
Search instead for 
Did you mean: 

Problem Mangento installation - Step 6 InvalidArgumentException

Problem Mangento installation - Step 6 InvalidArgumentException

Hi !

 

I try to install Magento 2 on a server.

 

The beginning gone well but on step 6 an error message appear on the console at 0%:

 

Starting Magento installation:
File permissions check...

Required extensions check...

Enabling Maintenance Mode...

Installing deployment configuration...

Installing database schema:
Schema creation/updates:
[ERROR] InvalidArgumentException: Cannot process definition to array for type tinytext in /home/sylvainann/www/magento_2/vendor/magento/framework/Setup/Declaration/Schema/Db/DefinitionAggregator.php:57
Stack trace:
#0 /home/sylvainann/www/magento_2/vendor/magento/framework/Setup/Declaration/Schema/Db/MySQL/DbSchemaReader.php(110): Magento\Framework\Setup\Declaration\Schema\Db\DefinitionAggregator->fromDefinition(Array)
#1 /home/sylvainann/www/magento_2/vendor/magento/framework/Setup/Declaration/Schema/Db/SchemaBuilder.php(79): Magento\Framework\Setup\Declaration\Schema\Db\MySQL\DbSchemaReader->readColumns('photo_comments', 'default')
#2 /home/sylvainann/www/magento_2/vendor/magento/framework/Setup/Declaration/Schema/SchemaConfig.php(66): Magento\Framework\Setup\Declaration\Schema\Db\SchemaBuilder->build(Object(Magento\Framework\Setup\Declaration\Schema\Dto\Schema))
#3 /home/sylvainann/www/magento_2/setup/src/Magento/Setup/Model/DeclarationInstaller.php(58): Magento\Framework\Setup\Declaration\Schema\SchemaConfig->getDbConfig()
#4 /home/sylvainann/www/magento_2/setup/src/Magento/Setup/Model/Installer.php(809): Magento\Setup\Model\DeclarationInstaller->installSchema(Array)
#5 /home/sylvainann/www/magento_2/setup/src/Magento/Setup/Model/Installer.php(831): Magento\Setup\Model\Installer->declarativeInstallSchema(Array)
#6 [internal function]: Magento\Setup\Model\Installer->installSchema(Array)
#7 /home/sylvainann/www/magento_2/setup/src/Magento/Setup/Model/Installer.php(367): call_user_func_array(Array, Array)
#8 /home/sylvainann/www/magento_2/setup/src/Magento/Setup/Controller/Install.php(109): Magento\Setup\Model\Installer->install(Array)
#9 /home/sylvainann/www/magento_2/vendor/zendframework/zend-mvc/src/Controller/AbstractActionController.php(84): Magento\Setup\Controller\Install->startAction()
#10 /home/sylvainann/www/magento_2/vendor/zendframework/zend-eventmanager/src/EventManager.php(322): Zend\Mvc\Controller\AbstractActionController->onDispatch(Object(Zend\Mvc\MvcEvent))
#11 /home/sylvainann/www/magento_2/vendor/zendframework/zend-eventmanager/src/EventManager.php(179): Zend\EventManager\EventManager->triggerListeners(Object(Zend\Mvc\MvcEvent), Object(Closure))
#12 /home/sylvainann/www/magento_2/vendor/zendframework/zend-mvc/src/Controller/AbstractController.php(118): Zend\EventManager\EventManager->triggerEventUntil(Object(Closure), Object(Zend\Mvc\MvcEvent))
#13 /home/sylvainann/www/magento_2/vendor/zendframework/zend-mvc/src/DispatchListener.php(118): Zend\Mvc\Controller\AbstractController->dispatch(Object(Zend\Http\PhpEnvironment\Request), Object(Zend\Http\PhpEnvironment\Response))
#14 /home/sylvainann/www/magento_2/vendor/zendframework/zend-eventmanager/src/EventManager.php(322): Zend\Mvc\DispatchListener->onDispatch(Object(Zend\Mvc\MvcEvent))
#15 /home/sylvainann/www/magento_2/vendor/zendframework/zend-eventmanager/src/EventManager.php(179): Zend\EventManager\EventManager->triggerListeners(Object(Zend\Mvc\MvcEvent), Object(Closure))
#16 /home/sylvainann/www/magento_2/vendor/zendframework/zend-mvc/src/Application.php(340): Zend\EventManager\EventManager->triggerEventUntil(Object(Closure), Object(Zend\Mvc\MvcEvent))
#17 /home/sylvainann/www/magento_2/setup/index.php(39): Zend\Mvc\Application->run()
#18 {main}

I don't understand as well.

what can I do ?

 

Thanks for help !

S2LF

3 REPLIES 3

Re: Problem Mangento installation - Step 6 InvalidArgumentException

Hello @s2_lf 

 

If you are using a custom module, which is updated in the schema that has tinytext field, find it and it will help resolve the issue.

 

If you are not using a custom module, please put the debug log in below file:

magento/framework/Setup/Declaration/Schema/Db/DefinitionAggregator.php:57

Hope it helps.

---
If you've found my answer useful, please give"Kudos" and "Accept as Solution"

Re: Problem Mangento installation - Step 6 InvalidArgumentException

Hi @Meetanshi 

 

I answer to you and my answer has been deleted !

Nice !

 

I've find a solution but I had others issues.

 

I don't use module, just want to install Magento2 for the first time. Not friendly user :'(

 

I find installer here: https://magento.com/tech-resources/download

I try with no sample Data and with sample data -> same error.

I don't understand the difference between them.

 

I will try with new version (2.3.4)

 

Hope you could help me Smiley Happy

 

S2LF

Re: Problem Mangento installation - Step 6 InvalidArgumentException

can you repost your solution?  I am having the same issue when installing