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) »
  • cron job errors after upgrade
Pages: [1]

Author Topic: cron job errors after upgrade  (Read 1606 times)

bdanza

  • I post frequently
  • ***
  • Posts: 135
  • Karma: 3
  • CiviCRM version: 3.4.6
  • CMS version: Joomla 1.5, Drupal 6.2x
cron job errors after upgrade
April 23, 2011, 07:20:50 am
Hi, I just upgraded from 3.3.5. to 3.4.0

now every time my cron job runs I get the following error.

<br />
<b>Fatal error</b>:  Call to undefined function civicrm_contact_memberships_get() in <b>/home/xxxxxx/public_html/civic/sites/all/modules/civicrm/drupal/modules/civicrm_member_roles/civicrm_member_roles.module</b> on line <b>494</b><br />

anyone know what this means? I tried to look at the file, it looks like it's trying to call the ids of members but I am not sure where the error is.

B.

bdanza

  • I post frequently
  • ***
  • Posts: 135
  • Karma: 3
  • CiviCRM version: 3.4.6
  • CMS version: Joomla 1.5, Drupal 6.2x
Re: cron job errors after upgrade
April 23, 2011, 07:42:45 am
I tried to unistall the member roles module and reinstall it, then when I try to manually synchronize the member roles, I get the same error.

B.

bdanza

  • I post frequently
  • ***
  • Posts: 135
  • Karma: 3
  • CiviCRM version: 3.4.6
  • CMS version: Joomla 1.5, Drupal 6.2x
Re: cron job errors after upgrade
April 23, 2011, 07:52:34 am
after uninstalling the Member roles module the cron jobs began working correctly again, both membership update and mailer.

Now I need help understanding why I get that error when the member roles module is enabled.

I think some of my members may have no Cid's but I am not sure how to find that.

B.

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: cron job errors after upgrade
April 23, 2011, 04:18:48 pm

can you please file an issue and link to this blog post. We'll investigate and fix for 3.4.1

thanx

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

bdanza

  • I post frequently
  • ***
  • Posts: 135
  • Karma: 3
  • CiviCRM version: 3.4.6
  • CMS version: Joomla 1.5, Drupal 6.2x
Re: cron job errors after upgrade
April 23, 2011, 04:41:34 pm
Thanks Lobo,

I created an issue

http://issues.civicrm.org/jira/browse/CRM-7960

911 Media

  • I’m new here
  • *
  • Posts: 4
  • Karma: 0
  • CiviCRM version: 4
  • CMS version: Drupal 7
  • MySQL version: 5.0.22
  • PHP version: 5.2.6
Re: cron job errors after upgrade
April 28, 2011, 12:22:23 pm
I'm having a similar issue.  I get this error (and WSOD) on logout only:

Fatal error: Call to undefined function civicrm_contact_memberships_get() in /www/xxxx/httpdocs/sites/all/modules/civicrm/drupal/modules/civicrm_member_roles/civicrm_member_roles.module on line 540

This is on CiviCRM 4.0 though, on Drupal 7
« Last Edit: April 28, 2011, 12:24:10 pm by 911 Media »

bdanza

  • I post frequently
  • ***
  • Posts: 135
  • Karma: 3
  • CiviCRM version: 3.4.6
  • CMS version: Joomla 1.5, Drupal 6.2x
Re: cron job errors after upgrade
April 28, 2011, 12:24:00 pm
It has been fixed, take a look at the change log in

http://issues.civicrm.org/jira/browse/CRM-7960

basically one line of code changed.

B.

911 Media

  • I’m new here
  • *
  • Posts: 4
  • Karma: 0
  • CiviCRM version: 4
  • CMS version: Drupal 7
  • MySQL version: 5.0.22
  • PHP version: 5.2.6
Re: cron job errors after upgrade
April 28, 2011, 12:26:35 pm
Ok, I'm getting this error in civiCRM 4.0, and on a different line.  It might be a problem with my install.

bdanza

  • I post frequently
  • ***
  • Posts: 135
  • Karma: 3
  • CiviCRM version: 3.4.6
  • CMS version: Joomla 1.5, Drupal 6.2x
Re: cron job errors after upgrade
April 28, 2011, 01:22:29 pm
change line 539 in  /www/xxxx/httpdocs/sites/all/modules/civicrm/drupal/modules/civicrm_member_roles/civicrm_member_roles.module

Code: [Select]
from

civicrm_api_include('membership');

To

civicrm_api_include('membership', false, 2);

911 Media

  • I’m new here
  • *
  • Posts: 4
  • Karma: 0
  • CiviCRM version: 4
  • CMS version: Drupal 7
  • MySQL version: 5.0.22
  • PHP version: 5.2.6
Re: cron job errors after upgrade
April 28, 2011, 02:04:51 pm
Thanks, changed that line and it fixed the error.

Guessing this will be rolled into a future release?

bdanza

  • I post frequently
  • ***
  • Posts: 135
  • Karma: 3
  • CiviCRM version: 3.4.6
  • CMS version: Joomla 1.5, Drupal 6.2x
Re: cron job errors after upgrade
April 28, 2011, 02:08:22 pm
Yes,

The magical Lobo made the fix for 3.4.1 and after looking at this post I am sure he will do the same for 4.0.1.

B.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • cron job errors after upgrade

This forum was archived on 2017-11-26.