# Project:Support desk

(Redirected from Support desk)
vde   Welcome to MediaWiki.org's Support desk, where you can ask MediaWiki questions!

There are also other places where to ask: IRC, mailing lists, Q&A etc.

## Post a new question

• MediaWiki
• PHP
• Database
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".
Start a new discussion

## Contents

Gadget on kk:wikipedia110:40, 3 July 2015
img_auth.php and additional images repo009:47, 3 July 2015
Backup: Extract database?409:34, 3 July 2015
Enhancing LaTex support on Wikiversity109:26, 3 July 2015
Moving to MSSQL221:37, 2 July 2015
Multiple fields in one drop down input019:07, 2 July 2015
Landing page after saving information via form019:03, 2 July 2015
Include files of de:wikipedia1114:38, 2 July 2015
Pages and users111:03, 2 July 2015
adding CSS at onBeforePageDisplay hook409:43, 2 July 2015
[RESOLVED] Some strange thing on pages906:08, 2 July 2015
Mantle returns error upgrading extension from 1.24 to 1.25 branch in Mediawiki 1.25.1402:06, 2 July 2015
Moving Files to /w Directory and Rewrite Rules019:12, 1 July 2015
[RESOLVED] File Upload Error918:06, 1 July 2015
Mediawiki Main Page016:44, 1 July 2015
How can i translate pages in this site to zh-hant?016:23, 1 July 2015
Utilizing MAGICWORD PATH314:54, 1 July 2015
how to get creator/owner of the created article712:34, 1 July 2015
 First page Previous page Next page Last page

Hi,

Several extensions I installed produce lists (PageViews, recent changes, etc...). They all do so by presenting the results in some table on screen. What I am looking for is a tool to download/export whatever list displayed on screen in these special pages into some file (CSV, whatever format ...) that then can be handled in Excel or any other application...

Till now, in the vast list of extensions I never found such a tool. Does such a thing exist ? Could you point out to me where to find it or how to do this ....

thanks,

14:13, 3 July 2015

Why this gadget doesn't work on KazWiki?

21:10, 2 July 2015

Done!

10:40, 3 July 2015

## img_auth.php and additional images repo

Hi,

Our image folder has automatic hashing configured. Additionally we have a separate folder "images/staffimages" used by our own implemented extension. Now we'd like to hide direct links to the images with img_auth.php. The settings work fine so far for everything hashed in the MW repo. However images in our "staffimages" repo become not accessible anymore. Is there a way e.g. via apache2/Aliases or a LocalSettings.php directive to also cover our separate repo "staffimages" by the img_auth.php?

When I open a page having staffimages, first a rectangle of the correct size of the image opens, then disappears. In the log I see (sry, can't connect from this machine, so no copy of the orig text available): wfForbidden Hdr: access denied .../staffimages/abc_123123.jpg does not exist.

images/.htaccess:
Deny from All

LocalSettings.php:
$wgHashedUploadDirectory = true;$wgUploadDirectory = "images";
$wgUploadPath = "/img_auth.php"; sry, the wiki is only internally used, so no link. :/ MediaWiki: 1.25.1 Server: Ubuntu 14.04.2 LTS mysql-server: 5.5.43-0ubuntu0.14.04.1 php5: 5.5.9+dfsg-1ubuntu4.9 Thanks in advance 176.10.108.509:47, 3 July 2015 ## Backup: Extract database? I have the following situation: Server HDD crash with just a backup of the mysql data base. The former admin is not available anymore and we have no knowledge of MySQL or PHP, Media wiki is some older version from ~2010. I can see all the wiki pages in mysql\data\wiki\text.MYD. However it is one huge file with 1.3 million lines and it contains every version of every page. Is it possible to extract the wiki pages in some useful form? 84.143.94.12313:39, 25 June 2015 In order to set up the wiki again, you need two things: The wiki files (the MediaWiki source code, best would be exactly that version, which you had before, and custom things in your install like uploaded images and the LocalSettings.php file) and secondly the database. If you have the complete mysql/data/ folder, you might be very lucky. I guess that with all files from there, you should be able to restore the whole database. Reading up here http://stackoverflow.com/questions/879176/how-to-recover-mysql-db-from-myd-myi-frm-files makes it sound like it is simple to restore the tables, if they were of the MyISAM type (= you have .myd, .myi and .frm files). If you have InnoDB types, you have to do some additional magic, see http://stackoverflow.com/questions/10934745/restore-the-mysql-database-from-frm-files. 88.130.101.15514:40, 25 June 2015 Edited by 2 users. Last edit: 05:42, 27 June 2015 Thank you! I was able to set up xampp on a local pc, copy the old mysql database to mysql\data\ and run mysql with --skip-grant-tables to disable the password check. Then I could open this database in the current version of mediawiki without problem and save all pages I needed. 84.143.94.17506:53, 26 June 2015 Okay, turns out there is one problem left: Every wiki page that contains a special character like ü, ä, ö is now missing. For example the page "Technik" is now accessible but "Übersetzen" is now red and missing. Is there some kind of text encoding option that I have to change? 84.146.102.8305:29, 3 July 2015 Maybe you need to set$wgDBTableOptions to specify the correct charset. But that may be hard to know beforehand. If it was an old installation, it may be latin1, or utf8, or who knows...

09:34, 3 July 2015

## Enhancing LaTex support on Wikiversity

I would like to enhance the MediaWiki support on Wikiversity so that the following works: $$\label{squ} \D := \vcenter{\xymatrix @=3pc {S \ar @<1ex> [r] ^{s^1} \ar @<-1ex> [r] _{t^1} \ar @<1ex> [d]^{\, t_2} \ar @<-1ex> [d]_{s_2} & H \ar[l] \ar @<1ex> [d]^{\,t} \ar @<-1ex> [d]_s \\ V \ar [u] \ar @<1ex> [r] ^s \ar @<-1ex> [r] _t & M \ar [l] \ar[u]}},$$

The expression is put between <:math>[/itex].

Any help, suggestions, comments, or criticisms are welcome.

01:08, 2 July 2015

If there's something that needs to be changed on Math extension, you have to request it on Phabricator. See BUGREPORT.

09:26, 3 July 2015

## Moving to MSSQL

Hi all,

I'm running MW1.17 on IIS7 and MySQL server for now. I need to move the database to our company Microsoft SQL Server 2008.

I tried the MS Migration Assistant, but it failed.

In the SQL Management Studio I tried to import the table definitions form maintenance/mssql/tables.sql, but it failed with error Msg 156, Level 15, State 1, Line 33 Incorrect syntax near the keyword 'user'.

Can somebody help me?

94.113.242.6614:20, 7 November 2011

Hi, you have to modify the file Database.php, function: fieldNameWithAlias, line 2566, you have to put the brackets in the alias.

return $name . ' AS ' .$alias;

for this

return $name . ' AS [' .$alias.']';

a bit late, lol

89.167.129.5014:10, 2 July 2015

Honestly, I would say: You have to install MySQL. While MediaWiki should theoretically support MSSQL, this support compared to MySQL is way less mature. You should expect a variety of things to be not working or having bad performance, just because not so many people use MediaWiki with MSSQL and because it's optimized for MySQL, likely with InnoDB tables in mind.

So, if you want to solve this issue properly, use MySQL. This is the real fix.

31.150.179.23021:37, 2 July 2015

## Multiple fields in one drop down input

Is there a way to include more than one category/property as values to input in a combobox? For example: I want to be able to find a name of a person in this combobox by typing in other fields such as their ID along with typing in their name?

159.53.78.14319:07, 2 July 2015

## Landing page after saving information via form

Hi,

I have a page that includes a form to manually add and save data to the page. Once I click on the link to the form, fill it out, and save it, it goes back to a different landing page than the base page (with the link to the form). I want it to go back to the original page that i accessed the form link from. Any help would be greatly appreciated.

159.53.78.14319:03, 2 July 2015

## Include files of de:wikipedia

My version is 1.23.6 Till today morning I used nearby of commons-files files from de-wikipedia. But since few hours only "Es ist keine Datei dieses Namens vorhanden." No file with this name exists appears and not a connection to the wikipedian file exist. As sample http://regiowiki.at/wiki/Datei:Logo_Polizei_AT.svg works okay. In our Localsettings.php nothing of changes were made. So perhaps some changes from Wikipedia-de. Perhaps somebody knows more thx in advance

12:58, 16 June 2015

Sounds to me like you have the same issue as this user here: Thread:Project:Support_desk/InstantCommons_suddenly_is_not_working

For him the "solution" was to wait and the issue fixed itself. Somehow...

88.130.116.3014:38, 16 June 2015

17:02, 16 June 2015

I have tried it with 'https://de.wikipedia.org/w/api.php', - but the problem is not solved. Commons works okay. --

20:35, 16 June 2015

In the meantime the commons doesn't work too :-(( - but with a little difference. With commons the link to the image appears and with clicks I can reach the file. Other in wikipedia - not a link appears. You can see it at mainpage of http://regiowiki.at --

04:52, 18 June 2015

Also see Manual:$wgForeignFileRepos. It is important to use HTTPS and not HTTP in the links pointing to the Wikipedia commons. The Wikimedia guys have changed their setup, redirecting people from HTTP to HTTPS and this change basically caused the issue we got reported here. This change has been reverted for now (so that it's again working also with HTTP), but it is still planned to switch to HTTPS in the future (see task T102566). The solution is to use HTTPS in the URLs pointing to the commons repository!$wgForeignFileRepos has to be adjusted accordingly! See Manual:$wgForeignFileRepos! 88.130.116.21412:55, 20 June 2015 I set this in the localsettings:$wgForeignFileRepos[] = array(

  'class'                   => 'ForeignAPIRepo',
'name'                    => 'commonswiki', // Must be a distinct name
'apibase'                 => 'https://commons.wikimedia.org/w/api.php',
'hashLevels'              => 2,
'fetchDescription'        => true, // Optional
'descriptionCacheExpiry'  => 43200, // 12 hours, optional (values are seconds)
'apiThumbCacheExpiry'     => 86400, // 24 hours, optional, but required for local thumb caching
);


then I try with

$wgUseInstantCommons = yes and no have the same effect - a link will be created but not a thumb will be created //$wgUseInstantCommons = ; -> not a link is created
14:56, 20 June 2015

## Pages and users

Hello. I installed new Mediawiki but I forgot to protect registration process so many boots users have registered and created many pages.

How to delete pages and users permanently?

06:15, 2 July 2015

Things that may be useful:

11:03, 2 July 2015

Hi all, I am trying to upgrade to the latest version. Using Putty I run the update.php script : ngw.nl@one.com/www/heraldrywiki$php maintenance/update.php I then get : Set$wgShowExceptionDetails = true; in LocalSettings.php to show detailed debugging information. I did that, but nothing happens, I keep getting the same message. What is this and how to continue ?

145.53.133.13606:07, 2 July 2015

## adding CSS at onBeforePageDisplay hook

Hello,

In an extension Im working on, I add additional modules containing CSS at the onBeforePageDisplay hook. The problem is that when the page loads, first the normal mediawiki CSS is displayed for a milisecond, and only after this my CSS is loaded.. which doesn't look too nice. How can I resolve this? Thanks :]

146.175.202.3014:02, 25 June 2015

But are you adding a style block, or an external stylesheet ? Can you give links perhaps ?

20:25, 28 June 2015
Edited by another user.
Last edit: 15:52, 30 June 2015

Thanks for the reply :] Im adding an external stylesheet. The idea of what I want is simple: I have a custom SpecialPage on which I have added HTML buttons and I want to change the way these buttons look like. So I want to load a custom .css file only when the user lands on my SpecialPage. Unfortunately I have not uploaded my code to the web yet, so I can't give you a link, but my basic code for the hook looks like this:

  public function onBeforePageDisplay(OutputPage &$out, Skin &$ski ){

$page_title =$out->getPageTitle();

if($page_title === 'My SpecialPage Title Name'){$out->addModules("ext.myModule");
}

return true;
}


ext.myModule then retrieves a small .css file with the changes I want for my buttons:

#button{
width: 30em;
height: 1.5em;
cursor: pointer;
}

#letter_button{
cursor: pointer;
}

62.205.118.23716:53, 29 June 2015

Could it have something to do with that mw.loader.load(); is called at the bottom of the HTML page? When I just add my css using normal <style> </style> blocks, and $out->addHTML the CSS loads immediately 146.175.202.3014:53, 1 July 2015 You are using JavaScript to load your styles, so they aren't loaded immediately. Use addModuleStyles. 121.219.253.3609:43, 2 July 2015 ## [RESOLVED] Some strange thing on pages Hello. I created a new MediaWiki using my old database. But after that I have displaying pages in wrong way. Could anybody help me? 10:31, 24 June 2015 This is usually caused by an unclosed HTML element (div, table, etc), or even a closing element that has no matching start element (effectively closing too early a previous element of the page. Check the HTML codes of the page or templates. 11:42, 24 June 2015 Not sure. In my old database that page was OK. I check all and all looks OK. Look on that page too http://wiki.westeros.pl/index.php?title=Szablon:Navbox_generic/doc 12:16, 24 June 2015 If you inspect the generated HTML (better if you download the page as raw, since browser may auto-correct mismatched tags and change the original HTML) you'll see that it outputs several encoded HTML because it's not generating it properly [1] (search for &lt;) I think those and  tags shoud be using wiki tables instead. 17:31, 24 June 2015 Yeah. So what should I do? Install some extension? Looks like that bug: https://phabricator.wikimedia.org/T38059 I copy that page http://wiki.westeros.pl/index.php?title=Wojna_Pi%C4%99ciu_Kr%C3%B3l%C3%B3w from that site (Mediawiki 1.24.1) http://awoiaf.westeros.org/index.php/War_of_the_Five_Kings And there evrything is OK. 19:07, 24 June 2015 I've exported the page of wiki.westeros.pl on my test 1.23 wiki and it rendered broken as well 15:17, 26 June 2015 ## Mantle returns error upgrading extension from 1.24 to 1.25 branch in Mediawiki 1.25.1 In mobile view on my wiki: wiki.gamepaduniverse.com the mobile view isn't display correctly. The search box doesn't look right, the site notification is now displayed at top, and there is no edit bar anymore. How to correct? My Mobile Frontend extension and Mantle extension are up-to-date at version 1.25. I am using Mediawiki 1.25.1 and Windows Server 2012 R2 17:27, 13 June 2015 It seems you edited the code of MobileFrontend? Just for completeness: If you use a new download of MobileFrontend (without editing files in it), does it work? 10:04, 16 June 2015 No, I get the same result. I don't believe I have ever modified anything in that extension's directory. 20:22, 20 June 2015 Resolved 01:01, 2 July 2015 How? Why? 88.130.76.19202:06, 2 July 2015 ## Moving Files to /w Directory and Rewrite Rules MediaWiki 1.24.1 PHP 5.3.29 (apache2handler) MySQL 5.1.56-log When we initially set up our MediaWiki installation, we did so without having initially created a /w directory, thus having MediaWiki in the root directory. Now, after the fact, we've decided that we would like to move the file structure into a /w directory. We've done so, but are having issues with page redirects. We've gotten pages formatted this way to properly redirect: http://www.progresspedia.org/index.php/ We cannot figure out how to get these to properly redirect, however: www.progresspedia.org/index.php?title= Any assistance would be greatly appreciated. Thanks! Jordan Barden (talk) 19:12, 1 July 2015 (UTC) 19:12, 1 July 2015 ## [RESOLVED] File Upload Error Good morning. I seem to be having some issues. I get the following when trying to upload a file: Internal Error [3a9c03ba] 2015-02-15 15:37:53: Fatal exception of type MWException Any help would be appreciated. 71.31.165.10615:39, 15 February 2015 Please add $wgShowExceptionDetails = true; to your LocalSettings.php to see the ful error message and a stack trace. This error message and stack trace you should post here :)

16:24, 15 February 2015

I just got that enabled: [94bbdfd6] /index.php/Special:Upload Exception from line 1871 of /var/www/html/includes/filerepo/file/LocalFile.php: Could not acquire lock for 'Doink.png.'

Backtrace:

1. 0 /var/www/html/includes/filerepo/file/LocalFile.php(1174): LocalFile->lock()
6. 5 /var/www/html/includes/specialpage/SpecialPageFactory.php(584): SpecialPage->run(NULL)
7. 6 /var/www/html/includes/MediaWiki.php(275): SpecialPageFactory::executePath(Title, RequestContext)
8. 7 /var/www/html/includes/MediaWiki.php(584): MediaWiki->performRequest()
9. 8 /var/www/html/includes/MediaWiki.php(435): MediaWiki->main()
10. 9 /var/www/html/index.php(46): MediaWiki->run()
11. 10 {main}
71.31.165.10616:52, 15 February 2015
10:31, 16 February 2015

This is happening to me also on a fresh install on Centos 7 (3.10.0-123.el7.x86_64)

MediaWiki 1.24.1 PHP 5.4.37 (apache2handler) MySQL 5.6.23

I set these debug options in LocalSettings.php:

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

$wgShowSQLErrors = true;$wgDebugDumpSql  = true;
$wgShowExceptionDetails = true;$wgShowDBErrorBacktrace = true;


Backtrace:

#0 /var/www/html/mediawiki-1.24.1/includes/filerepo/file/LocalFile.php(1174): LocalFile->lock()
#5 /var/www/html/mediawiki-1.24.1/includes/specialpage/SpecialPageFactory.php(584): SpecialPage->run(NULL)
#6 /var/www/html/mediawiki-1.24.1/includes/MediaWiki.php(275): SpecialPageFactory::executePath(Title, RequestContext)
#7 /var/www/html/mediawiki-1.24.1/includes/MediaWiki.php(584): MediaWiki->performRequest()
#8 /var/www/html/mediawiki-1.24.1/includes/MediaWiki.php(435): MediaWiki->main()
#9 /var/www/html/mediawiki-1.24.1/index.php(46): MediaWiki->run()
#10 {main}


Also, this error appears on-screen after the failed upload (with the above debugging options on):

Warning: fopen(/var/www/html/mediawiki-1.24.1/images/lockdir/dmzfox3ljn7ipsdr0zlw44nwle1qlbp.lock): failed to open stream: No such file or directory in /var/www/html/mediawiki-1.24.1/includes/filebackend/lockmanager/FSLockManager.php on line 125

Warning: failed to mkdir "/var/www/html/mediawiki-1.24.1/images/lockdir" mode 0777 [Called from wfMkdirParents in /var/www/html/mediawiki-1.24.1/includes/GlobalFunctions.php at line 2582] in /var/www/html/mediawiki-1.24.1/includes/debug/MWDebug.php on line 302


If you set a debug.log up, this seems to be the relevant tidbit:

[warning] failed to mkdir "/var/www/html/mediawiki-1.24.1/images/lockdir" mode 0777 [Called from wfMkdirParents in /var/www/html/mediawiki-1.24.1/includes/GlobalFunctions.php at line 2582]
[warning] failed to mkdir "/var/www/html/mediawiki-1.24.1/images/lockdir" mode 0777 [Called from wfMkdirParents in /var/www/html/mediawiki-1.24.1/includes/GlobalFunctions.php at line 2582]
[warning] failed to mkdir "/var/www/html/mediawiki-1.24.1/images/lockdir" mode 0777 [Called from wfMkdirParents in /var/www/html/mediawiki-1.24.1/includes/GlobalFunctions.php at line 2582]
[warning] failed to mkdir "/var/www/html/mediawiki-1.24.1/images/lockdir" mode 0777 [Called from wfMkdirParents in /var/www/html/mediawiki-1.24.1/includes/GlobalFunctions.php at line 2582]
[warning] failed to mkdir "/var/www/html/mediawiki-1.24.1/images/lockdir" mode 0777 [Called from wfMkdirParents in /var/www/html/mediawiki-1.24.1/includes/GlobalFunctions.php at line 2582]
[warning] failed to mkdir "/var/www/html/mediawiki-1.24.1/images/lockdir" mode 0777 [Called from wfMkdirParents in /var/www/html/mediawiki-1.24.1/includes/GlobalFunctions.php at line 2582]
[warning] failed to mkdir "/var/www/html/mediawiki-1.24.1/images/lockdir" mode 0777 [Called from wfMkdirParents in /var/www/html/mediawiki-1.24.1/includes/GlobalFunctions.php at line 2582]
[warning] failed to mkdir "/var/www/html/mediawiki-1.24.1/images/lockdir" mode 0777 [Called from wfMkdirParents in /var/www/html/mediawiki-1.24.1/includes/GlobalFunctions.php at line 2582]
[warning] failed to mkdir "/var/www/html/mediawiki-1.24.1/images/lockdir" mode 0777 [Called from wfMkdirParents in /var/www/html/mediawiki-1.24.1/includes/GlobalFunctions.php at line 2582]
[exception] [2c79a15b] /index.php/Special:Upload   Exception from line 1871 of /var/www/html/mediawiki-1.24.1/includes/filerepo/file/LocalFile.php: Could not acquire lock for 'Images_(18).jpg.'


So, I think it's a permissions thing in general and maybe an SELinux thing in particular? But I can't figure it out. I've set the images dir chmod -R 777. Any idea what's up here?

2601:7:1C00:911:5824:F046:6C6D:DDE1 Nathan in Portland05:35, 19 February 2015

If you think it's a SELinux problem, try disabling it and see if upload works.

10:42, 19 February 2015

## Mediawiki Main Page

Hi folks,

Currently, I have a like icon which display on every page. But right now I would like it to display on all other pages except the main page

My code to display the like icon is here (https://dpaste.de/ENfm)

On line 470 is where I check if it is a main page, but I am having issue. It is giving me the error (PHP Fatal error: Using $this when not in object context) On line 32 is where the method is being declared. How should I check if it is a main page. Using parser? Using outputToHTML? Please advise. Greatly appreciated! Thanks all! Newbie16:44, 1 July 2015 ## How can i translate pages in this site to zh-hant? How can i translate pages in this site to zh-hant? All the pages i translated to zh-hant has been deleted by FuzzyBot. https://www.mediawiki.org/wiki/Download/zh-hant https://www.mediawiki.org/wiki/How_to_contribute/zh-hant https://www.mediawiki.org/wiki/Manual:What_is_MediaWiki%3F/zh-hant 16:23, 1 July 2015 ## Utilizing MAGICWORD PATH I have a external path as such: [file://\\network\shared folder\application file\] i would like to use string but only to insert the empty space with %20, and not replacing \ i tried [file://%5C%5Cnetwork%5Cshared%20folder%5Capplication%20file%5C] it converts all the \\ and spaces. What can i do to just convert spaces to %20? 71.67.124.17403:39, 30 June 2015 What magic word are you using and why? 15:55, 30 June 2015 Edited by another user. Last edit: 14:43, 1 July 2015 I have enable the following: https://www.mediawiki.org/wiki/Manual:$wgUrlProtocols When i link an external link through Visual Editor: [file://\\network\shared folder\application file\] , this will not work because it will get concatenated at the space because it can't recognize space but %20 instead: file://\\network\shared.

I tried using {{urlencode:string|PATH}}, but it replaces my \\ with %5C as well. I would only like the code to replace spaces with %20. Doing this [file://{{urlencode:\\network\shared folder\application file\|PATH}}]; result in : file://%5C%5Cnetwork%5Cshared%20folder%5Capplication%20file%5C And the browser does not recognize %5C

206.51.148.213:50, 1 July 2015

Apparently, urlencode with PATH won't work, because it encodes "/" characters, which from my understanding it shouldn't.

You should use forward slashes in URLs, and it should end with 5 forward slashes at the start: file://///network/shared%20folder/application%20file.

Try to not use spaces in URLs, or use URLENCODE on every segment of the URL, not on the whole URL.

14:54, 1 July 2015

## how to get creator/owner of the created article

Hi all,

I would like to ask is it possible to get the author/owner/creator of the article created? Is it to use wgUser?

Thanks all for your kind assistance and time!!!!

Hi!

When you speak of the "creator" of an article, I guess that you then mean the user, who created the first revision of that article, right?

When and where do you want to get that information? Somewhere inside PHP obviously... But where should it be used? Maybe you find an according method inside the article object...

88.130.81.11217:18, 28 June 2015

Hi,

I really appreciated your response! Yes, you are correct. I want to get the user who created the first revision of that article. I have already retrieved the title but I am not sure on how to retrieve the user (http://postimg.org/image/oj3ybel2x/) . I want it to be displayed like that.

Just to add on, the "Requests:" is a namespace and the title is displayed on the main page using the newestpage extension. I used Special:Newestpages/Requests/5

I tried to look at the link you provided but could not see any documentation that would aid me in getting the creator.

03:23, 29 June 2015

You need to access a WikiPage class for that page and use the getOldestRevision method. It returns a Revision class that you can use to get the user. You can navigate the documentation for this.

15:40, 30 June 2015

I managed to get the author of the article but I am facing another issue now. :(

Right now, I am retrieving the content of the article and displayed on my main page. But it is giving me the html format instead. (As seen in this picture: http://i62.tinypic.com/99mlvd.png) It is showing me == (text here) == instead of the header.

I have my full code here (https://dpaste.de/ro3r#L329). I've tried to output \$wgOut->addWikiText on line 197, but it is giving me weird characters as shown here (http://i60.tinypic.com/eslrhy.png)

I have also tried implementing parser as seen in line 133 but it is not going into that function. Why is that so?

Really really appreciated your response and time and help and everything!!!!! Thank you so much!!!!!!!

16:10, 30 June 2015

As said in QINU fix, apparently you need to use the method recursiveTagParse of the parser

16:44, 30 June 2015

 First page Previous page Next page Last page