Problem with SMF registration

Started by john109, April 13, 2006, 08:48:17 AM

Previous topic - Next topic

john109

I've been trying to get the Custom Profile mod installed and I had the problem that the custom fields I created weren't showing up on the registration because on the Joomla/SMF 1.1.3 bridge I chose bridge registration.  So I changed it to use SMF registration and my custom fields show up now but I get this error now.  I figured it might be caused by the bridge rather than the Custom Profile mod so I posted here.  I'm using Joomla 1.0.8 + SMF 1.1RC2.

Quote8: Undefined index: memberName
File: /home/xxx/public_html/joomla/components/com_smf/smf.php
Line: 917

This is line 917
Quote$Options['realName'] = $Options['memberName'];

which is part of this
Quote//What if the realName field isn't being used?
   if (!isset($Options['realName']) || $Options['realName']=='')
      $Options['realName'] = $Options['memberName'];

The SMF registration doesn't ask for your real name but the bridge registration did.  Anyone know how I can fix this?

paki

Quote from: john109 on April 13, 2006, 08:48:17 AM
I've been trying to get the Custom Profile mod installed and I had the problem that the custom fields I created weren't showing up on the registration because on the Joomla/SMF 1.1.3 bridge I chose bridge registration.  So I changed it to use SMF registration and my custom fields show up now but I get this error now.  I figured it might be caused by the bridge rather than the Custom Profile mod so I posted here.  I'm using Joomla 1.0.8 + SMF 1.1RC2.

Quote8: Undefined index: memberName
File: /home/drago2/public_html/joomla/components/com_smf/smf.php
Line: 917

This is line 917
Quote$Options['realName'] = $Options['memberName'];

which is part of this
Quote//What if the realName field isn't being used?
   if (!isset($Options['realName']) || $Options['realName']=='')
      $Options['realName'] = $Options['memberName'];

The SMF registration doesn't ask for your real name but the bridge registration did.  Anyone know how I can fix this?

Orstio is helping me out with this problem in this thread: http://www.simplemachines.org/community/index.php?topic=81573.0

Hopefully we can get it running tonight w/o problems.
http://www.dfwhyundais.com <-- Dallas/Ft. Worth's Local Hyundai Group

john109

No ideas on this yet? 

I'm also having problems when I click on the link to go to the custom field parameters it unwraps the forum.

Orstio

Does it work if you uninstall the Custom Profile mod?

john109

I've uninstalled the Custom Profile mod and I still get the error.

Orstio



Orstio

Does your SMF database user have access to your Joomla database?

john109

Yes I used the same database user for both.

Orstio

Can you PM me some admin/superadmin details?

I can't see anything wrong from guest status, other than the registration is ending in a fatal error.

Orstio

In smf.php, can you change every $Options to $Options['register_vars'] ?

john109

#11
OK I've done that.   

I get this error now.

QuoteParse error: parse error, unexpected '[', expecting ')' in /xxx/public_html/joomla/components/com_smf/smf.php on line 892

This is line 892
Quotefunction integrate_register($Options['register_vars'], $theme_vars)

Orstio

Sorry, I meant all except the one in this line:

function integrate_register($Options, $theme_vars)

john109

Oh ok  :o

I fixed that and it seems the registration works now.  Thanks!!  :D

I don't know if I should try reactivating the Custom Profile mod or just count my blessings.   ::)

Orstio

#14
Yes, the Custom Profile mod should work now.

I just wanted to eliminate the Custom Profile mod as the source of the problem.  ;)

(BTW:  The company for which I work competes in the races in Winnipeg each year.  :D )

john109

Don't suppose you know how to fix this thing in the Custom Profile mod where it takes me out of the wrapper that the forum was wrapped in?  If you want to see for yourself I left those passwords in effect for now.

http://www.simplemachines.org/community/index.php?topic=79004.msg544130#msg544130


(Cool. Ever make it out to Vancouver?

My organization started up what later became the Alcan Dragon Boat Festival.  We parted ways a few years ago and now we run races during the Vancouver International Taiwanese Dragon Boat Races.)



Orstio

The problem is in the mod.  It is not XHTML compliant --

<a href=

Should be:

<a href="

HTML fields should always have quotation marks....

(I've been to Vancouver, but not to row boats ;) )

john109

Thanks for the help Orstio!!   ;D

winrules

Quote from: Orstio on April 14, 2006, 06:47:58 PM
The problem is in the mod.  It is not XHTML compliant --

<a href=

Should be:

<a href="

HTML fields should always have quotation marks....

(I've been to Vancouver, but not to row boats ;) )
I've fixed it, I'd also like to thank Orstio for his help making my mod compatible :)
Thanks!


winrules
SMF Developer
               
My Mods
Please do not PM me for support.


paki

hey john.. quick question for you. In your error log, does it still come up with the "8: Undefined index: memberName" errors?
http://www.dfwhyundais.com <-- Dallas/Ft. Worth's Local Hyundai Group

Advertisement: