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.

CommentFileSizeAuthor
#1 fix-fatal-error-1403472.patch797 bytesjtwalters

Comments

jtwalters’s picture

StatusFileSize
new797 bytes

I 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*

jtwalters’s picture

Status: Active » Needs work

Is 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.

Michael Z Freeman’s picture

Getting 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.

_vid’s picture

Looks like this is a duplicate of http://drupal.org/node/1248204
There's a patch there that looks like it solves the same problem.

_vid’s picture

Issue summary: View changes

removed personal web address.