When I enable mimemail module, the email is never sent and I have a white page. I have this error in log : PHP Fatal error: Unsupported operand types in includes/theme.inc on line 1087
The error comes from arguments when theme_webform2pdf_mail2pdf function is called line 583 : Instead of
$attachment->filecontent = theme('webform2pdf_mail2pdf', $webform2pdf_send2pdf['nid'], $webform2pdf_send2pdf['sid']);
these should be
$attachment->filecontent = theme('webform2pdf_mail2pdf', array('nid'=>$webform2pdf_send2pdf['nid'], 'sid'=> $webform2pdf_send2pdf['sid']));
Here is the patch for this.
Comments
Comment #1
BD3 commentedI can confirm that the patch fixes the issue for me.
Comment #2
cosmicdreams commentedI ran into this error today and can confirm that the above is the proper fix.
Comment #3
cosmicdreams commentedI should add that this is a pretty serious bug. It breaks Webform2PDF silently when using Webform 7.x-4.x and Webform2PDF --dev. This needs to be prioritized.
escalating priority as a result.
Comment #4
tgf commentedThis bug is still present in dev as of 2015-02-20 and for me results in receiving a blank/empty PDF attachment. I did not notice any errors.
I have included an updated patch file.
Comment #5
anouI can confirm that patch #4 works for me.
Thanks to you.
Comment #6
mr.york commentedThank you. This problem fixed: #2446585: Fatal error webform_email_html_capable