On a fresh Drupal installation with this module I get the following error when I add a new content of type Basic page:

Warning: array_filter() expects parameter 1 to be array, null given in printfriendly_node_view() (line 130 of modules/contrib/printfriendly/printfriendly.module).

Comments

ptinca created an issue. See original summary.

tinamrak’s picture

Assigned: Unassigned » tinamrak
tinamrak’s picture

Version: 8.x-3.x-dev » 8.x-3.3
tinamrak’s picture

Assigned: tinamrak » Unassigned
Status: Active » Needs review
StatusFileSize
new1.73 KB
ralkeon’s picture

StatusFileSize
new897 bytes

Hi! I had the same issue, but I think there's something wrong in the patch:
$view_mode should not be an array, $config->get('printfriendly_display', array('full')) should instead, so the code inside that if will never run.
I created another patch. I hope this can be useful.

easp’s picture

I am getting this same error on version 3.4. The patch will not apply to 3.4.

  • Fabsgugu committed f881d3b on 8.x-3.x
    Issue #3014509 by tinamrak, Ralkeon, easp: array_filter() expects...
fabsgugu’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.