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 CiviEvent (Moderator: Yashodha Chaku) »
  • Event Registaration Error State Province
Pages: [1]

Author Topic: Event Registaration Error State Province  (Read 949 times)

ds505

  • I post occasionally
  • **
  • Posts: 40
  • Karma: 3
Event Registaration Error State Province
March 04, 2009, 12:35:31 pm
Joomla 1.0.15 and CiviCRM 2.0.6 w/ Authorize.net proccessor

So far we have had over +70 people register w/out issue, but we received the following feedback from a user in Japan attempting to register for an event. 

The person entered in a address of with a city Nagoya, 23 4660825 JP.

Everything was fine on the registration Registration summary page until they clicked on "Continue" to finalize the transaction, they received the following msg:

Sorry. A non-recoverable error has occurred.
DB Error: unknown error
 Cannot add or update a child row: a foreign key constraint fails (`dbname/civicrm_address`, CONSTRAINT `FK_civicrm_address_state_province_id`
FOREIGN KEY (`state_province_id`) REFERENCES `civicrm_state_province` (`id`) ON DELETE SET NULL), 1452

We noticed the the Nagoya is not a default city in civicrm_state_province table.

Should it be in the table in order to complete the transaction?
Is the solution to simply do an insert and add that city with the correct FK ref to Country?

Thanks for any suggestions or feedback.

-B

Data-Scribe(r)
http://www.datascribe.biz

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: Event Registaration Error State Province
March 04, 2009, 12:58:08 pm

This is a bug in 2.0 and is fixed in 2.1 and later

you can backport the patch from here:

http://issues.civicrm.org/jira/browse/CRM-3393?page=com.atlassian.jira.ext.fisheye%3Afisheye-issuepanel

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 CiviEvent (Moderator: Yashodha Chaku) »
  • Event Registaration Error State Province

This forum was archived on 2017-11-26.