I have a couple of extensions I'm using (rss and a custom one) where I'm getting the following error:
Fatal error: Call to undefined function wfStrencode() in /home/3698/ domains/swc/html/smsp1/extensions/rss.php on line 206
This is using MediaWiki 1.9 from SVN. Looks like it may be broken somewhere (or, alternatively and more likely, I've done something stupid).
It works just fine in my MediaWiki 1.8.2 install...
Any words of advice from the more knowledgeable much appreciated.
Steve
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Stephen Collins wrote:
I have a couple of extensions I'm using (rss and a custom one) where I'm getting the following error:
Fatal error: Call to undefined function wfStrencode() in /home/3698/ domains/swc/html/smsp1/extensions/rss.php on line 206
This is using MediaWiki 1.9 from SVN. Looks like it may be broken somewhere (or, alternatively and more likely, I've done something stupid).
wfStrencode is waaay ancient and finally got removed. One problem with it is that as a global function it wouldn't match with the actual database class in use, and thus may perform incorrect escaping.
Use the database object's addQuotes() method if you must construct SQL manually. This performs both quoting and escaping appropriate to the database connection.
eg: 'blah blah page_title=' . $dbr->addQuotes( $row->page_title )
- -- brion vibber (brion @ pobox.com)
mediawiki-l@lists.wikimedia.org