User login

E-mails being sent or nodes being saved by batch api breaking on a regular schedule just during cron runs

If you are having weird problems in Batch API processes, such as the base URL for notification e-mails being replaced with something less-than-useful like /var/www/drupal, the culprit may be (somehow) cron.php being called by a command line script (rather than curl or something going to cron.php over the internet).

Calling Drush cron can also fail. Perhaps adding this optional flag (l or uri, they are the same) would help, though its purpose is just to pick the right site from a multisite: -l http://example.com, --uri=http://example.com

Resolution

Added the base url $base_url in settings.php, hope it will work.

Searched words: 
command line cron cron messing up email send Batch API regularly has strange things happening exactly when cron.php called via script open atrium "http://default" email site url openatrium default mail drush correct domain name URL default

Comments

Post new comment

The content of this field is kept private and will not be shown publicly.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.
  • You can use Markdown syntax to format and style the text. Also see Markdown Extra for tables, footnotes, and more.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <img> <blockquote> <small> <h2> <h3> <h4> <h5> <h6> <sub> <sup> <p> <br> <strike> <table> <tr> <td> <thead> <th> <tbody> <tt> <output>
  • Syntax highlight code surrounded by the {syntaxhighlighter SPEC}...{/syntaxhighlighter} tags, where SPEC is a Syntaxhighlighter options string or "class="OPTIONS" title="the title".
  • Lines and paragraphs break automatically.

More information about formatting options

By submitting this form, you accept the Mollom privacy policy.