When clicking the Settings link (Views Style Plugin) with PDF Table selected, I get the following errors:
Notice: Undefined index: exclude in .../views_pdf/views_pdf_plugin_style_table.inc on line 87
Notice: Undefined index: title in .../views_pdf/views_pdf_plugin_style_table.inc on line 129
Notice: Undefined index: title in .../views_pdf/views_pdf_plugin_style_table.inc on line 135
Notice: Undefined index: title in .../views_pdf/views_pdf_plugin_style_table.inc on line 143
Notice: Undefined index: title in .../views_pdf/views_pdf_plugin_style_table.inc on line 151
Notice: Undefined index: title in .../views_pdf/views_pdf_plugin_style_table.inc on line 206
Notice: Undefined index: title in .../views_pdf/views_pdf_plugin_style_table.inc on line 212
Notice: Undefined index: title in .../views_pdf/views_pdf_plugin_style_table.inc on line 220
Notice: Undefined index: title in .../views_pdf/views_pdf_plugin_style_table.inc on line 228
(with similar errors for each additional field)
I hit this error in 7.x-1.4 , and so then upgraded to the latest dev version 7.x-1.x-dev dated January 26, both give the same error.
The pdf generates at the page url as expected.
Any ideas what could cause this? For the pdf libraries, I am running:
FPDI 1.5.2
TCPDF 6.0.098
Thanks for your help!
Comment | File | Size | Author |
---|---|---|---|
#2 | 2427597-2-undefined_index_in_table_pdf.patch | 6.65 KB | vegansupreme |
Comments
Comment #1
vegansupreme CreditAttribution: vegansupreme commentedThese are notices only. The view and settings work fine? Are these messages showing up on the view UI page, or in logs only?
Comment #2
vegansupreme CreditAttribution: vegansupreme commented@captaindav, see if this patch fixes the notices. Those lines seem to be checking for NULL, but they should be checking for !isset().
Comment #3
killua99 CreditAttribution: killua99 commentedTo:
Use empty instead.
Is like a better way to confirm that is set + have something useful.
The odd part is, why he's getting those Notices.
Comment #4
killua99 CreditAttribution: killua99 commentedComment #5
vegansupreme CreditAttribution: vegansupreme commentedIn my testing, I only got these errors the very first time a table PDF is set up. After that, default values are filled in. Is there a way to set these values earlier? But not reset values once they've been entered?
Otherwise, I'll switch to empty()
Comment #6
killua99 CreditAttribution: killua99 commentedUmmm ok, Maybe is something with the views API that we've something wrong.
Comment #7
killua99 CreditAttribution: killua99 commented