Extension talk:AutoRedirect

From MediaWiki.org

Jump to: navigation, search

[edit] Some bugs after creating the redirect page ?

After creating the redirect page by submiting the editing, the original page cannot be edited sectionally. The link of editing section will be the redirect page. How can I do to fix this(I use 1.11)?

Please show me an example. Jean-Lou Dupont 14:41, 28 March 2008 (UTC)
I am not sure if this is a bug. Thx for help. --TwCareer 15:29, 28 March 2008 (UTC)
Could you try leaving a blank line between the section title and the {{#autoredirect: ...}} magic word? Let me know. Jean-Lou Dupont 18:06, 28 March 2008 (UTC)
I have tried leaving a blank line between the {{#autoredirect: ...}} and the other text. But if it create a new page, It would lead the same problem.
Do you have this problem while creating the direct page?
I have done a couple of test on my side but I can't reproduce the problem you describe (on 1.11). Jean-Lou Dupont 16:32, 30 March 2008 (UTC)
I have go to your site and the test is ok. So I am sorry to bother you. I will reinstall the extension. Thanks for your help.


[edit] internal error

Hi Jean-Lou. When I installed this extension, every time , I go to the page "Special:Version" I will see the following message:

Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'StubManager' was given in D:\AppServ\www\mediawiki-1.11.0\includes\Hooks.php on line 113
內部錯誤

Set $wgShowExceptionDetails = true; in LocalSettings.php to show detailed debugging information.

Then, I set the $wgShowExceptionDetails = true; and refresh the page. I will see the following code:

Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'StubManager' was given in D:\AppServ\www\mediawiki-1.11.0\includes\Hooks.php on line 113
內部錯誤

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

Backtrace:

#0 D:\AppServ\www\mediawiki-1.11.0\includes\SpecialVersion.php(101): wfRunHooks('SpecialVersionE...', Array)
#1 D:\AppServ\www\mediawiki-1.11.0\includes\SpecialVersion.php(32): SpecialVersion->extensionCredits()
#2 D:\AppServ\www\mediawiki-1.11.0\includes\SpecialVersion.php(17): SpecialVersion->execute()
#3 D:\AppServ\www\mediawiki-1.11.0\includes\SpecialPage.php(653): wfSpecialVersion(NULL, Object(SpecialPage))
#4 D:\AppServ\www\mediawiki-1.11.0\includes\SpecialPage.php(459): SpecialPage->execute(NULL)
#5 D:\AppServ\www\mediawiki-1.11.0\includes\Wiki.php(201): SpecialPage::executePath(Object(Title))
#6 D:\AppServ\www\mediawiki-1.11.0\includes\Wiki.php(45): MediaWiki->initializeSpecialCases(Object(Title), Object(OutputPage), Object(WebRequest))
#7 D:\AppServ\www\mediawiki-1.11.0\index.php(89): MediaWiki->initialize(Object(Title), Object(OutputPage), Object(User), Object(WebRequest))
#8 {main}
  • MediaWiki: 1.11.0
  • Win XP
  • The AppServ Open Project - 2.5.7 for Windows
    • Apache Web Server Version 2.2.3
    • PHP Script Language Version 5.1.6
    • MySQL Database Version 5.0.24a

Could you give me a hand?--Roc michael 20:31, 21 May 2008 (UTC)

Which version of StubManager are you running? Upgrade to the latest version (1.3.0) if not. Let me know. Jean-Lou Dupont 20:35, 21 May 2008 (UTC)
When I see the special:version, it shows StubManager (version @@package-version@@). Then, I see the source code "StubManager.php". It say * @Id $Id: StubManager.php 1027 2008-04-22 17:01:23Z jeanlou.dupont $--Roc michael 20:55, 21 May 2008 (UTC)
This means you haven't installed the extension through either PEAR or the tarball provided. You probably just have copied the files from the SVN directory instead. Please make sure you have the latest version installed before we continue this discussion. Jean-Lou Dupont 21:03, 21 May 2008 (UTC)
I use the cmd.exe then do the following:
C:\Documents and Settings\Michael>pear channel-discover mediawiki.googlecode.com
/svn
Channel "mediawiki.googlecode.com/svn" is already initialized

C:\Documents and Settings\Michael>pear install mediawiki/stubmanager
mediawiki/StubManager requires PEAR Installer (version >= 1.6.2), installed vers
ion is 1.4.9
No valid packages found
install failed

C:\Documents and Settings\Michael>pear install D:\AppServ\www\mediawiki-1.11.0\e
xtensions\StubManager
Cannot initialize 'D:\AppServ\www\mediawiki-1.11.0\extensions\StubManager', inva
lid or missing package file
Package "D:\AppServ\www\mediawiki-1.11.0\extensions\StubManager" is not valid
install failed

C:\Documents and Settings\Michael>pear install D:\AppServ\www\mediawiki-1.11.0\e
xtensions\StubManager/stubmanager
Cannot initialize 'D:\AppServ\www\mediawiki-1.11.0\extensions\StubManager/stubma
nager', invalid or missing package file
Package "D:\AppServ\www\mediawiki-1.11.0\extensions\StubManager/stubmanager" is
not valid
install failed
Did I miss something?--Roc michael 21:54, 21 May 2008 (UTC)
First line where PEAR tells you that you do not have a valid version of PEAR to install this package. Please use pear upgrade pear command prior to try and install the extension. Jean-Lou Dupont 22:23, 21 May 2008 (UTC)
Thank you, Jldupont for your quick replies. I will try. Then, tell you the what's the result.--Roc michael 22:50, 21 May 2008 (UTC)

[edit] No work

When I save the message {{#autoredirect:test|test970521 }} to a page (e.g Sandbox), the page Test:test970521 remain empty, through, the page "Special:RecentChanges" say the page "Test:test970521" has been created. --Roc michael 20:54, 21 May 2008 (UTC)

Personal tools