Project:Support desk/Sections/Misc

__NEWSECTIONLINK__ = System Messages/Special Pages/Magic Words Support =

Site visits

 * MediaWiki: latest RC
 * PHP: 5.1.4
 * MySQL: 5.x
 * URL: RockCiclopedia

Hi! I'd like to show the number of (total) page views of the site.. This number is visible in the Special:Statistics page but I'd like to display it in my home page, the code would be similar to this: --Lorenzone92 15:16, 16 March 2008 (UTC)

Broken redirect

 * MediaWiki: 1.11.0
 * PHP: 5.1.4 (cgi-fcgi)
 * MySQL: 5.0.45-log
 * Database: Unknown, if you know how to figure it out please tell me.
 * URL: Red Orchestra Wiki

So if you look at my Special:Listredirects page then you will see that this text it displayed:

1. :Lyes Krovy (edit) (delete) → Talk:Lyes Krovy

I think this happened when I changed my Extranamespaces from:

$wgExtraNamespaces = array(110 => "Portal", 120 => "Portal_talk", 130 => "Technical", 140 => "Technical_talk", 150 => "WikiProject", 160 => "WikiProject_talk", 170 => "History", 180 => "History_talk", 190 => "Manual", 200 => "Manual_talk", 210 => "Extension", 220 => "Extension_talk", 230 => "Map", 240 => "Map_talk", 250 => "Server", 260 => "Server_talk", 270 => "Modification", 280 => "Modification_talk", 290 => "Mutator", 300 => "Mutator_talk", 310 => "Unit", 320 => "Unit_talk", 330 => "Clan", 340 => "Clan_talk", 350 => "Term", 360 => "Term_talk", 370 => "Tactic", 380 => "Tactic_talk", 390 => "Weapon", 400 => "Weapon_talk", 410 => "Tank", 420 => "Tank_talk", 430 => "Role", 440 => "Role_talk", 450 => "Player", 460 => "Player_talk");

to

$wgExtraNamespaces = array(100 => "Portal", 101 => "Portal_talk", 102 => "WikiProject", 103 => "WikiProject_talk", 104 => "Technical", 105 => "Technical_talk", 106 => "History", 107 => "History_talk", 108 => "Manual", 109 => "Manual_talk", 110 => "Extension", 111 => "Extension_talk", 112 => "Map", 113 => "Map_talk", 114 => "Server", 115 => "Server_talk", 116 => "Modification", 117 => "Modification_talk", 118 => "Mutator", 119 => "Mutator_talk", 120 => "Unit", 121 => "Unit_talk", 122 => "Clan", 123 => "Clan_talk", 124 => "Term", 125 => "Term_talk", 126 => "Tactic", 127 => "Tactic_talk", 128 => "Weapon", 129 => "Weapon_talk", 130 => "Tank", 131 => "Tank_talk", 132 => "Role", 133 => "Role_talk", 134 => "Player", 135 => "Player_talk");

and moved Lyes Krovy from one namespace to another. Help appreciated.

—-PatPeter, MediaWiki Support Team  23:22, 2 January 2008 (UTC)


 * Hmm... If possible, you might have to run the  command line script on your server. I'm not sure if this will work, though. Otherwise, you may have to hack into the MySQL server (for example, using phpMyAdmin) and delete everything about ":Lyes_Krovy", although you should check that very carefully. — color probe  (talk | contribs) 13:59, 4 January 2008 (UTC)


 * What programs can I use to run the command line? -PatPeter, MediaWiki Support Team  15:53, 4 January 2008 (UTC)


 * You could try phpShell. — color probe (talk | contribs) 18:01, 5 January 2008 (UTC)


 * Also how do I start phpMyAdmin? -PatPeter, MediaWiki Support Team  03:29, 6 January 2008 (UTC)


 * To start phpMyAdmin and phpShell do I need to have access to the entire server computer? -PatPeter, [[Image:Tournesol.png|20px]] MediaWiki Support Team  02:30, 21 January 2008 (UTC)


 * to start phpMyAdmin you'll need extract it into an sub-folder of your web-space (phpMyAdmin needs php activated of cause) and edit the config.inc.php to according to your needs (example file config.sample.inc.php, just rename it to config.inc.php and edit it ) .. then access the index.php though your browser, thats all ItsMeIGuess 18:30, 4 March 2008 (UTC)


 * How do I access config.inc.php? Do I have to have access to the server? -PatPeter, [[Image:Tournesol.png|20px]] MediaWiki Support Team  16:38, 9 March 2008 (UTC)

How to show NEW Pages on main page

 * MediaWiki: (Reported by your Wiki's Special:Version page)
 * PHP:
 * MySQL:
 * URL:

Is there a quick way I can list, say the last 5 or 10 New Pages with just titles created and have this list show on the Main Page. Also, same for most recent Revised pages.

—81.156.192.201 14:29, 3 February 2008 (UTC)


 * For newest page, you can include  (replace 5 by the number of pages you want to show), for most recent Revised pages, if you think about Special:Recentchanges, you can do the same (but it's not possible with all special pages). i Alex  18:10, 3 February 2008 (UTC)

Thanks for that. Is there a way I can display just the title of the page. So:

12:33, 4 February 2008 ‎Scratchpad (hist) ‎[22 bytes] ‎127.0.0.1 (Talk)

becomes

Scratchpad


 * Not w/o writing a script.  Mønobi 03:25, 16 February 2008 (UTC)

Any suggestions?


 * Arg, there is a way to do this, I was on a wiki without any date stamps and all usernames, I thought it was this one, but that is the opposite, datestamps and no usernames.
 * The solution exists somewhere and it is going to drive me crazy until I find it, stay posted. -PatPeter, [[Image:Tournesol.png|20px]] MediaWiki Support Team  20:50, 27 February 2008 (UTC)

Statistic of search requests (resolved?)
Hello. Is there a way to get a statistic of search requests? I'd like to know, what users are looking for in my wiki. Something like Special:Wantedpages, but based on "not found" users queries? —213.148.8.233 22:19, 5 February 2008 (UTC)


 * Special:Statistics has most pages visited, which is similar, if you wanted what is searched the most then it would probably be a plug-in to this page. -PatPeter, [[Image:Tournesol.png|20px]] MediaWiki Support Team  23:38, 5 February 2008 (UTC)


 * Then again MediaWiki (the site not the code) has this option turned off, so look here. -PatPeter, [[Image:Tournesol.png|20px]] MediaWiki Support Team  23:39, 5 February 2008 (UTC)


 * You might want to check out Extension:SearchLog, this gives a tabular summary of search requests. You could also check the server logs of search requests by filtering on specific query string requests, although searches will be urlencoded --Zven 01:49, 6 February 2008 (UTC)

The SearchLog - is very close to what I need, Special:Statistics shows popularity of existing pages, but I need "What pages I have to add, that readers looking for". The only problem: SearchLog incorrectly shows UTF-8 chars. --89.175.73.253 12:12, 6 February 2008 (UTC)


 * I have modified Extension:SearchLog to display raw Unicode/UTF-8 characters by escaping the ampersands. A special page example is running on OrganicDesign:Special:SearchLog, see if that is what you want. --Zven 23:30, 7 February 2008 (UTC)


 * Still not working, the same black diamonds :-( --Konstbel 18:06, 8 February 2008 (UTC)


 * Is your wiki site publically accessible? Can you tell me what the characters are in the source generating the diamonds? The UTF-8 character &#38;#xFFFD; is a diamond with a question mark inside '�'. Try putting each of these searches in to the new version -See Extension talk:SearchLog --Zven 20:29, 8 February 2008 (UTC)


 * No, site is inside intranet. The HTML code of the generated page is looking like


 * If I open the log file in editor with UTF-8 support, I can read the search phrases, they are really in UTF-8. --Konstbel 15:29, 12 February 2008 (UTC)


 * Wait, what do you mean with the table? -PatPeter, [[Image:Tournesol.png|20px]] MediaWiki Support Team  20:53, 27 February 2008 (UTC)
 * This is the example of incorrect characters, as I see in generated HTML page. I have found the solution for me (see http://www.organicdesign.co.nz/Extension_talk:SearchLog.php), but it may not be applicable for all others: I've changed the line

$i = strtolower(trim($phrase)); to $i = mb_strtolower(trim($phrase),"UTF-8"); So, the problem was in incorrect lowercase conversion, as in many other cases :-( --Konstbel 08:20, 4 March 2008 (UTC)

disabled access for spezial pages (with german umlaut) for not logged in users causes error

 * MediaWiki: 1.11.1
 * PHP: 5.2.0
 * MySQL: 5.0.26
 * URL: local testing

$wgGroupPermissions['*']['read'] = false; $wgGroupPermissions['*']['edit'] = false; $wgWhitelistRead = array("Hauptseite", "Special:Userlogin"); $wgGroupPermissions['*']['createaccount'] = false;
 * disabled access for most pages :

Interner Fehler
 * Error Message appears trying to access e.q "Spezial:Letzte_Änderungen" without login :

Invalid special page name ""

Backtrace:


 * 1) 0 /.../test/includes/Title.php(1305): SpecialPage::getTitleFor(false)
 * 2) 1 /.../test/includes/Wiki.php(132): Title->userCanRead
 * 3) 2 /.../test/includes/Wiki.php(43): MediaWiki->preliminaryChecks(Object(Title), Object(StubObject), Object(WebRequest))
 * 4) 3 /.../test/index.php(89): MediaWiki->initialize(Object(Title), Object(StubObject), Object(User), Object(WebRequest))
 * 5) 4 /.../test/index.php5(1): require('/srv/www/...')
 * 6) 5 {main}

I'm not a developer, but I compared the functions and found a solution : Is this a way, or can I get other problems without these lines ?

Function in Title.php : userCanRead

/** * If it's a special page, ditch the subpage bit * and check again */ if( $this->getNamespace == NS_SPECIAL ) { $name = $this->getText; list( $name, /* $subpage */) = SpecialPage::resolveAliasWithSubpage( $name ); $pure = SpecialPage::getTitleFor( $name )->getPrefixedText; if( in_array( $pure, $wgWhitelistRead, true ) ) return true; }
 * I disabled all the folling lines, so it works again, like in MediaWiki 1.10

—79.199.9.25 09:40, 24 February 2008 (UTC)

content bar

 * MediaWiki: (Reported by your Wiki's Special:Version page)
 * PHP:
 * MySQL:
 * URL:

How can remove the content bar on the top of each page from the startpage or any page i dont need it?

—84.57.49.247 06:10, 27 February 2008 (UTC)


 * What do you mean "content bar"? -PatPeter, [[Image:Tournesol.png|20px]] MediaWiki Support Team  21:38, 1 March 2008 (UTC)
 * I guess, you mean the ? So maybe you like to add   to your MediaWiki:Common.css. *confused* --WIKImaniac 22:45, 1 March 2008 (UTC)

Customising the Search

 * MediaWiki: 1.11.0
 * PHP: 5.2.5-0.dotdeb.2 (apache2handler)
 * MySQL: 5.0.51-2-log
 * URL:

Hello,

this is less an error report than a configuration matter which I didn't find in the "knowledge base", so to speak; I would like to know if you can customise the search in a way that it excludes all pages with a certain name in it (in this case it would be "Dienstberichte*"; having them searched, too, is an annoyance so I would like to generally exclude it somehow from the queries. Where do I have to add which line to be able to do so?

—141.20.120.198 13:29, 3 March 2008 (UTC)

I take it that it isn't possible?....

Cheers, kris

Special:Allmessages won't display

 * MediaWiki: 1.11.0
 * PHP: 5.2.5
 * MySQL: 5.0.51
 * URL:

Some days ago my Special:Allmessages worked perfectly, but now i receive just an empty page. The sourcecode of the page looks ok, but between both body tags there is no data. My apache error log reports no problems. I can still change system messages when I know their names through the url...I haven't found any other pages with this problem yet. I'm logged in as WikiSysop and have all rights so this shouldn't be the problem... Has anyone an idea how it came or how to solve this issue?

—212.184.19.70 07:47, 5 March 2008 (UTC)

(RESOLVED) Special: Version does not work after upgrading from 1.6.9 to 1.11.2

 * MediaWiki: (Reported by your Wiki's Special:Version page) - which does not work: 1.11.2
 * PHP: 5.2.0-8+etch10
 * MySQL: 5.0.32-Debian_7etch5
 * URL: TechWiki

I upgraded my MediaWiki from 1.6.9 to 1.11.2 and everything seems to be working just fine except for my Special:Version page. It shows just nothing. It also did not work for the 1.6.9 to 1.11.1 upgrade which I performed with a copy of my wiki earlier due to some testing. I looked for a new option that maybe disables this page, but i found nothing alike. Since everything else seems to be working fine it is not a very big problem, but I would like to have it working.

—87.234.104.203 13:47, 6 March 2008 (UTC)
 * Maybe you installed an extension that does not work with 1.11.2 anymore. --MF-Warburg 14:59, 9 March 2008 (UTC)


 * Yes, an new version of the cite extension solved this issue for me. --87.234.104.203 11:17, 16 March 2008 (UTC)

How can a SysOp edit a user profile/account?

 * MediaWiki: 1.6.8
 * PHP: 4.4.0-pl1-gentoo (apache2handler)
 * MySQL: 4.1.15-log
 * URL: mozillaZine

How can a SysOp modify an existing users profile such as registering a email address or changing the password? I know how to block a user or a range of IP users, and find a users contributions but can't find a special page that will let me do that. Do I have any options other than creating a new account for that user?

I've looked in http://meta.wikimedia.org/wiki/Help:System_admin and browsed our special pages. The only solutions I've found assume I have abilities that a SysOp doesn't have such as making a SQL query. i.e. all of the solutions seem to assume you're the person who installed the software.

The site admin is in the midst of moving the forum (phpBB) and wiki (MediaWiki) software to new servers and updating the forum software. Afterwards he will update the wiki software. Can you recommend any plugins that will provide some of the traditional user management capabilities that forum moderators are used to, for the wiki? We plan on eventually having all forum moderators also be knowledge base (wiki) SysOps. I'm obviously not expecting a integrated or a compatible solution, I'm just trying to find any way to do that type of account maintenance.

tanstaafl

—66.245.255.249 00:27, 9 March 2008 (UTC)


 * Extension:EditUser & Extension:PasswordReset. -- Sayuri 11:28, 9 March 2008 (UTC)

Removing retrievedfrom

 * MediaWiki: 1.12
 * PHP: 5
 * MySQL:
 * URL: RockCiclopedia

How can I remove the retrievedfrom message? Because Google crawls that text and I don't want...

—Lorenzone92 18:36, 14 March 2008 (UTC)

What is the variable name (Magicword?) for the current user's username?
MediaWiki: 1.11.1

PHP: 5.2.3 (apache2handler)

MySQL: 5.5.51a

URL: DishiWiki

I wish to personalize the special:newarticletext (and possibly others) to return/display the current user's username, e.g., "Greetings, Brian7632416."

What is the name of the variable for the current user's username, and how is it set forth in the newarticletext text?

Brian7632416 20:42, 15 March 2008 (UTC)

MediaWiki: 1.11.1

PHP: 5.2.3 (apache2handler)

MySQL: 5.5.51a

URL: DishiWiki


 * One option is Extension:Variables, but that's not the only way (and it may not be cache-friendly).
 * Various Uncyclopedias already do this using JavaScript. They have a template which inserts a code into the page; a routine in the sitewide client-side JavaScript then searches for this code and substitutes the username. Very prone to use and overuse for nonsense like «*27 -  vandaliza este artigo e acaba sendo banido da Desciclopédia por Infinite»  --Carlb 16:14, 18 March 2008 (UTC)
 * I must have overlooked Extension:Variables, so I'll go take a look. I've had really good luck with my only four extensions: RSS Reader, SGMT Mass Mailer, Breadcrumb by Category, and Google NewsBar. Thanks, Carlb. Brian7632416 05:25, 21 March 2008 (UTC)

Variable/Magicword for number of articles in category?
What is the variable/magicword and syntax for returning/displaying the number of articles in a certain category?

My wiki is a recipe wiki. I would like to display on the main page the number of users (got it!) and the number of articles that are in the recipes category.

I tried experimented with

and such, [ but (^look^) ] it comes back as a template, and I'm trying to figure out why

Edit: Okay, I now know about the nowiki tag. Baby steps, but

- –

denotes both a template and system variables (I think). But that's not my question, sorry to drift. —Brian7632416 01:11, 17 March 2008 (UTC)


 * You may want to create "recipes:" as a namespace and not a simple category; if you do so, (subsituting whichever namespace number you choose to use) would display the number of recipes. --Carlb 16:25, 18 March 2008 (UTC)
 * That's fantastic, Carlb. Then I THINK that, for pages in the Recipe namespace, I could change the tab to read "recipe" instead of "article," which would "un-confuse" my users. Thanks for the advice!Brian7632416 05:18, 21 March 2008 (UTC)
 * You can definately change what the tab says; I've done it on my wiki. It's one of the MediaWiki system messages (Special:Allmessages), though I forget which one exactly.  But that would change the main namespace tab, which you may not even have to do.  When you create a new namespace and visit a page in that namespace, where the article tab would be is a tab with the name of the newly created namespace.  So you are probably covered in that regard. Smaug  22:32, 21 March 2008 (UTC)

Getting Rid of "Special Pages" link in Toolbox
I know that you can use MediaWiki:Sidebar to edit the portion of the sidebar above the search bar on the left hand navigation panels (assuming monobook), but what edits what appears in the "toolbox" below it?

No one system message seemed to do it, though I have seen individual messages for "toolbox" and "whatlinkshere". I looked through some of the code to try to find where the code might be calling these messages and am certain it is MonoBook.php. I don't know what to edit to acheive what I want, however.

Specifically, I wish to get rid of the "Special Pages" link in the toolbox box. How can I do this?

Thank you. Smaug 22:28, 21 March 2008 (UTC)