Quick background. I got the TOC working fine and showing in a block (although it looks a bit silly as a block in a block, im sure this can be tweaked with a little CSS). When I visited node/nid/edit or node/nid/revisions, the full node contents (including pictures) would show in the block. I tweaked this by hiding the block on */edit and */revisions. This appears to be working fine.
There is a problem when actually viewing a revision though. The following error appears.
Recoverable fatal error: Object of class stdClass could not be converted to string in _tableofcontents_replace_toc() (line 636 of snip\sites\all\modules\tableofcontents\tableofcontents.pages.inc).
I tried disabling the TOC block using */revisions*, but this did not help. Disabling the module(s) allows me to view revisions.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | fix-fatal-error-1403472.patch | 797 bytes | jtwalters |
Comments
Comment #1
jtwalters commentedI had the same issue. Here's a kludgy workaround patch. Not recommending it to be committed but it solves the fatal error, assuming you exclude the tableofcontents block on */revisions*
Comment #2
jtwalters commentedIs anyone maintaining the 7.x branch of the module? This issue seems to be common enough to require a patch. There must be a better way to approach this than the patch I provided in #1.
Comment #3
Michael Z Freeman commentedGetting this as well. Maybe the "Show block on specific pages" exceptions should be added on installation ? But I'm not sure if that's really a fix or even the right procedure in this kind of case.
Comment #4
_vid commentedLooks like this is a duplicate of http://drupal.org/node/1248204
There's a patch there that looks like it solves the same problem.
Comment #4.0
_vid commentedremoved personal web address.