I get these notices
Notice: Undefined index: title in _background_batch_page_do_nojs() (linje 267 of background_process/background_batch/background_batch.pages.inc).
Notice: Undefined index: count in _background_batch_page_do_nojs() (linje 301 of background_process/background_batch/background_batch.pages.inc).
Notice: Undefined index: error_message in _background_batch_page_do_nojs() (linje 277 of background_process/background_batch/background_batch.pages.inc).
When running a batch process without has_js cookie (it is being stripped in Varnish). Apparently batch_get() and _batch_current_set() don't consistently return arrays with these indexes.
Not a major problem, but it is filling up our logs with useless information.
Comments
Comment #1
j.b CreditAttribution: j.b commentedI also had the same notices, while rebuilding permissions.
Varnish is also enabled.
It would be nice to get a fix.
Comment #2
gielfeldt CreditAttribution: gielfeldt commentedI can't seem to replicate the problem? The only thing I can replicate is #1064986: Ajax error when updating or installing a module.
I'm not sure I'm going to look more into this. Patches are welcome.
Comment #3
Elijah LynnI just posted #2694509: Notice: Undefined index: count in _background_batch_page_do_js() (line 240 of background_batch.pages.inc) and saw this issue too. I set a
has_js
cookie to 0 and stepped through the do_nojs function and got the same errors you posted above. For us it seems to be that we have two custom submit handlers. But I would think surely some others who use background_batch have custom submit handlers as well.