#642 Call to undefined method XmlContent::setAttr()

PHP_error
open
nobody
5
2014-07-30
2012-03-03
No

Seeing this in my logs on www.hollenback.net:

[Sat Mar 03 06:23:13 2012] [error] [client 173.245.56.228] PHP Fatal error: Call to undefined method XmlContent::setAttr() in /var/www/phpwiki/lib/plugin/RecentChanges.php on line 628

that's happening in fuction DiffLink:

function diffLink ($rev) {
$linkurl = parent::diffLink($rev);
$linkurl->setAttr('target', '_content'); // this line
$linkurl->setAttr('rel', 'nofollow');
// FIXME: Smelly hack to get smaller diff buttons in sidebar
$linkurl = new RawXML(str_replace('<img ', '<img style="height:2ex" ', asXML($linkurl)));
return $linkurl;
}

Can someone help me troubleshoot this? Thanks.

Discussion

  • Hello,

    Do you still have the problem with PhpWiki 1.5.0?