Notice: Undefined index: p_body in _webform2pdf_get_template() (line 170 of webform2pdf/webform2pdf.module).
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | webform2pdf-undefined_index_p_body-2479293-7.patch | 663 bytes | br0ken |
Notice: Undefined index: p_body in _webform2pdf_get_template() (line 170 of webform2pdf/webform2pdf.module).
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | webform2pdf-undefined_index_p_body-2479293-7.patch | 663 bytes | br0ken |
Comments
Comment #1
Bogomazik commentedComment #2
pbosmans commentedWith this patch you skips the check-markup function (line 170 within the webform2pdf.module).
Can it be an issue ?
Wouldn't be better to check if the $settings variable is empty before line 170 ?
Comment #3
mrpauldriver commentedIs there a consensus regarding the best approach with this bug?
Comment #4
nico.knaepen commentedThis issue only occured when on the mail setting no "Included e-mail settings" was checked.By checking at least one item the problem got solved.
This seems more like a validation issue then a fix as worked out in the current patch.
Comment #5
nico.knaepen commentedIsn't the approach to check if p_body exists better?
Comment #6
mrpauldriver commentedPatch at #5 works for me
Comment #7
br0kenPatch has been created from wrong place. Add a correct one.
Comment #9
br0kenComment #11
pharamis commentedUnfortunately, I'm still getting the notice after the patch was applied. I think it's pretty odd, because the option "Generate PDF Document" is unchecked and the module still refers to a template.
Comment #12
druliner commentedI was able to suppress this warning by enabling PDF generation on the webform in question, saving the configuration, and then disabling PDF generation again. Leads me to believe that it's trying to access template variables even when PDF generation is disabled.