Posted by ajzz on December 9, 2009 at 1:54am
Jump to:
| Project: | Drupal for Facebook |
| Version: | 6.x-3.x-dev |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
This error is returned when module is enabled. The module shows as active after activation despite this error.
The trouble code around line 878 is:
// Prefix each known value to the URL
foreach (_fb_settings_url_rewrite_prefixes() as $prefix) {
...I played around a bit and escaped the function as follows to make it a valid string:
foreach ('_fb_settings_url_rewrite_prefixes()' as $prefix)The error goes away, but, I'm sure the result is not the intended behavior and possibly leads to the following badness. The linking URLs on the fb app canvas page get messed up -- instead of http://apps.facebook.com/myapp/node/xxx they show up as http:///node/xxx .
[Running on 6.x CVS devel version updated yesterday]
Comments
#1
Wow, that's a creative solution! Putting quotes around that function call makes it a string. That eliminates the error message but breaks the module. Undo that change.
Read the README.txt to solve your problem.
#2
afaik, I was very loyal to the README, including checking off each step... will start from scratch again and see if I get luckier this time around... will keep you posted. And yes, that escaping was just for "play"... it was reverted in a second :)
thanks for the nudge
#3
That function is defined in modules/fb/fb_settings.inc, which you must include from your settings.php.
#4
Yeah, that line was in my settings file. I deleted the module, uninstalled it and went from scratch again following all the same step again and this time around, there was no error. My only guess...I missed the :w in vi with the above line before trying to enable the module in drush, Thanks again. (for the help and the powerful module)
EDIT: Suggestion: could your enumerate the steps in the README/online documentation? Its pretty long file to scroll through on a terminal and there are quite a few steps that need to be done right, so numbering them will reduce user error.
#5
Automatically closed -- issue fixed for 2 weeks with no activity.