When previewing a node, the following messages appear and are logged:

Notice: Undefined property: stdClass::$print_display in print_link_allowed() (line 868 of sites/all/modules/print/print.module).
Notice: Undefined property: stdClass::$print_pdf_display in print_pdf_link_allowed() (line 592 of sites/all/modules/print/print_pdf/print_pdf.module).

Solution:

print.module line 868

Change

if (!$node->print_display) {

into

if ((!isset($node->print_display)||!$node->print_display)) {

print_pdf/print_pdf.module, line 592:

change
if (!$node->print_pdf_display) {

into
if ((!isset($node->print_pdf_display)||!$node->print_pdf_display)) {

As a reminder for next release of this beautiful module

Comments

jeuelc’s picture

it works. thanks.

jcnventura’s picture

Status: Active » Needs review
asrob’s picture

Status: Needs review » Reviewed & tested by the community

I'm using this module and the problem exists. After I patched this one the bug has gone. Thanks.

jcnventura’s picture

Status: Reviewed & tested by the community » Fixed

I've committed a fix to dev.

Status: Fixed » Closed (fixed)

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