Project:Support desk

From MediaWiki.org
(Redirected from Project:Support)
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
[RESOLVED] page loading slow speed1603:33, 24 November 2014
PDFThumbs201:52, 24 November 2014
How to change the default Main Page title and the URL423:48, 23 November 2014
Uncommitted DB writes (transaction from DatabaseBase::query (MessageBlobStore::clear))023:19, 23 November 2014
ResourceLoader: Add Javascript for logged in users422:31, 23 November 2014
[Resolved] Adding global meta tag for Google Website Translator022:19, 23 November 2014
How to automatically create a page in another namespace for every mainspace page?020:08, 23 November 2014
[RESOLVED] revision history link919:09, 23 November 2014
[RESOLVED] Preloader will only preload the main boilerplate no matter what I set418:46, 23 November 2014
[RESOLVED] Blank page after clicking on 'file list' in special pages1016:09, 23 November 2014
Changing a text string on all pages in a wiki115:05, 23 November 2014
How to add page link to sidebar?314:54, 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
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
First page
First page
Previous page
Previous page
Last page
Last page

[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
 
 
 
 
 

Does anyone know where I might be able to find a copy of the files for this extension. I have searched for hours with no luck.

Thanks, Don

Dcshank (talk)21:38, 7 November 2014

Hi Don!

I do not know an extension called PDFThumbs, but there is an exte called Extension:PDFThumbnails. Its files seem to be no longer online currently, but the extension page still points to a website. Maybe you can write its owner a mail asking him for the files...

88.130.88.17322:52, 7 November 2014
Edited by another user.
Last edit: 01:52, 24 November 2014

Yeah, That's the one. I saw for several other Apps like Drupal. Maybe that is where PDFThumbs got stuck in my head. Somewhere I think I found two authors, but no way to reach either.

  ------------------Break for some time-----------------

Silly me. If I would have read the instructions, it does not have a directory. It was sitting quite pretty all by itself in the extensions directory.

So, I have a copy of the code. Is there a good place to put it, besides somewhere public on one of my servers?

After weeks of trying to make something work, It was doing what I needed to begin with, just not enough lights on upstairs any longer for me to see it :p


Thanks 88.130.88.173.

Dcshank (talk) 01:52, 24 November 2014 (UTC)

75.161.126.119 01:50, 24 November 2014 (UTC)03:11, 8 November 2014
 
 

How to change the default Main Page title and the URL

I'm trying to change the default Main Page title and the URL.

I only see instructions on How do I change the Main Page title.

I also would like to change the URL to reflect the new homepage title.

I would like for my URL to go from this:

http://haitipedia.org/wiki/Main_Page

to that:

http://haitipedia.org/wiki/Haitipedia

Versions:

MediaWiki version 1.16.2

PHP 5.x

MySQL 5.0.91-log

Hosting: GoDaddy Shared Linux

Techies24716:12, 4 March 2011

Hi Techies247,

You linked to the solution already: How do I change the Main Page title.

So follow the instructions ;-)

How do I change the Main Page title reads:
Simply click on the "Move" tab, and move the page to the desired page title.
Usually you also want to change which page is the main page.

So

Krinkle17:06, 4 March 2011

Great this is working fine for me.. but the problem is I am able to do this is Authoring Wiki. When I pushing the content to English Wiki its not reflecting there. Can anyone help me please.

49.205.166.10619:58, 17 April 2014
 

Hi Krinkle,

I followed up you instruction, it works on my local machine.

However, when I moved everything on to my hosting server. The main page reverted to .../index.php/Main_Page (which is supposed to be .../index.php/New_Name)

I repeat what I have done on my local machine, it just does not work on my hosting server. (in MediaWiki:mainpage, it still says New Name) The same issue happens to tab as well. (the value of MediaWiki:mainpage-nstab is ignored, and it still shows "Pages" on the main page)

Can you shed some light on this issue?

Cheers, Kevin

14.203.99.25004:45, 20 November 2014

Are there any different values in both LocalSettings.php (apart from database connection and maybe some URL)?

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

Thanks for your reply.

I just did a "diff" on both LocalSettings.php files (remote and local), the only different is the DB connection setting. Nothing else.

Cheers, Kevin

14.203.99.25023:48, 23 November 2014
 
 
 
 

Uncommitted DB writes (transaction from DatabaseBase::query (MessageBlobStore::clear))

Hi, I have MW 1.22.6 installed via xampp, when I try to change $wgLanguageCode = "en" to $wgLanguageCode = "it", I get this error: Uncommitted DB writes (transaction from DatabaseBase::query (MessageBlobStore::clear)). in C:\xampp\apps\mediawiki\htdocs\includes\db\Database.php on line 3944. How can I fix it?

185.5.63.16323:19, 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

Will be this loaded for every logged in user, or just for those, who are in the group users?

Florianschmidtwelzow (talk)22:12, 23 November 2014

All users, who are logged in, are in the group user. ;-)

88.130.120.522:31, 23 November 2014
 
 
 

[Resolved] Adding global meta tag for Google Website Translator

Extension:MetaTags lets you add custom meta tags to individual pages. I needed to add a meta tag to all pages. I don't know whether this is the right way, or best way to do this.

Google Website Translator is a widget that embeds a drop down menu on each page, to let visitor select a language into which to translate the page (demo: see "4. Google Translate Bar"). The wizard creates a meta tag, and HTML snippet.

Using MedaiWiki 1.23.5, to add the meta tag, I added the following snippet to my LocalSettings.php file (first 4 lines already exist):

# Protect against web entry
if ( !defined( 'MEDIAWIKI' ) ) {
        exit;
}

$wgExtensionFunctions[] = 'globalMetaGoogleXlate';
function globalMetaGoogleXlate(){
   global $wgOut;
   $wgOut->addMeta ( 'google-translate-customization' , 'cc5b9e13f99-4d62c779b7cf64cb-g83044656fb7362a2-13');
}

Adds the following meta tag in <head>..</head>

<meta name="google-translate-customization" content="cc5b9e13f99-4d62c779b7cf64cb-g83044656fb7362a2-13" />

To embed the generated snippet into my page (in my case, the Vector skin), I made a backup the files skins/Vector.php, and found a suitable location to add it.

Iantresman (talk)22:19, 23 November 2014

How to automatically create a page in another namespace for every mainspace page?

Okay, so say I have a mainspace article called foo, and then I store data on foo in a namespace called spreadsheet, with a preloaded table and navigation boilerplate. Except, all the actual data is stored and sorted by year. here is the code of the page:

Spreadsheet:Foo/2008 would be created by clicking the "2008" link in the second table. But when I create a page in the main space called "Foo", I want Spreadsheet:Foo to be automatically created, so that there's a root page to make the year subpages from. The Preloader extension fills them all with the boilerplate in the collapsible panel, so Spreadsheet:Foo would mainly just serve the purpose of making it easier to categorize the year subpages, but it would just be annoying to have to manually create a second page for every main page.
If you're wondering how I manually edit that complex table, I don't, I use the WYSIWYG extension, so please don't advise me on that.

Iamabigwikinoob (talk)18:36, 23 November 2014

[RESOLVED] 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

According to https://en.wikipedia.org/w/index.php?title=Wikipedia:Village_pump_%28technical%29&oldid=634914987#revision_history_statistics the problem has been resolved. But after posting the question everywhere, Ozzie10aaaa did not even care to post the answer. Now there are five, six or maybe even more threads about this problem and none contains a solution. Great!

88.130.120.513:40, 23 November 2014
 
 
 
 
 

[RESOLVED] 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
 
 
 
 

[RESOLVED] 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
 
 
 
 
 

Changing a text string on all pages in a wiki

I have once seen somewhere that one can install a function to "Find and replace all", so that a word or a sentence can be changed throughout the whole wiki. Can anybody point me to that?

212.66.80.17908:12, 23 November 2014

Extension:ReplaceText! Or you do that running an SQL query on the text table of your database - using the extension is probably the more secure choice.

88.130.120.515:05, 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
 
 

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.

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
First page
First page
Previous page
Previous page
Last page
Last page