I receive the following error: "Notice: Undefined property: stdClass::$nid in nodeblock_form_alter() (line 84 of..." when Node Block (latest: 7.x-1.x-dev) is enabled together with Internationalization (7.x-1.0-beta4) module on the node form.
I can create the node, but after saving I am seeing the same error again "Notice: Undefined property: stdClass::$nid in nodeblock_form_alter() (line 84 of /../../../../public_html/sites/all/modules/nodeblock/nodeblock.module)."
I can see de nodeblock is created in my list of blocks. Then, when I try to translate this node with the Internationalization module translate tab, and I save it, the same error is shown as above for a short while and then it dissappears and I see "The block you just created is now available on the block configuration page. "..node" has been created."
When I look in my list of blocks the translated block I just created isn't there at all.
Hopefully somebody is able to provide me with some help? Thanks in advance!
Comments
Comment #1
SoulCreatives-1 commentedSubscribing
Comment #2
michaellander commentedI'll look into it. Thanks!
Comment #3
michaellander commentedCan you try the 7.x-1.x-dev, dated 5/12. Should be available shortly.
Comment #4
ericjan commentedThanks for your reply Mike, will test it right away if you release the new dev version and post back if it fixed this issue.
Comment #5
ericjan commentedTested the new 7.x-1.x-dev (2011-May-13). The errors disappeared, however the blocks I want to translate are not created as nodeblock. In other words, the node exists in different languages, but only for the source node a nodeblock is created and not for the translated ones.
Comment #6
michaellander commentedAll translations for a node share the same block. Then there is a setting on the source translations node edit page that lets you either show the source translation or hide the block if a translation does not exist for it. I am unsure of a reason to create an individual block for every node and for each of it's translations?
Comment #7
ericjan commentedI think I misunderstood and was somehow confused by the text that follows after saving the translation:
"The block you just created is now available on the block configuration page.
Action button Test EN 2 has been created."
Then what I expected is to find the translated nodeblock with that translated title Test EN 2. But when I go to the block configuration page there is no block to be found with the title Test EN 2.
The block is still named Test NL 2 (source), that one is on the block configuration page. Now when I place this block on the Dutch and the English site. The right language is shown on each site. So everything works well!
So, no new nodeblock is created with a translation of the node. Glad you made that clear to me. Thanks for your help!