Hi,
I am having trouble debugging the below code. The first statement if (!$user->save()) I believe goes into an infinite loop (the browser window goes blank and there is no source code). I don't know where to look for the save function to determine what is happening.
Any help would be greatly appreciated.
Thanks
Alan
I am having trouble debugging the below code. The first statement if (!$user->save()) I believe goes into an infinite loop (the browser window goes blank and there is no source code). I don't know where to look for the save function to determine what is happening.
Any help would be greatly appreciated.
Thanks
Alan
// If there was an error with registration, set the message and display form
echo "start save";
if ( !$user->save() ) {
$MyPlugins->cf_joomla_registration['errors'] = JText::_( $user->getError());
$messages[] = JText::_( $user->getError());
if ( $params->get('showmessages') ) {
//$mainframe->enqueuemessage(JText::_( $user->getError()), 'error');
$MyForm->addErrorMsg(JText::_( $user->getError()));
}
if ( $params->get('debugging') ) {
$helper->showPluginDebugMessages($messages);
}
// remove the password values from display
$post['password'] = $post[$params->get('pass')] = '';
$post['password2'] = $post[$params->get('vpass')] = '';
$MyForm->showForm($MyForm->formrow->name, $post);
return false;
}