Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
I have on two project with latest dev release of Bootstrap following issue. I use the Drupal Print Module with DOMPDF. With all other themes it works but if i enabled the Bootstrap template as default then i will receive in Frontend if i want print the site as PDF file this error message:
Fatal error: [] operator not supported for strings in /sites/all/themes/bootstrap/theme/system/image.vars.php on line 17
It seems it is a conflict.
Greetings, Alexander
Comment | File | Size | Author |
---|---|---|---|
#4 | print-incorrect_class_in_print_logo-7x-1.3-2268657-4.patch | 748 bytes | guschilds |
#3 | print-incorrect_class_in_print_logo-2268657-3.patch | 837 bytes | cgmonroe |
Comments
Comment #1
markhalliwellSearched the print module repo:
http://drupalcode.org/project/print.git?a=search&h=refs%2Fheads%2F7.x-2....
Found:
http://drupalcode.org/project/print.git/blob?f=print.pages.inc#l161
array('class' => 'print-logo', 'id' => 'logo')
Should be:
array('class' => array('print-logo'), 'id' => 'logo')
Comment #2
alexander.sibert CreditAttribution: alexander.sibert commentedIt works now for me. Thank you!
Comment #3
cgmonroe CreditAttribution: cgmonroe commentedHad the same problem with bootstrap. Here's a patch file to fix this.
FYI - An alternative way to fix this is to change the preprocess_image hooks in your theme to test if the $vars['attributes']['class'] variable is a string and then skip it if it is. Better to fix the source problem though.
Comment #4
guschilds CreditAttribution: guschilds at Chromatic commentedAttached is the same patch, but it applies to 7.x-1.3 for anyone else still stuck on that version. :)
Comment #7
guschilds CreditAttribution: guschilds at Chromatic commentedThe patches from #3 and #4 have been committed to the 7.x-2.x and 7.x-1.x branches and will be a part of the next releases. Thanks everyone!