Problems when executing Search API tasks during install, updates

Created on 15 June 2020, over 4 years ago
Updated 8 April 2024, 9 months ago

Problem/Motivation

I did a update from opigno_lms 8.x-2.11 (search api 8.x-1.10) to opigno_lms 8.x-2.12 (search api 8.x-1.16)

On the database update i got 6 warnings "Warning: Division by zero"

Warning: Division by zero in Drupal\search_api\Task\TaskManager->processBatch() (Zeile 353 in /web/modules/contrib/search_api/src/Task/TaskManager.php)

AFAIK, the check in the patch

> + && in_array(MAINTENANCE_MODE, ['install', 'update'])) {

covers installing Drupal itself and running updates, but it doesn't cover installing a module.

🐛 Bug report
Status

Fixed

Version

1.0

Component

General code

Created by

🇩🇪Germany Corn696 Flensburg

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.

Production build 0.71.5 2024