notices undefined $node->print_display

Created on 9 March 2012, about 13 years ago
Updated 26 August 2024, 8 months ago

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

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

No activities found.

Production build 0.71.5 2024