To reproduce, try to import twice the same file (I tried with biblio_pm.module), the second time the batch will fall in an infinite loop. Logs will show Warning: Division by zero in biblio_import_batch_operations() (line 299 of sites/all/modules/biblio/includes/biblio.import.export.inc).

This is because in the case of all duplicates, there are zero elements in the cache and therefore $context['sandbox']['max'] == 0.

CommentFileSizeAuthor
#1 955170_1_biblio_zero_batch.patch1.31 KBscor

Comments

scor’s picture

Status: Active » Needs review
StatusFileSize
new1.31 KB
rjerome’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.