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 »
  • Using CiviCRM »
  • Using CiviMember (Moderator: Deepak Srivastava) »
  • Renewal error
Pages: [1]

Author Topic: Renewal error  (Read 1223 times)

sjthespian

  • I post occasionally
  • **
  • Posts: 63
  • Karma: 3
    • The League of Professional System Administrators
  • CiviCRM version: 4.2.7
  • CMS version: Drupal 6.28
  • MySQL version: 5.1.66
  • PHP version: 5.3.3
Renewal error
October 26, 2011, 06:13:12 pm
I got a report from one of our members today that they were getting the following error when trying to renew:
Quote
Oops. The membership you're trying to renew appears to be invalid. Contact your site administrator if you need assistance. If you continue, you will be issued a new membership.
I just tried my own renewal link and I am getting the same error.  Upgrading to 3.4.7 doesn't make any difference (this is now occurring with CiviCRM 3.4.7 on Drupal 6.22). Everything was working fine, I'm not sure what could have changed to cause the error.

Any ideas what could cause the error?

Debug gives me the following (I took out some of the country and province data to save space and obsficated some of the personal data):
Code: [Select]
Smarty Debug Console
included templates & config files (load time in seconds)

no templates included
assigned template variables
{$SCRIPT_NAME} "/index.php"
{$action} 1
{$activeComponent} "CiviCRM"
{$allowAutoRenewMembership} false
{$autoRenewMembershipTypeOptions} "{"autoRenewMembershipType_1":0,"autoR..."
{$bltID} 5
{$browserPrint} true
{$buildNavigation} true
{$cancelSubscriptionUrl} null
{$config} CRM_Core_Config Object (110)
->dsn = "mysql://lopsa_civicrm:WeRdChampi0ns.@..."
->userFramework = "Drupal"
->userFrameworkURLVar = "q"
->userFrameworkDSN = "mysql://lopsa_drupal:She!LookDruish.@..."
->templateCompileDir = "/lopsa/www/lopsa.org/sites/default/fi..."
->configAndLogDir = "/lopsa/www/lopsa.org/sites/default/fi..."
->initialized = 1
->componentRegistry = CRM_Core_Component Object (0)
->inCiviCRM = ""
->recaptchaPublicKey = "6LcF4sgSAAAAAKSM9UNxxzrUbbMcfJmC0GuFY..."
->debug = "1"
->backtrace = "0"
->smartyDir = "/lopsa/www/lopsa.org/sites/all/module..."
->pluginsDir = "/lopsa/www/lopsa.org/sites/all/module..."
->templateDir = Array (1)
  0 => "/lopsa/www/lopsa.org/sites/all/module..."
->resourceBase = "/sites/all/modules/civicrm/"
->uploadDir = "/lopsa/www/lopsa.org/sites/default/fi..."
->imageUploadDir = "/lopsa/www/lopsa.org/sites/default/fi..."
->customFileUploadDir = "/lopsa/www/lopsa.org/sites/default/fi..."
->imageUploadURL = "http://lopsa.org/sites/default/files/..."
->cleanURL = 1
->defaultCurrency = "USD"
->lcMessages = "en_US"
->dateformatDatetime = "%B %E%f, %Y %l:%M %P"
->dateformatFull = "%B %E%f, %Y"
->dateformatPartial = "%B %Y"
->dateformatYear = "%Y"
->dateformatTime = "%l:%M %P"
->timeInputFormat = "1"
->dateInputFormat = "mm/dd/yy"
->fiscalYearStart = Array (2)
  M => 1
  d => 1
->moneyformat = "%c %a"
->moneyvalueformat = "%!i"
->currencySymbols = ""
->defaultCurrencySymbol = "$"
->monetaryDecimalPoint = "."
->monetaryThousandSeparator = ","
->gettextCodeset = "utf-8"
->gettextDomain = "civicrm"
->gettextResourceDir = "/lopsa/www/lopsa.org/sites/all/module..."
->userFrameworkVersion = "6.22"
->userFrameworkUsersTableName = "users"
->userFrameworkClass = "CRM_Utils_System_Drupal"
->userHookClass = "CRM_Utils_Hook_Drupal"
->userPermissionClass = "CRM_Core_Permission_Drupal"
->userFrameworkBaseURL = "https://lopsa.org/"
->userFrameworkResourceURL = "https://lopsa.org/sites/all/modules/c..."
->userFrameworkFrontend = ""
->userFrameworkLogging = "0"
->maxImportFileSize = 2097152
->maxAttachments = "3"
->maxFileSize = "2"
->localeCustomStrings = null
->geocodeMethod = "CRM_Utils_Geocode_Google"
->mapGeoCoding = "1"
->contactUndelete = "1"
->logging = ""
->versionCheck = "1"
->enableComponents = Array (7)
  0 => "CiviContribute"
  1 => "CiviPledge"
  2 => "CiviMember"
  3 => "CiviEvent"
  4 => "CiviMail"
  5 => "CiviReport"
  6 => "CiviCase"
->enableComponentIDs = Array (7)
  0 => "2"
  1 => "6"
  2 => "3"
  3 => "1"
  4 => "4"
  5 => "8"
  6 => "7"
->enableSSL = "1"
->fatalErrorTemplate = "CRM/common/fatal.tpl"
->fatalErrorHandler = ""
->legacyEncoding = "Windows-1252"
->fieldSeparator = ","
->maxLocationBlocks = "2"
->captchaFontPath = "/usr/X11R6/lib/X11/fonts/"
->captchaFont = "HelveticaBold.ttf"
->includeWildCardInName = "1"
->includeEmailInName = "1"
->includeNickNameInName = "0"
->smartGroupCacheTimeout = "0"
->defaultSearchProfileID = ""
->dashboardCacheTimeout = "1440"
->doNotResetCache = "0"
->includeAlphabeticalPager = "0"
->includeOrderByClause = "1"
->oldInputStyle = "1"
->formKeyDisable = ""
->doNotAttachPDFReceipt = false
->civiRelativeURL = "/"
->recaptchaPrivateKey = "6LcF4sgSAAAAANMqJUfUAg-xrqdo0tO-jlQ9B..."
->recaptchaOptions = ""
->inheritLocale = "1"
->customTranslateFunction = ""
->_qf_default = "Localization:next"
->_qf_Localization_next = "Save"
->autocompleteContactSearch = Array (7)
  1 => 1
  2 => 1
  3 => 0
  4 => 0
  5 => 0
  6 => 0
  7 => 0
->civiHRD = "0"
->verpSeparator = "."
->mailerPeriod = "180"
->mailerSpoolLimit = "0"
->mailerBatchLimit = "0"
->lcMonetary = "en_US"
->customPHPPathDir = "/lopsa/www/lopsa.org/civicrm_custom"
->customTemplateDir = "/lopsa/www/lopsa.org/civicrm_custom/t..."
->importDataSourceDir = "/lopsa/www/lopsa.org/sites/all/module..."
->sunlight = false
->groupTree = false
->revampPages = Array (0)
->profileDoubleOptIn = true
->profileAddToGroupDoubleOptIn = false
->activityAssigneeNotification = true
->useIDS = true
->useFrameworkRelativeBase = "/"
{$contributeMode} null
{$defaultWysiwygEditor} "2"
{$displayRecent} false
{$error} null
{$footer_text} "<p> &nbsp;</p> <p> <em>Membershi..."
{$form} Array (11)
frozen => false
javascript => ""
attributes => " action="/civicrm/contribute/transact..."
requirednote => "<span style="font-size:80%; color:#ff..."
errors => Array (0)
hidden => "<input name="qfKey" type="hidden" val..."
email-5 => Array (9)
  name => "email-5"
  value => "user@somewhere.org"
  type => "text"
  frozen => false
  required => true
  error => null
  id => "email-5"
  label => "<label for="email-5"> Email Address ..."
  html => "<input size="30" maxlength="60" name=..."
selectMembership => Array (11)
  name => "selectMembership"
  value => null
  type => "group"
  frozen => false
  required => true
  error => null
  label => ""
  separator => null
  html => "<input onclick="return showHideAutoRe..."
  1 => Array (9)
    name => "selectMembership"
    value => "1"
    type => "radio"
    frozen => false
    required => false
    error => null
    id => "CIVICRM_QFID_1_2"
    label => ""
    html => "<input onclick="return showHideAutoRe..."
  2 => Array (9)
    name => "selectMembership"
    value => "2"
    type => "radio"
    frozen => false
    required => false
    error => null
    id => "CIVICRM_QFID_2_4"
    label => ""
    html => "<input onclick="return showHideAutoRe..."
is_pay_later => Array (9)
  name => "is_pay_later"
  value => false
  type => "checkbox"
  frozen => false
  required => false
  error => null
  id => "is_pay_later"
  label => "<label for="is_pay_later">I will send..."
  html => "<input id="is_pay_later" name="is_pay..."
buttons => Array (10)
  name => "buttons"
  value => Array (1)
    _qf_Main_upload => "Confirm Contribution"
  type => "group"
  frozen => false
  required => false
  error => null
  label => ""
  separator => Array (1)
    0 => "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&..."
  html => "<input class="form-submit default" na..."
  _qf_Main_upload => Array (9)
    name => "_qf_Main_upload"
    value => "Confirm Contribution"
    type => "submit"
    frozen => false
    required => false
    error => null
    id => "_qf_Main_upload"
    label => ""
    html => "<input class="form-submit default" na..."
formName => "Main"
{$formTpl} "default"
{$hidePaymentInformation} false
{$intro_text} "<p> If you are renewing, please <a ..."
{$isForm} 1
{$is_email_receipt} "1"
{$is_monetary} "1"
{$langSwitch} Array (0)
{$membershipBlock} Array (9)
id => "2"
entity_table => "civicrm_contribution_page"
entity_id => "4"
membership_types => "1,2"
display_min_fee => "1"
is_separate_payment => "0"
is_required => "1"
is_active => "1"
auto_renew => Array (2)
  1 => 0
  2 => 0
{$membershipTypes} Array (2)
0 => Array (7)
  id => "1"
  minimum_fee => "40.00"
  name => "Charter"
  is_active => "1"
  description => "Individual Member"
  contribution_type_id => "2"
  auto_renew => "1"
1 => Array (7)
  id => "2"
  minimum_fee => "25.00"
  name => "Student"
  is_active => "1"
  description => "Student Member"
  contribution_type_id => "2"
  auto_renew => "0"
{$navigation} "<!-- en_US --><li class="menumain crm..."
{$paymentProcessor} Array (16)
id => "1"
name => "PayPal"
payment_processor_type => "PayPal_Standard"
user_name => "payments@lopsa.org"
password => null
signature => null
url_site => "https://www.paypal.com/"
url_api => null
url_recur => "https://www.paypal.com/"
url_button => null
subject => null
class_name => "Payment_PayPalImpl"
is_recur => "1"
billing_mode => "4"
payment_type => "1"
processorName => "PayPal Standard"
{$printerFriendly} "/civicrm/contribute/transact?id=4&amp..."
{$qfKey} "5592fc0b947f6fb7224ae3d87b48fede_9271"
{$reset} "1"
{$session} CRM_Core_Session Object (0)
{$showRadio} true
{$takeUserSubmittedAutoRenew} false
{$title} "Join LOPSA"
{$tplFile} "CRM/Contribute/Form/Contribution/Main..."
{$translatePermission} true
{$tsLocale} "en_US"
{$urlIsPublic} true
{$useForMember} 0
{$wizard} Array (6)
steps => Array (3)
  0 => Array (7)
    name => "Main"
    title => "ERROR: Title is not Set"
    link => null
    step => true
    valid => true
    stepNumber => 1
    collapsed => false
  1 => Array (7)
    name => "Confirm"
    title => "ERROR: Title is not Set"
    link => null
    step => true
    valid => true
    stepNumber => 2
    collapsed => false
  2 => Array (7)
    name => "ThankYou"
    title => "ERROR: Title is not Set"
    link => null
    step => true
    valid => true
    stepNumber => 3
    collapsed => false
currentStepNumber => 1
currentStepName => "Main"
currentStepTitle => "ERROR: Title is not Set"
stepCount => 3
style => Array (8)
  barClass => ""
  stepPrefixCurrent => "&raquo;"
  stepPrefixPast => "&radic;"
  stepPrefixFuture => " "
  subStepPrefixCurrent => "&nbsp;&nbsp;"
  subStepPrefixPast => "&nbsp;&nbsp;"
  subStepPrefixFuture => "&nbsp;&nbsp;"
  showTitle => 1
assigned config file variables (outer template scope)
{#files#} Array (0)
{#vars#} Array (0)
Dan Rich <drich@lopsa.org>
    Director, LOPSA - http://lopsa.org/

sjthespian

  • I post occasionally
  • **
  • Posts: 63
  • Karma: 3
    • The League of Professional System Administrators
  • CiviCRM version: 4.2.7
  • CMS version: Drupal 6.28
  • MySQL version: 5.1.66
  • PHP version: 5.3.3
Re: Renewal error
November 10, 2011, 12:26:14 pm
I just tracked down what is causing this error, but I haven't figured out why yet. It only applies to people who have membership types that are set to "Admin".

In our case, we have Founder and Charter members who got their memberships under special circumstances. These memberships are no longer available for new members so they are marked as "Admin" in the membership types admin interface. It is whenever someone tried to renew one of these that they get the error. Individual and Student memberships that are "public" work fine.

The code that is generating the error is line 2263 in CRM/Member/BAO/Membership.php. I'm going to dig around this afternoon to see why the type check is failing on renewal for membership types that are set to Admin...
Dan Rich <drich@lopsa.org>
    Director, LOPSA - http://lopsa.org/

sjthespian

  • I post occasionally
  • **
  • Posts: 63
  • Karma: 3
    • The League of Professional System Administrators
  • CiviCRM version: 4.2.7
  • CMS version: Drupal 6.28
  • MySQL version: 5.1.66
  • PHP version: 5.3.3
Re: Renewal error
March 26, 2012, 10:28:43 am
It has been a while since I've had time to look at this, and I was wondering if anyone else is seeing the same problem?

I know a bit more about why this is happening now. It isn't just because the membership types are marked as Admin, but also because they aren't in the membership section of the contribution page. If I change them to public and add them there the message goes away.

However, the problem is that these aren't membership types that anyone should be able to select when they join, only when they are renewing and already have a membership of this type.

Can anyone think of a way around this issue other than making those membership types public and creating a new membership renewal page that enables them?
Dan Rich <drich@lopsa.org>
    Director, LOPSA - http://lopsa.org/

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMember (Moderator: Deepak Srivastava) »
  • Renewal error

This forum was archived on 2017-11-26.