I've setup webforms and webfrom_localization, I've got the string translation working on the form's page itself. However I was trying to use it as a block. The pages on which the block was loaded in a different language (de instead of en) would show the following error:
Notice: Undefined property: stdClass::$content in webform_block_view() (Zeile 2032 von /sites/all/modules/contrib/webform/webform.module).
I'm guessing the fact that it's trying to load the block of an alternate version of the form might be causing issues. I had the 'allow block' option enabled on the main form but not it's translation (enabling it did not fix the problem anyways).
I currently changed my approach and I am including the webform as a rendered entity in a view instead to bypass the problem but I still wanted to report it as a possible bug. Let me know if you need additional information.
| Comment | File | Size | Author |
|---|---|---|---|
| #13 | webform-show_form_when_simpleform_is_enabled-2106523-13.patch | 824 bytes | joseph.olstad |
Comments
Comment #0.0
Nodz commentedCleaned up paths
Comment #1
joseph.olstadif this issue occurs again then please re-open this issue, it is advised to please re-test on a recent version of webform and webform_localization and provide steps to reproduce the issue.
Comment #2
NYAWD commentedI think I am encountering the same bug.
The webform is used as a block on a basic page and while the basic page and the block on it load fine in the original language (german), there is no block only the basic page displayed for the english page. No error message.
On the page of the form itself I can choose between "German" and "English" so the translation is definitely working, but there is no translated block showing up on the basic page in english.
I am using Drupal 7.41 with Webform Localization 7.x-4.2 and the translated version of the basic page is achieved with i18n.
Comment #3
edgarsg commentedI have exactly the same problem.
Comment #4
joseph.olstadI recommend the workaround mentioned by the author of this issue. Use a view. Feel free to submit a patch for review, the webform in a block needs its' node info, a view will do this.
Feel free to add block functionality in a patch for review, otherwise use a view as mentioned previously.
Comment #5
joseph.olstadComment #6
eloivaqueI Created a patch about this problem. The patch needs to apply to webform module, not on webform_localitzation.
Comment #7
joseph.olstadMoving this issue over to the webform queue, there is a patch for the webform module available.
Comment #9
joseph.olstadlooks like this patch needs a reroll.
Comment #10
rohit.rawat619 commentedComment #11
rohit.rawat619 commentedComment #12
liam morlandComment #13
joseph.olstadI went ahead and rerolled patch 6, see new patch (cleaned up)
patch 11 doesn't appear to be for this branch nor does it appear to be appropriate for the described issue.
note: I haven't tested this patch.
Comment #14
joseph.olstadComment #15
liam morlandDrupal 7 is no longer supported. If this applies to a supported version, please re-open.