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) »
  • Upgrade to CiviCRM 3.0.2: CiviUser New Account no longer works
Pages: [1]

Author Topic: Upgrade to CiviCRM 3.0.2: CiviUser New Account no longer works  (Read 1293 times)

sgatuva

  • Guest
Upgrade to CiviCRM 3.0.2: CiviUser New Account no longer works
November 09, 2009, 06:58:05 pm

I just upgraded to the latest version of CiviCRM and it seems this broke CiviUser.  When a new user tries to register (who is a member), I get the following error:

insert error DB function failed with error number 1452
Cannot add or update a child row: a foreign key constraint fails (`farmfox_jo151`.`civicrm_uf_match`, CONSTRAINT `FK_civicrm_uf_match_domain_id` FOREIGN KEY (`domain_id`) REFERENCES `civicrm_domain` (`id`)) SQL=INSERT INTO civicrm_uf_match (uf_id, uf_name, contact_id, language) VALUES ( 102,'sag3c@virginia.edu',2409, NULL)

Any ideas?

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: Upgrade to CiviCRM 3.0.2: CiviUser New Account no longer works
November 09, 2009, 07:28:00 pm

your best bet might to contact the authors of the civiuser component

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

lkbhokie

  • Guest
Re: Upgrade to CiviCRM 3.0.2: CiviUser New Account no longer works
November 20, 2009, 10:17:49 pm
I was able to get my installation working by changing line 447 of com_civiuser/controller.php to include domain_id:

FROM:

$sql = "INSERT INTO civicrm_uf_match (uf_id, uf_name, contact_id, language) VALUES ( ".$joomlaId.",'".$user->email."',".$civiId.", NULL) ";


TO:

$sql = "INSERT INTO civicrm_uf_match (uf_id, uf_name, contact_id, language, domain_id) VALUES ( ".$joomlaId.",'".$user->email."',".$civiId.", NULL, 1) ";

sgatuva

  • Guest
Re: Upgrade to CiviCRM 3.0.2: CiviUser New Account no longer works
November 22, 2009, 01:44:36 pm
Thanks. This seems to have fixed the problem - I can now create new accounts for CiviCRM members.

However, I'm having another problem. Users can't log in!  I can log in, but others are just brought to a blank page when they enter their correct login credentials. Even using the Joomla login module (rather than the CiviUser login module), they are brought to a blank page instead of the members-only page. Any ideas?

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: Upgrade to CiviCRM 3.0.2: CiviUser New Account no longer works
November 22, 2009, 03:41:20 pm

try checking the apache error log to see the main reason for the blank page

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 »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • Upgrade to CiviCRM 3.0.2: CiviUser New Account no longer works

This forum was archived on 2017-11-26.