Problem/Motivation
Visiting the batch ops page exhausts system memory on Drupal 11
Steps to reproduce
Just install on Drupal 11 and visit the page. Doesn't matter if you have a module that implements batches or not. The problem exists in both circumstances.
Issue fork codit_batch_operations-3482565
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
swirtThank you for reporting this. I will take a look into it soon.
Comment #3
swirtConfirmed that I am seeing this on SimplyTest.me with a default install of Drupal 11.4
Here is the error
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 262144 bytes) in /var/lib/tugboat/stm/web/modules/contrib/codit_batch_operations/src/BatchOperations.php on line 221
Comment #4
swirtIn testing this, I found that now that #3482564: Config page throws fatal error on D11 is fixed and you can set a default user, the error goes away on D11. So that is the immediate workaround.
The bug still exists in the background though, so I am going to work on this.
Comment #7
swirtThis was due to it trying to load user 0 when no default user had been specified. It now uses user 1 if no default user is specified in the settings.
Comment #8
swirtReleased as 1.0.5