Undefined index: copyright_license in /export/xhtml/class-pb-xhtml11.php

28 views
Skip to first unread message

miette

unread,
Nov 9, 2014, 8:40:04 PM11/9/14
to press...@googlegroups.com
Hiya,

I'm nearly ready to publish my first (self-hosted) Pressbooks title, huzzah, and am seeing this error-- both in my debug file, and printed on the actual pdf export in a few places, including:

-- copyright page
-- several times (looped) on the table of contents.

I've managed to hack around it by commenting out the three instances of copyright_license here:

/export/xhtml/class-pb-xhtml11.php

which doesn't seem to adversely affect my pdf (copyright info and TOC still renders properly).  But I wanted to mention it in case there was a known issue, and in case this causes me to rip my hair out on a future title.

Thanks!
-- Miette

bdolor

unread,
Nov 10, 2014, 12:57:02 AM11/10/14
to press...@googlegroups.com
Hi Miette,

Seeing php warning messages about an undefined index show up in your debug file is expected behaviour, but not in the pdf export. The expected behaviour is to return an empty string. Would you attach a screenshot of the error message showing up in your pdf table of contents and the copyright page? 

It would also be helpful to know what you have set (if anything) in both the 'copyright license' dropdown menu on the 'Book Info' page, and if the checkbox in Appearance->Theme Options-> 'display copyright license' is checked, or not. 

I am also curious what values you have set for debugging in wp-config.php, for instance is WP_DEBUG_DISPLAY true or false?

thanks, 

Brad. 

miette

unread,
Nov 10, 2014, 8:55:55 AM11/10/14
to press...@googlegroups.com
Hi Brad,

Yeah, seeing it in the debug log didn't bother me...

in Appearance > Theme Options, 'display copyright license' is unchecked
Including a screenshot of what's currently entered on the Book Info page (disclaimer: copy not final), as well as TOC and Copyright pages.  Let me know if there's anything I can do to help troubleshoot.

Thanks again,
-- Miette
Screen Shot 2014-11-10 at 8.53.10 AM.png
Screen Shot 2014-11-10 at 8.50.33 AM.png
Screen Shot 2014-11-10 at 8.50.27 AM.png

miette

unread,
Nov 10, 2014, 11:02:42 AM11/10/14
to press...@googlegroups.com
Oh, and also:

define('WP_DEBUG', true);
define('WP_DEBUG_LOG', true);




On Monday, November 10, 2014 12:57:02 AM UTC-5, bdolor wrote:

miette

unread,
Nov 10, 2014, 12:41:55 PM11/10/14
to press...@googlegroups.com
Documented the fix.  wp-config should read:

define('WP_DEBUG', true);
define('WP_DEBUG_DISPLAY', false);
define('WP_DEBUG_LOG', true);

Thanks to Nick!

-- Miette, Admitted Fauxgrammer
Reply all
Reply to author
Forward
0 new messages