I'm trying for first time this module and I have this error message (it appears like 40 times, same notice). I followed all instructions on the readme file. Am I doing something wrong or can it be related to development status?

Notice: Undefined index: fb_url_alter in fb_url_outbound_alter() (line 108 of /Library/WebServer/Documents/drupal7/sites/all/modules/fb/fb_url_rewrite.inc).

Thanks.

CommentFileSizeAuthor
#15 fb-1034130.patch1.01 KBrecidive

Comments

sea4’s picture

+1 i am getting the same messages

drupa11y’s picture

Have it running without errors/notices and updated to the latest dev version which now shows these alerts:
* Notice: Undefined index: fb_url_alter in fb_url_outbound_alter() (line 108 of /Applications/MAMP/htdocs/drupal-7.0/sites/mori.d7.dev/modules/social/fb/fb_url_rewrite.inc).
* Notice: Undefined index: fb_url_alter in fb_canvas_url_outbound_alter() (line 316 of /Applications/MAMP/htdocs/drupal-7.0/sites/mori.d7.dev/modules/social/fb/fb_canvas.module).
* Notice: Undefined index: fb_url_alter in fb_url_outbound_alter() (line 108 of /Applications/MAMP/htdocs/drupal-7.0/sites/mori.d7.dev/modules/social/fb/fb_url_rewrite.inc).
* Notice: Undefined index: fb_url_alter in fb_canvas_url_outbound_alter() (line 316 of /Applications/MAMP/htdocs/drupal-7.0/sites/mori.d7.dev/modules/social/fb/fb_canvas.module).

drupa11y’s picture

More details:
Location http://mori.d7.dev/admin/reports/dblog
Referrer http://mori.d7.dev/admin/modules/list
Message Notice: Undefined index: fb_url_alter in fb_canvas_url_outbound_alter() (line 316 of /Applications/MAMP/htdocs/drupal-7.0/sites/mori.d7.dev/modules/social/fb/fb_canvas.module).

Location http://mori.d7.dev/admin/reports/dblog
Referrer http://mori.d7.dev/admin/modules/list
Message Notice: Undefined index: fb_url_alter in fb_url_outbound_alter() (line 108 of /Applications/MAMP/htdocs/drupal-7.0/sites/mori.d7.dev/modules/social/fb/fb_url_rewrite.inc).
Severity notice

sfmike’s picture

Same issue. Did a from scratch install:
Drupal 7.0
Facebook PHP libraries: 2.1.2-4
Drupal for Facebook: 7.x-3.x

Went in and enabled the following modules:
-fb.module
-fb_app.module
-fb_connect.module
-fb_form.module
-fb_user.module
-fb_friend.module

I then get the following error message repeated 133 times:
Notice: Undefined index: fb_url_alter in fb_url_outbound_alter() (line 107 of /home/mysite/public_html/sites/all/modules/fb/fb_url_rewrite.inc).

I can enter my fb application information (under Structure-Facebook Apps), but get the following error message:

"Failed to create facebook application mysite.net (mysite). Check the log."

Had this working under Drupal 6 so went back to clean install to make sure I didn't miss a step. Haven't gone further in troubleshooting at this point.

Sylvain Lasnier’s picture

Category: support » bug

Same problem; Impossible to create FB application.
I uninstalled FB modules and follow the README.txt => same result.
Critical issue for me

Thanks :)

dngankam’s picture

Hi!
I'm facing the same problem in Drupal 7.0 whenever I try to enable the module Canvas Pages (fb_canvas.module).
Maybe I have something wrong in the config.

Notice: Undefined index: fb_url_alter in fb_canvas_url_outbound_alter() (line 316 of C:\Program Files\EasyPHP-5.3.3\www\drupal-7.0\modules\fb\fb_canvas.module).

bradyhawk101’s picture

+1

Fresh install
drupal 7
Throwing error when enabling Canvas Pages (fb_canvas.module)

Notice: Undefined index: fb_url_alter in fb_canvas_url_outbound_alter() (line 316 of /home/clients/websites/w_haw/public_html/hawk/sites/all/modules/fb/fb_canvas.module).

Dave Cohen’s picture

This sort of PHP notice is usually not causing problems, except the error message.

Agreed, it should be fixed. But it wouldn't surprise me if there are tons of these messages in modules/fb for D7, right now. It's a dev version still under active development.

So yes, this will get fixed. But for not consider disabling PHP notices. try adding this to your settings.php...


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

Okay Dave - thanks. I got the error message details from the log and will post in a new issue.

sfmike’s picture

Correction: I was getting a pdoexception error which is described in another thread, and your latest dev release fixed it. Thanks!!!

Cheek’s picture

subscribing

novan_as’s picture

me too
:)

tanjerine’s picture

subscribing

c4antonio’s picture

don't work, i've the same problems

recidive’s picture

Component: Miscellaneous » Code
Status: Active » Needs review
StatusFileSize
new1.01 KB

Here's a patch to get rid of the notices.

Dave Cohen’s picture

Status: Needs review » Fixed

checked in. Thanks for patch!

novan_as’s picture

Thanks :)

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.