When you create at least one book, and then click its "outline" link in the admin panel, you receive the error:
Fatal error: Unsupported operand types in /Applications/MAMP/htdocs/head/includes/common.inc on line 1318
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | 142157-book.module.patch | 888 bytes | xqus |
| #5 | book-admin.patch | 858 bytes | webchick |
| #2 | 142157-common.inc_.patch | 791 bytes | xqus |
Comments
Comment #1
webchickSame error applies to orphan pages, as well. To reproduce, create a book page under a parent book page and delete the parent book page.
Comment #2
xqus commentedThis happens when the l function is called with NULL as options paramater.
Comment #3
xqus commentedDon't mind the filename of the patch. The patch is for the book.module file.
Comment #4
robeano commentedI tested the patch on 6.x. checked both clicking the outline link and viewing orphan pages. Works great!
Robin
Comment #5
webchickYep, works for me! Thanks, xqus!
This is just a re-roll from the root. Please do not give me credit in the commit message. :)
Comment #6
webchickComment #7
chx commentedNot having errors does not mean this is a correct patch. The signature of l is
function l($text, $path, $options = array())and you are trying to pass in four arguments. You want to move the fourth argument to thequerykey of the options array which is hardcoded to be empty ATM.Comment #8
xqus commentedAh, I missed that one.
Should be fixed now. Works fine here, and you are returned to the page you came from after deleting.
Comment #9
webchickYep, this works! (apart from deleting is broken, but that's not because of this patch. :))
Comment #10
killes@www.drop.org commentedStill applies (use -p0) and works as advertized. SImple bugfix.
Comment #11
dries commentedCommitted. Thanks! :)
Comment #12
(not verified) commented