CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • [solved] Broken mailprocessor cron on upgrade 3.3.5 -> 3.4
Pages: [1]

Author Topic: [solved] Broken mailprocessor cron on upgrade 3.3.5 -> 3.4  (Read 885 times)

myles

  • I post frequently
  • ***
  • Posts: 263
  • Karma: 11
[solved] Broken mailprocessor cron on upgrade 3.3.5 -> 3.4
May 04, 2011, 03:21:57 am
Within a Drupal 6.latest installation we have autofiling and mail processing set up.

Under 3.3.5 cron jobs ran perfectly using phpcli

Now they don't.

No errors that I can find - the cron log dutifully lists them,  but nothing happens.

I can trigger the processes through the browser.

The current version documentation only lists instructions for wget

http://wiki.civicrm.org/confluence/display/CRMDOC40/CiviMail+Installation#CiviMailInstallation-SettingUptheCronJob

although the floss manual still includes cli instructions.

Should I move over to wget, or is there some other cause? I'd prefer to stick with phpcli as i can set the priority below that of the webserver and with limited resources i's rather prioritise the users over automated mail processing.

I've looked through all posts I can find, but most of these seem to come down to permission problems - I have it all set up with an admin user that has access.
« Last Edit: May 04, 2011, 02:28:05 pm by myles »

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Broken mailprocessor cron on upgrade 3.3.5 -> 3.4
May 04, 2011, 05:39:59 am
Can you run the script via ssh and see if it generates an error there?

Next step is to try to run the URL (i.e. wget-style) in your browser and see if that works.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

myles

  • I post frequently
  • ***
  • Posts: 263
  • Karma: 11
Re: Broken mailprocessor cron on upgrade 3.3.5 -> 3.4
May 04, 2011, 07:17:15 am
Hah! Yes, I thought of testing through the browser but didn't think of the ssh test, thank you...

from the command line this results:

"Please define CIVICRM_CONFDIR in settings_location.php at the top level civicrm directory[root@server civicrm]"

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Broken mailprocessor cron on upgrade 3.3.5 -> 3.4
May 04, 2011, 07:18:39 am
OK, can you do that? :)
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

myles

  • I post frequently
  • ***
  • Posts: 263
  • Karma: 11
Re: Broken mailprocessor cron on upgrade 3.3.5 -> 3.4
May 04, 2011, 10:05:54 am
No, I've no idea how to do that or even what it means - It looks as if something that used to set a variable doesn't set it any more - but since I'm not a programmer that's only a guess.

I'll have to step through with a debugger to work out what it was that was supposed to have set the variable (presuming it is a variable) - I was hoping someone would recognise what was going on....

End of a long day at the day job - I'll have something to eat before rallying myself for a night shift.
« Last Edit: May 04, 2011, 10:09:41 am by myles »

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Broken mailprocessor cron on upgrade 3.3.5 -> 3.4
May 04, 2011, 10:21:05 am
I am not actually sure what that is myself. But if it does run in the browser, then wget will work just fine for you. Try it...
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Broken mailprocessor cron on upgrade 3.3.5 -> 3.4
May 04, 2011, 10:21:34 am
http://wiki.civicrm.org/confluence/display/CRMDOC33/Installing+CiviCRM+from+subversion+%28SVN%29+repository

check: Step 4

are u using drupal in multi-site mode?

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

myles

  • I post frequently
  • ***
  • Posts: 263
  • Karma: 11
Re: Broken mailprocessor cron on upgrade 3.3.5 -> 3.4
May 04, 2011, 01:38:31 pm
Thank you, all is clear now  :)

I've created settings_location.php as given in the instructions and...

I can now run the script from the command line without error message.

And...

It all works with cron....

Many thanks to hershel and lobo
« Last Edit: May 04, 2011, 02:28:36 pm by myles »

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • [solved] Broken mailprocessor cron on upgrade 3.3.5 -> 3.4

This forum was archived on 2017-11-26.