Forums

J! 1.6 Registration form

Piszi 29 Apr, 2011
Hello!

I'm trying to make a simple registrtation form but I'm lost a little bit in the new v4.
I created a basic form like J! 1.6 default reg.: Name, username, password, password check, email, email check, captcha and submit button
After this I added events:
On load: load css, load js, load html, load captcha
On submit: check captcha(inside onfail an event loop), registration(inside on success Thanks message)

After this I set up the fields in reg. event and set the user group to Author, disabled joomla registration overwrite, set activation to no, no email, no auto login etc... and saved as registration

Then i tested it and get this php fatal error:

Fatal error: Call to undefined method JAccess::get_group_id() in C:\www_root\sitetest\administrator\components\com_chronoforms\form_actions\joomla_registration\joomla_registration.php on line 85



Am I missing something in the form config???
Isn't this error becouse one or more of J! core helpers aren't loaded?
Oh almost forget. I made a menu item (URL) for the form becouse withuot Itemid it wouldn't show up. The form action url now looks like this: "http://localhost/sitetest/index.php?option=com_chronoforms&chronoform=registration&Itemid=780&event=submit" and the menu link of course is the same but without the &event=submit

Thanks in advance
Max_admin 01 May, 2011
Hi,

Which Chronoforms version, I don't think this RC1.8 for J1.6 ?

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Piszi 02 May, 2011
Hello,

No, it's 4.0 RC1.7
I will update my install and if there is an error with the new one I will get back.

thx
Piszi 02 May, 2011
Ok I updated to RC1.8 and created a new form which is this:

fields: name(fieldname: fullname), username(fieldname: username), password(fieldname: input_password_2), password check(fieldname: input_password_3), email(fieldname: email), captcha(fieldname: chrono_verification), submit(fieldname: input_submit_6)

actions/events:
- On Load: [list]1. load css[/list] [list]2. load js[/list] [list]3. load captcha[/list] [list]4. show html[/list]
- On Submit: [list]1. Registration(On success: show thanks message, On fail: Debug)[/list] [list]2. check captcha (on fail: event loop)[/list]

And now there is no php error but the CF debugger shows me this message:

Debug Data
Couldn't save new user, Joomla returned this error : Please enter your name.
Core Captcha
Passed the core captcha check!



What did I wrong?
GreyHead 03 May, 2011
Hi Piszi ,

First off the Captcha check should be before the Registration in the OnSubmit event.

What do you have in the Registration plug-in configuration for the Name files name box?

Bob
Piszi 03 May, 2011
In the configuration I have this:

1. name field name: fullname
2. username field name: username
3. email field name: email
4. password field name: input_password_2
5. verify password field name: input_password_3

Other settings:

Allow Joomla reg. overwrite: yes
user activation: no
send activation: no
random password: no
auto login: no
display status: no
Max_admin 10 May, 2011
Hi Piszi,

Are you sure the fields names map is correct ? is the "name" field called "fullname" in your form ?

if so then please copy your form code and attach it here, the form code is under the form "Edit" page > "Code" tab

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.