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) »
  • Discussion (deprecated) »
  • Alpha and Beta Release Testing »
  • 3.1 Release Testing »
  • Payment processing issue
Pages: [1]

Author Topic: Payment processing issue  (Read 4549 times)

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Payment processing issue
January 30, 2010, 01:26:59 am
Hello,

I have been testing the upgrade to 3.1 on a site using eWay as the payment processor. It works fine on contribution pages but when I go to the equivalent of this page:


http://sandbox.civicrm.org/civicrm/contact/view/contribution?reset=1&action=add&cid=112&context=contribution&mode=live


I get a non-recoverable error. The cause of the error is this (invalid ) SQL:


SELECT civicrm_pledge.id id
FROM civicrm_pledge
WHERE civicrm_pledge.status_id   IN (2,,6)       
  AND civicrm_pledge.contact_id = 82502


But I'm not how it is deriving that incorrect IN clause (with the extra comma). This doesn't seem payment processor located but I'm not sure where in the code it is coming up with the that SQL to look for pledges at this point.
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Payment processing issue
January 31, 2010, 10:40:38 am
You should replicate this on http://drupal.demo.civicrm.org, if you are able to replicate file an issue.

Kurund
Found this reply helpful? Support CiviCRM

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Payment processing issue
January 31, 2010, 01:38:12 pm
Hi,

This is a site we inherited & so I don't have any background but the Option Value for contribution_status that would normally be 'In Progress' had been renamed to 'Refer to Notes'. I have no idea why.

As a minor side issue I think the 'is_reserved' flag should be set to 1 for all of these option_values (group 11 in my installs) as they clearly are required to match the system values and while these fields aren't front end configurable it is a small safeguard against silly developers and any front end configurability that gets added later
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

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: Payment processing issue
January 31, 2010, 06:47:31 pm

yes, we should make those reserved. wanna submit a patch (and a corresponding upgrade snippet) along with an issue to do the needful

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

ruid

  • I post occasionally
  • **
  • Posts: 46
  • Karma: 4
Re: Payment processing issue
January 31, 2010, 09:41:01 pm
I have got the same problem for a 3.1version upgraded from 1.9 version which only have 4 status: Completed(1), Pending(2), Cancelled(3) and Overdue(6) whenever I clicked add contribution or edit contribution. After I added those 2 status: Failed(4) and In Progress (5), it is back working.

I am interested where is this query code located. I grepped and found it seems on /CRM/Pledge/BAO/Query.php but couldn't see any change when I modified that file. And why it is querying civicrm_pledge.status_id instead of civicrm_contribution.status_id?

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Payment processing issue
January 31, 2010, 09:58:19 pm
The code is in Contribute/PseudoConstant.php
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Payment processing issue
February 01, 2010, 08:58:09 pm
I logged it but not sure if it is required as my databases don't seem to have it set but the blank template does.

http://issues.civicrm.org/jira/browse/CRM-5752
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Alpha and Beta Release Testing »
  • 3.1 Release Testing »
  • Payment processing issue

This forum was archived on 2017-11-26.