It seems $_SESSION is lost when doing batch jobs in the background, and this causes the update.php script to fail. The issue might also arise for other batch jobs that rely on $_SESSION.

Comments

gielfeldt’s picture

Assigned: Unassigned » gielfeldt

While $_SESSION might be an issue, it does not seem to be that which is causing problems with update.php, but rather "offline" mode. Investigating "delivery_callback" which might be the problem?

gielfeldt’s picture

The issue was a combination of session not carried through on background process requests and update.php handling batch itself. Fixed in 7.x-1.x-dev by reusing session for early permission check, and not override update.php batch operations.

gielfeldt’s picture

Status: Active » Needs work
gielfeldt’s picture

Category: bug » feature
Status: Needs work » Active

Would like support for update.php in Background Batch.

gielfeldt’s picture

Assigned: gielfeldt » Unassigned
gielfeldt’s picture

Note: Getting background batch to work for update.php might not be possible in D6 due to update.php handling some of the batch stuff itself. It might be possible in D7+ using hook_batch_alter().

Elijah Lynn’s picture

Issue summary: View changes

We should at least just get it working without background_batch.