I saw these errors when I am editing user information at "user/1/edit" URL:

Notice: Undefined index: uid in fb_user_form_user_profile_form_alter() (line 764 of /public_html/sites/all/modules/fb/fb_user.module).
Notice: Undefined index: #description in fb_user_form_user_profile_form_alter() (line 776 of /public_html/sites/all/modules/fb/fb_user.module).

Any idea what's wrong?

Cheers!

Chang

CommentFileSizeAuthor
#2 fb_user.patch776 bytesalasda

Comments

Dave Cohen’s picture

THere are quite a few php notices in the D7 branch. They won't cause errors.

You can hide them with something like this in your settings.php, depending on your hosts php setup..

ini_set("error_reporting", E_ALL ^ E_NOTICE); // until code is cleaned up
alasda’s picture

Status: Active » Needs review
StatusFileSize
new776 bytes

Change incorrect reference $data['uid'] to $data['id']
Added catch for empty string $form['Facebook Application']['map']['#description'] so concat does not fail.

See attached patch