Topic on Extension talk:BedellPenDragon

Error upon implementation

12
Wade.courtney (talkcontribs)

I get the following error when I try to implement this extension:

[1d116960] 2013-11-07 22:40:33: Fatal exception of type MWException

I am using: MediaWiki 1.21.1 PHP 5.3.24 (cgi-fcgi) MySQL 5.1.70-community

Thanks,

Wade

Leucosticte (talkcontribs)

Hi Wade, this extension has only been tested with MediaWiki 1.22. Please enable the debugging settings described at Manual:How to debug so you can get a more detailed error message. Specifically, put at the end of your LocalSettings.php:

$wgShowSQLErrors = true;
$wgDebugDumpSql  = true;
$wgShowDBErrorBacktrace = true;
$wgShowExceptionDetails = true;

That will help us isolate the problem. Also, be sure to update your code to the most recent version. Thanks.

Wade.courtney (talkcontribs)

Thanks for the reply. Here is what I get with debugging: Error: invalid magic word 'setbpdprop'

Backtrace:

  1. 0 C:\webapps\mtsitwiki\includes\MagicWord.php(236): MagicWord->load('setbpdprop')
  2. 1 C:\webapps\mtsitwiki\includes\parser\Parser.php(4885): MagicWord::get('setbpdprop')
  3. 2 C:\webapps\mtsitwiki\extensions\BedellPenDragon\BedellPenDragon.php(71): Parser->setFunctionHook('setbpdprop', 'BedellPenDragon...')
  4. 3 [internal function]: BedellPenDragon::setupParserFunctions(Object(Parser))
  5. 4 C:\webapps\mtsitwiki\includes\Hooks.php(255): call_user_func_array('BedellPenDragon...', Array)
  6. 5 C:\webapps\mtsitwiki\includes\GlobalFunctions.php(3883): Hooks::run('ParserFirstCall...', Array)
  7. 6 C:\webapps\mtsitwiki\includes\parser\Parser.php(270): wfRunHooks('ParserFirstCall...', Array)
  8. 7 C:\webapps\mtsitwiki\includes\cache\MessageCache.php(824): Parser->firstCallInit()
  9. 8 C:\webapps\mtsitwiki\includes\cache\MessageCache.php(802): MessageCache->getParser()
  10. 9 C:\webapps\mtsitwiki\includes\Message.php(696): MessageCache->transform('$1 - {{SITENAME...', true, Object(Language), Object(Title))
  11. 10 C:\webapps\mtsitwiki\includes\Message.php(496): Message->transformText('$1 - {{SITENAME...')
  12. 11 C:\webapps\mtsitwiki\includes\Message.php(553): Message->toString()
  13. 12 C:\webapps\mtsitwiki\includes\OutputPage.php(835): Message->text()
  14. 13 C:\webapps\mtsitwiki\includes\OutputPage.php(878): OutputPage->setHTMLTitle(Object(Message))
  15. 14 C:\webapps\mtsitwiki\includes\Article.php(554): OutputPage->setPageTitle('MTS Information...')
  16. 15 C:\webapps\mtsitwiki\includes\actions\ViewAction.php(44): Article->view()
  17. 16 C:\webapps\mtsitwiki\includes\Wiki.php(439): ViewAction->show()
  18. 17 C:\webapps\mtsitwiki\includes\Wiki.php(305): MediaWiki->performAction(Object(Article), Object(Title))
  19. 18 C:\webapps\mtsitwiki\includes\Wiki.php(565): MediaWiki->performRequest()
  20. 19 C:\webapps\mtsitwiki\includes\Wiki.php(458): MediaWiki->main()
  21. 20 C:\webapps\mtsitwiki\index.php(59): MediaWiki->run()
  22. 21 {main}
Leucosticte (talkcontribs)

By the way, I inadvertently removed BedellPenDragon.i18n.php earlier and only recently added it back. I am concerned about the possibility that you might be missing that file. Please confirm that you have updated to the latest version of the extension (v1.0.4) and that you have BedellPenDragon.i18n.php. Then we can resume troubleshooting. Thanks.

Also, you may want to see what happens if you upgrade to MediaWiki 1.22. See Download_from_git#Download. I don't know if that has any relation to your problem; I forget if I relied on anything that's not available in 1.21.

Wade.courtney (talkcontribs)

I made the changes you asked, except for upgrading the wiki. The title of the random article is now displayed, I tried using the content parameter, but I still only get the page title.

Let me tell you what I'm trying to accomplish and you can tell me if I'm even using the right extension.

What I want is for a random article to display on the main page whenever someone comes to the page. Or may an excerpt with a link to the article if it is very long. Somethink like wikipedia does with the Today's Featured Article section.

Do you know what I mean?

Thanks for the help

Wade

Leucosticte (talkcontribs)
Wade.courtney (talkcontribs)

I'll read that, but I just realized I hadn't updated to the latest version of the extension. Duh. Sorry.

I do get a random article now.

Thanks for all your help

Wade

Wade.courtney (talkcontribs)

Is the Special:RandomPage required for Blurb to work?

Leucosticte (talkcontribs)

I don't understand your question? Blurb does randomly select a page using the same methods as Special:RandomPage. It probably wouldn't be too hard to modify the code to use a different selection method, though.

Wade.courtney (talkcontribs)

I went to the page for Special:RandomPage and it said that it had been removed.

Wade.courtney (talkcontribs)

Nevermind. I'm still learning about all this so I'm still learning.

Although when I enable Blurb through the localsettings.php, I get a blank wiki.

Thanks for your patience.

Wade

Leucosticte (talkcontribs)

No problem; when you report difficulties, it helps me learn what needs to be improved in the code and/or documentation. So are you getting the white screen of death? Last I checked, Extension:Blurb was no longer working with current versions of MediaWiki. Sorry, I forgot to mention that. I might take a look at it later and see what needs to be fixed.

Reply to "Error upon implementation"