[ phpwiki-Bugs-3496655 ] Call to undefined method XmlContent::setAttr()

SourceForge.net <[email protected]> Sat, 03 Mar 2012 14:35:53 -0800
Newsgroups gmane.comp.web.wiki.phpwiki.bugs
Message-ID <[email protected]>
Bugs item #3496655, was opened at 2012-03-03 14:35
Message generated for change (Tracker Item Submitted) made by philiph
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=106121&aid=3496655&group_id=6121

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: version 1.4.x (current)
Group: PHP error
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Philip J. Hollenback (philiph)
Assigned to: Nobody/Anonymous (nobody)
Summary: Call to undefined method XmlContent::setAttr()

Initial Comment:
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.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=106121&aid=3496655&group_id=6121

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d