The following error message crops up upon saving a new application:
# Notice: Undefined property: stdClass::$canvas_name in fb_app_admin_form_submit() (line 234 of /Users/tstackhouse/Sites/drupal/sites/all/modules/fb/fb_app.admin.inc).
These appear when viewing the application admin page:
# Notice: Undefined property: stdClass::$canvas_name in fb_admin_page() (line 46 of /Users/tstackhouse/Sites/drupal/sites/all/modules/fb/fb.admin.inc).
# Notice: Undefined variable: output in fb_admin_page() (line 77 of /Users/tstackhouse/Sites/drupal/sites/all/modules/fb/fb.admin.inc).
The first two errors appear to be related to the app not being a canvas app and FBAPI therefore not returning a canvas name. It should be possible to provide defaults as NULL or '' to bypass this error or to add in some additional handling logic.
The third error appears to be an incorrect use of .=, as $output is not previously defined by that point, changing to = fixes the problem.
Comments
Comment #1
Dave Cohen commentedClearly, I need to turn on PHP notices. Thought I had done that....
Comment #2
tstackhouse commentedGlad I could be of help, just doing some discovery to see if we can make use of this package as a project at work. Thanks for making this possible!