Error when a new membre register

Started by loliv, November 17, 2006, 09:50:30 AM

Previous topic - Next topic

loliv

I'm running :
Joomla 1.0.11
SMF 1.1 RC3
SMF 1.1 RC3 Joomla Bridge 1.1.6

When a new membre creates an account, the following messages are displayed :
Notice: Undefined offset: 0 in /home.10.3/psychomi/www/joomla2/components/com_smf_registration/smf_registration.php on line 474
Notice: Undefined offset: 0 in /home.10.3/psychomi/www/joomla2/components/com_smf_registration/smf_registration.php on line 474
Notice: Undefined offset: 0 in /home.10.3/psychomi/www/joomla2/components/com_smf_registration/smf_registration.php on line 474

but... the user account is created and an email is sent

Any suggestion ?
Olivier

Orstio


loliv

ligne 474 is the blank line after the second "global" command line

"function registerForm($option, $useractivation)

{

   global $context, $mainframe, $database, $my, $acl, $boarddir;

   global $agreement_required, $im;



   if (!$mainframe->getCfg('allowUserRegistration'))

   {

      mosNotAuth();

      return;

   }

   $mainframe->SetPageTitle(_REGISTER_TITLE);

   HTML_smf_registration::registerForm($option, $useractivation, $context, $agreement_required, $im);

}"

thanks for your support orstio...

Olivier

Orstio

Well, then that error makes no sense at all...

loliv

I've tried to rewrite the whole paragraph. New test, same error...

"Notice: Undefined offset: 0 in /[home]/components/com_smf_registration/smf_registration.php on line 475

Notice: Undefined offset: 0 in /[home]/components/com_smf_registration/smf_registration.php on line 475

Notice: Undefined offset: 0 in /[home]/components/com_smf_registration/smf_registration.php on line 475"

What would you suggest to try to solve the problem : re-install ?

thanks for you time...
Olivier


loliv

Oh yes...
http://www.psychomirail.fr (it's a web site for France Toulouse students in psychology)

Olivier

Orstio

Looking at my code locally, it looks as though what should be around that line is this:

foreach ($admins['users'] AS $id)
{
$database->setQuery("
SELECT email, sendEmail
FROM {$mosConfig_dbprefix}users
WHERE id = '$id'");
$rows = $database->loadObjectList();
$row = $rows[0];
if ($row->sendEmail)
mosMail($adminEmail2, $adminName2, $row->email, $subject2, $message2);
}


Do you not have any Joomla admins?

loliv

Sorry Orstio but I'm not sure to understanf your question....

I do have an "admin" user
I have 4 accounts with super-administrator bacl-end access

I also have an admins@... mailing list

Olivier

Majes

I have the same problem. Need support.

Maybe this is caused by cnstant user deletion

Majes

BTW, the groups dont get assigned automattically

loliv

I've tried a few things but the problem is still there and I can't fix it...

I've only one user in the "users" database with sendmail=1. This user's username is "admin"

Olivier

Advertisement: