Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
* notice: Undefined index: teaser in /drupal6/sites/all/modules/print/print.module on line 411.
* notice: Undefined index: node in /drupal6/sites/all/modules/print/print.module on line 415.
* notice: Undefined index: teaser in /drupal6/sites/all/modules/print/print_mail.module on line 227.
* notice: Undefined index: node in /drupal6/sites/all/modules/print/print_mail.module on line 231.
Comment | File | Size | Author |
---|---|---|---|
#1 | print_mail-undefined-index.patch | 798 bytes | kevinweber |
#1 | print-undefined-index.patch | 783 bytes | kevinweber |
Comments
Comment #1
kevinweber CreditAttribution: kevinweber commentedI've attached patches that will fix the above errors.
Comment #2
jcnventura CreditAttribution: jcnventura commentedHi,
Just committed the code to fix these notices.
João
Comment #3
eMPee584 CreditAttribution: eMPee584 commenteddude the path's not set, causing this error on each and every site view in both print and print_pdf modules....!!
maybe you should add this to the very top of your drupal index.php:
or maybe don't drink and code *g
Comment #4
jcnventura CreditAttribution: jcnventura commentedHi,
It's amazing that people actually go out of their way to promote notices to errors in PHP and then complain that the harmless notices are causing errors..
Thanks for reporting this, when the next dev gets generated, these warnings should no longer show up.
João
Comment #5
eMPee584 CreditAttribution: eMPee584 commentedyeah right multiple error entries hitting the watchdog table PER PAGEVIEW is totally acceptable *g
from Developer documentation > Coding standards > Write E_ALL compliant code @ http://drupal.org/node/34341
another snip, from the 'Best Practices' guide @ http://drupal.org/node/188986:
anyways while the former errors are gone now, new have been showing up since then:
Undefined offset: 8 in /var/www/drupal-hfopi/sites/all/modules/print/print_pdf/tcpdf/tcpdf.php on line 9384.
Undefined index: href in /var/www/drupal-hfopi/sites/all/modules/print/print_pdf/tcpdf/tcpdf.php on line 9755.
i don't blame these on you though, it might be my site or tcpdf. poor watchdog *g
oh and btw
THANK YOU
for keeping up the work :)
Comment #6
jcnventura CreditAttribution: jcnventura commentedYes, you will see lots of notices from TCPDF, if you run it with E_ALL.
You will see even more notices from dompdf, even if you're not running with E_ALL.
I usuallly have several screens full of warnings in my Drupal test box. Some are even from Drupal core. That's why I usually have them turned off.
Thanks for the thanks.
João
Comment #7
Anonymous (not verified) CreditAttribution: Anonymous commentedAutomatically closed -- issue fixed for two weeks with no activity.