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 Profiles (Moderator: Dave Greenberg) »
  • User registration problems
Pages: [1] 2

Author Topic: User registration problems  (Read 5724 times)

Thoudahl

  • I’m new here
  • *
  • Posts: 25
  • Karma: 1
  • CiviCRM version: 4.1.1
  • CMS version: Joomla 1.7.1
  • MySQL version: 5.5.15
  • PHP version: 5.3.8
User registration problems
February 27, 2012, 03:29:07 pm
Joomla! 1.7.1 with CiviCRM 4.1.0

I have been setting up a Profile to use for user resistration on joomla frontend (User Registration, User Account + Account creation required).
The ACL's are set so that Public can access profiles, custom data and register profiles. "Allow User Registration" in the user manager is set to yes. I have not done anything actively to enable captcha in joomla and using the joomla user registration form don't force me to use captcha.

1) When I submit the form I get the error "your profile is not stored and your account is not created" even though the contact information is stored. But no user is created. What to do?

2) There is some "helping text" shown around the user registration input fields. Is it possible to change it without overriding with wordreplacement?

nicol

  • I post occasionally
  • **
  • Posts: 95
  • Karma: 5
  • CiviCRM version: 4.2, 4.3, 4.4
  • CMS version: Joomla 2.5.x, Joomla 3.x Wordpress 3.x, Drupal 7.x
  • MySQL version: 5.x
  • PHP version: 5.3 / 5.4
Re: User registration problems
March 13, 2012, 03:57:43 pm
1 - I have the same problem and have just posted about it in the CiviContribute section http://forum.civicrm.org/index.php/topic,23851.0.html - did you ever find a fix?

2 - I think that text can be changed at templates/CRM/common/CMSUser.tpl

Thoudahl

  • I’m new here
  • *
  • Posts: 25
  • Karma: 1
  • CiviCRM version: 4.1.1
  • CMS version: Joomla 1.7.1
  • MySQL version: 5.5.15
  • PHP version: 5.3.8
Re: User registration problems
March 13, 2012, 05:58:51 pm
Hi Nicol

I'm actually working on it right now.

I have figured out what is causing, but not the total solution yet.

I have found following so far:
- email is not valid, since it is propageted as '' from com_civicrm/civicrm/CRM/Utils/joomla.php since line 86 says:
Code: [Select]
$values['email1'] = trim($params[$mail]); //removed 1 from email1and it should be
Code: [Select]
$values['email'] = trim($params[$mail]); //removed 1 from email1(Else email is empty and then failing.)

Then I got a new error: In the same file, lin 120
Code: [Select]
        UserController::_sendMail( $user, $user->password2 );In my joomla edition 1.7.1 the class is called UsersController and there is no method called _sendMail.
(Does anyone knows what to call to fix this?)

It seems like Civi Is just supporting something new now or they fogot to fix this as Joomla progressed.

nicol

  • I post occasionally
  • **
  • Posts: 95
  • Karma: 5
  • CiviCRM version: 4.2, 4.3, 4.4
  • CMS version: Joomla 2.5.x, Joomla 3.x Wordpress 3.x, Drupal 7.x
  • MySQL version: 5.x
  • PHP version: 5.3 / 5.4
Re: User registration problems
March 13, 2012, 07:04:22 pm
Hi,

This seems a big step forward.

Could _sendmail be calling the deprecated (after J1.5) JUtilities:sendmail http://joomla-2-5-en.agentur-pflueger.de/dd/dc0/a00611.php#a1ed983384684781ceefb902fed927434 rather than the newer JMail:Sendmail http://joomla-2-5-en.agentur-pflueger.de/d4/dfb/a00512.php#a5d9b5bb20edddc85fdea632187aef3f1 ?

I've since found a thread from other people with the same problem where Donald Lobo was offering some help - http://forum.civicrm.org/index.php/topic,23652.msg100114.html#msg100114

n
« Last Edit: March 13, 2012, 07:07:21 pm by nicol »

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: User registration problems
March 13, 2012, 08:25:38 pm

yes, the civi code seems to have drifted far far away from the joomla 2.5.x code. We are taking a look and hopefully will have a fix for this in the next few days or so

Thanx for investigating. If someone does patch it please share, so others can benefit :)

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

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: User registration problems
March 13, 2012, 09:07:37 pm

Can you please file an issue for this so we can ensure this is fixed for 4.1.2 :)

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

Thoudahl

  • I’m new here
  • *
  • Posts: 25
  • Karma: 1
  • CiviCRM version: 4.1.1
  • CMS version: Joomla 1.7.1
  • MySQL version: 5.5.15
  • PHP version: 5.3.8
Re: User registration problems
March 14, 2012, 02:49:22 am
I have filed an issue at: http://issues.civicrm.org/jira/browse/CRM-9874

I will be working on getting the system to send out the e-mail.

lcdweb

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1620
  • Karma: 116
    • www.lcdservices.biz
  • CiviCRM version: many versions...
  • CMS version: Joomla/Drupal
  • MySQL version: 5.1+
  • PHP version: 5.2+
Re: User registration problems
March 15, 2012, 06:22:06 am
I filed a patch for this issue.
http://issues.civicrm.org/jira/browse/CRM-9874

If you can apply and do some testing to confirm, would be great.
support CiviCRM through 'make it happen' initiatives!
http://civicrm.org/mih

ranchy

  • I’m new here
  • *
  • Posts: 10
  • Karma: 1
  • CiviCRM version: 4.08
  • CMS version: Joomla 1.7
  • MySQL version: 5.0.7
  • PHP version: 5.3.5
Re: User registration problems
March 15, 2012, 09:05:06 am
I applied the patch and it now works for me. Thanks lcdweb! Joomla 2.5

nicol

  • I post occasionally
  • **
  • Posts: 95
  • Karma: 5
  • CiviCRM version: 4.2, 4.3, 4.4
  • CMS version: Joomla 2.5.x, Joomla 3.x Wordpress 3.x, Drupal 7.x
  • MySQL version: 5.x
  • PHP version: 5.3 / 5.4
Re: User registration problems
March 15, 2012, 08:07:39 pm
Thanks. It is now creating a jos_user record and I can log in :). However the civicrm_uf_match record seems to get a uf_id field with value zero for new records, so the user account isn't linking up to the Civi contact.

Also after completing the form in the front end I am redirectd to a blank home page, not the 'thanks for contribution' screen as before.

lcdweb

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1620
  • Karma: 116
    • www.lcdservices.biz
  • CiviCRM version: many versions...
  • CMS version: Joomla/Drupal
  • MySQL version: 5.1+
  • PHP version: 5.2+
Re: User registration problems
March 16, 2012, 06:04:26 am
@nicol

i see you have several versions of civi and joomla you're using. note that this patch only applies to J1.6+ with Civi 4.1+
you mentioned the jos_user table -- which is a J1.5 table
in J1.6+ the prefix is random and the table is _users
which is why i'm thinking you're applying the patch to the wrong version.
support CiviCRM through 'make it happen' initiatives!
http://civicrm.org/mih

nicol

  • I post occasionally
  • **
  • Posts: 95
  • Karma: 5
  • CiviCRM version: 4.2, 4.3, 4.4
  • CMS version: Joomla 2.5.x, Joomla 3.x Wordpress 3.x, Drupal 7.x
  • MySQL version: 5.x
  • PHP version: 5.3 / 5.4
Re: User registration problems
March 16, 2012, 06:58:15 am
Hi Brian - my mistake, I meant jos_users. I'm using Joomla 2.5.2 and CiviCRM 4.1.1 but in a version originally upgraded from 1.6 with jos_ as the table prefix. If my bugs are unique to me, then perhaps I need to try a fresh install or reapplying the patch.

lcdweb

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1620
  • Karma: 116
    • www.lcdservices.biz
  • CiviCRM version: many versions...
  • CMS version: Joomla/Drupal
  • MySQL version: 5.1+
  • PHP version: 5.2+
Re: User registration problems
March 16, 2012, 09:39:11 am
I found an issue.
My original testing was with J1.7, and there was a change between that and J2.5 that affected how the user id was retrieved.

I updated the patch in the issue above. can you apply and test.
support CiviCRM through 'make it happen' initiatives!
http://civicrm.org/mih

nicol

  • I post occasionally
  • **
  • Posts: 95
  • Karma: 5
  • CiviCRM version: 4.2, 4.3, 4.4
  • CMS version: Joomla 2.5.x, Joomla 3.x Wordpress 3.x, Drupal 7.x
  • MySQL version: 5.x
  • PHP version: 5.3 / 5.4
Re: User registration problems
March 16, 2012, 11:09:26 am
It works :) thanks alot.

I wonder if Joomla will keep rejigging core functions with every .5 version.

lcdweb

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1620
  • Karma: 116
    • www.lcdservices.biz
  • CiviCRM version: many versions...
  • CMS version: Joomla/Drupal
  • MySQL version: 5.1+
  • PHP version: 5.2+
Re: User registration problems
March 16, 2012, 11:25:25 am
i'm sure every version will present some element of change.
fortunately, there was a common function found in 1.6/1.7/2.5 that did what we needed.
support CiviCRM through 'make it happen' initiatives!
http://civicrm.org/mih

Pages: [1] 2
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Profiles (Moderator: Dave Greenberg) »
  • User registration problems

This forum was archived on 2017-11-26.