You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
Additional information
The used database is MongoDB
The text was updated successfully, but these errors were encountered: