Extension talk:WikiTextLoggedInOut

From MediaWiki.org
Jump to: navigation, search

Hi there,

I have this extension successfully installed, however it does not seem to work as expected in a certain condition. My main page is "protected" so no other users can edit it besides admin. When the page is "unprotected" the tags work fine. The text I have is something like this:

<loggedin></UserWelcome></logged in> <loggedout>Please log in to the wiki!</loggedout>

So if you are logged in or out, the appropriate text shows.

However when the page is "protected", the proper text only shows for the admin account, but for all other users it shows the <loggedout> text even when they are logged in! Any suggestions? Thank you

Double0three 20:05, 11 February 2010 (UTC)

I dunno, but <loggedin></UserWelcome></logged in> looks rather wrong to me. Maybe you want <loggedin><welcomeUser /></loggedin> instead (assuming that we're talking about the UserWelcome extension, which nowadays is included in the SocialProfile extension). --Jack Phoenix (Contact) 15:38, 26 August 2010 (UTC)

[edit] Internal Error

Detected bug in an extension! Hook efWikiTextLoggedInOut failed to return a value; should return true to continue hook processing or false to abort. Backtrace:

  1. 0 /home/content/g/e/o/geoffludt/html/wiki/includes/parser/Parser.php(179): wfRunHooks('ParserFirstCall...', Array)
  2. 1 [internal function]: Parser->firstCallInit()
  3. 2 /home/content/g/e/o/geoffludt/html/wiki/includes/StubObject.php(58): call_user_func_array(Array, Array)
  4. 3 /home/content/g/e/o/geoffludt/html/wiki/includes/StubObject.php(76): StubObject->_call('firstCallInit', Array)
  5. 4 [internal function]: StubObject->__call('firstCallInit', Array)
  6. 5 /home/content/g/e/o/geoffludt/html/wiki/includes/MessageCache.php(658): StubObject->firstCallInit()
  7. 6 /home/content/g/e/o/geoffludt/html/wiki/includes/GlobalFunctions.php(744): MessageCache->transform('$1 - {{SITENAME...')
  8. 7 /home/content/g/e/o/geoffludt/html/wiki/includes/GlobalFunctions.php(707): wfMsgGetKey('pagetitle', true, false, true)
  9. 8 /home/content/g/e/o/geoffludt/html/wiki/includes/GlobalFunctions.php(613): wfMsgReal('pagetitle', Array, true)
  10. 9 /home/content/g/e/o/geoffludt/html/wiki/includes/OutputPage.php(480): wfMsg('pagetitle', 'Log out')
  11. 10 /home/content/g/e/o/geoffludt/html/wiki/includes/SpecialPage.php(770): OutputPage->setPageTitle('Log out')
  12. 11 /home/content/g/e/o/geoffludt/html/wiki/includes/SpecialPage.php(782): SpecialPage->setHeaders()
  13. 12 /home/content/g/e/o/geoffludt/html/wiki/includes/SpecialPage.php(559): SpecialPage->execute(NULL)
  14. 13 /home/content/g/e/o/geoffludt/html/wiki/includes/Wiki.php(254): SpecialPage::executePath(Object(Title))
  15. 14 /home/content/g/e/o/geoffludt/html/wiki/includes/Wiki.php(64): MediaWiki->handleSpecialCases(Object(Title), Object(OutputPage), Object(WebRequest))
  16. 15 /home/content/g/e/o/geoffludt/html/wiki/index.php(117): MediaWiki->performRequestForTitle(Object(Title), NULL, Object(OutputPage), Object(User), Object(WebRequest))
  17. 16 {main}

Geoffludt 20:06, 25 August 2010 (UTC)

change function efWikiTextLoggedIn( &$parser ) to function efWikiTextLoggedInOut( &$parser ) avoids the error, but extension is still not working on
MediaWiki 1.15.3, PHP 5.3.2 (apache2handler), MySQL 5.1.35 Any help? --Jostar 14:59, 26 August 2010 (UTC)
The extension was broken by r70046 (version 1.2 of the extension). I've fixed the issue in r71702 (version 1.3 of the extension). --Jack Phoenix (Contact) 15:38, 26 August 2010 (UTC)
Thanks, everything works fine now. --Jostar 17:38, 26 August 2010 (UTC)
Personal tools
Namespaces
Variants
Actions
Site
Support
Download
Development
Communication
Print/export
Toolbox