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 CiviContribute (Moderator: Donald Lobo) »
  • Misspelled variable pastContributionId in ContributionBase.php
Pages: [1]

Author Topic: Misspelled variable pastContributionId in ContributionBase.php  (Read 990 times)

nkinkade

  • I post occasionally
  • **
  • Posts: 56
  • Karma: 5
Misspelled variable pastContributionId in ContributionBase.php
August 25, 2008, 05:38:48 pm
http://issues.civicrm.org/jira/browse/CRM-3453

The above issue describes the error and a proposed resolution, but I'm posting in there because it seems more likely to get found by other people who might stumble across the same issue.

I should note we are using v2.0.3.

Recently we have been getting the following error quite frequently in CiviCRM.log:

"We could not find contribution details for your request. Please try your request again."

From the backtrace I found that the message was apparently being generated on line #134 of ./CRM/Contribute/Form/ContributionBase.php. I dumped $_SESSION and $_REQUEST and found that while the code was referencing the session variable as "pastContributionId" that the actual session variable was named "pastContributionID," with a capital D. Changed this and the errors went away. Also did a recursive grep of the entire CiviCRM codebase to make sure that it was referenced everywhere else with a capital D, and it appears to be.

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: Misspelled variable pastContributionId in ContributionBase.php
August 25, 2008, 06:28:44 pm

this is now fixed in 2.0 and 2.1

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

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • Misspelled variable pastContributionId in ContributionBase.php

This forum was archived on 2017-11-26.