When running the cron by visiting or curling the URL:

A session is active. You cannot change the session module's ini settings at this time in drupal_environment_initialize()

Any advice? I'm suspicious of my permission settings.

I have a specially created cron user, who has admin permission.

Drupal 7.56 v.4.7.22


this is not a direct answer to your question, but you should run the cron from the cli - eg. using drush on drupal -. it bypasses all the problems and limitations of a webserver, eg timeout or memory...

as for your message, i have the same configuration and i do not experience the problem. did you change something on how the session is managed on drupal?

  • Thanks for the response, I'll give it a go and let you know how I get on.
    – JohnFF
    Jul 18 '17 at 22:46
  • Fixed up some permission issues (indicated by drush) and then it fixed up. Thanks for the assist.
    – JohnFF
    Jul 19 '17 at 0:45
  • For anyone looking, my command is 00 * * * * cd /var/www/drupal && /usr/local/bin/drush --quiet civicrm-api -u 1 job.execute
    – JohnFF
    Jul 19 '17 at 22:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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