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) »
  • Error in CiviContribute after upgrade from 2.2.2 to 2.2.5
Pages: [1]

Author Topic: Error in CiviContribute after upgrade from 2.2.2 to 2.2.5  (Read 3555 times)

andrewg

  • Guest
Error in CiviContribute after upgrade from 2.2.2 to 2.2.5
May 31, 2009, 08:15:09 pm
I got the error below after upgrading and creating a new form:

Sorry. A non-recoverable error has occurred.

DB Error: syntax error

Database Error Code: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND civicrm_contribution.is_test = '0' ) AND ( 1 ) GROUP BY contact_a.id' at line 11, 1064


Can someone please assist?

Thanks,


Andrew

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: Error in CiviContribute after upgrade from 2.2.2 to 2.2.5
June 01, 2009, 10:13:16 am

hey andrew:

1. can u enable backtrace and debug (administer civicrm >> global settings >> debugging)

2. give us the complete backtrace and sql statement that causes the error

3. can u elaborate on "creating a new form"?

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

andrewg

  • Guest
Re: Error in CiviContribute after upgrade from 2.2.2 to 2.2.5
June 02, 2009, 12:18:58 am
I have attached the backtrace...

issues are experienced at the following form (URL):
http://www.motutapu.org.nz/index.php/getinvolved/volunteer/become-a-volunteer

thanks,

andrew

Kiran Jagtap

  • Ask me questions
  • ****
  • Posts: 533
  • Karma: 51
Re: Error in CiviContribute after upgrade from 2.2.2 to 2.2.5
June 02, 2009, 05:42:12 am
hi andrew,

It is a bug.
for tracking purpose : http://issues.civicrm.org/jira/browse/CRM-4568

thanks for catching.
kiran
 
You Are Designed To Choose... Defined By Choice.

Kiran Jagtap

  • Ask me questions
  • ****
  • Posts: 533
  • Karma: 51
Re: Error in CiviContribute after upgrade from 2.2.2 to 2.2.5
June 02, 2009, 07:03:02 am
hi andrew,

here is patch : http://fisheye.civicrm.org/viewrep/CiviCRM/branches/v2.2/CRM/Contribute/BAO/ContributionPage.php?r1=19561&r2=21580
you might want to take a look.

thanks
kiran
You Are Designed To Choose... Defined By Choice.

andrewg

  • Guest
Re: Error in CiviContribute after upgrade from 2.2.2 to 2.2.5
June 02, 2009, 03:24:39 pm
hi Kiran,

Tried it, no success...

go to the following link and fill in the form and submit it... You will see the result and MySQL error.

http://www.motutapu.org.nz/index.php/getinvolved/volunteer/become-a-volunteer

Cheers,


Andrew

Kiran Jagtap

  • Ask me questions
  • ****
  • Posts: 533
  • Karma: 51
Re: Error in CiviContribute after upgrade from 2.2.2 to 2.2.5
June 02, 2009, 10:08:46 pm
Quote
go to the following link and fill in the form and submit it... You will see the result and MySQL error.
I did registration on your site ( http://www.motutapu.org.nz/index.php/getinvolved/volunteer/become-a-volunteer )
and I got registered successfully. ( do search for my contact in db )

kiran
You Are Designed To Choose... Defined By Choice.

andrewg

  • Guest
Re: Error in CiviContribute after upgrade from 2.2.2 to 2.2.5
June 05, 2009, 02:13:24 pm
Kiran,

I just tried it again... and I still receive the same error:

Sorry. A non-recoverable error has occurred.

DB Error: syntax error

Database Error Code: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND civicrm_contribution.is_test = '0' ) AND ( 1 ) GROUP BY contact_a.id' at line 11, 1064

Return to home page.


I will attach it...

Kiran Jagtap

  • Ask me questions
  • ****
  • Posts: 533
  • Karma: 51
Re: Error in CiviContribute after upgrade from 2.2.2 to 2.2.5
June 07, 2009, 10:12:47 pm
hi andrew,

Quite interesting - once more I have registered successfully ( email = k2.j2@y.com do check in your db ) 
better would be try to replicate issue on our public demo :  http://joomla.demo.civicrm.org/

If issue persist give exact steps to replicate.

thanks
kiran
You Are Designed To Choose... Defined By Choice.

andrewg

  • Guest
Re: Error in CiviContribute after upgrade from 2.2.2 to 2.2.5
June 08, 2009, 12:11:43 am
Hi Kiran,

I definitely do not have you in the Become a Volunteer database on our site. I have checked.

Are you sure that you completed the Become a Volunteer form on the following page: http://www.motutapu.org.nz/index.php/getinvolved/volunteer/become-a-volunteer

and submitted it... it is at the very last step that I get the error on the screen... I have replicated this issue on a number of other machines and it is definitely there...

I have also found that after the upgrade the CiviCRM system and frontend pages are very slow loading again... why would this be?

Thanks,


Andrew

Kiran Jagtap

  • Ask me questions
  • ****
  • Posts: 533
  • Karma: 51
Re: Error in CiviContribute after upgrade from 2.2.2 to 2.2.5
June 08, 2009, 03:19:57 am
I suspect its related to contribution / membership signup page settings.
( create same profile w/ same fields and make same contribution page settings on demo and try to replicate )

My previous registration w/ (  email = k2.j2@y.com ) was successful and there was no confirmation page at that time.
Now I also got same bug that u reported  w/ same data I filled but interestingly there is confirmation screen come in to picture.

Test Case Scenario's :
1. My first registration = successful ( no confirmation screen in picture )
2. My second registration = successful ( no confirmation screen in picture )
3. My third registration = fail w/ error that u reported ( confirmation screen comes into picture )

from this test cases It seems like you are changing your membership signup / contribution page settings.
Also we did fixed suspected bug during :  http://issues.civicrm.org/jira/browse/CRM-4568

Basically query getting break due to empty contribution id in where clause
(check here  contact_a.id = 14 AND  civicrm_contribution.id =  AND  civicrm_contribution.is_test = '0' )

Interesting thing is if your are doing free membership signup than how contribution id comes into picture.

can you update one or two fields from profiles those are used in membership signup page.
do not change anything just edit and save and check registration again.

once more :
1. can u enable backtrace and debug (administer civicrm >> global settings >> debugging)
2. give us the complete backtrace and sql statement that causes the error
3. also give 'group_type' from civicrm_uf_group for profiles those you are using. 
( make sure if you give backtrace and sql statement don't change any contribution page settings. )

would be great if you try to replicate on http://joomla.demo.civicrm.org/ and give exact steps to replicate.
or if you are php savvy would be great if you debug and let us know root cause / steps.
or you might want to hire some one from : http://civicrm.org/professional/ 

kiran
You Are Designed To Choose... Defined By Choice.

andrewg

  • Guest
Re: Error in CiviContribute after upgrade from 2.2.2 to 2.2.5
June 09, 2009, 12:09:24 am
I can not find you in the database at all, like you have never registered....

I will get the rest done and sent through as soon as I can.

Oh, we are listed as one of the CiviCRM Professionals on the CiviCRM site.

Thanks,


Andrew

andrewg

  • Guest
Re: Error in CiviContribute after upgrade from 2.2.2 to 2.2.5
June 24, 2009, 04:05:52 pm
Hi,

Completed as requested... attached the Backtrace and SQL Statement..

This is the Profile Info I use in CiviCRM Profile:

Volunteer Signup   Individual,Contact,Contribution   4   CiviContribute, Profile    Active

The form we created for "Become a Friend" works perfectly... It is just this "Become a Volunteer" one that I am having issues with... Please check, I can provide access to the actual back-ed if required.

Thanks,


Andrew

andrewg

  • Guest
Re: Error in CiviContribute after upgrade from 2.2.2 to 2.2.5
June 24, 2009, 05:26:35 pm
Resolved

I did the upgrade to 2.2.6 and it has now been resolved... Thought I did it before...

Thanks again for the help.

Cheers,

Andrew

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • Error in CiviContribute after upgrade from 2.2.2 to 2.2.5

This forum was archived on 2017-11-26.