Closed (fixed)
Project:
Facebook Post
Version:
7.x-2.2
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
29 Nov 2014 at 10:57 UTC
Updated:
28 Oct 2015 at 05:53 UTC
Jump to comment: Most recent
I get this error on some occasions, amongst others when editing content types.
I also found the solution on http://drupal.stackexchange.com/questions/42386/how-to-acess-node-object...
It seems on line 90 in fb_post.module the hook used instead of hook_form_alter is hook_form_node_form_alter, since $form['#node'] doesn't exist in hook_form_alter, if it is not a node edit form.
Comments
Comment #1
DolfAndringa commentedComment #3
kruhak commentedComment #5
reswild commentedThis solution doesn't work, as you are now restricting the module to work only on nodes of the content type 'page'. See comment #12 in issue #2482701.
The latest patch therefore needs to be reverted, and a different solution found.
Comment #6
usdv commentedFixed in the latest stable release.
Comment #7
usdv commentedClosing
Comment #8
usdv commented