Personal tools
Share This Page
Facebook
del.icio.us
StumbleUpon

UMassWiki talk:Bad Behavior 2 Extended

From UMassWiki

Jump to: navigation, search

When I install this script it adds the umass wiki and its entire front page on top of any of my pages. Anyone have any idea why? --webmaster@thesopranos.com

I had the same experience, it was caused by downloading the wrong file. The 'download' link is a link to a web page (not a link to the required php script file). If you click the 'download' link and choose "Save Link As..." you'll wind up with the incorrect file. Instead, click the 'download' links to browse to the web pages, and then copy and paste the php scripts into appropriate files on your computer.
However, having said that, I'm using the latest bad-behavior code, and MW version 1.14.0 and I got the following error when I tried to enable bb2ext.php...
Internal error

Attempt to call LoadBalancer::getConnection with deprecated server index DB_LAST

Backtrace:

#0 /usr/share/mediawiki/includes/GlobalFunctions.php(2692): LoadBalancer->getConnection(-3, Array, false)
#1 /usr/share/mediawiki/includes/DatabaseFunctions.php(103): wfGetDB(-3)
#2 /usr/share/mediawiki/extensions/bad-behavior/bb2ext.php(67): wfFetchRow(Object(ResultWrapper))
#3 [internal function]: bb2ext_BadBehaviorOutput(NULL, Object(SpecialPage))
#4 /usr/share/mediawiki/includes/SpecialPage.php(749): call_user_func('bb2ext_BadBehav...', NULL, Object(SpecialPage))
#5 /usr/share/mediawiki/includes/SpecialPage.php(539): SpecialPage->execute(NULL)
#6 /usr/share/mediawiki/includes/Wiki.php(226): SpecialPage::executePath(Object(Title))
#7 /usr/share/mediawiki/includes/Wiki.php(59): MediaWiki->initializeSpecialCases(Object(Title), Object(OutputPage), Object(WebRequest))
#8 /usr/share/mediawiki/index.php(117): MediaWiki->initialize(Object(Title), NULL, Object(OutputPage), Object(User), Object(WebRequest))
#9 {main}
...so I can't seem to use bb2ext.php on my system. -- 23:00, 9 June 2009 (EDT) Dennisj au.
...same behavior here with 1.15.1 - 23.37, 29 July 2009, Mathias, GER
...me too. Change the two wfFetchRow calls in line 67 and 97 to "wfFetchRow($result, DB_SLAVE)" and it works. - 2009-08-07 Wolfgang
...me too. However the tip worked perfectly. Thanks Wolfgang. - 2010-April-2010 Vespartine
Academics
Student Life
Food
Recreation
Campus
Local
fb Was this article useful? Please spread the word and share on Facebook!
Site Sponsors
Your Ad Here
10¢/day - full time