Forums

CB Registration Plugin Issues

micklsu 05 Nov, 2009
Ok, I am at the point to give up. I have read the "Create a Joomla Registration Form using ChronoForms" tutorial and then read the forum posts about applying that for a CB Registration and have done the following:
1) Created form
2) Enabled the CB Registration plugin
3) Turned Joomla Registration On in Site->Global Configuration
4) Added a field for Name because CB requires it(from forum post by Bob)
5) Mapped the fields for my Chronoforms to CB Registration from Forms Management
6) Redirected Register button in template to my new form(from forum post by Max)

When I fill out form and submit, nothing happens, no information is saved to tables. Turned on debug in form and I get

Form passed first SPAM check OK
Form passed the submissions limit (if enabled) OK
Form passed the Image verification (if enabled) OK
Form passed the server side validation (if enabled) OK
$_POST Array: Array ( [text_1] => tuser [text_2] => tuser [text_3] => tuser [text_8] => tuser [text_4] => tuser12 [text_5] => tuser12 [text_7] => [email]tuser@yahoo.com[/email] [chrono_verification] => HTqXr [button_9] => Register [82008d02e035e5234127a45954f4104b] => 1 [1cf1] => dea74901b1fa43badf48baf8d28f472b [chronoformname] => Register )
$_FILES Array: Array ( )
Form passed the plugins step (if enabled) OK
Debug End

I am on Joomla 1.5.14, CB 1.2.1, and the latest Chronoforms from the download section.
I saw a post by Bob that indicated that there may be issues with the CB Plugin and CB 1.2.1. Is that my issue, or am I missing something else in my setup?

Any help would be appreciated. Thanks
GreyHead 05 Nov, 2009
Hi micklsu,

The most common problem when this happens is that the plugin isn't enabled in the form Plugins tab. It's not an obvious step. If it is enabled then it willahve a green bar with a 'x' icon in the plugins tab.

If this isn't the problem then by all means email or PM me a SuperAdmin login and I'll take a quick look in the morning.

Bob
micklsu 05 Nov, 2009
Bob, here is my plugin panel. [attachment=0]pluginpanel.JPG[/attachment]Thanks
GreyHead 05 Nov, 2009
Hi micklsu,

That looks good to me.

I'm not a CB user and Max wrote the plugin for the old version of CB. It's entirely possible that something else has changed in the latest CB release. There have been a couple of recent threads talking about this but I don't remember the details off the top of my head.

Bob
GreyHead 06 Nov, 2009
Hi micklsu,

I took a look at the site and the form setup looks correct to me and the form submits correctly.

Turning on site debug I don't see any sign that the plugin is being executed at all. Whether this is a fault in the plugin/CB interface or some side-effect of Juga I really don't know.

I'll try to find time later to investigate further. Meanwhile you might check the CB Registration threads to see if any fixes ahve been posted for CB 1.2

Bob
micklsu 06 Nov, 2009
Thanks for looking Bob. I thought about the JUGA issue, but the native CB registration works without issue, so I thought that eliminated an ACL issue. I will keep looking and also look on the CB forums. If you or Max think of anything, let me know.

Thanks again.
micklsu 16 Dec, 2009
Well Bob, I have investigated several other routes and they all lead me back to getting the CB plugin for registration working. When you looked at the installation, you said that it did not look like the Plugin was being executed. Do you have any hints on what to look for, should I have something else in my form in addition to what was in the tutorial? Thanks
micklsu 16 Dec, 2009
Well, I guess I am making progress. I now get a 403 error. Following is output with Debug on:

Access Forbidden!

Call stack
# Function Location
1 JSite->dispatch() C:\wamp\www2\index.php:68
2 JComponentHelper->renderComponent() C:\wamp\www2\includes\application.php:124
3 require_once() C:\wamp\www2\libraries\joomla\application\component\helper.php:162
4 uploadandmail() C:\wamp\www2\components\com_chronocontact\chronocontact.php:62
5 CFChronoForm->submitForm() C:\wamp\www2\components\com_chronocontact\chronocontact.php:125
6 CFPlugins->runPlugin() C:\wamp\www2\components\com_chronocontact\libraries\chronoform.php:452
7 cf_cb_registration->onsubmit() C:\wamp\www2\components\com_chronocontact\libraries\plugins.php:97
8 JError->raiseError() C:\wamp\www2\components\com_chronocontact\plugins\cf_cb_registration.php:218
9 JError->raise() C:\wamp\www2\libraries\joomla\error\error.php:171
10 JException->__construct() C:\wamp\www2\libraries\joomla\error\error.php:136

Any ideas?
GreyHead 16 Dec, 2009
Hi micklsu,

Check line 218 in C:\wamp\www2\components\com_chronocontact\plugins\cf_cb_registration.php

Bob
micklsu 16 Dec, 2009
Right. I was hoping you or Max had some ideas. Line 218 is checking to see if allowuserregistrations is "0" in com_users. I have the Joomla system setting for Allow User Registration to "No" and the CB setting to "Yes - independently of global site setting". This is based on posting by Max in the forums. When set like this, I get the 403 error. When I set the Joomla global setting to "yes", then the form doesn't seem to submit, as you exeperienced when you looked at the site. I think I am close, but must have something wrong in my form or setup.
GreyHead 16 Dec, 2009
Hi mickslu,

OK then the plugin should check for the CB setting but doesn't.

For the moment please just comment out this block in the plugin file.
/*		// If user registration is not allowed, show 403 not authorized.
		$usersConfig = &JComponentHelper::getParams( 'com_users' );
		if ($usersConfig->get('allowUserRegistration') == '0') {
			JError::raiseError( 403, JText::_( 'Access Forbidden' ));
			return;
		}
*/
micklsu 16 Dec, 2009
Hi bob, thanks for the suggestion. Commented the following in cf_cb_registration.php

// If user registration is not allowed, show 403 not authorized.
$usersConfig = &JComponentHelper::getParams( 'com_users' );
/* if ($usersConfig->get('allowUserRegistration') == '0') {
JError::raiseError( 403, JText::_( 'Access Forbidden' ));
return;
}
*/

$usersConfig is used later and you get a 500 error if you comment it out. So I don't get the 403 error anymore after using the above, but I am back to the same status I had before, nothing happens and the user is not registered in Joomla or CB.
peers 22 Dec, 2009
has anyone had any luck getting this working for chronoforms rc 5.5 and community builder 1.2.1
ganjaguru 04 Feb, 2010

Thanks for looking Bob. I thought about the JUGA issue, but the native CB registration works without issue, so I thought that eliminated an ACL issue. I will keep looking and also look on the CB forums. If you or Max think of anything, let me know.

Thanks again.


Hi,
I am using CB 1.2.1 I use ACL for my permissions stuff. I was receiving 403 - Access Forbidden after installing and creating my registration form. As I didn't find anything here I went back to my problem on my site.

I know Community ACL works like Juga. Except that you can be more specific as to what Itemid you allow or restrict. I used Juga when I first started my site, but switched as they told me their fix to allow the access to a specific function I wanted was not recommended as configuration headaches could come and danger danger.

Not to bag Juga. but, I think that it is your problem. I went back to my site and realized that I didn't assign the public any access to Chornoforms Itemid. More specifically for me Itemid 216. Make sure public is able to access Itemid's from Chornoforms. Have you / are you able to disable Juga and see what happens when you allow all?

Cheers to everyone on good product. I am very impressed in my first immersion into it and am 90% I will be making a donation in the near future.
This topic is locked and no more replies can be posted.