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?

  • Do you have the secure pages module installed?
    – Clive
    Dec 11, 2012 at 19:44
  • ha, yeah I am @Clive, I just found the problem and posted the answer. thanks for all of your help! Dec 11, 2012 at 20:08

3 Answers 3


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


I had the same issue. It was caused by the secure pages issue. So I went to secure pages settings page, and in the ignore list, I added my url (e.g. admin/structure/abc). It worked good. Hope it helps someone.


Update For Drupal 8, please, check this topic - https://www.drupal.org/project/drupal/issues/3055287#comment-13911732

removing logger.factory service from the batch fix the problem

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.