cancel
Showing results for 
Search instead for 
Did you mean: 

setup:upgrade Schema creation/updates error in DefinitionAggregator.php

SOLVED

setup:upgrade Schema creation/updates error in DefinitionAggregator.php

Hello!

I am trying to setup:upgrade but its giving me this error

Undefined index: version in /var/www/html/vendor/magento/framework/Setup/Declaration/Schema/Db/DefinitionAggregator.php on line 91

I am not able to trace it. How do I fix this?

1 ACCEPTED SOLUTION

Accepted Solutions

Re: setup:upgrade Schema creation/updates error in DefinitionAggregator.php

It was a MySQL error. 

SHOW variables LIKE 'version' was returning blank output. I had to re-install MySQL server and problem solved.
 
Thank you!

View solution in original post

2 REPLIES 2

Re: setup:upgrade Schema creation/updates error in DefinitionAggregator.php

Hi @sanjeevthed6f0,

 

Did you installed recently some new module in your store. If yes, then you need to check the installer scripts of your module in Setup Folder. 

 

If possible, please share with us the code of module setup scripts.

 

Hope this helps you!

Problem Solved! Click Kudos & Accept as Solution!

Re: setup:upgrade Schema creation/updates error in DefinitionAggregator.php

It was a MySQL error. 

SHOW variables LIKE 'version' was returning blank output. I had to re-install MySQL server and problem solved.
 
Thank you!