Project:Support desk

From MediaWiki.org
Jump to: navigation, search
vde   This page is for questions relating to the MediaWiki software.

Welcome to MediaWiki.org's Support desk, the central on-wiki place to ask MediaWiki questions!

The greater purpose of this page is to make our Manual and other available help so good that you do not have to come here to ask questions, or making them easier to find.

There are other ways for of communication as well (IRC, mailing lists etc.). Read more here.

Before you post

Post a new question

  1. To help us answer your questions, please always indicate which versions you are using:
    • MediaWiki (reported by your wiki's Special:Version page)
    • PHP (likewise)
    • Database (likewise, e.g. MySQL 5.5)
  2. Please include the URL of your wiki unless you absolutely can't. It's often a lot easier for us to identify the source of the problem if we can look for ourselves.
  3. To start a new thread, click "Start a new discussion".

Archiving topics

Topics are automatically archived when they have been inactive for three weeks. If a question you have asked is approaching this limit and still has not been answered, please 'bump' it to prevent it being archived. However do not 'bump' for other reasons.

Start a new discussion

Contents

Thread titleRepliesLast modified
Preloader will only preload the main boilerplate no matter what I set405:24, 23 November 2014
How to add page link to sidebar?202:43, 23 November 2014
ResourceLoader: Add Javascript for logged in users202:33, 23 November 2014
[RESOLVED] page loading slow speed1502:26, 23 November 2014
Is it possible to have my server's ip changed?101:26, 23 November 2014
Problems logging-in301:12, 23 November 2014
Disable API access for external sites?501:10, 23 November 2014
How to Translate URLs (Main Page, Special:Categories, etc...)401:04, 23 November 2014
"Fatal exception of type MWException" when using the SecurePoll Extension000:58, 23 November 2014
Blank page after clicking on 'file list' in special pages1022:51, 22 November 2014
revision history link 514:23, 22 November 2014
multi language412:33, 22 November 2014
"Error creating thumbnail: Error code: 2"710:33, 22 November 2014
Custom 404 page on nonexistent article110:30, 22 November 2014
Need to determine if I am "missing a language label"610:25, 22 November 2014
External images: additional parameters606:08, 22 November 2014
[RESOLVED] formatting issue, related to $wgServer?405:14, 22 November 2014
Pagination in categories001:23, 22 November 2014
Upgrade from MW 1.18.1 to 1.23.5 broke sysop and Bureaucrat users functionality623:52, 21 November 2014
Upgrade from MW 1.18.1 to 1.23.5 left duplicate users with Uppercase Uppercase rest lowercase USernames and now apparently standard Uppercase rest lowercase Usernames.123:32, 21 November 2014
First page
First page
Previous page
Previous page
Last page
Last page

Preloader will only preload the main boilerplate no matter what I set

Preloader won't preload into any of my custom namespace.
In LocalSettings.php, I added this before $wgSitename:
// define namespace constants
define("NS_SPREADSHEET", 150); // This MUST be even.
define("NS_SPREADSHEET_TALK", 151); // This MUST be the following odd integer.
define("NS_CAT", 152); // This MUST be even.
define("NS_CAT_TALK", 153); // This MUST be the following odd integer.
define("NS_DOG", 154); // This MUST be even.
define("NS_DOG_TALK", 155); // This MUST be the following odd integer.

// add namespaces
$wgContentNamespaces[NS_SPREADSHEET] = "Spreadsheet";
$wgContentNamespaces[NS_SPREADSHEET_TALK] = "Spreadsheet_talk";
$wgContentNamespaces[NS_CAT] = "Cat";
$wgContentNamespaces[NS_CAT_TALK] = "Cat_talk";
$wgContentNamespaces[NS_DOG] = "Dog";
$wgContentNamespaces[NS_DOG_TALK] = "Dog_talk";

Then, I called preloader like this, right before the closing php tag:

require_once "$IP/extensions/Preloader/Preloader.php";
$wgPreloaderSource[NS_MAIN] = 'Template:Boilerplate';
$wgPreloaderSource[NS_SPREADSHEET] = 'Template:Boilerplatespreadsheet';
$wgPreloaderSource[NS_CAT] = 'Template:Boilerplatecat';
$wgPreloaderSource[NS_DOG] = 'Template:Boilerplatedog';

I checked http://www.example.com/w/api.php?action=query&meta=siteinfo&siprop=namespaces, and all of my namespaces seem to be initializing properly, Dog, Cat, and Spreadsheet and their associated talk namespaces are all there, and pages created in those namespaces end up where they belong. However, when I go to create, say, Dog:Dog1,it seems to be preloading Template:Boilerplate instead of Template:Boilerplatedog. The same is true of the Cat namespace.

My Non-stock Extensions:

  • Semantic Mediawiki
  • Semantic Forms
  • MobileDetect
  • Preloader
  • WYSIWYG extension

Also, something seems to be wrong with your edit button here: It created a double post when I hit save, which may soon be a triple post. Is it possible to delete them?

Iamabigwikinoob (talk)07:39, 22 November 2014

You're misusing $wgContentNamespaces. This is an array of booleans, so if you want to set a namespace as a "content namespace" (see the linked page for the meaning of this term), you would use a line like $wgContentNamespaces[NS_DOG] = true;.

To set the name of a namespace, use $wgExtraNamespaces: $wgExtraNamespaces[NS_DOG] = "Dog";.

This, that and the other (talk)10:56, 22 November 2014

Ohhhh so I declare the namespaces with ExtraNamespaces then initialize them in an array of ContentNamespaces. Sorry, I'm more of a java guy. And PHP is just similar enough that it took me about 2 days to learn over java/javasript, but just different enough that old habits die hard. Such as only putting strings in an array if they're going to be used in the same loop. Not a hard and fast rule, java can put variables anywhere you want it to, just a habit that I think makes for better readability. Apparently PHP doesn't like that. Thanks :)

Iamabigwikinoob (talk)17:03, 22 November 2014

So did you solve your problem?

This, that and the other (talk)04:55, 23 November 2014

Well, you solved my problem. PHP is so similar to java its scary, it literally took me 2 days to learn the basics, the internal logic is that similar, but there are just enough things that are slightly different (get instead of call/ask, $ instead of string or bool) to throw you off. I followed the link to the manual page you gave me, and I didn't even need to read the whole thing, as soon as I saw the word "array," I was like "oooooohhhhh, now I know how this works." So yes, I guess this thread can be closed/archived. Also, thanks dude :).

Iamabigwikinoob (talk)05:23, 23 November 2014
 
 
 
 

How to add page link to sidebar?

How to add page link to sidebar?

I've read the manual but what about newly created pages?

210.56.87.1715:44, 22 November 2014

Edit MediaWiki:Sidebar.

Subfader (talk)18:03, 22 November 2014

yes, i can edit sidebar, how to add page link?

210.56.87.1702:43, 23 November 2014
 
 

ResourceLoader: Add Javascript for logged in users

I have a few KB worth JS which I add in the skin when the user is logged in.

I'd like to add that code to MediaWiki:Common.js. Can I use ResourceLoader so it is only applied to logged in users?

Subfader (talk)18:02, 22 November 2014

Hello,

sure. Just create a new ResourceLoader module and add a function to the hook BeforePageDisplay and add the module only, if the user is logged in, example:

$wgResourceModules['zzz.custom.js'] = array(
	'scripts' => array(
		// path to the script
	),
	'dependencies' => array(
		// if you have any
	),
	'localBasePath' => __DIR__,
	'remoteExtPath' => '/'
);
$wgHooks['BeforePageDisplay'][] = 'onBeforePageDisplay';
 
public static function onBeforePageDisplay( OutputPage &$out, Skin &$skin ) {
	$user = $out->getUser();
 
	if ( $user->isLoggedIn() ) {
		$out->addModules( 'zzz.custom.js' );
	}
}
Florianschmidtwelzow (talk)22:50, 22 November 2014
 

You can use MediaWiki:Group-user.js, which will apply to logged in users only.

Legoktm (talk)02:33, 23 November 2014
 

[RESOLVED] page loading slow speed

bump

1. MediaWiki 1.23.5

PHP 5.4.26 (apache2handler)

MySQL 5.5.36

2. Can't provide URL as it is a local install on my windows 8.1 machine (using Bitnami)


I upgraded from 22.6 to 23.5 yesterday and now my wiki loads much slower (again, this is a local install on my c: drive - internet is not (supposed to be) involved)

How can I profile what's going on and where the slowdown occurs? I've learned how to add a log file to LocalSettings.php and now I get output like this:

Start request GET /mediawiki/index.php/my page name
HTTP HEADERS:
ACCEPT: */*
REFERER: http://<my computer name here>:1070/mediawiki/index.php?search=<my page name>&title=Special%3ASearch&fulltext=Search
ACCEPT-LANGUAGE: en-US
USER-AGENT: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.3; WOW64; Trident/7.0; .NET4.0E; .NET4.0C; Tablet PC 2.0; .NET CLR 3.5.30729; .NET CLR 2.0.50727; .NET CLR 3.0.30729)
ACCEPT-ENCODING: gzip, deflate
HOST: <my computer name here>:1070
DNT: 1
CONNECTION: Keep-Alive
COOKIE: my_wikiUserID=1; my_wikiUserName=<my name>; my_wikiToken=<deleting just in case>; mediawiki_bitnamiUserID=1; mediawiki_bitnamiUserName=<my name>; mediawiki_bitnamiToken=<deleting just in case>;
mediawiki_bitnami_session=<deleting>
[caches] main: EmptyBagOStuff, message: SqlBagOStuff, parser: SqlBagOStuff
[caches] LocalisationCache: using store LCStoreDB
Unstubbing $wgParser on call of $wgParser::setHook from registerFileProtocolLinksSMB
Parser: using preprocessor: Preprocessor_DOM
Fully initialised
Connected to database 0 at localhost
Title::getRestrictionTypes: applicable restrictions to [[<my page name>]] are {edit,move}
[ContentHandler] Created handler for wikitext: WikitextContentHandler
User: cache miss for user 1
User: loading options for user 1 from database.
User: logged in from session
User: loading options for user 1 from override cache.
Connected to database 0 at localhost
MessageCache::load: Loading en... got from global cache
Unstubbing $wgLang on call of $wgLang::_unstub from ParserOptions::__construct
OutputPage::checkLastModified: CACHE DISABLED
Article::view using parser cache: no
Article::view: doing uncached parse
Parser cache options found.
Title::getRestrictionTypes: applicable restrictions to [[<my page name>]] are {edit,move}
Title::getRestrictionTypes: applicable restrictions to [[<my page name>]] are {edit,move}
Title::getRestrictionTypes: applicable restrictions to [[<my page name>]] are {edit,move}
DatabaseBase::query: Writes done: REPLACE INTO `msg_resource` (mr_resource,mr_lang,mr_blob,mr_timestamp) VALUES ('user.options','en','{}','20141003142034')
OutputPage::sendCacheControl: private caching;  **
LoadBalancer::reuseConnection: this connection was not opened as a foreign connection
Request ended normally

I have tried disabling extensions. I have tried loading different pages. Everything is loading slowly for whatever reason.

The above log doesn't tell me anything. Maybe there is a way to time stamp every line on the log, so that I can see where the slowdown occurs?

Thanks.

p.s. I am not a mediawiki genius, more of a user, so assume I know nothing about "behind the scenes" workings of my "stack". I know where LocalSettings.php is and some other "important files".

A1s2d3f4 (talk)14:38, 3 October 2014

See Manual:Profiling

Ciencia Al Poder (talk)09:33, 7 October 2014

I have tried following directions on Manual:Profiling page.

I created StartProfiler.php with $wgProfiler['class'] = 'Profiler'; line.

I pasted

// Only record profiling info for pages that took longer than this
$wgProfileLimit = 0.0;
// Don't put non-profiling info into log file
$wgProfileOnly = true;
// Log sums from profiling into "profiling" table in db
$wgProfileToDatabase = false;
// If true, print a raw call tree instead of per-function report
$wgProfileCallTree = false;
// Should application server host be put into profiling table
$wgProfilePerHost = false;
 
// Settings for UDP profiler
$wgUDPProfilerHost = '127.0.0.1';
$wgUDPProfilerPort = '1070';
 
// Detects non-matching wfProfileIn/wfProfileOut calls
$wgDebugProfiling = false;
// Output debug message on every wfProfileIn/wfProfileOut
$wgDebugFunctionEntry = 0;
// Lots of debugging output from SquidUpdate.php
$wgDebugSquid = false;

at the bottom of LocalSettings.php.


what I am getting in the debug file is still the same as what I had in my OP.

What am I doing wrong?

A1s2d3f4 (talk)03:21, 14 November 2014

Strange, I've tried the same configuration as yours and the debug log generates an additional table with an aggregate time of the time spent on each part.

Be sure you named it StartProfiler.php and that it's placed in the MediaWiki root directory (the same as LocalSettings.php)

Ciencia Al Poder (talk)17:22, 14 November 2014

I was an idiot, in my StartProfiler the $wgProfiler['class'] = 'Profiler'; line was inside /* */ comment block!

So, here is the table, below. I am utterly confused by it, because "the percentages don't add up". (e.g. MediaWiki::main = 90.795%, then LoadBalancer::getConnection is 68%; 90+68 > 100... but clearly this table works differently). Seems like there are "too many calls" to a couple of items. I wish I knew what it all meant.

(All I did was click on the link to the Main page - it took a long time, as usual, maybe around 7-8 seconds to get there.)

Name                                                                         Calls         Total          Each             %       Mem
-total                                                                           1      3075.039      3075.039       100.000%  12618823  (     3075.039 -     3075.039) [2181]
MediaWiki::main                                                                  1      2791.980      2791.980        90.795%   7623413  (     2791.980 -     2791.980) [2133]
LoadBalancer::getConnection                                                    123      2116.834        17.210        68.839%    308199  (        0.004 -     1102.039) [127]
LoadBalancer::openConnection                                                   123      2115.470        17.199        68.795%    303705  (       -0.001 -     1102.015) [4]
DatabaseMysqlBase::open                                                          2      2097.257      1048.628        68.203%      2720  (     1012.983 -     1084.274) [2]
dbconnect-localhost                                                              2      2076.422      1038.211        67.525%      2416  (     1009.225 -     1067.197) [0]
DatabaseBase::query                                                            136       233.901         1.720         7.606%    133787  (        0.230 -       43.661) [136]
OutputPage::output                                                               1       218.776       218.776         7.115%   1903731  (      218.776 -      218.776) [1385]
MediaWiki::performRequest                                                        1       214.171       214.171         6.965%   3498009  (      214.171 -      214.171) [683]
Output-skin                                                                      1       212.175       212.175         6.900%   1874313  (      212.175 -      212.175) [1380]
SkinTemplate::outputPage                                                         1       212.098       212.098         6.897%   1918640  (      212.098 -      212.098) [1379]
MediaWiki::performAction                                                         1       187.030       187.030         6.082%   2887519  (      187.030 -      187.030) [655]
Article::view                                                                    1       186.950       186.950         6.080%   2888598  (      186.950 -      186.950) [653]
SkinTemplate::prepareQuickTemplate                                               1       159.695       159.695         5.193%   1866804  (      159.695 -      159.695) [711]
Setup.php                                                                        1       157.826       157.826         5.132%   3765661  (      157.826 -      157.826) [15]
SkinTemplate::prepareQuickTemplate-stuff5                                        1       111.512       111.512         3.626%   1183149  (      111.512 -      111.512) [543]
query: SELECT lc_value FROM `lNn_cache` WHERE lc_lang = 'X' LIMIT N            103       102.063         0.991         3.319%    112768  (        0.232 -       17.007) [0]
MessageCache::get                                                              227        92.622         0.408         3.012%    122359  (        0.020 -        5.770) [889]
Setup.php-globals                                                                1        81.238        81.238         2.642%   2399952  (       81.238 -       81.238) [2]
LocalisationCache::getSubitem-load                                              87        81.044         0.932         2.636%    106715  (        0.379 -        5.724) [348]
Parser::parse                                                                    1        71.071        71.071         2.311%    663663  (       71.071 -       71.071) [379]
Parser::parse-WikitextContent::getParserOutput                                   1        71.071        71.071         2.311%    663678  (       71.071 -       71.071) [378]
User::load                                                                       2        65.270        32.635         2.123%    235899  (        3.292 -       61.978) [30]
LocalisationCache::getItem-load                                                 14        62.157         4.440         2.021%    113562  (        0.640 -       49.182) [69]
SkinTemplate::outputPage-execute                                                 1        48.840        48.840         1.588%     26904  (       48.840 -       48.840) [658]
Parser::transformMsg                                                            10        47.319         4.732         1.539%    508919  (        0.443 -       34.508) [233]
Parser::preprocess                                                              10        47.280         4.728         1.538%    509100  (        0.440 -       34.503) [223]
-overhead-total                                                               2182        44.620         0.020         1.451%   1500392  (       44.620 -       44.620) [2182]
query: SELECT page_id,page_namespace,page_title,page_restrictions,page_coun      1        43.641        43.641         1.419%      1192  (       43.641 -       43.641) [0]
Parser::internalParse                                                            1        43.513        43.513         1.415%    609284  (       43.513 -       43.513) [119]
Parser::replaceVariables                                                        11        39.927         3.630         1.298%    307903  (        0.345 -       25.164) [169]
SkinTemplate::prepareQuickTemplate-stuff4                                        1        37.771        37.771         1.228%    669832  (       37.771 -       37.771) [106]
Linker::titleAttrib                                                             32        36.673         1.146         1.193%     43795  (        0.058 -        5.119) [518]
-setup                                                                           1        36.419        36.419         1.184%         0  (       36.419 -       36.419) [0]
WebStart.php-conf                                                                1        34.814        34.814         1.132%    471920  (       34.814 -       34.814) [0]
ResourceLoader::makeModuleResponse                                               2        34.083        17.042         1.108%    748198  (        4.711 -       29.372) [17]
MediaWiki::triggerJobs                                                           1        30.961        30.961         1.007%    272588  (       30.961 -       30.961) [13]
Parser::replaceInternalLinks2                                                    1        30.277        30.277         0.985%    591063  (       30.277 -       30.277) [41]
Parser::replaceInternalLinks2-always_known                                       1        26.500        26.500         0.862%    575114  (       26.500 -       26.500) [29]
MediaWiki::initializeArticle                                                     1        24.098        24.098         0.784%    578230  (       24.098 -       24.098) [16]
Setup.php-includes                                                               1        23.028        23.028         0.749%    366496  (       23.028 -       23.028) [0]
Setup.php-extensions                                                             1        22.540        22.540         0.733%    697200  (       22.540 -       22.540) [2]
Setup.php-extensions-registerFileProtocolLinksSMB                                1        22.520        22.520         0.732%    696840  (       22.520 -       22.520) [1]
StubObject::_unstub-wgParser                                                     1        22.467        22.467         0.731%    697336  (       22.467 -       22.467) [0]
ParserOutput::getText                                                            1        21.068        21.068         0.685%    604117  (       21.068 -       21.068) [35]
ResourceLoader::makeModuleResponse-user.tokens                                   1        20.665        20.665         0.672%    689208  (       20.665 -       20.665) [0]
RequestContext::getSkin-createskin                                               1        19.961        19.961         0.649%    600408  (       19.961 -       19.961) [2]
query: SELECT keyname,value,exptime FROM `objectcache` WHERE keyname = 'X'      10        19.579         1.958         0.637%     11032  (        0.285 -       10.201) [0]
Parser::firstCallInit                                                            1        18.712        18.712         0.608%    427132  (       18.712 -       18.712) [76]
-overhead-internal                                                            2182        18.489         0.008         0.601%    488776  (        0.006 -        0.050) [0]
PPFrame_DOM::expand                                                             34        17.304         0.509         0.563%    126103  (        0.012 -        6.613) [126]
Preprocessor_DOM::preprocessToObj                                               12        15.565         1.297         0.506%     13753  (        0.118 -       10.480) [24]
query: SELECT rev_id,rev_page,rev_text_id,rev_timestamp,rev_comment,rev_use      1        15.076        15.076         0.490%      1256  (       15.076 -       15.076) [0]
query: DELETE FROM `objectcache` WHERE keyname = 'X'                             3        13.679         4.560         0.445%       672  (        1.822 -        6.373) [0]
Preprocessor_DOM::preprocessToObj-loadXML                                       12        12.247         1.021         0.398%      7696  (        0.035 -        9.509) [0]
Linker::accesskey                                                               30        11.765         0.392         0.383%     27316  (        0.038 -        1.171) [161]
Linker::link                                                                     6        11.576         1.929         0.376%    184197  (        0.128 -       10.265) [57]
SkinTemplate::buildContentNavigationUrls                                         1        11.450        11.450         0.372%     83557  (       11.450 -       11.450) [121]
Parser::clearState                                                              11        10.308         0.937         0.335%    217568  (        0.076 -        9.302) [22]
MagicWord::load                                                                129         9.630         0.075         0.313%     95650  (        0.004 -        4.871) [7]
SkinTemplate::buildNavUrls                                                       1         9.578         9.578         0.311%    207510  (        9.578 -        9.578) [39]
Parser::braceSubstitution                                                       11         9.310         0.846         0.303%     86858  (        0.139 -        5.061) [112]
SkinTemplate::buildPersonalUrls                                                  1         9.086         9.086         0.295%      8213  (        9.086 -        9.086) [56]
SkinTemplate::prepareQuickTemplate-stuff3                                        1         8.143         8.143         0.265%      4949  (        8.143 -        8.143) [36]
query: SELECT pr_type,pr_expiry,pr_level,pr_cascade FROM `page_restrictions      1         7.871         7.871         0.256%      1088  (        7.871 -        7.871) [0]
Setup.php-memcached                                                              1         6.822         6.822         0.222%    150368  (        6.822 -        6.822) [0]
ResourceLoader::filter                                                           3         6.642         2.214         0.216%     16554  (        2.052 -        2.536) [6]
JobQueue::getSiblingQueuesWithJobs                                               1         6.131         6.131         0.199%       825  (        6.131 -        6.131) [4]
Setup.php-misc1                                                                  1         5.970         5.970         0.194%     55504  (        5.970 -        5.970) [0]
query: SELECT DISTINCT job_cmd FROM `job` WHERE job_cmd IN ('X')                 1         5.787         5.787         0.188%      1080  (        5.787 -        5.787) [0]
ResourceLoader::__construct                                                      1         5.677         5.677         0.185%    169257  (        5.677 -        5.677) [3]
hook: MessageCache::get                                                        227         5.671         0.025         0.184%     50872  (        0.000 -        5.048) [0]
Parser::braceSubstitution-pfunc                                                  3         5.649         1.883         0.184%     36550  (        0.303 -        4.820) [17]
Parser::callParserFunction                                                       3         5.567         1.856         0.181%     31437  (        0.281 -        4.779) [14]
Parser::callParserFunction-pfunc-plural                                          3         5.517         1.839         0.179%     31436  (        0.266 -        4.756) [11]
Article::showPatrolFooter                                                        1         5.088         5.088         0.165%     97536  (        5.088 -        5.088) [2]
Title::getLinkURL                                                                9         4.676         0.520         0.152%     48155  (        0.049 -        3.967) [30]
Linker::linkUrl                                                                  6         4.471         0.745         0.145%     47482  (        0.049 -        3.971) [27]
Setup.php-defaults2                                                              1         4.403         4.403         0.143%       576  (        4.403 -        4.403) [1]
MessageBlobStore::get                                                            1         4.339         4.339         0.141%       929  (        4.339 -        4.339) [4]
Setup.php-exception                                                              1         4.331         4.331         0.141%     32992  (        4.331 -        4.331) [0]
hook: ParserFirstCallInit                                                        1         4.131         4.131         0.134%    125496  (        4.131 -        4.131) [1]
wfCite                                                                           1         4.110         4.110         0.134%    125096  (        4.110 -        4.110) [0]
query: INSERT IGNORE INTO `objectcache` (keyname,value,exptime) VALUES ('X'      2         4.055         2.028         0.132%       448  (        1.972 -        2.084) [0]
Title::getUserPermissionsErrorsInternal                                         12         3.805         0.317         0.124%     38465  (        0.038 -        2.891) [47]
query: SELECT mr_blob,mr_resource,mr_timestamp FROM `msg_resource` WHERE mr      1         3.801         3.801         0.124%      1128  (        3.801 -        3.801) [0]
SkinTemplate::buildContentNavigationUrls-live                                    1         3.782         3.782         0.123%      4973  (        3.782 -        3.782) [57]
Revision::loadText                                                               1         3.717         3.717         0.121%      1809  (        3.717 -        3.717) [5]
Setup.php-session                                                                1         3.522         3.522         0.115%      1976  (        3.522 -        3.522) [0]
SkinTemplate::outputPage-init                                                    1         3.510         3.510         0.114%     24362  (        3.510 -        3.510) [7]
Skin::initPage                                                                   1         3.473         3.473         0.113%     23698  (        3.473 -        3.473) [6]
query: SELECT old_text,old_flags FROM `text` WHERE old_id = 'X' LIMIT N          1         3.438         3.438         0.112%      1096  (        3.438 -        3.438) [0]
Setup.php-tempDir                                                                1         3.430         3.430         0.112%       224  (        3.430 -        3.430) [0]
query: REPLACE INTO `objectcache` (keyname,value,exptime) VALUES ('X')           1         3.257         3.257         0.106%       224  (        3.257 -        3.257) [0]
Parser::replaceExternalLinks                                                     1         3.054         3.054         0.099%      6595  (        3.054 -        3.054) [10]
query: SELECT wl_notificationtimestamp FROM `watchlist` WHERE wl_user = 'X'      1         2.984         2.984         0.097%      1088  (        2.984 -        2.984) [0]
query: SELECT page_namespace,page_title,page_touched FROM `page` WHERE (pag      4         2.854         0.714         0.093%      4352  (        0.464 -        1.192) [0]
Parser::braceSubstitution-modifiers                                             11         2.831         0.257         0.092%     44558  (        0.044 -        1.616) [59]
query: SELECT user_id FROM `user_newtalk` WHERE user_id = 'X' LIMIT N            1         2.801         2.801         0.091%      1080  (        2.801 -        2.801) [0]
User::getEffectiveGroups                                                         1         2.701         2.701         0.088%     25769  (        2.701 -        2.701) [3]
User::getAutomaticGroups                                                         1         2.684         2.684         0.087%     25272  (        2.684 -        2.684) [1]
ResourceLoader::makeModuleResponse-user.cssprefs                                 1         2.642         2.642         0.086%     15129  (        2.642 -        2.642) [3]
Skin::getSkinNames-init                                                          1         2.524         2.524         0.082%      1576  (        2.524 -        2.524) [0]
MediaWiki_I18N::translate                                                        6         2.518         0.420         0.082%      2680  (        0.072 -        2.104) [23]
Preprocessor_DOM::preprocessToXml                                               12         2.326         0.194         0.076%    114824  (        0.074 -        0.867) [0]
Parser::replaceInternalLinks2-setup                                              1         1.907         1.907         0.062%      2666  (        1.907 -        1.907) [6]
MessageCache::load                                                               1         1.871         1.871         0.061%      1505  (        1.871 -        1.871) [4]
SkinTemplate::prepareQuickTemplate-stuff2                                        1         1.858         1.858         0.060%      5493  (        1.858 -        1.858) [14]
MessageCache::load-fromcache                                                     1         1.847         1.847         0.060%      1025  (        1.847 -        1.847) [3]
Parser::replaceInternalLinks2-title                                              1         1.825         1.825         0.059%     12680  (        1.825 -        1.825) [0]
Article::fetchContentObject                                                      1         1.776         1.776         0.058%     17624  (        1.776 -        1.776) [1]
Skin::buildSidebar                                                               1         1.668         1.668         0.054%      6551  (        1.668 -        1.668) [40]
LinkBatch::executeInto                                                           1         1.577         1.577         0.051%      2641  (        1.577 -        1.577) [5]
LinkBatch::doQuery                                                               1         1.275         1.275         0.041%      2665  (        1.275 -        1.275) [4]
ResourceLoader::register                                                         2         1.104         0.552         0.036%     13912  (        0.032 -        1.073) [0]
query: SELECT page_id,page_namespace,page_title,page_len,page_is_redirect,p      1         0.986         0.986         0.032%      1096  (        0.986 -        0.986) [0]
Parser::doDoubleUnderscore                                                       1         0.859         0.859         0.028%     12389  (        0.859 -        0.859) [14]
Sanitizer::removeHTMLtags                                                        3         0.830         0.277         0.027%     46649  (        0.057 -        0.410) [4]
Parser::braceSubstitution-setup                                                 11         0.672         0.061         0.022%      6516  (        0.030 -        0.281) [11]
query: SELECT value,exptime FROM `objectcache` WHERE keyname = 'X' LIMIT N       2         0.660         0.330         0.021%      2192  (        0.266 -        0.394) [0]
Parser::doBlockLevels                                                            1         0.632         0.632         0.021%      6213  (        0.632 -        0.632) [14]
Parser::doTableStuff                                                             1         0.470         0.470         0.015%      5120  (        0.470 -        0.470) [0]
hook: MessagesPreLoad                                                          227         0.469         0.002         0.015%     50864  (        0.000 -        0.023) [0]
query: BEGIN                                                                     1         0.436         0.436         0.014%       352  (        0.436 -        0.436) [0]
Parser::doBlockLevels-paragraph                                                 14         0.408         0.029         0.013%      3592  (        0.007 -        0.275) [0]
hook: ParserClearState                                                          11         0.408         0.037         0.013%      9596  (        0.028 -        0.059) [11]
Parser::doMagicLinks                                                             1         0.405         0.405         0.013%      3336  (        0.405 -        0.405) [0]
SkinTemplate::setupTemplateForOutput                                             1         0.403         0.403         0.013%      4146  (        0.403 -        0.403) [6]
SkinTemplate::setupTemplateForOutput-stuff                                       1         0.391         0.391         0.013%      3601  (        0.391 -        0.391) [4]
Setup.php-defaults                                                               1         0.357         0.357         0.012%      6760  (        0.357 -        0.357) [0]
Parser::doHeadings                                                               1         0.282         0.282         0.009%      2352  (        0.282 -        0.282) [0]
SkinTemplate::buildContentNavigationUrls-edit                                    1         0.252         0.252         0.008%      1163  (        0.252 -        0.252) [9]
ResourceLoader::makeModuleResponse-user.options                                  1         0.238         0.238         0.008%      3608  (        0.238 -        0.238) [0]
query: SELECT page_namespace,page_title,page_touched FROM `page` WHERE (pag      1         0.230         0.230         0.007%      1088  (        0.230 -        0.230) [0]
Cite::clearState                                                                11         0.188         0.017         0.006%      1760  (        0.013 -        0.027) [0]
Title::getPageLanguage                                                          16         0.131         0.008         0.004%      4457  (        0.002 -        0.055) [4]
Parser::doAllQuotes                                                              1         0.105         0.105         0.003%      4408  (        0.105 -        0.105) [0]
SpecialPageFactory::getList                                                      1         0.103         0.103         0.003%       864  (        0.103 -        0.103) [1]
hook: GetLocalURL::Internal                                                     39         0.098         0.003         0.003%      9048  (        0.000 -        0.013) [0]
Skin::getSiteNotice                                                              1         0.086         0.086         0.003%       330  (        0.086 -        0.086) [7]
hook: ParserCloned                                                               1         0.079         0.079         0.003%      2624  (        0.079 -        0.079) [1]
LinkCache::addLinkObj                                                            3         0.064         0.021         0.002%       848  (        0.018 -        0.023) [0]
Skin::getCachedNotice                                                            2         0.064         0.032         0.002%      1001  (       -0.001 -        0.064) [3]
StripState::unstripType                                                          8         0.060         0.007         0.002%      9592  (        0.005 -        0.010) [0]
hook: GetLocalURL::Article                                                      23         0.059         0.003         0.002%      5336  (        0.001 -        0.006) [0]
Linker::linkAttribs                                                              6         0.059         0.010         0.002%      4832  (        0.008 -        0.013) [0]
StubObject::_unstub-wgLang                                                       1         0.057         0.057         0.002%       256  (        0.057 -        0.057) [0]
hook: GetLocalURL                                                               39         0.056         0.001         0.002%      8744  (        0.000 -        0.002) [0]
ParserOptions::initialiseFromUser                                                2         0.051         0.026         0.002%       288  (        0.024 -        0.027) [0]
hook: userCan                                                                   12         0.039         0.003         0.001%      2592  (        0.001 -        0.020) [0]
hook: ParserAfterParse                                                           1         0.038         0.038         0.001%      1248  (        0.038 -        0.038) [1]
hook: TitleIsAlwaysKnown                                                         4         0.038         0.009         0.001%       928  (        0.001 -        0.032) [0]
hook: ParserGetVariableValueVarCache                                             8         0.034         0.004         0.001%      1920  (        0.002 -        0.013) [0]
Cite::cloneState                                                                 1         0.033         0.033         0.001%      1912  (        0.033 -        0.033) [0]
hook: ContentHandlerDefaultModelFor                                              2         0.032         0.016         0.001%       480  (        0.003 -        0.029) [0]
hook: TitleGetRestrictionTypes                                                   4         0.032         0.008         0.001%       928  (        0.002 -        0.027) [0]
BaseTemplate::getToolbox                                                         1         0.031         0.031         0.001%      3312  (        0.031 -        0.031) [1]
hook: ParserBeforeTidy                                                           1         0.031         0.031         0.001%      1032  (        0.031 -        0.031) [1]
hook: ParserGetVariableValueTs                                                   8         0.030         0.004         0.001%      1856  (        0.002 -        0.013) [0]
Cite::checkRefsNoReferences                                                      2         0.030         0.015         0.001%       488  (        0.012 -        0.018) [0]
Parser::initialiseVariables                                                      1         0.028         0.028         0.001%       680  (        0.028 -        0.028) [1]
hook: ParserBeforeStrip                                                         11         0.028         0.003         0.001%      2464  (        0.002 -        0.006) [0]
SkinTemplate::buildContentActionUrls                                             1         0.024         0.024         0.001%       856  (        0.024 -        0.024) [0]
hook: TitleQuickPermissions                                                      9         0.024         0.003         0.001%      2088  (        0.000 -        0.008) [0]
hook: TitleIsCssOrJsPage                                                         3         0.021         0.007         0.001%       696  (        0.002 -        0.018) [0]
hook: ParserLimitReportFormat                                                    7         0.021         0.003         0.001%      1624  (        0.002 -        0.004) [0]
hook: TitleIsWikitextPage                                                        2         0.020         0.010         0.001%       464  (        0.002 -        0.019) [0]
hook: getUserPermissionsErrors                                                  12         0.017         0.001         0.001%      2792  (        0.000 -        0.002) [0]
Parser::replaceInternalLinks2-e1                                                 1         0.016         0.016         0.001%      1624  (        0.016 -        0.016) [0]
LinkHolderArray::replaceText                                                     2         0.015         0.008         0.000%       664  (        0.006 -        0.010) [0]
hook: WebRequestPathInfoRouter                                                   1         0.015         0.015         0.000%       232  (        0.015 -        0.015) [0]
MediaWiki::checkMaxLag                                                           1         0.014         0.014         0.000%       320  (        0.014 -        0.014) [0]
LanguageGetMagic                                                                 1         0.014         0.014         0.000%       216  (        0.014 -        0.014) [1]
hook: LinkerMakeExternalLink                                                     5         0.014         0.003         0.000%      1160  (        0.002 -        0.006) [0]
hook: ParserAfterStrip                                                          11         0.013         0.001         0.000%      2464  (        0.000 -        0.002) [0]
hook: LinkEnd                                                                    6         0.013         0.002         0.000%      1296  (        0.002 -        0.003) [0]
hook: LinkBegin                                                                  6         0.013         0.002         0.000%      1296  (        0.001 -        0.005) [0]
hook: UserRetrieveNewTalks                                                       2         0.013         0.006         0.000%       464  (        0.003 -        0.009) [0]
hook: SetupAfterCache                                                            1         0.013         0.013         0.000%       288  (        0.013 -        0.013) [0]
Linker::link-checkPageExistence                                                  6         0.012         0.002         0.000%      1392  (       -0.001 -        0.007) [0]
Revision::getRevisionText                                                        1         0.012         0.012         0.000%       616  (        0.012 -        0.012) [0]
hook: ArticlePageDataAfter                                                       1         0.011         0.011         0.000%       232  (        0.011 -        0.011) [0]
hook: ResourceLoaderRegisterModules                                              1         0.011         0.011         0.000%       240  (        0.011 -        0.011) [0]
hook: UserLoadFromSession                                                        1         0.011         0.011         0.000%       232  (        0.011 -        0.011) [0]
hook: ArticlePageDataBefore                                                      1         0.011         0.011         0.000%       232  (        0.011 -        0.011) [0]
MessageCache::saveToCaches                                                       1         0.011         0.011         0.000%       336  (        0.011 -        0.011) [0]
hook: ParserSectionCreate                                                        3         0.011         0.004         0.000%       696  (        0.002 -        0.006) [0]
hook: GetNewMessagesAlert                                                        1         0.010         0.010         0.000%       232  (        0.010 -        0.010) [0]
hook: AuthPluginSetup                                                            1         0.010         0.010         0.000%       224  (        0.010 -        0.010) [0]
SkinTemplate::setupTemplateForOutput-init                                        1         0.010         0.010         0.000%       768  (        0.010 -        0.010) [0]
Parser::replaceInternalLinks2-misc                                               1         0.010         0.010         0.000%       272  (        0.010 -        0.010) [0]
hook: AjaxAddScript                                                              1         0.009         0.009         0.000%       224  (        0.009 -        0.009) [0]
hook: UserLoadOptions                                                            2         0.009         0.005         0.000%       448  (        0.002 -        0.008) [0]
hook: SkinTemplateOutputPageBeforeExec                                           1         0.008         0.008         0.000%       240  (        0.008 -        0.008) [0]
hook: SkinTemplateTabAction                                                      3         0.007         0.002         0.000%       696  (        0.002 -        0.002) [0]
hook: ArticleFromTitle                                                           1         0.007         0.007         0.000%       224  (        0.007 -        0.007) [0]
DeferredUpdates::doUpdates                                                       1         0.007         0.007         0.000%       320  (        0.007 -        0.007) [0]
hook: PageContentLanguage                                                        3         0.007         0.002         0.000%       696  (        0.001 -        0.003) [0]
hook: SkinAfterBottomScripts                                                     1         0.006         0.006         0.000%       232  (        0.006 -        0.006) [0]
hook: MagicWordwgVariableIDs                                                     1         0.006         0.006         0.000%       232  (        0.006 -        0.006) [0]
hook: OutputPageBodyAttributes                                                   1         0.006         0.006         0.000%       232  (        0.006 -        0.006) [0]
hook: LanguageGetMagic                                                           1         0.006         0.006         0.000%       224  (        0.006 -        0.006) [0]
hook: GetAutoPromoteGroups                                                       1         0.005         0.005         0.000%       232  (        0.005 -        0.005) [0]
hook: ArticleAfterFetchContentObject                                             1         0.005         0.005         0.000%       240  (        0.005 -        0.005) [0]
hook: BaseTemplateAfterPortlet                                                   2         0.005         0.002         0.000%       464  (        0.002 -        0.003) [0]
WebStart.php-ob_start                                                            1         0.005         0.005         0.000%       224  (        0.005 -        0.005) [0]
hook: CanonicalNamespaces                                                        1         0.005         0.005         0.000%       232  (        0.005 -        0.005) [0]
hook: ArticleViewFooter                                                          1         0.005         0.005         0.000%       224  (        0.005 -        0.005) [0]
hook: ParserAfterTidy                                                            1         0.005         0.005         0.000%       224  (        0.005 -        0.005) [0]
hook: MediaWikiPerformAction                                                     1         0.005         0.005         0.000%       232  (        0.005 -        0.005) [0]
Sanitizer::removeHTMLcomments                                                    3         0.005         0.002         0.000%       792  (        0.001 -        0.002) [0]
LinkHolderArray::replace                                                         1         0.004         0.004         0.000%       712  (        0.004 -        0.004) [0]
hook: LanguageGetSpecialPageAliases                                              1         0.004         0.004         0.000%       240  (        0.004 -        0.004) [0]
Article::getContentObject                                                        2         0.004         0.002         0.000%       464  (        0.002 -        0.002) [0]
hook: DoEditSectionLink                                                          2         0.004         0.002         0.000%       448  (        0.002 -        0.002) [0]
hook: GetDoubleUnderscoreIDs                                                     1         0.004         0.004         0.000%       232  (        0.004 -        0.004) [0]
hook: SkinAfterContent                                                           1         0.003         0.003         0.000%       224  (        0.003 -        0.003) [0]
hook: ParserLimitReportPrepare                                                   1         0.003         0.003         0.000%       232  (        0.003 -        0.003) [0]
hook: SpecialPage_initList                                                       1         0.003         0.003         0.000%       232  (        0.003 -        0.003) [0]
hook: NamespaceIsMovable                                                         2         0.003         0.002         0.000%       464  (        0.002 -        0.002) [0]
hook: InternalParseBeforeSanitize                                                1         0.002         0.002         0.000%       240  (        0.002 -        0.002) [0]
hook: ParserLimitReport                                                          1         0.002         0.002         0.000%       224  (        0.002 -        0.002) [0]
hook: SiteNoticeAfter                                                            1         0.002         0.002         0.000%       224  (        0.002 -        0.002) [0]
hook: UserGetDefaultOptions                                                      1         0.002         0.002         0.000%       232  (        0.002 -        0.002) [0]
hook: InternalParseBeforeLinks                                                   1         0.002         0.002         0.000%       232  (        0.002 -        0.002) [0]
hook: LanguageLinks                                                              1         0.002         0.002         0.000%       224  (        0.002 -        0.002) [0]
hook: OutputPageParserOutput                                                     1         0.002         0.002         0.000%       232  (        0.002 -        0.002) [0]
hook: GetCanonicalURL                                                            1         0.002         0.002         0.000%       224  (        0.002 -        0.002) [0]
hook: BeforeInitialize                                                           1         0.002         0.002         0.000%       224  (        0.002 -        0.002) [0]
hook: MakeGlobalVariablesScript                                                  1         0.002         0.002         0.000%       232  (        0.002 -        0.002) [0]
hook: SkinVectorStyleModules                                                     1         0.002         0.002         0.000%       232  (        0.002 -        0.002) [0]
hook: SkinTemplatePreventOtherActiveTabs                                         1         0.002         0.002         0.000%       248  (        0.002 -        0.002) [0]
hook: SkinTemplateToolboxEnd                                                     1         0.002         0.002         0.000%       232  (        0.002 -        0.002) [0]
hook: SkinBuildSidebar                                                           1         0.002         0.002         0.000%       224  (        0.002 -        0.002) [0]
hook: LanguageGetNamespaces                                                      1         0.002         0.002         0.000%       232  (        0.002 -        0.002) [0]
hook: SearchableNamespaces                                                       1         0.002         0.002         0.000%       232  (        0.002 -        0.002) [0]
hook: AfterFinalPageOutput                                                       1         0.002         0.002         0.000%       232  (        0.002 -        0.002) [0]
hook: BaseTemplateToolbox                                                        1         0.002         0.002         0.000%       232  (        0.002 -        0.002) [0]
hook: UserGetLanguageObject                                                      1         0.002         0.002         0.000%       232  (        0.002 -        0.002) [0]
hook: ArticleViewHeader                                                          1         0.002         0.002         0.000%       224  (        0.002 -        0.002) [0]
hook: SkinSubPageSubtitle                                                        1         0.002         0.002         0.000%       232  (        0.002 -        0.002) [0]
hook: SkinGetPoweredBy                                                           1         0.002         0.002         0.000%       224  (        0.002 -        0.002) [0]
hook: ArticleContentViewCustom                                                   1         0.002         0.002         0.000%       232  (        0.002 -        0.002) [0]
hook: ParserBeforeInternalParse                                                  1         0.002         0.002         0.000%       232  (        0.002 -        0.002) [0]
hook: RequestContextCreateSkin                                                   1         0.002         0.002         0.000%       232  (        0.002 -        0.002) [0]
hook: OutputPageBeforeHTML                                                       1         0.002         0.002         0.000%       232  (        0.002 -        0.002) [0]
hook: BeforePageDisplay                                                          1         0.002         0.002         0.000%       224  (        0.002 -        0.002) [0]
hook: UserLoadAfterLoadFromSession                                               1         0.002         0.002         0.000%       240  (        0.002 -        0.002) [0]
hook: SiteNoticeBefore                                                           1         0.002         0.002         0.000%       224  (        0.002 -        0.002) [0]
hook: InitializeArticleMaybeRedirect                                             1         0.002         0.002         0.000%       240  (        0.002 -        0.002) [0]
hook: UserGetRights                                                              1         0.002         0.002         0.000%       224  (        0.002 -        0.002) [0]
hook: UserEffectiveGroups                                                        1         0.002         0.002         0.000%       232  (        0.002 -        0.002) [0]
hook: PersonalUrls                                                               1         0.002         0.002         0.000%       224  (        0.002 -        0.002) [0]
hook: SkinTemplateBuildNavUrlsNav_urlsAfterPermalink                             1         0.002         0.002         0.000%       256  (        0.002 -        0.002) [0]
hook: SkinTemplateNavigation::Universal                                          1         0.002         0.002         0.000%       240  (        0.002 -        0.002) [0]
hook: PageRenderingHash                                                          1         0.001         0.001         0.000%       224  (        0.001 -        0.001) [0]
hook: getUserPermissionsErrorsExpensive                                          2         0.001         0.000         0.000%       480  (        0.000 -        0.001) [0]
hook: TitleIsMovable                                                             1         0.001         0.001         0.000%       224  (        0.001 -        0.001) [0]
hook: SkinTemplateNavigation                                                     1         0.001         0.001         0.000%       232  (        0.001 -        0.001) [0]
Parser::replaceInternalLinks2-interwiki                                          1        -0.001        -0.001        -0.000%       240  (       -0.001 -        0.000) [0]
SkinTemplate::prepareQuickTemplate-stuff-head                                    1        -0.002        -0.002        -0.000%       248  (       -0.002 -        0.000) [0]

65.190.75.20213:52, 15 November 2014

Apparently, it takes a lot of time when connecting to the database. I guess it's a local database, but I don't see why it should take so much time for this.

Ciencia Al Poder (talk)10:34, 17 November 2014
 
 
 
 
 

Is it possible to have my server's ip changed?

I've been having trouble with an annoying person that I know in real life so I don't want to ban but still want to get off the server. Is there any way I could change the ip so I could play without him?

173.26.240.15001:22, 23 November 2014

Do we really talk about MediaWiki? I don't think so?!

Florianschmidtwelzow (talk)01:26, 23 November 2014
 

Problems logging-in

Hi,

I've been trying recently to log-in to this page (http://npp-wiki.tuxfamily.org/index.php?title=Plugin_Central) but it reports that the cookies are disabled. I've double checked that I have enabled cookies in my browser and that there are no cookies exceptions settings. I have also been able to log -in and edit that page from the same computer about a month (or so) ago and I haven't changed anything since then. I tried from another computer on another network with the same result.

The reported MediaWiki Special:Version is:

Product Version MediaWiki 1.25wmf7 (b9f7295) 19:25, 5 November 2014 PHP 5.3.10-1ubuntu3.15+wmf1 (apache2handler) MariaDB 5.5.36-MariaDB-log Elasticsearch 1.3.4 LuaSandbox 1.9-1 Lua 5.1.4

Thanks.

95.158.130.5009:13, 10 November 2014

Hello,

can you say, if and what you set for $wgCookieDomain in your LocalSettings.php?

Florianschmidtwelzow (talk)06:32, 12 November 2014

Hi,

I do not have access to the site server, I'm simply a user. Thus I cannot check the LocalSettings.php contents. Have I posted my ticket on the wrong helpdesk?

Thanks.

95.158.130.5008:25, 12 November 2014

Yes, this help desk helps you, if you have trouble with a wiki you're the operator of, or simple usage problems, which can be solved without access to the server (or similar resources). So, you should contact the hoster of the wiki (you don't mean a Wikipedia or another Wikimedia project, right?) :)

Florianschmidtwelzow (talk)01:12, 23 November 2014
 
 
 

Disable API access for external sites?

I don't want others to use the API (read or write).

Can I restrict the API access so only my own server cann access it?

93.184.128.1716:15, 10 November 2014

Not inside MediaWiki, but you can create rules in your webserver.

The access to the api has the following characteristics:

  • Access from the clients (users) of your wiki, for example to add a page to the watchlist
    Those HTTP requests should have a "Referer" (sic) header from the page originating the request.
  • Access from external sources
    Those HTTP request won't have a "Referer" header, or they'll contain a different server. But note that they could fake a Referer header!

This is a bit weak, but may be useful to you.

Ciencia Al Poder (talk)10:42, 11 November 2014
 

Hmm, the question is: who are "others"?

Florianschmidtwelzow (talk)11:36, 11 November 2014
 

Sorry for the late reply and thanks for the suggestions.

I'd prefer a safe method only allowing API calls from my own server. So "others" is any extenal website or app.

Could I restrict read rights for api.php?

Subfader (talk)18:07, 16 November 2014

No, there's no configurable user right for restricting api reads.

Ciencia Al Poder (talk)10:31, 17 November 2014
 

You could add a new virtual host to your apache configuration pointing to another webroot, copy your actual wiki into it (which will use the same database as your actual wiki) and activate API (and disable it on your actual, public wiki). Now add a htaccess and deny requests from all hosts, except localhost/127.0.0.1. Nevertheless: this seems to be an ugly workaround. I'm wondering, why you don't want to activate the API for all users? All, what you can do in the API can be done through the webinterface, too :)

Florianschmidtwelzow (talk)01:10, 23 November 2014
 
 

How to Translate URLs (Main Page, Special:Categories, etc...)

Hi,

I am using mediawiki in portuguese, but the urls of the special pages, main page and etc are carrying the english equivalents.

How to translate these urls?

thanks!

189.18.252.3320:22, 20 November 2014

The urls are already translated. In which language the special pages (and other interface messages) are visible in, you can control with Manual:$wgLanguageCode in your LocalSettings.php. E.g. change the value (for you actually "en" i think) to "pt" (Portugese).

Florianschmidtwelzow (talk)21:05, 20 November 2014

Thanks! It solved my question.

I just cant use any of the hatnotes

I tried:

Template:Artigo principal Template:Principal

etc...

But no work. Does the translation break them? How may i use this feature?

Thanks for your help!

189.18.252.8713:37, 21 November 2014

Thanks! It solved my question.

I just cant use any of the hatnotes

I tried:

{{Main|PageName}} {{Artigo principal|PageName}} {{Principal|PageName}}

etc...

But no work. Does the translation break them? How may i use this feature?

Thanks for your help!

189.18.252.8723:13, 21 November 2014

All of these functions seems to be templates, so first check, if the templates exists on your Wiki :)

Florianschmidtwelzow (talk)01:04, 23 November 2014
 
 
 
 

"Fatal exception of type MWException" when using the SecurePoll Extension

A thread, Thread:Project:Support desk/"Fatal exception of type MWException" when using the SecurePoll Extension, was moved from here to Extension talk:SecurePoll. This move was made by Florianschmidtwelzow (talk | contribs) on 23 November 2014 at 00:58.

Blank page after clicking on 'file list' in special pages

Hi,

I have been trying to figure this out for the past week and can't come across a solution!

Basically- I uploaded a few files last week and everything was working well. Then, halfway through an upload, the screen went blank. I had one file that just wouldn't upload (even though it had the correct extensions etc).

Anyway, after this point, every time I go into 'special pages' and click on list files or anything that requires a directory of the uploaded files, I get a blank page. It half loads then seems to give up and just ends up blank.

I've tried to do the error thing in local settings.php; increase memory in php.ini and various other things and I can't seem to work out where the problem is.

I'm running on MAMP on my Mac.

Help!

81.149.212.16715:15, 23 September 2013

When output stops like that, I've found a good way to figure out what the error is is to add

 error_reporting( -1 );
 ini_set( 'display_errors', 1 );

to your LocalSettings.php.

If you add those two lines, do you see any error messages?

MarkAHershberger(talk)15:49, 23 September 2013
 

See also the documentation on blank pages.

MarkAHershberger(talk)15:50, 23 September 2013

Hi,

Thanks, have tried all of it and it doesn't appear to be showing anything...

I've added the error reporting to the local settings and nothing has come up.. and I've increased the memory size.

Is there anything else I can try?

Thanks,

S

81.149.212.16710:52, 24 September 2013

There's apparently an error log at /Applications/MAMP/logs/php_error.log

Check if it has an error message about that.

See also [1]

Ciencia Al Poder (talk)13:06, 24 September 2013

hello, I have the same problem with the blank file-list page. I'm running the wiki on an extern server. How can I fix it - all the "error-reporting" in the local settings.php didn't help.

I would be very very glad for any help!!

2.165.167.7308:14, 7 November 2014

The error reporting thing is not to fix the issue, but to know the cause of it being broken (which currently nobody knows) so it can be fixed.

If you post a detailed error message, it would help us diagnose the problem. Otherwise, we can't do anything since we can't reproduce the error in our environment.

Ciencia Al Poder (talk)10:25, 7 November 2014
 
 
 
 
 

revision history link

the "revision history statistics " link is down(or not working correctly),its at "External Tools" in page histories at the English Wikipedia for users with en or en-gb as language. It's made by https://en.wikipedia.org/wiki/MediaWiki:Histlegend and goes to https://tools.wmflabs.org/xtools/ec/.. I would fix or help fix it , I need it to see how the page edits and bytes added are going on the article I work on thank you

Ozzie10aaaa (talk)11:42, 22 November 2014

You asked this already in https://en.wikipedia.org/w/index.php?title=Wikipedia:Village_pump_%28technical%29&oldid=634914987#revision_history_statistics and received replies. It is not clear to me why you repeated the question here. Repeatedly posting the same question does not help.

AKlapper (WMF) (talk)12:50, 22 November 2014
Edited by another user.
Last edit: 13:28, 22 November 2014

however , I repeated because the problem still exists!! (try the link yourself it goes down every 3 days )

Ozzie10aaaa (talk)13:25, 22 November 2014

having said that if however this is an issue that is technically outside your ability to fix then I understand where the problem is.

Ozzie10aaaa (talk)13:42, 22 November 2014
 

Let me repeat: Repeatedly posting the same question does not help.

AKlapper (WMF) (talk)14:13, 22 November 2014

thank you for your kind time

Ozzie10aaaa (talk)14:23, 22 November 2014
 
 
 
 

multi language

hello my wiki is on Persian Language, i want to have English language also. how could i have it? could you help me? Let me know

84.241.45.806:31, 22 November 2014

See MediaWiki Language Extension Bundle

AKlapper (WMF) (talk)12:23, 22 November 2014

i dl universal language selector for my wiki, i use it now. but the problem is when i select the language the sidebar was not changed. i want to have different sidebar for different language understand what i mean?

84.241.45.812:26, 22 November 2014

we have sidebar for englsih, german and ... any language. i want to have link to those sidebars. assume one button when i click on this it change wiki language to english and then new sidebar shown.

84.241.45.812:32, 22 November 2014
 

we have sidebar for englsih, german and ... any language. i want to have link to those sidebars. assume one button when i click on this it change wiki language to english and then new sidebar shown.

84.241.45.812:33, 22 November 2014
 
 
 

"Error creating thumbnail: Error code: 2"

Edited by another user.
Last edit: 10:32, 20 November 2014

G'day,

I recently moved my MediaWiki from one server to another. Everything seems to work well except thumbnail generation: I receive "Error creating thumbnail: Error code: 2"

I have reviewed and tried the various documented online solutions without success. My LocalSettings.php is

$wgEnableUploads = true;
$wgUseImageMagick = true;
$wgImageMagickConvertCommand = "/usr/bin/convert";

I can confirm that ImageMagick is installed (version 6.7.7-10) and the convert command path works when I try it from the Mediawiki directory prompt. . MediaWiki is looking into the right place for images (full images upload and display fine). I temporarily changed permissions to 777 on /images and on /images/temp just to see if that solved a problem. It didn't. I tried specifying

$wgMaxShellMemory = 512 000; 
$wgMaxShellFileSize = unlimited;

But that didn't solve the problem. I tried specifying the /images/temp directory with $wgTmpDirectory = "$IP/images/temp"; but that didn't solve the problem either. For kicks I tried using /etc/alternatives/convert but that didn't work either. I logged out of the wiki after each change and 'hard' refreshed my browser just to make sure that I was looking at the new settings effects. My MediaWiki is in /var/www/html/wikiname. It is version 1.23.2.

Convinced that imagemagick isn't being called or exiting properly I followed the links and got:

me@star:/usr/bin$ ls -l /usr/bin/convert
lrwxrwxrwx 1 root root 25 Nov  3 17:39 /usr/bin/convert -> /etc/alternatives/convert
me@star:/usr/bin$ ls -l /etc/alternatives/convert
lrwxrwxrwx 1 root root 20 Nov  3 17:39 /etc/alternatives/convert -> /usr/bin/convert.im6
me@star:/usr/bin$ ls -l /usr/bin/convert.im6
-rwxr-xr-x 1 root root 6320 Mar  6  2014 /usr/bin/convert.im6
me@star:/usr/bin$ dpkg -S /usr/bin/convert.im6
imagemagick: /usr/bin/convert.im6

I tried changing the LocalSettings command path to /usr/bin/convert/im6 but it didn't help. I'm out of troubleshooting ideas. Any suggestions?

129.65.56.9602:57, 20 November 2014

You say you have this:

$wgMaxShellMemory = 512 000; 
$wgMaxShellFileSize = unlimited;

But Manual:$wgMaxShellFileSize doesn't mention "unlimited" as a valid value, and also I think "512 000" is not a valid number in PHP. It should generate a parse error. Could you please verify that?

Ciencia Al Poder (talk)10:43, 20 November 2014

G'day, I was following (http://www.mediawiki.org/wiki/Manual_talk:Image_administration) suggestion and similar posts elsewhere reporting that this solved their similar problem even when no memory limitation was expected. I did not receive a parser error in MediWiki responses, looking in ~/apache2/error I don't see one, but I also commented out this trial after it did not resolve the problem.

129.65.56.9616:54, 20 November 2014

The fact that you didn't get a parser error with that invalid code suggests that your LocalSettings.php file is being ignored altogether...

This, that and the other (talk)00:47, 21 November 2014
Edited by another user.
Last edit: 10:29, 22 November 2014

Thanks, but not true. Chances are good that I'm not looking in the right place for a parser error that doesn't report in the MediaWiki. LocalSettings.php is the effective configuration file because if I set #wgEnableUploads = false; then my MediaWiki doesn't allow uploads. I've sequentially tried these fixes, but either it's a 'more than one variable problem' or something else is causing an abnormal exit from ImageMagick. From the active LocalSettings.php

## To enable image uploads, make sure the 'images' directory
## is writable, then set this to true:
$wgEnableUploads = true;
$wgUseImageMagick = true;
$wgImageMagickConvertCommand = "/usr/bin/convert";
#$wgSVGConverterPath = "/usr/bin";
#$wgImageMagickTempDir = "IP$/images/temp";
#$wgMaxShellMemory = 300000;
#$wgMaxShellFileSize = 300000;
#$wgMaxShellTime = 220;
#$wgTmpDirectory = "/var/www/html/wikiname/images/temp";
#$wgUseImageReseize = true;
#$wgGenerateThumbnailOnParse = true;
##$wgSVGConverterPath = "/usr/bin";
#$wgTmpDirectory = "$IP/images/temp";
129.65.56.9617:46, 21 November 2014

I should have mentioned:

  • MediaWiki 1.23.2
  • PHP 5.5.9-1ubuntu4.5 (apache2handler)
  • MySQL 5.5.40-0ubuntu0.14.04.1
129.65.56.9620:35, 21 November 2014
 

Note that every line starting with a "#" character in LocalSettings.php is ignored, since it's a PHP comment.

Note that $wgImageMagickTempDir = "IP$/images/temp"; should be $wgImageMagickTempDir = "$IP/images/temp"; instead. And the value of $wgSVGConverterPath doesn't make sense. Still, all of those configuration variables are commented out, so they aren't being used in your installation.

Ciencia Al Poder (talk)10:33, 22 November 2014
 
 
 
 
 

Custom 404 page on nonexistent article

Hi - I am using MediaWiki as a CMS, so I am the only person who can edit it. If anyone visits an article that does not exist, I would like a custom (HTML) page displayed instead of the standard "this article does not exist" page. Is it possible to configure MW to display a custom page if an article does not exist? (I am happy to create new pages by editing existing ones and adjusting the URL accordingly.) Thanks!

Malvineous (talk)10:04, 22 November 2014

Need to determine if I am "missing a language label"

Need to determine if I am "missing a language label".

Upgrade from MW 1.18.1 to 1.23.5 broke sysop and Bureaucrat users functionality

Product Version MediaWiki 1.23.5 PHP 5.3.17 (apache2handler) MySQL 5.6.20-log

/index.php/Special:ConfirmAccounts
Permission error You do not have permission to <action-confirmaccount>, for the following reason: The action you have requested is limited to users in the group: Bureaucrats.

Tcaton-nm (talk)17:38, 21 November 2014

Page Localisation has information on language labels, but I don't think it will answer your question.

You say you upgraded MediaWiki. Did you also upgrade the different extensions you use? E.g. ConfirmAccount?

88.130.80.15218:28, 21 November 2014

Yes I definitely upgraded all the extensions as well.

-rw-r--r-- 1 root root 9394125 Nov 20 13:03 ConfirmAccount-REL1_23-99f685b.tar.gz
-rw-r--r-- 1 root root 309578 Nov 20 13:03 LdapAuthentication-REL1_23-f266c74.tar.gz
-rw-r--r-- 1 root root 1617348 Nov 20 13:03 Maintenance-REL1_23-5951890.tar.gz
-rw-r--r-- 1 root root 196416 Nov 20 13:03 SecurePasswords-REL1_23-8f5ef9f.tar.gz
-rw-r--r-- 1 root root 637656 Nov 20 13:03 UserMerge-REL1_23-78f61ac.tar.gz
-rw-r--r-- 1 root root 2044 Nov 20 13:03 embed_document.php

Tcaton-nm (talk)19:16, 21 November 2014

Just to make sure: You have downloaded the tarballs, but you have also extracted them, right? Sorry, if the question sounds stupid, but you wouldn't believe what we see here...

88.130.80.15223:34, 21 November 2014
 
 

Be sure you run the update script when you upgraded.

Also try running Manual:rebuildmessages.php or Manual:rebuildLocalisationCache.php --force

Ciencia Al Poder (talk)18:32, 21 November 2014

Definitely ran the update script.

alb-wit-wikidb:/srv/www/htdocs/mediawiki-upgrade2 # php maintenance/update.php MediaWiki 1.23.5 Updater

Will try those next, Thank You!!!

Tcaton-nm (talk)19:18, 21 November 2014

It appears I have an answer.
In MediaWiki 1.18.1 logging into EDir created user names using the EDir convention: Uppercase Uppercase lowercase rest of username.....
Logging into Upgrade MediaWiki 1.23.5 forced Username to: Uppercase lowercase rest of username....
Simply editing all usernames in DB to be Uppercase first character only fixed it.

Tcaton-nm (talk)20:17, 21 November 2014
 
 
 

External images: additional parameters

I allowed external images by setting $wgAllowExternalImages. Now I'm able to display images by: http://www.example.com/image.jpg

What if I want to add additional parameters, like size or align?

Doing: [File: http://www. example. com/image.jpg|left|100px|caption] doesn't work.

Kavuch (talk)22:25, 20 November 2014
Edited by another user.
Last edit: 13:45, 21 November 2014

I think what $wgAllowExternalImages enables might be completely different code compared to how the usual [] and [[]] links are created. To verify this you might want to search the MediaWiki source code for $wgAllowExternalImages and then read the code to see, what it actually does.

88.130.125.3322:56, 20 November 2014

So is it possible to specify parameters, like size and alignment for external images?

Kavuch (talk)23:10, 20 November 2014

No, it isn't supported with $wgAllowExternalImages. You could try using $wgAllowImageTag instead.

This, that and the other (talk)00:45, 21 November 2014

Ok, I have now both $wgAllowExternalImages and $wgAllowImageTag set to true, but it still doesn't work. All I see here is "50px" instead of the image:

50px

This is the code (edited, so that it can be displayed here): [ [ Image:https://upload.wikimedia.org/wikipedia/commons/a/a0/Sega-Genesis-Model2-32X.jpg%7C50px]]

Kavuch (talk)13:52, 21 November 2014

You need to read the documentation page I linked for $wgAllowImageTag above. Specifically, this allows you to use the HTML <img> tag to display images in your wikitext; it has nothing to do with the standard [[file:...]] wikitext syntax. If you aren't familiar with the <img> tag, Google img tag.

This, that and the other (talk)06:08, 22 November 2014
 
 

Read the source code to see!

88.130.80.15214:02, 21 November 2014
 
 
 

[RESOLVED] formatting issue, related to $wgServer?

MediaWiki 1.22.3 PHP 5.4.34 MySQL 5.5.40-36.1

website: opnote.net

I am having a problem with the formatting of my wiki when accessed on certain computers. When I access my page on most computers it looks fine, but when I pull it up on the computers at the hospital where I work, it has no formatting and no images. The problem is the same in internet explorer and chrome. Other wikis, including wikipedia and mediawiki, work normally on these computers.

I believe the problem is related to $wgServer, based on the help topic "The wiki appears without styles applied and images are missing" in "Manual:Errors and symptoms." From reading this, though, I couldn't figure out how to fix the problem. Would using short URLs on my wiki fix the problem?

96.47.57.13006:16, 18 November 2014

Maybe in the hospital you're accessing through a proxy, and the proxy somehow mangles or deny access to some files.

Try debugging requests as explained here: Thread:Project:Support desk/Different appearance on different computers (remote desktops)/reply (3)

Ciencia Al Poder (talk)11:18, 18 November 2014

I tried using the debugger but it did not generate any error. I also converted my mediawiki to use short URLs, and this did not fix the problem.

I browsed to load.php on the computers where the site does not work, and got this result:

Content Filter Denied Client IP: 10.252.218.242 Username: GenWksAutoLogon URL: opnote.net Categories: Hacking Your request was denied because of its content categorization: "Hacking;Technology/Internet"


Is it possible that the firewall here is blocking something about my site and that this is resulting in the formatting issue? If this were the case I could talk to the IT people here and try to get them to remove this block.

96.47.57.13009:47, 20 November 2014

Yes, it seems the firewall/proxy of the hospital is blocking those requests.

Ciencia Al Poder (talk)10:04, 20 November 2014
Edited by 2 users.
Last edit: 05:14, 22 November 2014

I had IT add the site to the trusted list and it is working now!

08:32, 21 November 2014
 
 
 
 

Pagination in categories

I want to prevent my category pages that only 200 pages are displayed at a time and I want that all category pages in a category are displayed at once. How does it work?

79.242.154.22601:23, 22 November 2014

Upgrade from MW 1.18.1 to 1.23.5 broke sysop and Bureaucrat users functionality

Upgrade from MW 1.18.1 to 1.23.5 broke sysop and Bureaucrat users functionality

User listed in sysop and Bureaucrats MediaWiki Output receives Permission error when clicking on restricted links.

/index.php/Special:ConfirmAccounts
Permission error You do not have permission to <action-confirmaccount>, for the following reason: The action you have requested is limited to users in the group: Bureaucrats.

/index.php/Special:UserLogin/signup
Permission error You do not have permission to create this user account, for the following reason: The action you have requested is limited to users in the group: Administrators.

/index.php?title=Special:ListUsers&group=bureaucrat
Displays user.

/index.php?title=Special:ListUsers&group=sysop
Displays user.

/index.php/Main_Page

Product Version MediaWiki 1.23.5 PHP 5.3.17 (apache2handler) MySQL 5.6.20-log

Thank you

Tcaton-nm (talk)21:54, 20 November 2014

Hi!

Two things: On Special:ConfirmAccounts, does it really contain the text <action-confirmaccount> at that place? This points to a missing language label. Anyway, since the special page itself is there, the extension obviously is installed in some way.

If I remember correctly, the usernames on Special:ListUsers are not cached, but displayed "live". Anyway, have a look at the database table user_group. Are there rows for the according user? User_id in ug_user and the name of the group written as a word in ug_group?

88.130.125.3323:03, 20 November 2014

I used links off: /index.php/Special:ListGroupRights under Groups: Bureaucrats & Administrators to test my Permissions.


These all gave me Permission Error:

index.php/Special:Maintenance

index.php/Special:UserCredentials

index.php/Special:ConfirmAccounts

index.php/Special:UserLogin/signup


Once again these URLs do display my username:

index.php?title=Special:ListUsers&group=sysop

index.php?title=Special:ListUsers&group=bureaucrat




My USERID is listed twice: from user:user_id in user_groups:ug_user.

Confusingly all user_groups:ug_groups are displayed as BLOB.

Thanks for helping!!!

Tcaton-nm (talk)00:04, 21 November 2014

I think you should be able to actually read the contents of the fields, if you do a SELECT query and add the CONVERT() function to it like this:

CONVERT(ug_group USING utf8)
88.130.80.15213:37, 21 November 2014
 

Yes labels in <> on all the error pages:

<action-maintenance>
<action-lookupcredentials>
<action-confirmaccount>

I will research: "missing language label".

Working on CONVERT function - THANKS!!!

Tcaton-nm (talk)16:18, 21 November 2014
 

It appears I have an answer.
In MediaWiki 1.18.1 logging into EDir created user names using the EDir convention: Uppercase Uppercase lowercase rest of username.....
Logging into Upgrade MediaWiki 1.23.5 forced Username to: Uppercase lowercase rest of username....
Simply editing all usernames in DB to be Uppercase first character only fixed it.

Tcaton-nm (talk)20:16, 21 November 2014

Alright, the problem then was not that the (old) usernames did no longer have the right permissions, but that you in fact got logged in with a different username and this user had a different ID in the user table and so did not get the permissions assigned. Sounds to me like something was changed in the (external?) login mechanism you are using.

88.130.80.15223:36, 21 November 2014
 
 

Upgrade from MW 1.18.1 to 1.23.5 left duplicate users with Uppercase Uppercase rest lowercase USernames and now apparently standard Uppercase rest lowercase Usernames.

Upgrade from MW 1.18.1 to 1.23.5 left duplicate users with Uppercase Uppercase rest lowercase USernames and now apparently standard Uppercase rest lowercase Usernames.

Is there a script to consolidate duplicate users and switch old userids in other tables to new single userid?

Thank You.

Tcaton-nm (talk)20:51, 21 November 2014

You can consolidate usernames using Extension:UserMerge!

88.130.80.15223:32, 21 November 2014
 
First page
First page
Previous page
Previous page
Last page
Last page