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

drush updatedb does not work with MongoDB #6205

Open
drupal-daffie opened this issue Jan 9, 2025 · 0 comments
Open

drush updatedb does not work with MongoDB #6205

drupal-daffie opened this issue Jan 9, 2025 · 0 comments

Comments

@drupal-daffie
Copy link
Contributor

Describe the bug
Running the command "drush updatedb" does not work when the database is MongoDB.

To Reproduce
I have a Drupal on MongoDB site and there are outstanding database updates. When I then run the command "drush updatedb" I get the following error: "[error] TypeError: ArrayObject::__construct(): Argument #1 ($array) must be of type array, false given in ArrayObject->__construct() (line 15 of /var/www/html/vendor/consolidation/output-formatters/src/StructuredData/AbstractListData.php) #0 /var/www/html/vendor/consolidation/output-formatters/src/StructuredData/AbstractListData.php(15): ArrayObject->__construct()"

Expected behavior
The outstanding database updated will be run. In the same way as it does when the database is MySQL/MariaDB/PostgreSQL.

Actual behavior
I got the error: "[error] TypeError: ArrayObject::__construct(): Argument #1 ($array) must be of type array, false given in ArrayObject->__construct() (line 15 of /var/www/html/vendor/consolidation/output-formatters/src/StructuredData/AbstractListData.php) #0 /var/www/html/vendor/consolidation/output-formatters/src/StructuredData/AbstractListData.php(15): ArrayObject->__construct()"

Workaround
Run the database updates process in the browser.

System Configuration

Q A
Drush version? 13.3.3
Drupal version? 11.1
PHP version 8.3.12
OS? Linux

Additional information
The used database is MongoDB

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