Getting the error "No active batch." when running any batch I am getting this error when running any batch on the site:


  No active batch.


I thought this may have been a server issue, so I tried it locally, but I got the same error. I tried deleting all the records in the batch table, but I also got the same result.

The only thing I can think of is that perhaps the web server is down. Why would that effect batches that do not connect to their servers?
If you are using the Secure Pages module, you have apply the patches provided for that module.

As I am using the Secure Pages module, that fixed my problem.


  Steps to install Secure Pages 7.x-dev
  
  
  Set $conf['https'] = TRUE; in settings.php.
  Apply these two patches:
  
  
  #961508-21: Dual http/https session cookies interfere with drupal_valid_token()
  #471970-13: DrupalWebTestCase->getAbsoluteUrl should use internal browser's base URL