update numbered as 8000

Created on 28 May 2018, over 6 years ago
Updated 1 August 2023, over 1 year ago

The update of the database, with drupal 8.5.3 and DrupalChat 8.x-1.0-beta2, is not possible and blocks the process with the following message:

drupalchat module cannot be updated. It contains an update numbered as 8000 which is reserved for the earliest installation of a module in Drupal 8.x, before any updates. In order to update drupalchat module, you will need to install a version of the module with valid updates.

And the following error message :

TypeError : Argument 4 passed to db_add_index() must be of the type array, none given, called in /home/social/drupal/html/modules/contrib/drupalchat/drupalchat.install on line 133 dans db_add_index() (/home/social/drupal/html/core/includes/database.inc ligne 929) #0 /home/social/drupal/html/modules/contrib/drupalchat/drupalchat.install(133): db_add_index('drupalchat_msg', 'uid1', Array) #1 /home/social/drupal/html/core/includes/update.inc(178): drupalchat_update_8000(Array) #2 /home/social/drupal/html/core/includes/batch.inc(294): update_do_one('drupalchat', 8000, Array, Array) #3 /home/social/drupal/html/core/includes/batch.inc(137): _batch_process() #4 /home/social/drupal/html/core/includes/batch.inc(93): _batch_do() #5 /home/social/drupal/html/core/modules/system/src/Controller/DbUpdateController.php(186): _batch_page(Object(Symfony\Component\HttpFoundation\Request)) #6 [internal function]: Drupal\system\Controller\DbUpdateController->handle('start', Object(Symfony\Component\HttpFoundation\Request)) #7 /home/social/drupal/html/core/lib/Drupal/Core/Update/UpdateKernel.php(110): call_user_func_array(Array, Array) #8 /home/social/drupal/html/core/lib/Drupal/Core/Update/UpdateKernel.php(73): Drupal\Core\Update\UpdateKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request)) #9 /home/social/drupal/html/update.php(28): Drupal\Core\Update\UpdateKernel->handle(Object(Symfony\Component\HttpFoundation\Request)) #10 {main}.

Other than that, everything works fine for me
Thanks

🐛 Bug report
Status

Closed: outdated

Version

1.0

Component

Code

Created by

🇫🇷France ohmdesbois

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇮🇹Italy apaderno Brescia, 🇮🇹

    db_add_index() and other functions to change a table schema have been removed from Drupal 8. The error Drupal 8 now gives is that db_add_index() does not exist, not that the arguments passed to that function are not correct.

Production build 0.71.5 2024