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.
I'm not sure what's calling it to create the error message however it happens when submitting a webform. The 2nd argument in book_help() doesn't seem to be used so you could just change:
function book_help($path, $arg) {
to
function book_help($path, $arg = NULL) {
Comments
Comment #1
Reg CreditAttribution: Reg commentedI don't think it's the book function because when I changed the 2nd arg it then said missing first arg so I'll do some tracking down and get back to you on this. Also, the line should probably be something like "function book_help($path, $arg = '') {" anyway since NULL as I had it above produces an error (although I don't know why).
Comment #2
Reg CreditAttribution: Reg commentedI should mention that this is with PHP 5.3 which may be part of the issue since it tends to report more errors than previous versions of PHP.
Here is a backtrace from a couple of different ways to get a backtrace, it looks like it's all happening through the core so it may be still valid to call it a bug:
The above were created with:
As you can see I temporarily gave both params. a default value so the routine would be entered and I could get a backtrace.
Let me know if there is more you need to get a handle on this.