Project:Support desk/Flow/2015/06

This page is an archive.
Please ask questions on the current support desk.
Category:Support desk archives#Flow%20Archive%20Support%20desk/Flow/2015/06

MW file upload mechanism? How image uploaded to mw?

Hi everyone,

I am using varnish with multiple MW instance for a site. Now I need the varnish catch the image upload and forward entire upload process to one main server, which require some characteristic of image upload to distinguish.

Are there any document talk about how image upload from browser to server?

Any info will help.

Thank you! Zoglun (talk) 16:38, 1 June 2015 (UTC)

Mediawiki contains a lot of useful shortcut that makes it easy and fast to write new articles, e.g. Ctrl+Alt+S (on Mac) to save a page.

Is there any shortcut for creating an internal link, so that it is possible to select a word, press the shortcut and then the and has been added around the word? 178.155.155.83 17:36, 1 June 2015 (UTC)

Only in VisualEditor. —TheDJ (Not WMF) (talkcontribs) 11:26, 2 June 2015 (UTC)

Moving local user page to global

How do I move my local userpage (every single one of them) to the global user page? Please post some kind of notice an enwiki when responding. Oiyarbepsy (talk) 19:40, 1 June 2015 (UTC)

You can do that by manually adding the contents of the local pages to the page, which you call global page and then make the local pages redirect the visitors to your global page. 88.130.64.92 20:38, 1 June 2015 (UTC)

stats.grok.se

Is there anybody who can fix this important tool? (https://github.com/abelsson/stats.grok.se). It does´t work anymore since May 23, 2015. Henrik seems to be offline since 2014 August. Thanks. Partynia (talk) 07:13, 2 June 2015 (UTC)

You're right. Someone needs to update this tool. Suriyaa Kudo (iSC Inc.) (talk) 07:23, 2 June 2015 (UTC)
Henrik has been asking for people to take this over for some 3 years now. My only conclusion is that apparently people are not interested. —TheDJ (Not WMF) (talkcontribs) 11:25, 2 June 2015 (UTC)

Installing infobox - getting error "Lua error: Internal error: The interpreter has terminated with signal "11"."

Hi,

I'm very new to mediawiki so have just been reading guide after guide. I'm trying to install my first extension - infobox. However keep having error after error.

I'm running MediaWiki 1.25.1 PHP 5.5.24 (cgi-fcgi) MySQL 5.5.40-36.1-log Lua 5.1.5


Everything seemed to install fine, however i just get this error

Lua error: Internal error: The interpreter has terminated with signal "11".

Looking up guides say i need to manually set the lua path - however this just results in given another error (The interpreter exited with status 126.) which outputs an error in the log file that says it can't find this folder.

I have added the following to my LocalSettings.php

require_once "$IP/extensions/Scribunto/Scribunto.php"; $wgScribuntoDefaultEngine = 'luastandalone';

    1. $wgScribuntoEngineConf['luastandalone']['luaPath'] = '/usr/bin/lua';

$wgScribuntoEngineConf['luastandalone']['memoryLimit'] = 209715200; # bytes $wgScribuntoEngineConf['luastandalone']['errorFile'] = 'tmp/lua.log';

I've already contacted my hosting provider to no avail with fixing the issue.

Please help!

Andy Farril (talk) 09:38, 2 June 2015 (UTC)

error in google webmaster then run generateSitemap.php

Hi, I run generateSitemap.php by following code:

php maintenance/generateSitemap.php \
  --fspath sitemap \
  --server http://mydomain.org \
  --urlpath http://mydomain.org/sitemap

in maintenance directory sitemao folder is created automatically, too me moved all file by extin xml.gz and .xml in sitemap in root directory in end google webmaster add sitemap by sitemap/sitemap-index-...._mediawiki.xml but receive Warnings URLs not accessible that:
When we tested a sample of the URLs from your Sitemap, we found that some URLs were not accessible to Googlebot due to an HTTP status error. All accessible URLs will still be submitted
is description this Warnings URLs not accessible.What I do? WikiMech (talk) 12:53, 2 June 2015 (UTC)

Check the error logs of the server to see what URLs got a HTTP status error and why. Ciencia Al Poder (talk) 17:19, 2 June 2015 (UTC)

Mediawiki: wrong Template is shown in the article

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


I added {{Testbox}} to an article, a template I created before.

after saving you see in the article: "Vorlage:Infobox"

efore that, I created and deleted a template with the name "infobox", but I deleted it and added than the other template, but I always get "Vorlage:Infobox"

What do I have to do to show the other template? 2A02:8108:2580:20C:781D:9353:25E1:A6F0 14:49, 2 June 2015 (UTC)

Be sure you don't have a call to Template:Infobox inside Template:Testbox.
At the bottom of the edit page it should be a section called "templates used in this page" or similar. Look at them and open one by one until you find it. Ciencia Al Poder (talk) 17:21, 2 June 2015 (UTC)
thank you for your help, Ciencia!
in the list below of the edit page both templates are listed: template:Infobox and template:testbox
But In the editorsection I just added one template: {{testbox}}
So how can I remove the template?
Thanks a lot in advance 2A02:8108:2580:20C:B109:EA22:5454:A6A0 07:38, 3 June 2015 (UTC)
As I said, edit every template used and look again if it in turns includes template:Infobox Ciencia Al Poder (talk) 09:30, 3 June 2015 (UTC)
thanks again,
that is what I already did:
  • created a new article
  • added the template:textbox
  • save
  • read: template:infobox
  • go to edit again: I see that both templates are listed, although I added only one!
Another question as an administrator:
How can I delete a template completley? 2A02:8108:2580:20C:9188:F32:1A04:B60C 13:08, 3 June 2015 (UTC)
You're editing the article, again, not the template, which is what I'm saying.
See Help:Deleting Ciencia Al Poder (talk) 19:55, 3 June 2015 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

CSS missing from page after removing index.php from url

I have been at this for a while and i have finally got it working..somewhat. I have a subdomain and a normal php site at the root. I want to be able to go to sub.domain.com/wiki and it will load up mediawiki. I have done this by creating an alias in apache.

Alias /wiki "/var/www/html/mediawiki/index.php"

Inside my loadsettings.php file i have

$wgScriptPath = "/";
$wgArticlePath = "/wiki/$1";
$wgUsePathInfo = true;

This is working. The url looks correct and data is displaying, but all CSS is missing. What have i done wrong? 95.45.224.137 15:43, 2 June 2015 (UTC)

I guess that you currently can no longer access CSS styles, which are delivered by the load.php file. If this is your problem, then you should add an exception for this file to .htaccess so that calls to load.php are not redirected to MediaWiki, but that they are just left they way they are.
See Manual:load.php and Short URLs for a complete guide! 88.130.86.234 17:17, 2 June 2015 (UTC)
You say you have a normal php site at the root, but you also have $wgScriptPath set to the root directory. That assumes MediaWiki is installed at the root, but that's not true because you have an alias for /wiki, so it should be /wiki instead.
$wgArticlePath may not be right, also, if you don't have rewrite rules. Ciencia Al Poder (talk) 17:42, 2 June 2015 (UTC)

Mobile Apps for Mediawiki - Any success / walkthroughs / advice ?

Has anyone taken the wikipedia ios & android source code and adapted it for their own site(s) ?

If so, is there any write up on this?

Couldn't find anything on this and the Mobile team doesn't seem to have made any updates since 2013 so not sure where best to talk about this - any suggestions? bb2 19:02, 2 June 2015 (UTC)

The quest roving elves might be glitched

I was trying to complete the quest Roving Elves and after i killed the 4 bosses i have to take the todo list to Arianwyn. I looked at the quest guide and went to where he is supposed to be located and he wasn't there. I cant find him anywhere. 216.137.216.183 01:39, 3 June 2015 (UTC)

Hi :) Unfortunately, this is the place to ask about the MediaWiki software, rather than the content of any wiki that runs on MediaWiki. As such, your question is quite a bit out of the scope of this wiki. Fortunately, you can look at wikia:rs:Roving Elves for your answer instead. However, Arianwyn doesn't appear in that quest so maybe you're confused with another? mdowdell (talk) 06:40, 3 June 2015 (UTC)

[solved]Category permissions extension how to main category can enter subcategory pages

Hi everyone

the title aint that accurate but ill explain

i want to create a main category "dad category" that can enter all the pages of his subcategories lets say i got category by the name "Dev" and subcategory by the name "QA" in QA i want to open a page and it will be readable by dev even though i did not create a permission in "category permissions" for "QA"

is this doable? and if not what extension can provide me with this service

thanks in advance! Asafm14567 (talk) 07:24, 3 June 2015 (UTC)

No, this is not doable in MediaWiki Ciencia Al Poder (talk) 09:36, 3 June 2015 (UTC)
ok thank you Asafm14567 (talk) 09:52, 3 June 2015 (UTC)
i installed HaloACL and it fixed it HaloACL using hierarchy structure so it works Asafm14567 (talk) 15:00, 3 June 2015 (UTC)

Maximalbreite

Mich stört es leider, dass die Auflösungen heutzutage immer größer werden. Daher denke ich, dass es angebracht wäre die Breite in meinem Wiki anzupassen. Mir ist aufgefallen, dass alle Skins eine Auto-Anpassung haben, jenachdem wie groß die Bildschirmauflösung ist. Ich möchte gerne das gesamte Wiki, welches ich leite, auf eine (Mindest)Breite von 1388px setzen. Weiß man denn, wo ich genau anfangen soll? Also bei uns ist der Monobook Skin aktiviert, also denke ich, dass es gut wäre da die Mindestbreite einzustellen. Ich weiß aber nicht, wie genau die CSS Regeln aussehen sollen. Ich habe als Test .body { width: 1388px } in Monobook.css eingegeben. Klappen tut es aber nicht ganz... Als ich zu einem größeren Bildschirm mit höherer Auflösung wechselte (1600px / 2000px), musste ich leider feststellen, dass #footer, #p-personal und div#content zusammengedrückt wurden und zu 100% nicht richtig positioniert wurden (sprich, dass alle drei nicht bis zum Ende [die rechte Seite] reichen). #p-personal wurde vollständig nach rechts geschoben. div#content setzte ich testweise auf div#content { width: 1150px }. Ich wäre euch sehr verbunden, wenn man mir hilft. :)

(notice: I dont have any problem, if you speak english) 2003:57:E368:1101:E09A:30C3:28FB:B82A 07:41, 3 June 2015 (UTC)

Mediawiki & Bluespice

MediaWiki: 1.25.1 PHP: 5.5.9-1ubuntu4.9 (apache2handler) MySQL: 5.5.43-0ubuntu0.14.04.1 BlueSpice for MediaWiki: 2.23.1

I have installed Bluespice for MediaWiki. When I now want to edit a page it only shows a white blank page.

Does anyone know how to fix this issue? 79.215.48.2 08:25, 3 June 2015 (UTC)

See Blank page Ciencia Al Poder (talk) 09:39, 3 June 2015 (UTC)

1.24 mediawiki, can't display 24bit .png file.

Dear Sir/Madam I am uploading a image which is saved as 24bit .png file, but it can't display on mediawiki(I am using version 1.24). The prompt error info is:

Warning: Unexpected character in input: '�' (ASCII=14) state=0 in /home/html/mediawiki/images/a/a2/H.png on line 148

Parse error: in /home/html/mediawiki/images/a/a2/H.png on line 148

Could you help?

Thanks 58.213.161.114 08:39, 3 June 2015 (UTC)

Does this happen for all images you try to upload? The parse error is a really strange one. Looks like MediaWiki is trying to parse a PNG image, but images aren't parseable AFAIK.
You may try to set a debug log and capture what's trying to do prior to the error. Ciencia Al Poder (talk) 09:42, 3 June 2015 (UTC)
Dear Ciencia AI Poder,
This happens for some images such as screenshots images which are caught thru keyboard (shift+PrtScn) and saved as 24 bit .png or .jpg file by mspaint tool. But if these screenshots images were same as 16 bit .png, they can be displayed in mediawiki.
Some images like the windows 7 system original images(.jpg) also can't display in mediawiki(no size limit issue in mediawiki, hava changed size limit).
But if I edit the windows 7 system original images thru mspaint tools and save the edited image as .jpg file, these edited images(.jpg) file can be displayed in mediawiki.
Due to some restriction to upload attachment by private network, I am trying to attach it in the website.
Attached debug trace of a failure displayed 24 bit .png image below: 58.213.161.114 09:06, 4 June 2015 (UTC)
58.213.161.114 09:06, 4 June 2015 (UTC)
Dear Ciencia AI Poder, This happens for some images such as screenshots images which are caught thru keyboard (shift+PrtScn) and saved as 24 bit .png or .jpg file by mspaint tool. But if these screenshots images were same as 16 bit .png, they can be displayed in mediawiki. Some images like the windows 7 system original images(.jpg) also can't display in mediawiki(no size limit issue in mediawiki, hava changed size limit). But if I edit the windows 7 system original images thru mspaint tools and save the edited image as .jpg file, these edited images(.jpg) file can be displayed in mediawiki.
Due to some restriction to upload attachment by private network, I am trying to attach it in the website. Attached debug trace of a failure displayed 24 bit .png image below:
 Debug data:
 •	
 o	
 	Start request GET /mediawiki/index.php?title=Special:Upload
 HTTP HEADERS:
 CONTENT-LENGTH: 
 ACCEPT: image/jpeg, application/x-ms-application, image/gif, application/xaml+xml, image/pjpeg, application/x-ms-xbap, application/x-shockwave-flash, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */*
 REFERER: http://109.123.121.197/mediawiki/index.php?title=Special:ListFiles
 ACCEPT-LANGUAGE: zh-CN
 USER-AGENT: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; Trident/6.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; InfoPath.3; .NET4.0E; MS-RTC LM 8)
 ACCEPT-ENCODING: gzip, deflate
 HOST: 109.123.121.197
 DNT: 1
 CONNECTION: Keep-Alive
 COOKIE: wikiUserName=Lihuachen; block-2=1; wikiEditor-0-booklet-characters-page=greek; wikiEditor-0-booklet-help-page=file; wikiUserID=1; wiki_session=957c74d0ecbb8653c936646ea47644e0 
 	[caches] main: EmptyBagOStuff, message: SqlBagOStuff, parser: SqlBagOStuff 
 	[caches] LocalisationCache: using store LCStoreDB 
 	Fully initialised 
 	User: cache miss for user 1 
 	Connected to database 0 at 109.123.121.197 
 	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 109.123.121.197 
 	MessageCache::load: Loading en... got from global cache 
 	Unstubbing $wgParser on call of $wgParser::firstCallInit from MessageCache::getParser 
 	Parser: using preprocessor: Preprocessor_DOM 
 	Unstubbing $wgLang on call of $wgLang::_unstub from ParserOptions::__construct 
 	User::getBlockedStatus: checking... 
 	UploadBase::createFromRequest: class name: UploadFromFile 
 	User::matchEditToken: broken session data 
 	ContextSource::getContext (UploadForm): called and $context is null. Using RequestContext::getMain() for sanity 
 	Start request POST /mediawiki/index.php?title=Special:Upload
 HTTP HEADERS:
 CONTENT-LENGTH: 841266
 ACCEPT: image/jpeg, application/x-ms-application, image/gif, application/xaml+xml, image/pjpeg, application/x-ms-xbap, application/x-shockwave-flash, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */*
 REFERER: http://109.123.121.197/mediawiki/index.php?title=Special:Upload
 ACCEPT-LANGUAGE: zh-CN
 USER-AGENT: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; Trident/6.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; InfoPath.3; .NET4.0E; MS-RTC LM 8)
 CONTENT-TYPE: multipart/form-data; boundary=---------------------------7df24a38303da
 ACCEPT-ENCODING: gzip, deflate
 HOST: 109.123.121.197
 DNT: 1
 CONNECTION: Keep-Alive
 CACHE-CONTROL: no-cache
 COOKIE: wikiUserName=Lihuachen; block-2=1; wikiEditor-0-booklet-characters-page=greek; wikiEditor-0-booklet-help-page=file; wikiUserID=1; wiki_session=957c74d0ecbb8653c936646ea47644e0 
 	[caches] main: EmptyBagOStuff, message: SqlBagOStuff, parser: SqlBagOStuff 
 	[caches] LocalisationCache: using store LCStoreDB 
 	Fully initialised 
 	User: cache miss for user 1 
 	Connected to database 0 at 109.123.121.197 
 	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 109.123.121.197 
 	MessageCache::load: Loading en... got from global cache 
 	Unstubbing $wgParser on call of $wgParser::firstCallInit from MessageCache::getParser 
 	Parser: using preprocessor: Preprocessor_DOM 
 	Unstubbing $wgLang on call of $wgLang::_unstub from ParserOptions::__construct 
 	User::getBlockedStatus: checking... 
 	UploadBase::createFromRequest: class name: UploadFromFile 
 	FSFile::getProps: Getting file info for /tmp/phpR1PA3N 
 	MimeMagic::__construct: loading mime types from /home/html/mediawiki/includes/mime.types 
 	MimeMagic::__construct: loading mime info from /home/html/mediawiki/includes/mime.info 
 	MimeMagic::doGuessMimeType: analyzing head and tail of /tmp/phpR1PA3N for magic numbers. 
 	MimeMagic::doGuessMimeType: getimagesize detected /tmp/phpR1PA3N as image/png 
 	MimeMagic::guessMimeType: guessed mime type of /tmp/phpR1PA3N: image/png 
 	MimeMagic::improveTypeFromExtension: improved mime type for .png: image/png 
 	FSFile::getProps: /tmp/phpR1PA3N loaded, 840202 bytes, image/png. 
 	UploadBase::detectScript: checking for embedded scripts and HTML stuff 
 	UploadBase::detectScript: no scripts found 
 	ZipDirectoryReader: Fatal error: zip file lacks EOCDR signature. It probably isn't a zip file. 
 	UploadBase::detectVirus: virus scanner disabled 
 	FSFile::getProps: Getting file info for /tmp/phpR1PA3N 
 	MimeMagic::doGuessMimeType: analyzing head and tail of /tmp/phpR1PA3N for magic numbers. 
 	MimeMagic::doGuessMimeType: getimagesize detected /tmp/phpR1PA3N as image/png 
 	MimeMagic::guessMimeType: guessed mime type of /tmp/phpR1PA3N: image/png 
 	MimeMagic::improveTypeFromExtension: improved mime type for .png: image/png 
 	FSFile::getProps: /tmp/phpR1PA3N loaded, 840202 bytes, image/png. 
 	UploadBase::verifyFile: all clear; passing. 
 	FSFile::getProps: Getting file info for /tmp/phpR1PA3N 
 	MimeMagic::doGuessMimeType: analyzing head and tail of /tmp/phpR1PA3N for magic numbers. 
 	MimeMagic::doGuessMimeType: getimagesize detected /tmp/phpR1PA3N as image/png 
 	MimeMagic::guessMimeType: guessed mime type of /tmp/phpR1PA3N: image/png 
 	MimeMagic::improveTypeFromExtension: improved mime type for .: image/png 
 	FSFile::getProps: /tmp/phpR1PA3N loaded, 840202 bytes, image/png. 
 	UploadStash::stashFile stashing file at '/tmp/phpR1PA3N' 
 	MimeMagic::guessMimeType: WARNING: use of the $ext parameter is deprecated. Use improveTypeFromExtension($mime, $ext) instead. 
 	MimeMagic::doGuessMimeType: analyzing head and tail of /tmp/phpR1PA3N for magic numbers. 
 	MimeMagic::doGuessMimeType: getimagesize detected /tmp/phpR1PA3N as image/png 
 	MimeMagic::guessMimeType: guessed mime type of /tmp/phpR1PA3N: image/png 
 	UploadStash::stashFile key for '/tmp/phpR1PA3N': 137e7y2qynig.an59iq.1.png 
 	UploadStash::stashFile inserting mwrepo://local/temp/e/e7/20150604100251!phpR1PA3N.png under 137e7y2qynig.an59iq.1.png 
 	DatabaseBase::query: Writes done: INSERT INTO `uploadstash` (us_id,us_user,us_key,us_orig_path,us_path,us_props,us_size,us_sha1,us_mime,us_media_type,us_image_width,us_image_height,us_image_bits,us_source_type,us_timestamp,us_status) VALUES (NULL,'X') 
 	ContextSource::getContext (UploadForm): called and $context is null. Using RequestContext::getMain() for sanity 
 	MimeMagic::guessMimeType: WARNING: use of the $ext parameter is deprecated. Use improveTypeFromExtension($mime, $ext) instead. 
 	MimeMagic::doGuessMimeType: analyzing head and tail of /home/html/mediawiki/images/temp/e/e7/20150604100251!phpR1PA3N.png for magic numbers. 
 	MimeMagic::doGuessMimeType: getimagesize detected /home/html/mediawiki/images/temp/e/e7/20150604100251!phpR1PA3N.png as image/png 
 	MimeMagic::guessMimeType: guessed mime type of /home/html/mediawiki/images/temp/e/e7/20150604100251!phpR1PA3N.png: image/png 
 	UploadStashFile::getThumbUrl getting for 120px-137e7y2qynig.an59iq.1.png 
 	File::transform: Doing stat for mwstore://local-backend/local-temp/e/e7/120px-137e7y2qynig.an59iq.1.png 
 	FileBackendStore::getFileStat: File mwstore://local-backend/local-temp/e/e7/120px-137e7y2qynig.an59iq.1.png does not exist. 
 	UploadStashFile::getThumbUrl getting for 120px-137e7y2qynig.an59iq.1.png 
 	TransformationalImageHandler::doTransform: creating 120x49 thumbnail at /tmp/transform_76d5ee8845af-1.png using scaler client 
 	LoadBalancer::getConnection: using server 109.123.121.197 for group logpager
 Debug data:
 •	
 o	
 	Start request GET /mediawiki/index.php?title=File:H.png
 HTTP HEADERS:
 CONTENT-LENGTH: 
 ACCEPT: image/jpeg, application/x-ms-application, image/gif, application/xaml+xml, image/pjpeg, application/x-ms-xbap, application/x-shockwave-flash, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */*
 REFERER: http://109.123.121.197/mediawiki/index.php?title=Special:Upload
 ACCEPT-LANGUAGE: zh-CN
 USER-AGENT: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; Trident/6.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; InfoPath.3; .NET4.0E; MS-RTC LM 8)
 DNT: 1
 ACCEPT-ENCODING: gzip, deflate
 HOST: 109.123.121.197
 COOKIE: wikiUserName=Lihuachen; block-2=1; wikiEditor-0-booklet-characters-page=greek; wikiEditor-0-booklet-help-page=file; wikiUserID=1; wiki_session=957c74d0ecbb8653c936646ea47644e0
 CONNECTION: Keep-Alive
 CACHE-CONTROL: no-cache 
 	[caches] main: EmptyBagOStuff, message: SqlBagOStuff, parser: SqlBagOStuff 
 	[caches] LocalisationCache: using store LCStoreDB 
 	Fully initialised 
 	Connected to database 0 at 109.123.121.197 
 	Title::getRestrictionTypes: applicable restrictions to [[File:H.png]] are {edit,move,upload} 
 	[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. 
 	Unstubbing $wgLang on call of $wgLang::getCode from MessageCache::getMessageFromFallbackChain 
 	Connected to database 0 at 109.123.121.197 
 	MessageCache::load: Loading en... got from global cache 
 	Unstubbing $wgParser on call of $wgParser::firstCallInit from MessageCache::getParser 
 	Parser: using preprocessor: Preprocessor_DOM 
 	MimeMagic::__construct: loading mime types from /home/html/mediawiki/includes/mime.types 
 	MimeMagic::__construct: loading mime info from /home/html/mediawiki/includes/mime.info 
 	File::transform: Doing stat for mwstore://local-backend/local-thumb/a/a2/H.png/946px-H.png 
 	FileBackendStore::getFileStat: File mwstore://local-backend/local-thumb/a/a2/H.png/946px-H.png does not exist. 
 	TransformationalImageHandler::doTransform: creating 946x390 thumbnail at /tmp/transform_c331396ed9aa-1.png using scaler client 
 	TransformationalImageHandler::doTransform: returning unscaled image 
 	File::transform: Doing stat for mwstore://local-backend/local-thumb/a/a2/H.png/946px-H.png 
 	TransformationalImageHandler::doTransform: creating 946x390 thumbnail at /tmp/transform_918325b1ad7d-1.png using scaler client 
 	TransformationalImageHandler::doTransform: returning unscaled image 
 	File::transform: Doing stat for mwstore://local-backend/local-thumb/a/a2/H.png/946px-H.png 
 	TransformationalImageHandler::doTransform: creating 946x390 thumbnail at /tmp/transform_1fe29a942391-1.png using scaler client 
 	TransformationalImageHandler::doTransform: returning unscaled image 
 	Article::view using parser cache: yes 
 	Parser cache options found. 
 	ParserOutput cache found. 
 	Article::view: showing parser cache contents 
 	File::transform: Doing stat for mwstore://local-backend/local-thumb/a/a2/H.png/120px-H.png 
 	FileBackendStore::getFileStat: File mwstore://local-backend/local-thumb/a/a2/H.png/120px-H.png does not exist. 
 	TransformationalImageHandler::doTransform: creating 120x49 thumbnail at /tmp/transform_3635f248e964-1.png using scaler client 
 	User::getBlockedStatus: checking... 
 	Title::getRestrictionTypes: applicable restrictions to [[File:H.png]] are {edit,move,upload} 
 	Title::getRestrictionTypes: applicable restrictions to [[File:H.png]] are {edit,move,upload} 
 	Title::getRestrictionTypes: applicable restrictions to [[File:H.png]] are {edit,move,upload}
58.213.161.114 09:10, 4 June 2015 (UTC)
Where do you see this warning in the page? I see File:H.png was uploaded successfully and also the file description page. Ciencia Al Poder (talk) 09:55, 4 June 2015 (UTC)
Dear Ciencia AI Poder,
When go to http://109.123.121.197/mediawiki/index.php?title=Special:ListFiles, then click the H.png.
In the page http://109.123.121.197/mediawiki/index.php?title=File:H.png , H.png can't be displayed.
Then click the H.png area which is supposed to display H.png, but it is indeed vacant area with nothing showing.
There will be blow info after clicked the H.png area:
 Warning: Unexpected character in input: '�' (ASCII=14) state=0 in /home/html/mediawiki/images/a/a2/H.png on line 148
 
 Parse error: in /home/html/mediawiki/images/a/a2/H.png on line 148
(Due to restriction to upload attachment, I can't scratch screenshot for you.)
Thanks 58.213.161.114 02:01, 5 June 2015 (UTC)
I wonder if your web server is trying to parse PNG files as PHP code, or something like that? Have you looked at the code of the PNG file and checked to see what is actually on line 148? Perhaps check you web server configuration. This, that and the other (talk) 05:31, 5 June 2015 (UTC)
Yes, that's most likely.
http://ask.metafilter.com/5767/I-switched-web-hosts-and-some-of-the-images-in-my-galleries-are-broken-throwing-strange-error-messages#120778
If that's true, your server may be in danger of being compromised, since any uploaded file that contains a sequence of "<?" characters, even if it doesn't have .php exension, will be interpreted by PHP, so anyone could take control your server.
Basically, it seems like PHP is being run on all files of your server. It should be mapped only to .php or .php5 files! Ciencia Al Poder (talk) 09:39, 5 June 2015 (UTC)
58.213.161.114 09:11, 4 June 2015 (UTC)

HELP! localSetting suddenly disappeard

I added some swgrouppermission to the localsettings, after saving the localsetting lost and I cant reach the side anymore... what can I do? What happend? 2A02:8108:2580:20C:9188:F32:1A04:B60C 14:01, 3 June 2015 (UTC)

the file localsettings disappeared? mabye when you left you accidently changed the name Asafm14567 (talk) 14:57, 3 June 2015 (UTC)
You can run the installer again to generate a new one. You would have to customize the configuration variables again, though. Ciencia Al Poder (talk) 20:54, 3 June 2015 (UTC)
Thanks again, Ciencia,
if I do so: Is than the already existing content lost?
Still have the questin: How can this happen?
I filled in this line:
$wgGroupPermissions['*']['edit'] = false;
I pasted the line 5 times, because I wanted to edit the rights
But before I edited the rights I saved, after that the localsetting-file was lost :-(
I edit the localsettings directly on the server
Thanks to all of you for your support 2A02:8108:2580:20C:5CE3:70F2:1F5C:3196 21:30, 3 June 2015 (UTC)
No, content in your wiki should then still be preserved. Anyway, the content of your LocalSettings.php file will be lost, meaning any customizations you did will be lost and you will have to do them again.
If you have a backup, jut restore the file from there! 88.130.115.87 21:50, 3 June 2015 (UTC)

[Solved]HaloACL changed my sidebar

Hello everyone

I just installed HaloACL successfully and after the installation my side bar changed and i enter the link to the side bar MediaWiki:Sidebar i can still see the changes i had but now all i see is the default settings that it comes with mediawiki

how to fix this??

thanks in advance! Asafm14567 (talk) 14:59, 3 June 2015 (UTC)

part of installing HaloAcl it requires to do this
$wgMainCacheType = CACHE_MEMCACHED;
$wgMemCachedServers = array('localhost:11211');
the cache messed it up i removed it and it fixed it Asafm14567 (talk) 15:23, 3 June 2015 (UTC)

can not save my comments here

After writing a comment here to a thread I can not save it. Mtimmer68 (talk) 15:28, 3 June 2015 (UTC)

But you just saved one here... Try to not put external links here, since if a captcha is required, I thing it won't show up properly. Or put URLs enclosed inside <nowiki></nowiki> Ciencia Al Poder (talk) 20:56, 3 June 2015 (UTC)

Upgrade and and Error: invalid magic [SOLVED]

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


Hi everyone. A few minutes ago I tried to upgrade from 1.24 to 1.25 by navigating to /mw-config/, however, when the procedure has to identify the existing version of MediaWiki, I get the following error.

[ad0b6b5c] /jurapedia/mediawiki/mw-config/?page=ExistingWiki MWException from line 337 of /home/cassoc/p03cw4/public_html/mediawiki/includes/MagicWord.php: Error: invalid magic word 'createpage'

Backtrace:

#0 /home/cassoc/p03cw4/public_html/mediawiki/includes/MagicWord.php(262): MagicWord->load(string)
#1 /home/cassoc/p03cw4/public_html/mediawiki/includes/parser/Parser.php(5182): MagicWord::get(string)
#2 /home/cassoc/p03cw4/public_html/mediawiki/extensions/CreatePage/CreatePage.php(88): Parser->setFunctionHook(string, Closure, integer)
#3 [internal function]: {closure}(Parser)
#4 /home/cassoc/p03cw4/public_html/mediawiki/includes/Hooks.php(209): call_user_func_array(Closure, array)
#5 /home/cassoc/p03cw4/public_html/mediawiki/includes/parser/Parser.php(310): Hooks::run(string, array)
#6 /home/cassoc/p03cw4/public_html/mediawiki/includes/parser/Parser.php(320): Parser->firstCallInit()
#7 /home/cassoc/p03cw4/public_html/mediawiki/includes/parser/Parser.php(5025): Parser->clearState()
#8 /home/cassoc/p03cw4/public_html/mediawiki/includes/parser/Parser.php(405): Parser->startParse(Title, ParserOptions, integer, boolean)
#9 /home/cassoc/p03cw4/public_html/mediawiki/includes/installer/Installer.php(630): Parser->parse(string, Title, ParserOptions, boolean)
#10 /home/cassoc/p03cw4/public_html/mediawiki/includes/installer/WebInstaller.php(676): Installer->parse(string, boolean)
#11 /home/cassoc/p03cw4/public_html/mediawiki/includes/installer/WebInstallerPage.php(392): WebInstaller->getInfoBox(string)
#12 /home/cassoc/p03cw4/public_html/mediawiki/includes/installer/WebInstallerPage.php(380): WebInstallerExistingWiki->showKeyForm()
#13 /home/cassoc/p03cw4/public_html/mediawiki/includes/installer/WebInstaller.php(280): WebInstallerExistingWiki->execute()
#14 /home/cassoc/p03cw4/public_html/mediawiki/mw-config/index.php(77): WebInstaller->execute(array)
#15 /home/cassoc/p03cw4/public_html/mediawiki/mw-config/index.php(36): wfInstallerMain()
#16 {main}

Any suggestion? Tanonero (talk) 15:53, 3 June 2015 (UTC)

Oh, no, it looks like a new instance of the problem of Extension:Babel... Disable that extension while upgrading, and enable it again, since it doesn't require database upgrade. Ciencia Al Poder (talk) 21:00, 3 June 2015 (UTC)
I've never neither installed nor enabled it. Is it by default? Tanonero (talk) 00:03, 4 June 2015 (UTC)
Look in LocalSettings.php and find a line that tries to load CreatePage, and comment it. Maybe it's bundled with MediaWiki and you can automatically enable from the installer but I can't remember. Ciencia Al Poder (talk) 09:46, 4 June 2015 (UTC)
Thanks, it worked. Tanonero (talk) 12:32, 4 June 2015 (UTC)
I couldnt find CreatePage in localsettings.php.I am using Mediawiki 1.27. Soumya.sadanandan (talk) 03:37, 17 March 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

[RESOLVED] Mediawiki 1.25.1 error: Class 'MWLoggerFactory' not found

I'm upgrading a site to 1.25.1 and am getting this error "PHP Fatal error: Class 'MWLoggerFactory' not found in /var/www/html/extensions/Math/MathRenderer.php on line 175" Any idea how to fix this? I have read about this on several areas & it seems it is a known issue with this upgrade. please poit me in the right direction. Jfoster81747 (talk) 16:49, 3 June 2015 (UTC)

Apparently it was fixed 6 days ago. Try downloading the extension again for MediaWiki 1.25 Ciencia Al Poder (talk) 21:03, 3 June 2015 (UTC)
Uh! Yep That was it. Thanks! 72.64.87.166 13:32, 10 June 2015 (UTC)

LDAP + Apache

Hi,

I would like to ask does the LDAP Authetication works with Apache Server? So far all the documentation that I read on LDAP tends to state configuration for IIS instead. Thanks! 2401:7400:C800:32AC:D06D:D721:A302:BA47 17:00, 3 June 2015 (UTC)

Hi, which documentation did you read (Links welcome) and what exactly have you tried so far?
And how is this related to MediaWiki? :) Malyacko (talk) 08:51, 4 June 2015 (UTC)
Hi Malyacko,
Thank you for your response.
My company wants to use the windows credentials to auto login to their mediawiki site. What I've managed to do is that users are now able to use the windows credentials to login to mediawiki (prompting them the login page)
I can't seem to get the auto login function working.
I've tried to put this code to enable auto login
list($dom,$userid) = split('[\]',$_SERVER['REMOTE_USER']);
$wgLDAPAutoAuthUsername = $userid;
AutoAuthSetup();
but php error is giving me the (Undefined index: REMOTE_USER) error. What should I do next? Thanks:) x 00:21, 5 June 2015 (UTC)

MediaWiki search index issue with existing contents and special character decoding issue with Page title

Hi All,

I have recently migrated the Mediawiki 1.12 to Mediawiki 1.25.1, Everything works good except few things. The 1st issue is that 3 characters or less keyword searching not gives result for existing data (old) but if I edit the page and try to put any new word and then it searches, so it means that I need to rebuild the existing search index. as per Mediawiki advice i.e. Searchindex may need to be repaired: In phpMyAdmin, enter "REPAIR TABLE wikidb.searchindex; " for rebuilding the search index. wikidb is your database's name, I did same thing but still same issue. Do I need to run the rebuildtextindex.php also, if yes how I do as I don't know how to run the individual php page. 2. I also facing special character decoding issue on page title - If I see the existing page on production (mediawiki 1.12) it shows proper page title i.e. Arm®, but if I see that in DEV server (mediawiki 1.25), then I see Arm® Naimish88 (talk) 20:44, 3 June 2015 (UTC)

You should first run a REPAIR TABLE statement in phpmyadmin. Then make sure that you have shell access. Via the shell, you can run PHP scripts like the rebuildtextindex.php file. If you can run PHP scripts, you should first TRUNCATE the searchindex table. This will empty it. After that, run the rebuildtextindex.php script. 88.130.115.87 21:53, 3 June 2015 (UTC)
My environment is Windows based and I am using XAMPP 5.6.8.
Might be it is silly question to ask but I am new in this technologies and really don't know how to run the php files, could anybody tell me how can I run the rebuildtextindex.php ? Naimish88 (talk) 12:46, 4 June 2015 (UTC)
If your server is running a Windows system, then you can run PHP scripts using the command line, for example like this:
 C:\> cd xampp
 C:\xampp\> php\php.exe htdocs\maintenance\rebuildtextindex.php
88.130.87.204 12:56, 4 June 2015 (UTC)
Getting Could not open input file: htdocs\maintenance\rebuildtextindex.php Naimish88 (talk) 13:28, 4 June 2015 (UTC)
I was successful to compiled the said php file, and rebuilt the existing search index. Now the search is working well.
Still not able to resolve the 2nd issue related to special character decoding issue of page title. Naimish88 (talk) 18:52, 4 June 2015 (UTC)
> page title i.e. Arm®, but if I see that in DEV server (mediawiki 1.25), then I see Arm®
Your second problem is a charset problem. If your plan is to upgrade the original server to MediaWiki 1.25 (as opposed to copying over your DEV instance), then you will most likely not have this problem on the original server.
Make sure that in MySQL in your DEV system you are using UTF-8 encoding - basically everywhere: For the different tables and the columns (especially the column page_title in the page table). Also make sure that the "character_set_*" variables in MySQL are set to UTF-8. This affects these variables:
character_set_client = utf8;
character_set_results = utf8;
character_set_connection = utf8;
Afterwards, when you query the page_title column with a tool like phpmyadmin, you should see the page titles encoded correctly. And when this is the case, MediaWiki should also be able to display them correctly again. 88.130.87.204 20:08, 4 June 2015 (UTC)
Hi,
On the Dev database server, I changed the wiki Database collation from'UTF8' to 'latin1_swedish_ci' same as existing PROD.
character_set_client = latin1_swedish_ci;
character_set_results = latin1_swedish_ci;
character_set_connection = latin1_swedish_ci;
Still I am facing the same issue.
In Prod, the Page title is Ag®, where as in my Dev, the page title still shows Ag®, from where that A is coming.
Any more pointer. Naimish88 (talk) 19:29, 24 June 2015 (UTC)
If I remember correctly, then changing the collation with COLLATE... does not only change the collation name, which MySQL uses to store stuff in the column. But changing the collation also makes MySQL convert content, which already is present in the column, from the old to the new collation. So basically: If content is displayed in one way before, then it should display the same way after changing the collation.
Apart from doing a COLLATE query to manipulate columns, you can also use a CONVERT query. The difference is (if I remember correctly), that CONVERT changes the actual content without changing the charset name of the column.
On your PROD system, doing a CONVERT is not what you want. There the content is actually displaying correctly. Note that MediaWiki expects the content to be UTF-8-encoded. Since MediaWiki displays the content correctly right now, it obviously is of the right charset already. Changing the collation from latin1_swedish_ci to utf8_general_ci should correct the wrong collation, while the content should still display correctly. Make sure you have a working backup before you try anything like that!
For your DEV system, ® is displayed as ®. According to http://www.i18nqa.com/debug/utf8-debug.html the problem is being caused by UTF-8 bytes being interpreted as latin1. (Other letters should be broken the same way.) So I believe that for the DEV system this can be "fixed" by converting the actual content of the columns. 88.130.78.198 23:26, 24 June 2015 (UTC)
The issue is resolved as there were only few pages, so I manually edited those page titles for page title character encoding issues.
For 3 character Search, I rebuild the search index. Naimish88 (talk) 15:19, 7 August 2015 (UTC)

Template:Listen - No Player for Embedded ogg File

Hello,

I'm working on a project for a client and having issues getting Template:Listen to function correctly. Both the template and it's accompanying module have been exported from Wikipedia and imported to the MediaWiki I'm working with. The "listen box" displays with links to the sound file I am trying to embed, but does not show a player or any option to play the sound file from the specific page I need it to work on. My code for the template looks like this:

{{Listen | filename = LK Wheezing Laugh.ogg | title = LK Wheezing Laugh | description = LK's "wheezing laugh" was a popular recurring staple in the ''Shoot of the Week'' series. | pos = right }}


This is what I get showing up instead of the speaker icon and the play button:

http://www.lordkayoss.com/wiki/index.php?title=Lord_Kayoss#Shoot_of_the_Week


Wondering what I am missing. Is there some kind of code that needs to be added to Commons or inserted into LocalSettings.php to get the box to display correctly and include the media player? Is there another template/module I need to export from Wikipedia? I'd much rather get this working correctly versus installing a new media player via an extension that doesn't fit the native Wiki theme. Any help would be greatly appreciated.

Thank you!

Version Info
MediaWiki 1.24.1
PHP 5.4.37 (cgi-fcgi)
MySQL 5.1.56-log
Lua 5.1.5

RigganRose (talk) 01:04, 4 June 2015 (UTC)

A wild guess: You need an extension to provide a player, e.g. TimedMediaHandler.
Btw.: The Wikipedia Logo and the favicon are trademarks of the Wikimedia foundation for the use of Wikipedia-projects, your project actually seems to break the Trademark policy, see commons:File:Wikipedia-logo.png and wikimedia:Trademark_policy. Florianschmidtwelzow (talk) 08:17, 4 June 2015 (UTC)
I've hit a snag on the TimedMediaHandler installation. To my knowledge, I have followed the instructions correctly, but when I try to access the page at http://www.lordkayoss.com/wiki/index.php?title=Lord_Kayoss I'm getting:
Warning: require_once(PEAR.php): failed to open stream: No such file or directory in /home/lordkayoss/lordkayoss.com/wiki/extensions/TimedMediaHandler/handlers/OggHandler/PEAR/File_Ogg/File/Ogg.php on line 123
Fatal error: require_once(): Failed opening required 'PEAR.php' (include_path='/home/lordkayoss/lordkayoss.com/wiki/extensions/TimedMediaHandler/handlers/OggHandler/PEAR/File_Ogg:.:/usr/local/lib/php:/usr/local/php5/lib/pear') in /home/lordkayoss/lordkayoss.com/wiki/extensions/TimedMediaHandler/handlers/OggHandler/PEAR/File_Ogg/File/Ogg.php on line 123
Any ideas what I might've missed?
(Btw, thx for letting me know about the trademark policy violation. Looking into that as well) RigganRose (talk) 21:07, 4 June 2015 (UTC)
That extension requires you to have PEAR installed. Ciencia Al Poder (talk) 09:41, 5 June 2015 (UTC)
A detailed walkthrough on how to get it installed and working (using Windows) would be extremely helpful. The instructions on Pear's page aren't the easiest to follow. RigganRose (talk) 19:08, 5 June 2015 (UTC)

hello, I use mediawiki 1.24.2, I search how modify the navigation bar from the code php of mediawiki because I use a software for install automatically a new mediawiki.

Thanks, BR. 212.234.161.1 07:35, 4 June 2015 (UTC)

See Manual:Interface/Sidebar#Customize_the_sidebar Malyacko (talk) 08:54, 4 June 2015 (UTC)

Method of Declaring Content Namespaces in one array doesn't work

The page https://www.mediawiki.org/wiki/Manual:$wgContentNamespaces for declaring content namespaces indicates that the namespaces should be declared in a single array. This generates an error. It seems to work when each content namespace is declared with a discrete statement:

$wgContentNamespaces[] = NS_VOL_TALK;
$wgContentNamespaces[] = NS_STRNG;
$wgContentNamespaces[] = NS_STAFF

I'm a noob so chances are I'm doing something wrong. I am hoping that someone can confirm that the way I'm declaring content namespaces is not going to cause problems.

I'm using MW 1.25.1. Apache 24, updated a couple weeks ago, php56 updated recently.

Thanks,

Loonybomber (talk) 05:34, 5 June 2015 (UTC)

What error?
Are NS_VOL_TALK, etc defined before they're used in those statements? Ciencia Al Poder (talk) 09:45, 5 June 2015 (UTC)
When I tried declaring content namespaces as an array like this format as described with content namespaces (see above):
$wgContentNamespaces = array( NS_MAIN, NS_HELP, NS_PROJECT, NS_CUSTOMNAMESPACE );&lt;/pre&gt;
I got a blank page.  I did not add a line to the end of my LocalSettings.php to view error messages.  I simply put each additional content namespace on a separate line.  I'm trying to figure out why I can create new pages using forms with CreateBox but not with Semantic Forms and I am wondering if it would make any difference at all to declare content namespaces on separate lines instead of as an array.  
I define my namespace constants first, e.g. snippet (starting at 3210):
&lt;pre&gt;define("NS_VOL",3216);
define("NS_VOL_TALK",3217);
Then add namespaces, e.g. snippet:
$wgExtraNamespaces[NS_VOL] = "Volunteers";
$wgExtraNamespaces[NS_VOL_TALK] = "Volunteers talk";
Then make them content namespaces, e.g. snippet:
$wgContentNamespaces[] = NS_VOL;
$wgContentNamespaces[] = NS_VOL_TALK;
Then enable subpages,
$wgNamespacesWithSubpages[NS_VOL] = true;

Then if it's working as it should, I would configure lockdown and other settings dependent upon the namespaces, e.g. $wgNamespaceProtection. I'm just trying to debug "invalid or virtual namespace -1" errors when creating new pages using Semantic Forms (but not CreateBox). The way I am declaraing $wgContentNamespaces[] is different than described in the manual so I thought I would just check this as a possible source of error. Loonybomber (talk) 02:18, 14 June 2015 (UTC)

Speicherort fest definieren

Hallo zusammen,

wir haben Wiki auf einem PC mit Hilfe von Xampp installiert.

Wir wollen PDF´s verknüpfen. Die PDF´s haben wir in Xampp in einem von uns angelegten Ordner gespeichert. Wenn wir jetzt über Wiki die PDF´s verknüpfen um sie über den Browser sichtbar zu machen, legt Wiki die PDF´s in anderen Ordnern ab. Wie kann man das ändern? Die PDF´s sollen immer in dem von uns bestimmten Ordner bleiben.

Danke Meyerundhorn (talk) 06:50, 5 June 2015 (UTC)

Das ist den Aufwand nicht wert. Einfach doppelt hochladen. Subfader (talk) 22:05, 5 June 2015 (UTC)

Compilation failed: group name must start with a non-digit at offset

My wiki at Eroticature.org has developed a problem on every page displaying various messages, mostly " Compilation failed: group name must start with a non-digit at offset" and some variations on that. Does anybody know why this has happened or how to fix it? I hadn't made any changes under the hood. Eroticatorium (talk) Eroticatorium (talk) 11:25, 5 June 2015 (UTC)

See [[Project:Support desk/Flow/2013/12#h-[RESOLVED]_MediaWiki_don't_work_with_PCRE_8.34-2013-12-18T13:15:00.000Z]]! 88.130.105.255 11:51, 5 June 2015 (UTC)
Thanks! So I'm supposed to install this patch: https://git.wikimedia.org/patch/mediawiki%2Fcore.git/b9f291e8cd5bb1450f7b1031aa17cf7775aa7e96  ? Is that right? How do I install something like that? What part of it is the actual patch? Eroticatorium (talk) 12:12, 5 June 2015 (UTC)
Yes, integrating this patch into your source code should solve the problem. Relevant is only the part inside the file includes/MagicWord.php; the line numbers may be different in 1.20.
However, if I were you I would do something else: I would update MediaWiki. Your version 1.20.3 has known security holes and is no longer maintained. In contrast, current versions of MediaWiki are secure and they already include this fix.
See Upgrade for a complete guide on how to do an upgrade! 88.130.105.255 12:56, 5 June 2015 (UTC)

Upgrading: 1.24.2 to 1.25.1

Hi! I'm new with MediaWiki and I want to update my wiki. I always use the web browser. Is there somethin I have to consider? Thank you! 80.137.199.64 20:37, 5 June 2015 (UTC)

No, it's all in Manual:Upgrade. Just follow the guide! 88.130.105.255 21:36, 5 June 2015 (UTC)

Template:Listen - Is There an Alternative to TimedMediaHandler?

Is there an alternative to TimedMediaHandler to get the Listen box to embed and play a sound file? I have wasted nearly three days going in circles trying to get TimedMediaHandler to work. The extension does not come with all required pieces to function properly. Despite all my searching and questions in numerous forums and chat sessions, I am at a loss on how to get Pear installed and configured properly to make TimedMediaHandler work.

I simply want to be able to add the option to play a sound file from within the Listen box on a Wiki page. That's it. Can someone please provide a simpler alternative to the matrix of problems I've been presented with TimedMediaHandler? I have tried a couple different media players and have gotten them to appear on the page and play the sound file, but none seem to be able to be included inside the Listen box which is ultimately what I need to happen.

Thank you.

Version Info
MediaWiki 1.24.1
PHP 5.4.37 (cgi-fcgi)
MySQL 5.1.56-log
Lua 5.1.5

RigganRose (talk) 01:01, 6 June 2015 (UTC)

What exactly did you try to get Pear installed, and which were the problems that you faced? And on which operating system? AKlapper (WMF) (talk) 22:22, 7 June 2015 (UTC)
So far, I've only been reading and researching Pear to try to grasp the concept of it and get an understanding of what exactly needs to be done. I haven't actually taken steps to try to install it yet, as I'm still unsure of what to do, and how to do it. I've read over the instructions on the Pear site as well as the TimedMediaHandler extension page several times and they continue to leave me confused.
Working with Windows 7 (Ultimate 64-bit). My MediaWiki page is hosted by Dreamhost. RigganRose (talk) 21:32, 9 June 2015 (UTC)
 17:02, 8 June 2015 (UTC)

Password reminder not sent

I' m a new editor of Wikipedia and logged out on Friday and now (woozy after an operation) can't remember my password. I've filled in the temporary password request form many times today, some of them 10 hours ago, and still have not received a reminder to my email, even though I have been repeatedly told that a password has been sent to my email address. I've tried entering just username too - that doesn't work either.

Does anyone know why or know how to get a temporary password please?

Many thanks for your help. 86.149.90.77 15:08, 6 June 2015 (UTC)

Perhaps the mail got captured by your spam filter? FriedhelmW (talk) 16:39, 6 June 2015 (UTC)
Maybe you never registered an email address? For privacy reasons, the system will not tell you if you entered an incorrect email address, or if your account has no registered email address, because otherwise it would be possible for people to figure out if an email address belongs to you or not. it can be a bit confusing. —TheDJ (Not WMF) (talkcontribs) 11:16, 7 June 2015 (UTC)

Receive 503 error when Click mark this version for translation in translate steps

I want use Extension:Translate but when Click the "Mark this version for translation" button receive 503 error.
I contact by Host Provider but the problem was not host.
help help! WikiMech (talk) 17:01, 6 June 2015 (UTC)

Your description of the problem lacks information to be considered helpful. Try to give more details (like timings), set up a debug log... Ciencia Al Poder (talk) 10:30, 7 June 2015 (UTC)

Changes to VectorTemplate.php only appearing on special pages

I've made some modifications to the VectorTemplate.php page. I can see these changes on pages like the purge cache confirmation, Special:Version. I can see these changes when I'm logged in under my own account. However, I cannot see these changes when I visit an article page as a logged out user.

Can someone give me some pointers on where I should look for debugging this? I've tried things like removing the skins folder entirely (I get an error) so I know that it's using the skin, I just can't figure out why the changes are not appearing.

I'm using: Mediawiki 1.25.1 MariaDB PHP 5.5.25-1~dotdeb+7.1 running via php-fpm Nginx Rodeoclash (talk) 00:08, 7 June 2015 (UTC)

You shouldn't edit files. See Do not hack MediaWiki core.
About your problem, that could be a caching issue, in either the browser or MediaWiki, specially if you're using the file cache. Ciencia Al Poder (talk) 11:35, 7 June 2015 (UTC)
That's right.
Many changes can be done by editing the CSS or JavaScript, which MediaWiki allows all administrators to do. What is it that you want to change in the skin? 88.130.87.105 11:38, 7 June 2015 (UTC)

[RESOLVED] Cannot upload image Internal Error

Hello,

I changed already the permission on my mediawiki page but I still cannot upload file.

What I did are:

Adding the following line in LocalSettings.php

$wgEnableUploads = true; $wgUploadDirectory = "images"; $wgUploadPath = "$wgScriptPath/images"; $wgEnableUploads = true; $wgAllowExternalImages = true;

My permisison is drwxr-xr-x 2 apache apache 4096 2015-03-24 10:39 images

I also did sudo chmod -R 755 images/

Still no luck.

Below is my error:

Internal error

[5e0707e0] /tools/index.php/Special:Upload Exception from line 1871 of /samba/anonymous/mediawiki-setup/mediawiki_versions/mediawiki-1.24.1/includes/filerepo/file/LocalFile.php: Could not acquire lock for 'Backup_restore_1.png.'

Backtrace:

  1. 0 /samba/anonymous/mediawiki-setup/mediawiki_versions/mediawiki-1.24.1/includes/filerepo/file/LocalFile.php(1174): LocalFile->lock()
  2. 1 /samba/anonymous/mediawiki-setup/mediawiki_versions/mediawiki-1.24.1/includes/upload/UploadBase.php(738): LocalFile->upload(string, string, string, integer, array, boolean, User)
  3. 2 /samba/anonymous/mediawiki-setup/mediawiki_versions/mediawiki-1.24.1/includes/specials/SpecialUpload.php(467): UploadBase->performUpload(string, string, boolean, User)
  4. 3 /samba/anonymous/mediawiki-setup/mediawiki_versions/mediawiki-1.24.1/includes/specials/SpecialUpload.php(186): SpecialUpload->processUpload()
  5. 4 /samba/anonymous/mediawiki-setup/mediawiki_versions/mediawiki-1.24.1/includes/specialpage/SpecialPage.php(363): SpecialUpload->execute(NULL)
  6. 5 /samba/anonymous/mediawiki-setup/mediawiki_versions/mediawiki-1.24.1/includes/specialpage/SpecialPageFactory.php(584): SpecialPage->run(NULL)
  7. 6 /samba/anonymous/mediawiki-setup/mediawiki_versions/mediawiki-1.24.1/includes/MediaWiki.php(275): SpecialPageFactory::executePath(Title, RequestContext)
  8. 7 /samba/anonymous/mediawiki-setup/mediawiki_versions/mediawiki-1.24.1/includes/MediaWiki.php(584): MediaWiki->performRequest()
  9. 8 /samba/anonymous/mediawiki-setup/mediawiki_versions/mediawiki-1.24.1/includes/MediaWiki.php(435): MediaWiki->main()
  10. 9 /samba/anonymous/mediawiki-setup/mediawiki_versions/mediawiki-1.24.1/index.php(46): MediaWiki->run()
  11. 10 {main} Dee-1218 (talk) 09:09, 8 June 2015 (UTC)
i fixed the problem
chown apache:apache /var/www/html/mediawiki/images
it started working after! Dee-1218 (talk) 09:16, 8 June 2015 (UTC)

Verlinkung aus einer PDF zu einer PDF, die auf dem Server liegt

Hallo zusammen,

wir erstellen im Wiki PDFs, die einen Hyperlink zu einer PDF haben. Wenn ich das über meinen Windowsexplorer mache funktioniert alles. Die verlinkten PDF´s liegen auf einem "anderen" Server.

Wer kann mir sagen wie ich das anstellen muss.

Die Quell PDF liegt auf: "C:\xampp\htdocs\images\f\f6\xyz.pdf" Die Ziel PDF, welche aus der Quell PDF geöffnet werden soll, liegt hier: P:\Auftragserstellung\Auftragsablage\abc.pdf

Vielen Dank. Meyerundhorn (talk) 12:29, 8 June 2015 (UTC)

How does MediaWiki come into play here? Instead this sound like a question related to creating PDFs that include links to local files (which are also PDF)? Malyacko (talk) 08:58, 10 June 2015 (UTC)

Hi,

I am using the dailyfeaturedpage extentsion to display an article on my mediawiki main page and sometimes the article is too long which would make the page ugly.

I am wondering if there is a read more link extension whenever the article has more than (maybe 100 words) then it will show the "read more" link and by clicking on the link will bring users to the link of the article.

Thanks! 2401:7400:C800:32AC:350B:D5C0:5F98:974C 15:07, 8 June 2015 (UTC)

The source code of the extension is here: https://github.com/developingcountries/DailyFeaturedPage/blob/master/dailyfeaturedpage.php
After line 36, $page contains what $title->getFullText(); returned; basically that will be your complete article text.
Reading http://stackoverflow.com/questions/965235/how-can-i-truncate-a-string-to-the-first-20-words-in-php, I would try adding to the original source code so that it looks like this:
$page = $title->getFullText();
/** @var $limit integer Number of words to keep */
$limit = 100;
if (str_word_count($page, 0) > $limit) {
     $words = str_word_count($page, 2);
     $pos = array_keys($words);
     $page = substr($page, 0, $pos[$limit]) . '... ' . '[[' . $featuredArticle[0] . '|Read more]]';
}
//returns page and parses the transclusion tags, onlyinclude etc., so that only transcluded section is shown. 
return $parser->recursiveTagParse( '{{:' . $page. '}}');
I have not tested this code, but it should basically work. I am aware that this might produce the ending "..." to be added somewhere inside a template inclusion or so; in these cases you would get broken output. MediaWiki possibly has a method to cut a text without potentially breaking things, but I don't know that. 88.130.75.87 16:15, 8 June 2015 (UTC)
Hi
Thanks for your response. I greatly appreciated it.
I did the method as you said but however it does not work.
First, I put an echo inside the "if" method but it will not go into the method whenever the word count is more than limit.
if (str_word_count($page, 0) > $limit) { 
      echo "inside". "<br/>";
... 
}
When I change the sign from > to < as follows,
if (str_word_count($page, 0) < $limit) { <br/>
       echo "inside". "<br/>";
...
}
and output me this
... Read more on the main page.
Why is all these happening? Thanks again for your help! 203.127.197.23 02:02, 9 June 2015 (UTC)
$title->getFullText() in fact only returns the full title of the page; not the full text of the page. My mistake.
So instead of doing it with $page as I tried above, you should do something like:
$title = Title::newFromText($featuredArticle[0]);
if (!$title) return '<h1>Could not retrieve this Article Page.</h1>';
/** @var $article object Article object for page $title. */
$article = new Article( $title );
/** @var $articleText string Text of the article with the name $title. */
$articleText = $article->getContent();
/** @var $limit integer Number of words to keep */
$limit = 100;
if (str_word_count($articleText, 0) > $limit) {
     $words = str_word_count($articleText, 2);
     $pos = array_keys($words);
     $articleText = substr($articleText, 0, $pos[$limit]) . '... ' . '[[' . $featuredArticle[0] . '|Read more]]';
     // return the changed text
     return $parser->recursiveTagParse( $articleText );
} else {
     // returns page and parses the transclusion tags, onlyinclude etc., so that only transcluded section is shown. 
     return $parser->recursiveTagParse( '{{:' . $page. '}}');
}
88.130.88.6 13:22, 9 June 2015 (UTC)
Hi,
It is working now. Thanks so much for your help!!!!!!!!!!!
By the way, do you have any experience/knowledge with LDAP extension? I've some issue with it. :p 203.126.173.23 00:28, 10 June 2015 (UTC)
No, I don't. But if you now want to do something good, you should create a Pull Request at GitHub (https://github.com/developingcountries/DailyFeaturedPage/pulls) and copy my code there so that it can become part of the official source code.
That way also others can benefit from it! :-) 88.130.88.6 00:47, 10 June 2015 (UTC)
Yup sure thanks I will.
Thanks so much! 203.126.173.23 00:58, 10 June 2015 (UTC)

From: http://www.mediawiki.org/wiki/Help:Starting_a_new_page


Once the page has been created, the link will change from red to blue (purple for pages you've visited) indicating that the article now exists.


What (maintenance scripts?) makes the link go from red to blue/purple after the page has been created? I am noticing the links are not getting updated to blue/purple after the page is created. Are there any manual jobs I can run to make this happen? lizkim270 16:49, 8 June 2015 (UTC)

YES! And there you are, another one of the "job queue not working" problems!
You can run the maintenance script runJobs.php to get open jobs done; this includes re-rendering pages, which have to be updated (e.g. because they contain links, which need an update). 88.130.75.87 16:53, 8 June 2015 (UTC)
runJobs.php did the trick - Thank you. There were MANY jobs in queue... I guess this will have to go in my crontab. Are there any fixes for this? I think this started happening after upgrading from 1.22 to 1.24.. lizkim270 17:03, 8 June 2015 (UTC)
And this is still unfixed in 1.25. :-(
Sure, you can add the script to your crontab, but I only consider this to be a workaround, not a proper fix. 88.130.75.87 17:11, 8 June 2015 (UTC)
Apparently, MediaWiki is using the job queue for more things lately, so the refreshlinks / cache jobs need to compete with others. So basically, after you create the page it may take a few jobs until the cache of those pages is refreshed.
Setting $wgJobRunRate to a value less than 1 makes the thing worse. Ciencia Al Poder (talk) 09:32, 9 June 2015 (UTC)
Right. The default makes it so that one job is run on average every hundred's page request. If you change a page, which is linked at a number of places and if your wiki only has a few hits (e.g. an internal wiki used only by some company members), you will likely come to the point where the queue gets more new entries than it can work away. In the result the queue is filling more and more and your wiki will seem more and more broken (e.g. because of outdated links). 88.130.88.6 13:36, 9 June 2015 (UTC)
I've opened ticket phab:T101967 for this, since I feel that this is coming up way too often lately..... —TheDJ (Not WMF) (talkcontribs) 11:00, 10 June 2015 (UTC)
Hi gents!
What can I do as a quick workaround? I tried to run runJobs.php, but my links are still red... I described details here [[Project:Support desk/Flow/2015/05#h-[NOT_REALLY_SOLVED]_link_color:_"light_red_link"_of_article_does_not_change-2015-05-20T23:36:00.000Z]]
Sergey Norsen1983 (talk) 15:05, 25 March 2019 (UTC)

suddenly cant upload files

Hello,

file upload worked well, I dont remember changed something in my wiki, only installed owncloud too on the same domain. Now cant upload files.

Version MediaWiki 1.24.2


Error log:

Warning: fopen(/wiki/images/lockdir/cg3fklhihcaxq9zxlhwwweg9m1aclsv.lock): failed to open stream: Permission denied in /wiki/includes/filebackend/lockmanager/FSLockManager.php on line 125

Interner Fehler

[c30d0faf] /path/wiki/index.php?title=Spezial:Hochladen Exception from line 1871 of /www/htdocs/user/path/wiki/includes/filerepo/file/LocalFile.php: Could not acquire lock for 'image.png.'

Backtrace:

#0 /www/htdocs/user/path/wiki/includes/filerepo/file/LocalFile.php(1174): LocalFile->lock()
#1 /www/htdocs/user/path/wiki/includes/upload/UploadBase.php(738): LocalFile->upload(string, string, string, integer, array, boolean, User)
#2 /www/htdocs/user/path/wiki/includes/specials/SpecialUpload.php(467): UploadBase->performUpload(string, string, boolean, User)
#3 /www/htdocs/user/path/wiki/includes/specials/SpecialUpload.php(186): SpecialUpload->processUpload()
#4 /www/htdocs/user/path/wiki/includes/specialpage/SpecialPage.php(363): SpecialUpload->execute(NULL)
#5 /www/htdocs/user/path/wiki/includes/specialpage/SpecialPageFactory.php(584): SpecialPage->run(NULL)
#6 /www/htdocs/user/path/wiki/includes/MediaWiki.php(275): SpecialPageFactory::executePath(Title, RequestContext)
#7 /www/htdocs/user/path/wiki/includes/MediaWiki.php(584): MediaWiki->performRequest()
#8 /www/htdocs/user/path/wiki/includes/MediaWiki.php(435): MediaWiki->main()
#9 /www/htdocs/user/path/wiki/index.php(46): MediaWiki->run()
#10 {main}

I browsed the different thread about file upload problems and it seems everybody has an other cause. Thanks for help. Metathom (talk) 19:09, 8 June 2015 (UTC)

It seems to be a permission problem. The wiki can't write on /wiki/images/lockdir/cg3fklhihcaxq9zxlhwwweg9m1aclsv.lock because of permissions. Ciencia Al Poder (talk) 09:34, 9 June 2015 (UTC)
Now I did chmod 777 for lockdir. I dont find explanation which permission for the folders is necessary. The image folder had already 777. I wonder why I was able to upload files before. But now I geht this:
Warning:  failed to mkdir "/www/htdocs/user/path/wiki/images/archive/f/fa" mode 0777 [Called from wfMkdirParents in /www/htdocs/user/path/wiki/includes/GlobalFunctions.php at line 2582] in /www/htdocs/user/path//wiki/includes/debug/MWDebug.php on line 302
Das Verzeichnis (directory) „mwstore://local-backend/local-public/archive/f/fa“ konnte nicht angelegt werden. (failed to create)
EDIT: I gave chmod 777 also to wiki/images/archive/ The image got uploaded. But now I have problem with "failed to mkdir" thumbs folder ... and so on. Do all folders in directory "image" need 777? Thanks Metathom (talk) 18:56, 10 June 2015 (UTC)
Apparently, the user account that was running your wiki has changed, so now the user/group owner of the folder is not the same as the user/group running PHP. Try resetting the owner of those folders, recursively, so you can adjust permissions to 774 or even 744 Ciencia Al Poder (talk) 19:37, 10 June 2015 (UTC)
I changed all chown to PHP owner recursively of "/image" and recursively chmod to 777. Upload went well than.
But after your post I changed "/image" recursively permissions to 775 (PHP was owner) and than it started again with the errors from my first post with /lockdir ...
I changed again both /images/lockdir/ to 777 and than receive this errors.
Warning: Das Verzeichnis (directory) „mwstore://local-backend/local-public/0/08“ konnte nicht angelegt werden. (failed to create)
I deleted both "0/08" folders. I saw that wiki created the folders with owner of my FTP-User not with PHP as owner.
I gave /images/0/08/ all 777 and PHP as owner. Errors are than:
Warning: failed to mkdir
"/www/htdocs/user/path/wiki/images/archive/0/08" mode 0777 [Called from wfMkdirParents in
/www/htdocs/user/path/wiki/includes/GlobalFunctions.php at line
2582] in /www/htdocs/user/path/wiki/includes/debug/MWDebug.php on line 302
So, I gave 777 and PHP as owner to:
/images/archive/
/images/lockdir/
/images/thumb/
than it is uploading without errors. Is this usual? Thank you very much. Metathom (talk) 22:10, 10 June 2015 (UTC)
If the wiki creates files and folders with your FTP-User as owner, then you should change all files to have that owner. That means PHP is impersonating you when running from your web space, which is a good secutity improvement on shared hosting. Ciencia Al Poder (talk) 09:27, 11 June 2015 (UTC)

Active users statistic reads -1

I am looking after a mediawiki installation:

Product Version MediaWiki 1.18.2 PHP 5.3.3 (apache2handler) MySQL 5.0.77

On the statistics page the active user count always reads -1. If anyone could explain why or perhaps point me in the direction of the cause that would be very helpful! 192.149.117.204 06:37, 9 June 2015 (UTC)

Please note that MediaWiki 1.18 is an old unsupported release. It has known security holes and still contains bugs, which have already been fixed in more recent versions. This possibly is one of these bugs. I would do an upgrade and see, if the issue is solved in e.g. MediaWiki 1.23.x. 88.130.88.6 11:21, 9 June 2015 (UTC)

Integrating Visual Editor and Parsoid

Hi there,

Can anyone tell me the error I am getting in the integration of VE and Parsoid service? These the details of my installation:

Product 	Version
MediaWiki 	1.26alpha (50c6cd2)
PHP 	5.5.25 (apache2handler)
MySQL 	5.5.44

Parsoid	0.2.0	GPL-2.0+	Parsoid wiki runtime for MediaWiki
VisualEditor	0.1.0 (598e1fd) 01:24, 9 June 2015	MIT	Visual editor for MediaWiki

Below are the logs.

[Tue Jun 09 06:53:02 2015] [error] [client 192.168.200.1] PHP Notice:   in /var/www/public_html/upload/w/includes/GlobalFunctions.php on line 2874
[Tue Jun 09 06:53:02 2015] [error] [client 192.168.200.1] PHP Stack trace:
[Tue Jun 09 06:53:02 2015] [error] [client 192.168.200.1] PHP   1. {main}() /var/www/public_html/upload/w/load.php:0
[Tue Jun 09 06:53:02 2015] [error] [client 192.168.200.1] PHP   2. ResourceLoader->respond() /var/www/public_html/upload/w/load.php:47
[Tue Jun 09 06:53:02 2015] [error] [client 192.168.200.1] PHP   3. ResourceLoader->getCombinedVersion() /var/www/public_html/upload/w/includes/resourceloader/ResourceLoader.php:681
[Tue Jun 09 06:53:02 2015] [error] [client 192.168.200.1] PHP   4. array_map() /var/www/public_html/upload/w/includes/resourceloader/ResourceLoader.php:629
[Tue Jun 09 06:53:02 2015] [error] [client 192.168.200.1] PHP   5. ResourceLoader->{closure:/var/www/public_html/upload/w/includes/resourceloader/ResourceLoader.php:627-629}() /var/www/public_html/upload/w/includes/resourceloader/ResourceLoader.php:6
[Tue Jun 09 06:53:02 2015] [error] [client 192.168.200.1] PHP   6. ResourceLoaderModule->getVersionHash() /var/www/public_html/upload/w/includes/resourceloader/ResourceLoader.php:628
[Tue Jun 09 06:53:02 2015] [error] [client 192.168.200.1] PHP   7. ResourceLoaderStartUpModule->getDefinitionSummary() /var/www/public_html/upload/w/includes/resourceloader/ResourceLoaderModule.php:470
[Tue Jun 09 06:53:02 2015] [error] [client 192.168.200.1] PHP   8. ResourceLoaderStartUpModule->getAllModuleHashes() /var/www/public_html/upload/w/includes/resourceloader/ResourceLoaderStartUpModule.php:382
[Tue Jun 09 06:53:02 2015] [error] [client 192.168.200.1] PHP   9. ResourceLoader->getCombinedVersion() /var/www/public_html/upload/w/includes/resourceloader/ResourceLoaderStartUpModule.php:409
[Tue Jun 09 06:53:02 2015] [error] [client 192.168.200.1] PHP  10. array_map() /var/www/public_html/upload/w/includes/resourceloader/ResourceLoader.php:629
[Tue Jun 09 06:53:02 2015] [error] [client 192.168.200.1] PHP  11. ResourceLoader->{closure:/var/www/public_html/upload/w/includes/resourceloader/ResourceLoader.php:627-629}() /var/www/public_html/upload/w/includes/resourceloader/ResourceLoader.php:6
[Tue Jun 09 06:53:02 2015] [error] [client 192.168.200.1] PHP  12. ResourceLoaderModule->getVersionHash() /var/www/public_html/upload/w/includes/resourceloader/ResourceLoader.php:628
[Tue Jun 09 06:53:02 2015] [error] [client 192.168.200.1] PHP  13. VisualEditorDataModule->getDefinitionSummary() /var/www/public_html/upload/w/includes/resourceloader/ResourceLoaderModule.php:470
[Tue Jun 09 06:53:02 2015] [error] [client 192.168.200.1] PHP  14. VisualEditorDataModule->getScript() /var/www/public_html/upload/w/extensions/VisualEditor/VisualEditorDataModule.php:161
[Tue Jun 09 06:53:02 2015] [error] [client 192.168.200.1] PHP  15. GitInfo->getHeadCommitDate() /var/www/public_html/upload/w/extensions/VisualEditor/VisualEditorDataModule.php:46
[Tue Jun 09 06:53:02 2015] [error] [client 192.168.200.1] PHP  16. wfShellExec() /var/www/public_html/upload/w/includes/GitInfo.php:218
[Tue Jun 09 06:53:02 2015] [error] [client 192.168.200.1] PHP  17. trigger_error() /var/www/public_html/upload/w/includes/GlobalFunctions.php:2874

Thanks Ace.philscan (talk) 07:09, 9 June 2015 (UTC)

There's an empty @trigger_error( '' ); on that line... WTF?
Looks like it's a bug Ciencia Al Poder (talk) 09:47, 9 June 2015 (UTC)
Is the issue fixed?
Regards.. Ace.philscan (talk) 07:56, 23 June 2015 (UTC)
I've created T103671 for the logs, but apparently, if there was an error before that, it hasn't been displayed. See Manual:How to debug to see PHP errors directly on the page rather than the error log. Ciencia Al Poder (talk) 11:32, 24 June 2015 (UTC)
Thanks a lot.
Regards,
Ace Ace.philscan (talk) 23:56, 28 June 2015 (UTC)

Display Image on RSS Reader Extension

Hi,

I am using the RSS Reader extension and currently I want to use Wikipedia Photo of the day rss feeds.

However, it is not displaying the images but instead it is displaying the image tag instead. <img alt= "" ... >

How do I get it to display images?

Thanks for all assistance! 203.127.197.23 08:46, 9 June 2015 (UTC)

You may need to set Manual:$wgAllowImageTag. Ciencia Al Poder (talk) 09:37, 9 June 2015 (UTC)
Hi,
Thanks for your response.
May I know if $wgAllowImageTag = true should be put in my localsettings?
I've tried $wgAllowExternalImages = true at my localsettings but it is not working.
Thanks for your assistance. 2401:7400:C800:32AC:9561:492D:AFFF:3F77 14:56, 9 June 2015 (UTC)
Hello,
I've tried putting both $wgAllowImageTag = true and $wgAllowExternalImages = true at my localsettings file but still it is giving me the <img> tag instead of showing the images.
Thanks for your assistance. 203.126.173.23 02:13, 10 June 2015 (UTC)
Well, in the code displayed in Extension:RSS Reader there's this line:
array('a', /* does not work */ 'img')));
You may try to change it to:
array('a')));
And see if that solves the problem Ciencia Al Poder (talk) 09:24, 10 June 2015 (UTC)
No,
It is still not working :( Anyhowputx (talk) 00:38, 11 June 2015 (UTC)

MediaWiki extensions loaded by Composer

We've switched from using Semantic Bundle to install MediaWiki extensions by using Composer. Now we can skip, for some extensions, manually including entry points at the LocalSettings.php file (http://www.bn2vs.com/blog/2013/11/24/introduction-to-composer-for-mediawiki-developers/). But how does MediaWiki know which extensions to load. Does it read composer.json? Waanders (talk) 15:18, 9 June 2015 (UTC)

Whether edit filters do count preview actions

Hi,

Please refer to this hit to a filter on mr wikipedia. During regular examination of past hits I came across this hit. I am bit intrigued with this hit since the user does not seem to have clicked save button, if he had clicked save button, then there was nothing to stop change to take effect. I would like to understand whether edit filters may hit during just a preview action ? or is there any other possibility which might have stopped this edit to take effect ? Whether this hit is a regular expected behaviour of edit filter or it is a bug in itself ?

If hits are given on user preview actions then, whether those preview actions are counted in a edit filter where rate limit is mentioned ? Just I am trying to find if such edit filter behaviour is becoming cause of false positives. Actually I want to reproduce T100638 bug, which I have experienced once in a while but uptil now I have not been able to reproduce. Please also see bug T86434 reported by Dutch wikipedia, also need to be studied if it also has simmiller problem.

Rgds Mahitgar (talk) 15:25, 9 June 2015 (UTC)

I can think of a few things, that might or might not cause this.
  1. Perhaps the user is editing from a shared IP address, and for some reason the filter is counting these as well ?
    Perhaps the stashing of an edit or the previewing of an edit using the API (Live preview) accidentally triggers this ?
Testing or reading the code will be the only way to figure it out I guess. —TheDJ (Not WMF) (talkcontribs) 11:06, 10 June 2015 (UTC)
Thanks for your reply giving valuable inputs.
Meanwhile I have listed few such likely instance at en:Wikipedia:Edit_filter/False_positives/Reports#Study_of_hits_and_false_positives. Since I am not admin at en wikipedia, I need some one's support in administrative preview of listed instances to confirm that if any blacklisting or any other action might have stopped those edit actions from getting saved. If not then those can be usefull for further technical/bug study which we are discussing in this thread.
If I can get support on this front then I can dig further to list more such instances at en wikipedia, and bring doubtfull hits to technical discussion and report at respective bugs wherever necessary.
Thanks again and warm regards Mahitgar (talk) 07:08, 11 June 2015 (UTC)

Version Explanation

Hello there! I am new to MediaWiki and I am trying to get some information regarding versions.

According to Wikipedia's MediaWiki page, the most stable version of MediaWiki is 1.25. However, according to this section of the wiki (link), the are versions as new as 1.5 and 1.4. Could someone please explain this? 162.115.236.101 20:44, 9 June 2015 (UTC)

I think I may have realized the reason for my confusion. I'm used to 1.5 & 1.4 being greater than 1.25, but I guess they correspond to 1.05 & 1.04, respectively, in MediaWiki versions. Thanks! 162.115.236.101 20:53, 9 June 2015 (UTC)
That is exactly it: For MediaWiki, basically just ignore the "1." at the start. What you are left with then, is the actual version number. So yeah, 1.5 is an antique version and 1.4 is even older. 1.25 however is the current release. 88.130.88.6 00:09, 10 June 2015 (UTC)

What's the best way to fetch an article based on a title?

Hello, I am testing how to use Wikideata API to parse wikipedia data. There are a number of examples provided in the maven project. But how can I do this? For example, return me the page whose title is "Hello World". Thank you. 12.222.14.61 21:21, 9 June 2015 (UTC)

Two ways I know of:
  • Independent of the API, you can just add action=raw as an argument in the URL and it will return the page: for example
  • Using the API, the API documentation gives you an example of exactly that. Clump (talk) 21:52, 9 June 2015 (UTC)
Or do you want HTML output ? —TheDJ (Not WMF) (talkcontribs) 09:35, 10 June 2015 (UTC)

I want to create a link to a page with a redirect but not follow the redirect.

For example: If I was on Wikipedia I would use RGB to link to the page titled RGB RGB redirects to RGB Color Model How would I link to RGB without the user following the redirect on that page?

I came up with but it has a little external link arrow at the end 134.60.116.21 21:21, 9 June 2015 (UTC)

You can only use the external link syntax for that. To skip the icon on the link, wrap it inside an element with class="plainlinks":
<span class="plainlinks">[https://www.mediawiki.org/w/index.php?title=RGB&redirect=no]</span> Ciencia Al Poder (talk) 09:27, 10 June 2015 (UTC)

"Signing" a mediawiki page?

Hey,

we are using Mediawiki to manage our company's quality management. We are documenting our processes, etc.

Now we want to move our fault management to the wiki. so that everybody can record erros in processes, etc. Also we want to record meeting protocols where we are discussion that previously recorderd errors. In the paper-based system, every employee had to sign the protocol (so that employess that were to present at the meeting had to read the protocol).

Unfortunately I have no idea how to convert this into the wiki? Has somebody an answer/hint for that problem?

Help is very appreciated!

Thanks, Flomow Flomow (talk) 10:04, 10 June 2015 (UTC)

redirecting to main page: main page does not exist?

Hi,

I want to redirect a page named 'Hauptseite' to my main page. The article Hauptseite therefore consists in the single line #REDIRECT [[main page]]

However I always get the message 'page does not exist' although my main page is displayed as 'main page' and its URL is .../wiki/index.php5/Main_Page . Is there a special name or name space for the main page?

Thanks for helping,

Jean 212.204.110.133 10:54, 10 June 2015 (UTC)
Do you have a link perhaps ?
Also note that you can change the default by changing: MediaWiki:Mainpage. See also Manual:Main_Page. —TheDJ (Not WMF) (talkcontribs) 11:09, 10 June 2015 (UTC)
Unfortunately I can't give you a link as it is a department wiki behind a firewall.
My MediaWiki:Mainpage says Main Page.
BTW: I don't want to rename Maine Page, I want it to be accessible also by Hauptseite (German translation for Main Page).
My version is 1.24.2 212.204.110.133 11:16, 10 June 2015 (UTC)
With your hint to MediaWiki:Mainpage I found a workaround.
After choosing another name for Main Page, I could redirect to the page from Hauptseite. 212.204.110.133 11:59, 10 June 2015 (UTC)
Modifying MediaWiki:Mainpage is a feature, which MediaWiki supports. And it will work. But it will have bad performance: MediaWiki is invoked and that only to do a redirect. A way faster method is to add an .htaccess RewriteRule, which rewrites calls to the main page to the new target. This circumvents MediaWiki and will be worlds faster. 88.130.78.120 13:47, 10 June 2015 (UTC)

Bug in MediaWiki Language Extension Bundle

I want install MediaWiki Language Extension Bundle but receive message in browser:

A database query error has occurred. This may indicate a bug in the software.

I at the end of my LocalSettings.php file add

$wgShowSQLErrors = 1;

and run the update script again.The message see:

Query:
SELECT tmi_value FROM `translate_messageindex` WHERE tmi_key = '0:مدیاویکی' LIMIT 1
Function: DatabaseMessageIndex::get
Error: 1146 Table 'mechir_mv.translate_messageindex' doesn't exist (localhost) WikiMech (talk) 11:21, 10 June 2015 (UTC)
This error means that in your database the table translate_messageindex is missing. Usually this can be fixed by running the maintenance script update.php from the command line. This is also on this lengthy page: MediaWiki Language Extension Bundle, somewhere in the last 10-20% of the text. 88.130.78.120 13:17, 10 June 2015 (UTC)
I not access to SSH but install Extension:MaintenanceShell. WikiMech (talk) 14:12, 10 June 2015 (UTC)
No need to install that security risk! If you do not have shell access, you can also run the update script by using the web-updater in mw-config with your web browser. 88.130.78.120 14:25, 10 June 2015 (UTC)
by mw-config see error:
Existing wiki
[64f11857] /mediawiki/mw-config/?page=ExistingWiki MWException from line 337 of /home/...../domains/wikimech.org/public_html/mediawiki/includes/MagicWord.php: Error: invalid magic word 'seo'
Backtrace:
#0 /home/...../domains/wikimech.org/public_html/mediawiki/includes/MagicWord.php(262): MagicWord->load(string)
#1 /home/...../domains/wikimech.org/public_html/mediawiki/includes/parser/Parser.php(5182): MagicWord::get(string)
#2 /home/...../domains/wikimech.org/public_html/mediawiki/extensions/WikiSEO/WikiSEO.body.php(91): Parser->setFunctionHook(string, string)
#3 [internal function]: WikiSEO::init(Parser)
#4 /home/...../domains/wikimech.org/public_html/mediawiki/includes/Hooks.php(209): call_user_func_array(string, array)
#5 /home/...../domains/wikimech.org/public_html/mediawiki/includes/parser/Parser.php(310): Hooks::run(string, array)
#6 /home/...../domains/wikimech.org/public_html/mediawiki/includes/parser/Parser.php(320): Parser->firstCallInit()
#7 /home/...../domains/wikimech.org/public_html/mediawiki/includes/parser/Parser.php(5025): Parser->clearState()
#8 /home/...../domains/wikimech.org/public_html/mediawiki/includes/parser/Parser.php(405): Parser->startParse(Title, ParserOptions, integer, boolean)
#9 /home/...../domains/wikimech.org/public_html/mediawiki/includes/installer/Installer.php(630): Parser->parse(string, Title, ParserOptions, boolean)
#10 /home/...../domains/wikimech.org/public_html/mediawiki/includes/installer/WebInstaller.php(676): Installer->parse(string, boolean)
#11 /home/...../domains/wikimech.org/public_html/mediawiki/includes/installer/WebInstallerPage.php(392): WebInstaller->getInfoBox(string)
#12 /home/...../domains/wikimech.org/public_html/mediawiki/includes/installer/WebInstallerPage.php(380): WebInstallerExistingWiki->showKeyForm()
#13 /home/...../domains/wikimech.org/public_html/mediawiki/includes/installer/WebInstaller.php(280): WebInstallerExistingWiki->execute()
#14 /home/...../domains/wikimech.org/public_html/mediawiki/mw-config/index.php(77): WebInstaller->execute(array)
#15 /home/...../domains/wikimech.org/public_html/mediawiki/mw-config/index.php(36): wfInstallerMain()
#16 {main} WikiMech (talk) 14:34, 10 June 2015 (UTC)
extensions/WikiSEO: Disable that extension, because it seems broken. After upgrading, you can see if there is a newer version of the extension that you might be able to use. —TheDJ (Not WMF) (talkcontribs) 14:45, 10 June 2015 (UTC)
I disable WikiSeo
mw-config error:
Existing wiki
[c88ac5f6] /mediawiki/mw-config/ MWException from line 337 of /home//domains/wikimech.org/public_html/mediawiki/includes/MagicWord.php: Error: invalid magic word 'babel'
Backtrace:
#0 /home//domains/wikimech.org/public_html/mediawiki/includes/MagicWord.php(262): MagicWord->load(string)
#1 /home//domains/wikimech.org/public_html/mediawiki/includes/parser/Parser.php(5182): MagicWord::get(string)
#2 /home//domains/wikimech.org/public_html/mediawiki/extensions/Babel/BabelStatic.class.php(22): Parser->setFunctionHook(string, array)
#3 [internal function]: BabelStatic::onParserFirstCallInit(Parser)
#4 /home//domains/wikimech.org/public_html/mediawiki/includes/Hooks.php(209): call_user_func_array(string, array)
#5 /home//domains/wikimech.org/public_html/mediawiki/includes/parser/Parser.php(310): Hooks::run(string, array)
#6 /home//domains/wikimech.org/public_html/mediawiki/includes/parser/Parser.php(320): Parser->firstCallInit()
#7 /home//domains/wikimech.org/public_html/mediawiki/includes/parser/Parser.php(5025): Parser->clearState()
#8 /home//domains/wikimech.org/public_html/mediawiki/includes/parser/Parser.php(405): Parser->startParse(Title, ParserOptions, integer, boolean)
#9 /home//domains/wikimech.org/public_html/mediawiki/includes/installer/Installer.php(630): Parser->parse(string, Title, ParserOptions, boolean)
#10 /home//domains/wikimech.org/public_html/mediawiki/includes/installer/WebInstaller.php(676): Installer->parse(string, boolean)
#11 /home//domains/wikimech.org/public_html/mediawiki/includes/installer/WebInstallerPage.php(392): WebInstaller->getInfoBox(string)
#12 /home//domains/wikimech.org/public_html/mediawiki/includes/installer/WebInstallerPage.php(380): WebInstallerExistingWiki->showKeyForm()
#13 /home//domains/wikimech.org/public_html/mediawiki/includes/installer/WebInstaller.php(280): WebInstallerExistingWiki->execute()
#14 /home//domains/wikimech.org/public_html/mediawiki/mw-config/index.php(77): WebInstaller->execute(array)
#15 /home//domains/wikimech.org/public_html/mediawiki/mw-config/index.php(36): wfInstallerMain()
#16 {main} WikiMech (talk) 14:55, 10 June 2015 (UTC)
Just read the error message and compare it with the one above. This error is caused by the Babel extension. So... 88.130.78.120 16:24, 10 June 2015 (UTC)
Only Translate Extension than MediaWiki Language Extension Bundle need update table so me disable Babel,cldr,CleanChanges,LocalisationUpdate,UniversalLanguageSelector and only add require_once "$EXT/Translate/Translate.php"; in LocalSettings.php in end go to /mw-config but this error see:
Fatal error: require_once() [function.require]: Failed opening required '/Translate/Translate.php' (include_path='.:/usr/local/lib/php') in /home/.../domains/wikimech.org/public_html/mediawiki/LocalSettings.php on line 268 WikiMech (talk) 16:43, 10 June 2015 (UTC)
I'm sorry before
require_once "$EXT/Translate/Translate.php";
add
$EXT = "$IP/extensions";
the go to /mw-config but error:
[60961cae] /mediawiki/mw-config/?page=ExistingWiki MWException from line 337 of /home/...../domains/wikimech.org/public_html/mediawiki/includes/MagicWord.php: Error: invalid magic word 'translation'
Backtrace:
#0 /home/...../domains/wikimech.org/public_html/mediawiki/includes/MagicWord.php(262): MagicWord->load(string)
#1 /home/...../domains/wikimech.org/public_html/mediawiki/includes/parser/Parser.php(5182): MagicWord::get(string)
#2 /home/...../domains/wikimech.org/public_html/mediawiki/extensions/Translate/TranslateHooks.php(656): Parser->setFunctionHook(string, string)
#3 [internal function]: TranslateHooks::setupTranslateParserFunction(Parser)
#4 /home/...../domains/wikimech.org/public_html/mediawiki/includes/Hooks.php(209): call_user_func_array(string, array)
#5 /home/...../domains/wikimech.org/public_html/mediawiki/includes/parser/Parser.php(310): Hooks::run(string, array)
#6 /home/...../domains/wikimech.org/public_html/mediawiki/includes/parser/Parser.php(320): Parser->firstCallInit()
#7 /home/...../domains/wikimech.org/public_html/mediawiki/includes/parser/Parser.php(5025): Parser->clearState()
#8 /home/...../domains/wikimech.org/public_html/mediawiki/includes/parser/Parser.php(405): Parser->startParse(Title, ParserOptions, integer, boolean)
#9 /home/...../domains/wikimech.org/public_html/mediawiki/includes/installer/Installer.php(630): Parser->parse(string, Title, ParserOptions, boolean)
#10 /home/...../domains/wikimech.org/public_html/mediawiki/includes/installer/WebInstaller.php(676): Installer->parse(string, boolean)
#11 /home/...../domains/wikimech.org/public_html/mediawiki/includes/installer/WebInstallerPage.php(392): WebInstaller->getInfoBox(string)
#12 /home/...../domains/wikimech.org/public_html/mediawiki/includes/installer/WebInstallerPage.php(380): WebInstallerExistingWiki->showKeyForm()
#13 /home/...../domains/wikimech.org/public_html/mediawiki/includes/installer/WebInstaller.php(280): WebInstallerExistingWiki->execute()
#14 /home/...../domains/wikimech.org/public_html/mediawiki/mw-config/index.php(77): WebInstaller->execute(array)
#15 /home/...../domains/wikimech.org/public_html/mediawiki/mw-config/index.php(36): wfInstallerMain()
#16 {main} WikiMech (talk) 16:49, 10 June 2015 (UTC)
Another instance of T69877 Ciencia Al Poder (talk) 20:48, 10 June 2015 (UTC)
What should I do?
Who can say what is the solution? WikiMech (talk) 22:38, 10 June 2015 (UTC)
You need to use the update.php script instead of the web updater, until the issue is fixed. Ciencia Al Poder (talk) 09:30, 11 June 2015 (UTC)

[RESOLVED] Help about formatnum magic word

Hello, I have one question and one (probable) bug report, both related to "formatnum:".

  1. In the magic words help page, it is said that "[formatnum:] Takes an unformatted number [...] and outputs it in the localized digit script and formatted with decimal and decimal group separators, according to the wiki's default locale.". Does only the digits on the left of the dot (eg: in {{formatnum:98765.4321}}, the "98765" part) can be formatted according the wiki's local, OR the digits on the right of the dot (eg: in {{formatnum:98765.4321}}, the "4321" part) can be formatted too?
  2. In the French wiki, the |R parameter seems not working: as it can be seen in my sandbox, the code {{formatnum:987654.321}} answers (correctly) "987 654,321", but the code {{formatnum:987 654,321|R}} does not provide the initial string (ie: "987654.321"), but provides "987 654.321". One can note that the code {{formatnum:{{formatnum:987654.321}}|R}} works well.

Best, Wikini (talk) 13:35, 10 June 2015 (UTC)

Hello, I maybe asked in the wrong place. Where is the right place to ask these questions? Best, Wikini (talk) 09:26, 17 June 2015 (UTC)
I think the description is correct: Takes an unformatted number. Basically it won't attempt to parse a formated string, since it can't know what's the input string. For example, some languages use dots as decimal separator but others use comma. Ciencia Al Poder (talk) 09:18, 18 June 2015 (UTC)
Hello, when the |R parameter is not set, indeed, an unformatted number is expected. But, according to the documentation, "The |R parameter [...] should be used only to deformat numbers [...] formatted exactly as formatnum formats them with the wiki's locale". That's why I expected {{formatnum:987 654,321|R}} to answer "987654.321". Why is it not the case? Best, Wikini (talk) 10:53, 21 June 2015 (UTC)
Apparently it doesn't work as documented... I found a task number about that: T37922 Ciencia Al Poder (talk) 16:37, 21 June 2015 (UTC)
Hello, thank you for the feedback. Waiting for an answer in phabricator thread. Best, Wikini (talk) 10:01, 22 June 2015 (UTC)
Hello,
the answer is that one must to use the unicode non-breaking space U+00A0 to obtain the reverse behaviour: {{formatnum:987 654,32|R}} provides (correctly) 987654.32.
Best, Wikini (talk) 09:23, 25 June 2015 (UTC)

Template syntax

My site is using some converted Wikipedia pages. In several of them I have, as an example, this syntax; "Project:Support desk/Flow/2015/06/Categories" which my site translates as "Template:/Categories". This appears to be incorrect but the forward slash mark in front of the Categories is actually in the original Wikipedia page. Can anyone tell me what that slash mark indicates. At least what is page that the original syntax is asking for. 72.64.87.166 13:43, 10 June 2015 (UTC)

I think you have missing templates that result in unexpected markup being generated Ciencia Al Poder (talk) 09:48, 11 June 2015 (UTC)
Sounds like you don't have subpages enabled, and that template is actually located as a subpage of whatever page you got it from. 58.167.32.21 16:54, 11 June 2015 (UTC)

Orphan Pages deletion

i recently had a "lot of orphan pages" problem, with related spam links

there is a way to delete all the pages, without to delete them one-by-one?

even via database 79.8.109.57 15:00, 10 June 2015 (UTC)

Extension:Nuke (bundled on MediaWiki, you only need to enable it), and maintenance scripts nukePage.php and deleteBatch.php. Ciencia Al Poder (talk) 20:38, 10 June 2015 (UTC)

Auto Login to Mediawiki (Auth remoteuser Extension)

Hi folks,


I am trying to implement an auto login function into my mediawiki by using their windows credentials. I am using Apache Server.

I have implemented the Auth remoteuser extension and has implemented the mod_auth_sspi.so in my httpd.conf file and has configure it to be as follows

<IfModule !mod_auth_sspi.c>
    LoadModule sspi_auth_module modules/mod_auth_sspi.so
</IfModule>
<Location "file/to/path">
    Options FollowSymLinks
    Order allow,deny
    Allow from all
    AuthName "TestWeb"
    AuthType SSPI 
    SSPIAuth On 
    SSPIAuthoritative On
    SSPIOmitDomain On
    SSPIOfferBasic on
    Require valid-user 
</Location>

However, it gives me the prompt to type in the username and password on IE/Firefox/CHrome which I don't want the prompt to appear. I want it to auto login to mediawiki straight without the prompt. Which step am I doing wrong?

How may I achieve the above? Thanks for all assistance! 2401:7400:C800:32AC:B49F:9B0F:5103:9928 15:42, 10 June 2015 (UTC)

Can't edit my previous post. I am using Apache Server (V2.2) 2401:7400:C800:32AC:B49F:9B0F:5103:9928 15:43, 10 June 2015 (UTC)
Do you have an extension installed like Extension:Auth remoteuser? Ciencia Al Poder (talk) 20:39, 10 June 2015 (UTC)
Yup, I have. I have already put the require_once ... in my localsetting file :)
thanks for your assistance! 2401:7400:C800:32AC:2910:33A9:2BF5:5CD6 22:23, 10 June 2015 (UTC)
To be exact,
I wrote this in my localsetting file but still it is giving me the prompt in all browsers.
require_once "$IP/extensions/Auth_remoteuser/Auth_remoteuser.php";
$wgAuth = new Auth_remoteuser();
00:06, 11 June 2015 (UTC)
I think you also set and adapt the settings of the Configuration section listed on the extension's page.
Apparently, instead of
$wgAuthRemoteuserName = $_SERVER["AUTHENTICATE_CN"]; /* User's name */
You need to use
$wgAuthRemoteuserName = $_SERVER["REMOTE_USER"]; /* User's name */ Ciencia Al Poder (talk) 09:46, 11 June 2015 (UTC)
Hi,
Thanks for your assistance.
I've changed as follows
$wgAuthRemoteuserName = isset( $_SERVER["REMOTE_USER"] )
	? $_SERVER["REMOTE_USER"]
	: '';
However it is still giving me the prompt when I tried on Firefox. Any idea if I have to configure something to my browser?
Thanks so much for your help!!!!!!! I really appreciated it. 203.120.42.151 10:07, 11 June 2015 (UTC)
Firefox does not use Windows' internet settings, so you will have to manually add your sites to the network.automatic-ntlm-auth.trusted-uris config setting. See http://sivel.net/2007/05/firefox-ntlm-sso 58.167.32.21 16:51, 11 June 2015 (UTC)
Hi,
Thanks for ur response.
So u meant my above configuration is correct? And by configuring my Firefox, The browser will auto login for me without the prompt?? Thanks so much!! 175.156.223.209 22:20, 11 June 2015 (UTC)
If it is working on IE and Chrome, then yes. It is just Firefox that needs manual configuration due to not using Windows' settings. 58.167.32.21 08:34, 12 June 2015 (UTC)
Hi,
Thanks for your response. All browsers are giving me the prompt to enter my credentials before they logged me in.
I am really very confused now. I have tried configuring Firefox to the one you said. Since I am developing on localhost, should I put http://localhost or localhost ?
And is SSPI the same as NTLM ?
Thanks so much for your response! Anyhowputx (talk) 08:40, 12 June 2015 (UTC)
Oh dear, I think I know why.
Previously, I cannot login even though it keeps prompting me (I think) was because it is trying to go on to (www.example.com) instead of localhost. It will detects the former as an internet so it will denies my entry. Then it will detect the latter as intranet and login me in automatically.
Am I right? Thanks!! Anyhowputx (talk) 10:56, 12 June 2015 (UTC)
SSPI is the interface to access NTLM, among other security providers.
If the setting doesn't work, try without the protocol. If it still doesn't work, maybe you're using Kerberos authentication, in which case you would use the network.negotiate-auth.trusted-uris instead of network.automatic-ntlm-auth.trusted-uris.
If it is working on localhost on Chrome and IE then there is nothing wrong with your settings (unless you want to have it also work on non-intranet sites, in which case you would need to enable automatic login on trusted sites and add those sites as trusted sites in the internet options, as well as to the manual Firefox setting). 58.167.32.21 11:59, 12 June 2015 (UTC)
Hi,
Thank You for advising me till now. You saved my life!
I still have a couple more questions to ask. Please advise if it is within your knowledge. Thanks!!!
Currently, my domain will be in the form of (www.companyname.com/wiki/index.php) and is an intranet. Currently, I have to add our site to the intranet zone of IE/Firefox in order to enable the autologin (no prompt).
My question is how will the autologin works when deploy all the live server since the configuration is not made on all the clients computers? I read something about group policy but I am not sure if I am on the right track. Only administration can make changes to the group policy?
Thanks so much once again! 203.127.197.23 00:41, 15 June 2015 (UTC)
Yes, Group Policy changes can only be done by the Domain Controller administrator, and it will make the policy to be replicated to all computers of the domain Ciencia Al Poder (talk) 09:23, 15 June 2015 (UTC)
Ahhhh. I see.
So now what's left to do is to inform the administrator to use Group Policy to add (www.companyname.com) into the intranet zone of IE/Firefox right before the auto-login can work properly for all users in the company right?
Thank You Ciencia for your great help and being so patient!! :) 203.127.197.23 09:55, 15 June 2015 (UTC)
Hi,
I would like to ask will this single sign on work on mobile/tablet as well?
Currently, I can see the $_SERVER['REMOTE_USER'] on my desktop using the 3 browsers (IE, Chrome, Firefox)
Also, will it work on apache2handler and cgi/fcgi?
Thanks for your assistance! 203.127.197.23 06:18, 21 July 2015 (UTC)
Your mobile/tablet doesn't ask you a username and password to login when you power it on, so I doubt you would get a REMOTE_USER from those devices. Ciencia Al Poder (talk) 09:26, 21 July 2015 (UTC)
Thanks for your response
Just want to further clarify my understanding. Correct me if I'm wrong.
So could I say that the auth remoteuser extension allows single sign on only on desktop browsers (IE,Chrome,Firefox) since we have to configure the settings on these browsers before sso is enabled?
And also since like you said, our desktop will prompt for a username and password for us to login (I assume this is the windows credentials you referring to)
Hence if users access the mediawiki site on mobile/tablets, they have to manually login with a mediawiki account and not their windows account like in the desktop
Ultimate thanks for ur assistance!! I really really appreciated your kind help! 138.75.250.73 16:58, 21 July 2015 (UTC)
Correct. Mobile users could log-in with their windows credentials if MediaWiki is correctly using an LDAP authentication extension - assuming that the auth remoteuser extension still allows users to access the login page, something I don't really know. Ciencia Al Poder (talk) 20:47, 21 July 2015 (UTC)
The steps I took to configure Apache + Mediawiki for SSO is as follow
Download the mod_auth_sspi.so and implement both of these code in my httpd.conf file
<IfModule !mod_auth_sspi.c>
    LoadModule sspi_auth_module modules/mod_auth_sspi.so
</IfModule>
<Location "file/to/path">
    Options FollowSymLinks
    Order allow,deny
    Allow from all
    AuthName "TestWeb"
    AuthType SSPI 
    SSPIAuth On 
    SSPIAuthoritative On
    SSPIOmitDomain On
    SSPIOfferBasic on
    Require valid-user 
</Location>
Am I missing out any steps beside configuring the browser? What else must I take note of? Thanks for your response and help! 203.127.197.23 00:28, 12 June 2015 (UTC)

LDAP Auto Authetication file

Hello,

I have managed to configure the LDAP/AD and users are able to type in their windows credentials and password at the mediawiki login page with my domain name displayed at the dropdownlist. However, when I tried to implement the LdapAutoAuthentication.php file as follows, the domain at the dropdownlist become blank and the password entered although is correct, it denies my entry into the site. Why is this happening? Need enlightenment please! Huge thanks to all!!

require_once( "$IP/extensions/LdapAuthentication/LdapAuthentication.php" );
require_once( "$IP/extensions/LdapAuthentication/LdapAutoAuthentication.php" );
//$wgAuth = new LdapAuthenticationPlugin(); #Commented out for autologin
$wgLDAPAutoAuthDomain = "MYDOMAIN"; //uncomment for auto login 
$wgDiff3 = "";

# Authenticate against Active Directory
$wgLDAPDomainNames = array( "MYDOMAIN" );
$wgLDAPServerNames = array( "MYDOMAIN" => "MYDOMAINSERVER" );
$wgLDAPSearchStrings = array( "MYDOMAIN" => "USER-NAME@MYDOMAIN" );

$wgLDAPEncryptionType = array( "MYDOMAIN" => "clear" ); 
$wgLDAPUseLocal = false;
$wgMinimalPasswordLength = 1;


$wgLDAPBaseDNs = array(
  'MYDOMAIN' => 'cn=Users,dc=domain,dc=com'
);
 
$wgLDAPSearchAttributes = array(
  'MYDOMAIN' => 'sAMAccountName' );
 
 
$wgLDAPGroupUseFullDN = array( "MYDOMAIN"=>true );
$wgLDAPBaseDNs = array( 'MYDOMAIN' => 'dc=MYDOMAIN,dc=example,dc=com' );
$wgLDAPSearchAttributes = array( 'MYDOMAIN' => 'sAMAccountName' );
$wgLDAPGroupsUseMemberOf = array( "MYDOMAIN" => true );


//The objectclass of the groups we want to search for
$wgLDAPGroupObjectclass = array( "MYDOMAIN"=>"group" );

//The attribute used for group members
$wgLDAPGroupAttribute = array( "MYDOMAIN"=>"member" );

//The naming attribute of the group
$wgLDAPGroupNameAttribute = array( "MYDOMAIN"=>"cn" );
$userid = $_SERVER['REMOTE_USER'];
$wgLDAPAutoAuthUsername = $userid; 
AutoAuthSetup();

Anyhowputx (talk) 15:56, 10 June 2015 (UTC)

HELP ME

Hey there anyone who is reading this Im new to using Dolphin 3.0 and I'm runnign this emulator on my HP envy laptop...The games play but the characters move very SLOW as if they're in slow motion please send me an email to help! thank you!!!!! 99.236.59.88 17:01, 10 June 2015 (UTC)

Please note that this is the support desk for MediaWiki, a software used to run wikis. Basically we can give you support with running MediaWiki on a server, e.g. like Wikipedia. We are no experts for Dolphin.
Dolphin is an emulator for Gamecube and Wii, which allows you to run Gamecube and Wii games on the PC. Depending on how fast or slow or old your PC is, emulated games will be faster or slower. You should ask in a Dolphin forum - there people will be able to tell you, if the slowness you have is to be expected or what you can do against it. 88.130.78.120 17:24, 10 June 2015 (UTC)

HELP ME

 17:01, 10 June 2015 (UTC)

Wiki uses cookies to log in users. You have cookies disabled. Please enable them and try again

Wiki uses cookies to log in users. You have cookies disabled. Please enable them and try again

Why the above error occur when I tried to login to mediawiki?

I have <pre>session_save_path("tmp");</pre> on my localsettings file.

And when I look at the php error log, it gives me the following error

PHP Warning:  Unknown: open(tmp\sess_2084135d01d2d5c360ea28b255310cb7, O_RDWR) failed: No such file or directory (2) in Unknown on line 0
PHP Warning:  Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (tmp) in Unknown on line 0

A tmp folder has also been created in my wiki directory.

I am using IIS server.

Thanks all! Anyhowputx (talk) 02:24, 11 June 2015 (UTC)

Why do you need to define session_save_path for MediaWiki? This should be set up correctly on the server, and if not, you should correct the path there.
Also, I'd expect session_save_path to be an absolute path, not relative. Ciencia Al Poder (talk) 09:51, 11 June 2015 (UTC)

How to question: How to get a list of all .svg files, i.e. their really correct locations, on commons.wikipedia.

Hi! I asked at https://en.wikipedia.org/wiki/Wikipedia:Help_desk first (#commonswiki-20150417-all-titles_contains_names_of_deleted_files), and it was suggested that I best try to ask here or at https://en.wikipedia.org/wiki/Wikipedia:Village_pump_%28technical%29
I try here first.

So I'm searching for all svg-files on wikipedia. While doing this I found out that commonswiki-20150417-all-titles seems to contain deleted files.

For example http://commons.wikimedia.org/wiki/File:34sassinu.svg (I don't know what sort of image that is. Obviously.)

So my questions are:

1. Is there another list-file similiar to commonswiki-20150417-all-titles that contains all deleted files, so I could do a cross check?

2. Is there an all-titles list-file that doesn't contain the deleted files?

3. Bonus question: Some of those files in commonswiki-20150417-all-titles have been renamed. In line with the two first questions: How to find out the current name?

I only want to download the svg-files, and not to download like 250% overload. Out of the 20 files I tried around half were renamed.

And some were deleted. Only around 5 were actually to find under the name given in the all-titles file.

By now I would have been faster if I just grabbed a whole wikipedia-dump. :/ But then that I really don't want to do .

Greetings John 188.102.69.95 02:43, 11 June 2015 (UTC)

MobileFrontend and Mantle problem

I cannot update my wiki with Mobilefrontend. I added the appropriate code in my Localsettings.php. I downloaded the latest version of Mobilefrontend. I then downloaded Mantle 1.25 and put it in my extensions. When I go to my wiki it says please install Mantel. Does anybody know whats wrong. I am using Mediawiki 1.24.2 2601:8:B300:23C:79B6:F52C:189F:543A 05:04, 11 June 2015 (UTC)

I'm pretty sure you need to *install* Mantle. Just downloading it on the extensions directory isn't sufficient. Ciencia Al Poder (talk) 09:53, 11 June 2015 (UTC)

[SOLVED] Fatal error: Cannot instantiate abstract class Profiler in /usr/share/mediawiki/includes/profiler/Profiler.php on line 83 (MW 1.25.1)

Hi,

I upgraded from MW 1.24.2 to 1.25.1 (from http://download.opensuse.org/repositories/server:/php:/applications/openSUSE_13.2/)

sudo -u wwwrun php ./maintenance/update.php --quick --conf ./LocalSettings.php did run smoothly and I had to reinstall some composer managed extensions. No errors so far. But trying to run the wiki on my computer prints out

Fatal error: Cannot instantiate abstract class Profiler in /usr/share/mediawiki/includes/profiler/Profiler.php on line 83

I then tried to narrow down the source of failure, if this may have any relation to my LocalSettings.php, so I deactivated all extensions and settings, only rudimentary wg-variables were active. I even removed my installed composer extensions using /usr/bin/composer.phar remove --update-with-dependencies 'mediawiki/semantic-media-wiki' (etc. for all my composer managed extensions) to check if this fatal error is related but no success. The same fatal error remains.

Any tip, solution or fix? Thank you. Andreas P. 09:51, 11 June 2015 (UTC)

The solution was to remove an old file StartProfiler.php (see Manual:Profiling, in MW 1.25 profiling was completely rewritten) Andreas P. 20:33, 21 June 2015 (UTC)

Special:SMWAdmin > Data repair and upgrade versus rebuildData.php

So Special:SMWAdmin > "Data repair and upgrade" "offers a feature to restore all Semantic MediaWiki data based on the current contents of the wiki". Where rebuildData.php "recreates all the semantic data in the database".

What exactly is the difference (besides working command line or not)? Is there any difference? Or just calls Special:SMWAdmin the rebuildData.php script?

We're using SMW version 2.2. Waanders (talk) 09:58, 11 June 2015 (UTC)

> What exactly is the difference (besides working command line or not)? Is there any difference? Or just calls Special:SMWAdmin the rebuildData.php script?
No and to elaborate a bit more `Special:SMWAdmin` will make use of the job queue to direct the rebuild process for all pages while `rebuildData.php` [0] is a command line tool that allows to specify which pages are to rebuild.
As a side note mw.org is not the best place to ask SMW specific questions, for more details see Extension talk:Semantic MediaWiki.
[0] https://semantic-mediawiki.org/wiki/Help:RebuildData.php MWJames (talk) 10:41, 11 June 2015 (UTC)

[RESOLVED] Setting up WinCache

I am trying to using caching on site: mediawiki 1.25.1

I get the following error

[8521da36] 2015-06-12 01:16:59: Fatal exception of type MWException

when i switch the $wgMainCacheType property.

I have tested out the following values and get the above error every time:

  • CACHE_ACCEL
  • WinCache
  • CACHE_WinCache

I have installed(properly i believe) WinCache, so I don't know why it's not taking.

I don't know how to troubleshoot this further.

Wiki location:https://wiki.gamepaduniverse.com/

I am using Windows Server 2012 R2 and Plesk 12.x 75.72.156.129 01:24, 12 June 2015 (UTC)

As a first step I'd get more info about that exception: Manual:$wgShowExceptionDetails AKlapper (WMF) (talk) 10:21, 12 June 2015 (UTC)
[fa144128] /wiki/PadPedia MWException from line 70 of C:\Inetpub\vhosts\gamepaduniverse.com\wiki.gamepaduniverse.com\w\includes\objectcache\ObjectCache.php: Invalid object cache type "WinCache" requested. It is not present in $wgObjectCaches.
Backtrace:
#0 C:\Inetpub\vhosts\gamepaduniverse.com\wiki.gamepaduniverse.com\w\includes\objectcache\ObjectCache.php(46): ObjectCache::newFromId(string)
#1 C:\Inetpub\vhosts\gamepaduniverse.com\wiki.gamepaduniverse.com\w\includes\GlobalFunctions.php(3935): ObjectCache::getInstance(string)
#2 C:\Inetpub\vhosts\gamepaduniverse.com\wiki.gamepaduniverse.com\w\includes\Setup.php(581): wfGetMainCache()
#3 C:\Inetpub\vhosts\gamepaduniverse.com\wiki.gamepaduniverse.com\w\includes\WebStart.php(138): require_once(string)
#4 C:\Inetpub\vhosts\gamepaduniverse.com\wiki.gamepaduniverse.com\w\index.php(38): require(string)
#5 {main} GamepadUniverse (talk) 14:12, 12 June 2015 (UTC)
Heh, apparently, you should use wincache (all lowercase!)
Still, if you use CACHE_ACCEL, it will pick wincache itself if it's installed, so you shouldn't get any error when using CACHE_ACCEL. Ciencia Al Poder (talk) 17:06, 12 June 2015 (UTC)
I apologize for not presenting all the relevant details. The mediawiki installation is found in my Plesk 12.x folder aka Inetpub\vhosts and this is on a windows server. I used the link to download the installer and selected the php 5.4 option since that is what I am using. When I rerun that installer(which includes options to install lots of other programs beyond just wincache on windows server, it says "installed"), so my assumption is that it is installed properly.
Vulpix, your lowercase suggestion changed the error message in the right direction.
Now, I receive the following error:
Fatal error: Call to undefined function wincache_ucache_get() in C:\Inetpub\vhosts\gamepaduniverse.com\wiki.gamepaduniverse.com\w\includes\libs\objectcache\WinCacheBagOStuff.php on line 40 GamepadUniverse (talk) 22:12, 12 June 2015 (UTC)
Any ideas? I looked up the function in the php file:
public function get( $key, &$casToken = null ) {
$val = wincache_ucache_get( $key );
$casToken = $val;
if ( is_string( $val ) ) {
$val = unserialize( $val );
}
return $val;
}
the error is coming from the line:
$val = wincache_ucache_get( $key ); GamepadUniverse (talk) 16:21, 13 June 2015 (UTC)
Basically, WinCache is not installed/enabled in your server. wincache_ucache_get() is a function provided by WinCache. If it's not available then it's not installed or enabled. Ciencia Al Poder (talk) 19:23, 14 June 2015 (UTC)
Thanks for the tip. Located and edited the php.ini file by adding:
extension=php_wincache.dll
This solved the problem. GamepadUniverse (talk) 21:00, 20 June 2015 (UTC)

Localization extension (not the wiki loca!)

Hi,

I have a wiki for a game which has a lot of localization (go figure..) and because of that I usually have to put Korean names and when English version becomes available I basically have to use ReplaceText extension and manually replace everything. With bigger updates where there are thousands of names this takes too much time (pywikibot is not an option because some items might be using two different loca strings that have the same value and if only one of them is going to be changed a bot working purely on text would replace both).

Because I don't really know anything about programming and can't really create my own extension I am looking for something that would basically do this: in the text I use something like {{str_dev_name_of_an_item}} and that would be automatically replaced by the name that is defined in some file that contains whole loca (so I would only have to update that one file from time to time and everything in the wiki would update itself).

Since googling localization and mediawiki is more likely find entries about wiki loca I have to ask here if anyone has ever heard of an extension that would work in a similar way or in exactly that way?

Thanks in advance! Cristal01 (talk) 09:57, 12 June 2015 (UTC)

When ReplaceText takes too much time, I guess this is caused by the fact that the different replacements are stored in the job queue and that during every single page hit there by default is a chance of 1% that one of these jobs gets executed. You can speed up this process by running the maintenance script runJobs.php. That way you can run all jobs from the queue immediately! If you put this script into your crontab, it will get executed automatically. 88.130.109.170 10:52, 12 June 2015 (UTC)
If you have one text, which has to appear on many pages and if you want to be able to update this text easily, you should put this text into a template! In the different pages you then transclude the template and when you want to change the text, all you have to do is change the template. All the pages, which use this template will then be updated automatically (using the job queue...). 88.130.75.69 11:02, 12 June 2015 (UTC)
"When ReplaceText takes too much time, I guess this is caused by the fact that the different replacements are stored in the job queue and that during every single page hit there by default is a chance of 1% that one of these jobs gets executed. You can speed up this process by running the maintenance script runJobs.php. That way you can run all jobs from the queue immediately! If you put this script into your crontab, it will get executed automatically."
This is not the issue, I already increased the amount of jobs, the issue is that with each update i have to use it thousands of times to change all Korean names to English equivalents, this is what takes too much time.
"If you have one text, which has to appear on many pages and if you want to be able to update this text easily, you should put this text into a template! In the different pages you then transclude the template and when you want to change the text, all you have to do is change the template. All the pages, which use this template will then be updated automatically (using the job queue...)."
Still doesn't fix the issue because I would still have to replace the text in every single template Cristal01 (talk) 11:33, 12 June 2015 (UTC)

Error in registering

When I tried to regiser I've got that error:

Fatal error: Call to a member function xpath() on a non-object in /home/trouse/domains/westeros.pl/public_html/wiki/extensions/ConfirmEdit/Asirra.class.php on line 52 TraaBBIT (talk) 14:13, 12 June 2015 (UTC)

xpath is a PHP function that comes with PHP when simplexml is enabled. Be sure your PHP is compiled with simplexml support, or maybe you need to install a php-xml package or similar. Ciencia Al Poder (talk) 17:11, 12 June 2015 (UTC)
Please be aware that Asirra is no longer available as a service since fall last year. So upgrading ConfirmEdit and/or disabling Asirra may very well be an option here, too. [[kgh]] (talk) 12:51, 13 June 2015 (UTC)

Page Protection Options

So I'm trying to figure out how to add more options to the access level drop down. I created a moderator group and granted some extra permissions. I want them to be able to lock pages as well as to be able to edit these pages. However if I lock them as an administrator, my mods can no longer edit them. Also if the moderator trys to lock it, he can not lock restriction to the mod level. The next level is registered users, meaning anyone can still edit the page with the protection on.


So, for this drop down for Allowing edits on a protected page, how do I add an option for my user group "Moderators"?

Thanks 75.144.71.81 15:51, 12 June 2015 (UTC)

Sounds like you are looking for $wgRestrictionLevels! 88.130.75.69 19:23, 12 June 2015 (UTC)
Soo I think I follow what the config page says but it's still not working for me. I have the following.
    1. Edit and protect restrictions
$wgRestrictionLevels[] = 'moderator';
$wgGroupPermissions['moderator']['moderator'] = true;
Basically I created a NEW group called moderators. I gave them some page creating rights and so on. But now I want to add a protection level so certain pages I can select to protect but allow Moderators to edit.. Currently the option is not there.. Is $wgRestrictionLevels what I am really looking for? 12.26.191.226 23:45, 12 June 2015 (UTC)

[RESOLVED] Logo not showing after upgrade to 1.25

Since the upgrade to version 1.25 the logo in the upper left corner is gone.
I checked the $wgLogo path in LocalSettings.php. Here is all ok.
Is there something i forget?
thanks in advance. Mrnoname~mediawikiwiki (talk) 23:14, 12 June 2015 (UTC)

$wgLogo should just continue to be working. What skin are you using? Vector? Or a custom skin? And are all skins affected or only that one?
Finally: Is the wiki available online? If so: What's the URL? 88.130.75.69 01:34, 13 June 2015 (UTC)
Hello. I encountered the same problem.
My wiki is http://123.57.220.84/mediawiki/index.php/.
And my LocalSetting.php is:
## Default skin: you can change the default skin. Use the internal symbolic
## names, ie 'vector', 'monobook':
$wgDefaultSkin = "vector";
# Enabled skins.
# The following skins were automatically enabled:
wfLoadSkin( 'CologneBlue' );
wfLoadSkin( 'Modern' );
wfLoadSkin( 'MonoBook' );
wfLoadSkin( 'Vector' );
The $wgLogo only affect some page like login page. But the common page's logo doesn't change at all.
I have look for several days. Can you help me please. Huhuang03 (talk) 06:36, 23 June 2015 (UTC)
I don't see $wgLogo defined in your LocalSettings.php.
Remember that's not recommended to replace the existing logo inside the MediaWiki installation folder, but to provide a custom URL for the logo in $wgLogo. Ciencia Al Poder (talk) 09:26, 23 June 2015 (UTC)
I forget to post it:
$wgLogo = "$wgResourceBasePath/resources/assets/kaixinmahua_logo.png";
Please see this page:
http://123.57.220.84/mediawiki/index.php?search=%E5%91%A8%E6%9D%B0%E4%BC%A6&title=Special%3A%E6%90%9C%E7%B4%A2&go=%E5%89%8D%E5%BE%80
and this page:
http://123.57.220.84/mediawiki/index.php?title=Special:%E7%94%A8%E6%88%B7%E7%99%BB%E5%BD%95&returnto=%E5%BC%80%E5%BF%83%E9%BA%BB%E8%8A%B1
the logo are not same! Huhuang03 (talk) 09:54, 23 June 2015 (UTC)
For me the logos are the same: Four red Chinese signs. Both times.
If you still see the old logo on one of these pages, this most likely is a caching issue; maybe the old logo is still in your browser cache or in a proxy somewhere between the server and yourself or so. 88.130.88.162 11:56, 23 June 2015 (UTC)
Yes, it's the cache. Thanks Huhuang03 (talk) 11:07, 24 June 2015 (UTC)

Viewing image and uploading image error - memory size

When I click on the image found on page:https://wiki.gamepaduniverse.com/wiki/DIY:Xinput_Arduino_Gamepad

I also get the type of error when i try to upload any photo.


I get the following error:

Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 2304 bytes) in C:\Inetpub\vhosts\gamepaduniverse.com\wiki.gamepaduniverse.com\w\includes\media\Bitmap.php on line 345 

I am using Mediawiki 1.25.1 and Windows Server 2012 R2.


How do I correct this issue? GamepadUniverse (talk) 03:59, 13 June 2015 (UTC)

You correct that by setting a higher memory_limit in PHP. Currently you have 64 MB; maybe try 128 MB! 88.130.71.17 12:38, 13 June 2015 (UTC)
Thanks! That resolved the issue. GamepadUniverse (talk) 16:17, 13 June 2015 (UTC)

Try regexp 1 (2 matches) as opposed to regexp 2 (1 match). the only difference is that the first uses ' *' to match spaces, while the second uses '\s*' to match spaces. The second regexp should yield at least the same number of matches as the fist regexp, as a space is always matched by \s (all whitespace). What is wrong here?

Simpler version with same behaviour: regexp 1 (7 matches) & regexp 2 (6 matches). Herzi Pinki (talk) 08:04, 13 June 2015 (UTC)

copied to https://phabricator.wikimedia.org/T102932 Herzi Pinki (talk) 10:06, 18 June 2015 (UTC)

Error creating thumbnail : Unable to save thumbnail Destination

hello

I installed mediawiki 1.25.1 on Olympe.in ( host)

MediaWiki told that the server was ok

I installed the image import

$ wgEnableUploads = true;

  1. $ wgUseImageMagick = true;
  2. $ wgImageMagickConvertCommand = "/ usr / bin / convert" ;

and end of file

wgMaxUploadSize $ = 1024 * 1024 * 5 ; $ wgCheckFileExtensions = true; $ wgFileExtensions = array (' png ' 'gif ', ' jpg ', ' jpeg' , 'mm' ' odt ' ' ods ',' xls ', ' pdf' , 'doc ', ' pps ',' ppt ',' mp3 ' ) ; $ wgFileBlacklist = array (' php ', ' php3 ', ' php4 ');

The problem is that as soon as I want to import an image there is this error

the image is displayed in the import file, but after it is not there, the page exists , but no picture

I'm not a computer scientist so I need simple explanations , a code to add

where is bp ? computer scientists of Olympe.in are not savvy mediawiki ,

Someone already had the same prb in February , but no one answered her in the site faq

cordially Zazoult49 (talk) 13:47, 13 June 2015 (UTC)

Please post the full and complete error message, after checking proper write permissions for the folder that you plan to store files in. AKlapper (WMF) (talk) 06:10, 15 June 2015 (UTC)

Set/call wiki version compatibility for extension

Hello,

I'm developing an extension for my wiki farm. I want to know how a PHP extension script looks like that has these features:


  • Extension is going to call the wiki version (from /wiki/includes/specials/SpecialVersion.php). If the version is over 1.18 activate the extension, if the version is under 1.18 disable the function automatically or send a (fatal) error message and disallow/disable the extension for BlueSpice & Semantic-MediaWiki distributions/wikis and allow/activate extension for iSC Inc. & MediaWiki distributions/wikis:
// Put the software in an array of form 'name' => 'version'. All messages should be loaded here, so feel free to use wfMessage in the 'name'. Raw HTML or wikimarkup can be used.
$software = array();
$software['[https://inc.isc/ iSC Inc.]'] = self::getVersionLinked();
$software['[https://www.mediawiki.org/ MediaWiki]'] = self::getVersionLinked();
if ( wfIsHHVM() ) {
	$software['[http://hhvm.com/ HHVM]'] = HHVM_VERSION . " (" . PHP_SAPI . ")";
} else {
	$software['[https://php.net/ PHP]'] = PHP_VERSION . " (" . PHP_SAPI . ")";
}
$software[$dbr->getSoftwareLink()] = $dbr->getServerInfo();


=> Extension must get data from /wiki/includes/specials/SpecialVersion.php!!!


I hope somebody can help me. Suriyaa Kudo (iSC Inc.) (talk) 14:23, 13 June 2015 (UTC)

LocalSettings.php:
require_once($IP . '/extensions/myExt/myExt.php');
myExt.php:
<?php
if ( version_compare( $GLOBALS['wgVersion'], '1.19', '<' ) ) {
    echo 'myExt requires at least MediaWiki 1.19, you have ' . $GLOBALS['wgVersion'];
    exit();
}
// Rest of code
88.130.71.17 14:50, 13 June 2015 (UTC)
Thanks but how can the extension disable/activate automatically itself. Suriyaa Kudo (iSC Inc.) (talk) 15:07, 13 June 2015 (UTC)
Extensions cannot enable and disable themselves. They must be included in LocalSettings.php. If they are, they are enabled, if they are not, they are disabled. With other words: The version check, which I posted above, will only be executed, if the extension is enabled and it might lead to the result that the extension does nothing except stopping execution. You might call this "disabled", but technically the extension must in fact be enabled to do that. 88.130.71.17 15:52, 13 June 2015 (UTC)
And what about disallow/disable the extension for BlueSpice & Semantic-MediaWiki distributions/wikis and allow/activate extension for iSC Inc. & MediaWiki distributions/wikis? Suriyaa Kudo (iSC Inc.) (talk) 06:48, 14 June 2015 (UTC)
Maybe you should use wfUseMW() instead, which does exactly what you want (it throws a fatal error, if the mediawiki version doesn't match). To deactivate the extension, a return; instead of the echo and exit should work. Florianschmidtwelzow (talk) 10:02, 16 June 2015 (UTC)
Ok. Suriyaa Kudo (iSC Inc.) (talk) 09:31, 24 June 2015 (UTC)

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 GamepadUniverse (talk) 17:27, 13 June 2015 (UTC)

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? Florianschmidtwelzow (talk) 10:04, 16 June 2015 (UTC)
No, I get the same result. I don't believe I have ever modified anything in that extension's directory. GamepadUniverse (talk) 20:22, 20 June 2015 (UTC)
Resolved GamepadUniverse (talk) 01:01, 2 July 2015 (UTC)
How? Why? 88.130.76.192 02:06, 2 July 2015 (UTC)

Importing the Wikia source code into a Mediawiki server?

Hi, I'd just like to preface this post by saying I have next to know clue really what I'm doing here, I originally just planned on making a wikia the usual way, but unfortunately I can't allow the information I want to store on it to be publicly accessible. Since I'd like to still use a wikia-type interface, I was wondering if there is a way to take the wikia source code they have on git and import it to my mediawiki server I've installed with Bitnami, and how I would do that. I'm using Mediawiki 1.25.1, PHP 5.5.25 (apache2handler) and MYSQL 5.6.23

Again I am utterly new to html, sql, webpage hosting etc. so please keep it as simple as possible for me please! Thank you for your time. Takurudesu (talk) 11:03, 14 June 2015 (UTC)

[RESOLVED] How can I change the background color of the skin Vector?

Hi,
I have a question: can you tell me how to change the background color of the skin Vector in Mediawiki 1.25.1? Until now I used MediaWiki 1.22 and was sufficient just change the color in the file screen.less... But now it looks totally different and I do not understand what I have to change.
Thank you! 185.5.60.134 16:24, 14 June 2015 (UTC)
Basically what you do is, use the same style definition as you did before (this modified line from in the screen.less file), but put the CSS definition into the wiki page MediaWiki:Vector.css in your wiki. Basically, just as an example (which will most likely not do what you want, but should show how that's basically meant to look like):
#mw-body {
background-color: red;
} 88.130.108.58 16:59, 14 June 2015 (UTC)
Great! Thank you! 185.5.60.134 23:13, 14 June 2015 (UTC)
You must to use admin user... And #mw-body is wrong (!), you can use the tag name body (it is unique), or, today, for current skin Vector version, body.mediawiki. Krauss (talk) 17:45, 22 July 2019 (UTC)
i tried both and i get nothing except the text on my screen

66.211.253.126 (talk) 18:48, 24 July 2019 (UTC)

[RESOLVED] #replace function doesn't work

Hi,

We've a problem using the #replace function. At one wiki running MW 1.24.2 + ParserFunctions 1.6.0 text is properly replaced, second wiki (also MW1.24.2 + PF 1.6.0) doesn't.

A clue: the second wiki doesn't show replace at the "Parser function hooks" section @ Special:Version page. Waanders (talk) 09:30, 15 June 2015 (UTC)

Do you have
$wgPFEnableStringFunctions = true;
in your LocalSettings.php? Clump (talk) 12:15, 15 June 2015 (UTC)
Thanks a lot. I did include $wgPFEnableStringFunctions, but for some reason not in right order. Now it works fine. Waanders (talk) 13:39, 15 June 2015 (UTC)

Lua, Scribunto alternatives.

Hey guys,

I'm running a mediawiki site on a shared server. Unfortunately, having talked with the host provider I have subsequently learned I do not have access to any sort of /usr/bin subfolders.

I've tried for days to try and get Lua to work but keep getting the error code 'Lua error: Internal error: The interpreter has terminated with signal "11"' on the particular page I try and create a template on.

My question is there any way around this? Is there any way to create some sort of template without scribunto?

Cheers,

Tom 118.138.15.91 09:47, 15 June 2015 (UTC)

Forgot to mention running MW 1.25.1 118.138.15.91 09:56, 15 June 2015 (UTC)
You don't need to use Scribunto to create templates. See Help:Templates. Extension:ParserFunctions can give you a good set of functionality to create templates. Ciencia Al Poder (talk) 09:24, 16 June 2015 (UTC)

Export all pages

Hello.

I want to move my Mediawiki to another server.

Is it possible to export all pages? TraaBBIT (talk) 13:04, 15 June 2015 (UTC)

In your database, there should be a "Page" table. Just export it. 2401:7400:C800:32AC:780F:3D18:7FAA:8976 13:52, 15 June 2015 (UTC)
Exporting the page table is not enough. You will also need the entries from the revision table and (at least many) from the text table. Moving a wiki is explained here: Moving a wiki! 88.130.76.25 15:26, 15 June 2015 (UTC)
OK.
And is that posibble to install new Mediawiki and then just move old page database? TraaBBIT (talk) 10:44, 18 June 2015 (UTC)
I moved database, but when I open any page I got information "Version #some number doesnt exist" TraaBBIT (talk) 11:55, 18 June 2015 (UTC)
For the tables with the really important data it is not possible to copy over single tables. This will most likely cause errors like the one you are getting now. What is possible is to copy the complete database from one wiki to another one. If done correctly (meaning: really the complete database), this will create a copy of the original wiki. 88.130.65.200 12:45, 18 June 2015 (UTC)
OK.
So I need to move complete database again.
Please tell me should I use the same version of Mediawiki? TraaBBIT (talk) 13:06, 18 June 2015 (UTC)
Yes. If you use a newer one, then you will basically have to do a database upgrade after copying the DB - in this case it would be better to upgrade the original wiki and then just to copy the DB over without having to upgrade it afterwards. You cannot use an older version as MediaWiki does not support downgrades. 88.130.65.200 13:19, 18 June 2015 (UTC)
OK.
I will try :) TraaBBIT (talk) 13:38, 18 June 2015 (UTC)
Actually, I'd recommend to NOT upgrade the wiki on the old server, copy the DB to the new host and download a new version of MediaWiki, and then upgrade on the new server and test that everything works. That way you still have a working wiki, in case something goes wrong on the new server. Remember that you can't downgrade! Ciencia Al Poder (talk) 09:20, 19 June 2015 (UTC)

EmailAuthentication broken - token is NULL in user table

Hello everyone,

i recently updated to Mediawiki 1.25. Now everything works fine, but EmailAuthentication is broken: When a new user creates an account, he receives his confirmation mail, but the confirmation link leads to an error telling the user the token is invalid or expired.

Looking at the database, i notice that the user_email_token, user_email_token_expires and user_email_authenticated columns of the user table are NULL for the newly registered users.

I set up a wgDebugLogFile in LocalSettings.php and saw the following suspicious lines in the log file when creating a new user:


> [exception] [ad7904a2] /index.php?title=Spezial:Anmelden&action=submitlogin&type=signup&returnto=Spezial:E-Mail+best%C3%A4tigen/142336d3821c94adb52c80a82fb379c0 MWException from line 3658 of /homepages/26/d447883330/htdocs/wiki/includes/User.php: CAS update failed on user_touched for user ID '825'.

> #0 /homepages/26/d447883330/htdocs/wiki/includes/User.php(4165): User->saveSettings()

> #1 /homepages/26/d447883330/htdocs/wiki/includes/specials/SpecialUserlogin.php(409): User->sendConfirmationMail()

> #2 /homepages/26/d447883330/htdocs/wiki/includes/specials/SpecialUserlogin.php(314): LoginForm->addNewAccount()

> #3 /homepages/26/d447883330/htdocs/wiki/includes/specialpage/SpecialPage.php(384): LoginForm->execute(NULL)

> #4 /homepages/26/d447883330/htdocs/wiki/includes/specialpage/SpecialPageFactory.php(582): SpecialPage->run(NULL)

> #5 /homepages/26/d447883330/htdocs/wiki/includes/MediaWiki.php(267): SpecialPageFactory::executePath(Object(Title), Object(RequestContext))

> #6 /homepages/26/d447883330/htdocs/wiki/includes/MediaWiki.php(566): MediaWiki->performRequest()

> #7 /homepages/26/d447883330/htdocs/wiki/includes/MediaWiki.php(414): MediaWiki->main()

> #8 /homepages/26/d447883330/htdocs/wiki/index.php(41): MediaWiki->run()

> #9 {main}

> UserMailer::send: sending mail to Testuser3 <******@****.**>

>

Looks like the user is created, but the exception prohibits saving the token and expiry information (at least this is my guess). Can anyone help?

I originally posted this question on the mailing list: https://lists.wikimedia.org/pipermail/mediawiki-l/2015-June/044454.html Other users confirmed the problem: https://lists.wikimedia.org/pipermail/mediawiki-l/2015-June/044455.html

A report on phabricator which was recommended on the list failed due to this problem: https://phabricator.wikimedia.org/T102276 Mrknowitall3 (talk) 14:26, 15 June 2015 (UTC)

I'm one of the other users. Thanks, Mrknowitall3, for reporting the problem. Can someone who has a good account set up on Phabricator already help us by reporting this problem there, and putting a link to the bug report back here? Klortho (talk) 15:47, 15 June 2015 (UTC)
Other situation, same error message: T95839. 88.130.76.25 15:55, 15 June 2015 (UTC)
No need for a "good account", anybody can report a bug in Phabricator and it does not require a separate account. AKlapper (WMF) (talk) 08:10, 16 June 2015 (UTC)
AKlapper, as written above, we have this problem and can not report a bug: https://phabricator.wikimedia.org/T102276 Mrknowitall3 (talk) 10:11, 16 June 2015 (UTC)
I am sorry. I missed that part and now I understand what you meant by "good report". This problem will be fixed in about 48 hours. AKlapper (WMF) (talk) 10:34, 16 June 2015 (UTC)
No problem ;) let's wait. Mrknowitall3 (talk) 10:43, 16 June 2015 (UTC)
The phabricator login works now. I created an entry there:
https://phabricator.wikimedia.org/T102927 Mrknowitall3 (talk) 09:17, 18 June 2015 (UTC)
This problem occurs on 1.25.0 as well as 1.25.1 (the latest). When I downgraded and installed 1.24.2, it works. Klortho (talk) 17:01, 15 June 2015 (UTC)
Has this problem fixed, yet? 79.197.230.221 22:26, 13 July 2015 (UTC)
I am still having those problems. I tried to fix the php file manually, but the PhabricatorUser.php seems to have a slightly different structure than our User.php file… 2003:6A:6A17:70B2:A90E:3124:3861:D785 22:46, 13 July 2015 (UTC)
The patch for 1.25 is at https://gerrit.wikimedia.org/r/#/c/221601/2/includes/User.php Ciencia Al Poder (talk) 21:04, 14 July 2015 (UTC)

Email Activation not working

I'm relatively new to mediawiki. I've installed it on a windows7 machine using bitnami. when I set it up the wizard was pretty basic and didn't really ask for much configuration other than the ports. I'm now trying to setup the email features to allow users to reset their password however can't find any way of doing it.

When I try to confirm an email address for a user I get the following error

Coaching Wiki could not send your confirmation mail. Please check your email address for invalid characters. Mailer returned: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set()

can anyone help me? Chunter1983 (talk) 14:39, 15 June 2015 (UTC)

Well, are you actually running a local mailserver? Because that seems to be your current configuration. Documentation is available. Malyacko (talk) 08:07, 16 June 2015 (UTC)

Table field formula

I have a table with some numeric fields Cost, OnHand and Value. I want to use a formula = Cost * OnHand in the Value field so that it is automatically calculated whenever a record is displayed.

Is this possible please MVgsy (talk) 15:27, 15 June 2015 (UTC)

No.
The only option it comes to my mind is to create a template that will be used on each row. Example:
Your table would look something like this:
{|
|-
! Cost
! OnHand
! Value
{{CostRow| Cost = 5 | OnHand = 10}}
{{CostRow| Cost = 7 | OnHand = 15}}
{{CostRow| Cost = 3 | OnHand = 20}}
|}
Template:CostRow would be something like this:
|-
| {{{Cost}}}
| {{{OnHand}}}
| {{#expr: {{{Cost|0}}} * {{{OnHand|0}}} }}
Ciencia Al Poder (talk) 09:30, 16 June 2015 (UTC)

Bootstrap skin - Adding Print/Export

Hi,

I changed from Vector skin to the bootstrap twitter skin. But however, some headings are gone.

I will like to add the print/export heading which consist of "Create a book" , "Download as PDF" , "Printable Version" in the dropdownlist.

How should I go about doing it?

Thanks in advance! 2401:7400:C800:32AC:780F:3D18:7FAA:8976 16:28, 15 June 2015 (UTC)

https://github.com/666threesixes666/funtoo
my skin doesn't remove any functionality of mediawiki. it's also bootstrapped. it's very straight forward, and closely follows the skinning manual.
several of those i think are from plugins, however printable version is default, i didn't take that from you. only thing not tested is language selection because my wiki sand box is english only at the moment, ill look into fixing that in the future releases. 666threesixes666 (talk) 13:14, 16 June 2015 (UTC)
Hi,
Thanks for your reply. But I am using this bootstrap skin instead (https://github.com/borkweb/bootstrap-mediawiki)
Anyway, is this website (http://www.funtoo.org/Welcome) the skin that you are using aka (https://github.com/666threesixes666/funtoo)?
Thanks! Anyhowputx (talk) 02:49, 17 June 2015 (UTC)

The tool doesn't load in Special:Translate

I want translate a page in my wiki but the tool doesn't load in Special:Translate.

I read The tool doesn't load in Special:Translate Configuration and set $wgResourceLoaderMaxQueryLength = 1024; and install and enable UniversalLanguageSelector but that's not enough. WikiMech (NOT WMF) (talk) 17:55, 15 June 2015 (UTC)

Look at the JavaScript error console, and inspect HTTP traffic to see if you get HTTP 5XX or HTTP 4XX error responses. Ciencia Al Poder (talk) 09:33, 16 June 2015 (UTC)

[RESOLVED] Please help... "Cannot contact the database server"

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


Hi all,
I recently changed the mysql password on my wiki server and now I'm getting 'Cannot contact the database server' when I load the wiki page. MySQL is running, I can login via 'mysql -u root -p' and all of my creds and info are correct in LocalSettings.php.
I put the test.php in my docroot as suggested by another user on here and I get:
Failed:Access denied for user 'wikiuser'@'localhost' (using password: NO)
My details are as follows:
MediaWiki 1.24
MySQL: 5.1.66 - x86_64 - redhat-linux-gnu
PHP 5.3.3
Please please please assist. Thank you! 170.248.143.63 21:56, 15 June 2015 (UTC)
This is an issue of your configuration :) Please check, if the username and password of your database user (which must have access to the database you want to use) is written correctly and is valid.
The error "Access denied for user 'username'@'hostname'" is caused by incorrect credentials. From your error message I see that you are using the MySQL username "wikiuser". And I see that you are not using a password. Please make sure that you are using the correct username and password!
Since you say that you recently changed the password, my guess is that something got broken in that line in LocalSettings.php, where you have defined the password: Maybe this line is commented out or maybe the variable name is missspelled or something like that. 88.130.76.25 22:30, 15 June 2015 (UTC)
I fixed it... Sorry guys... for some reason I put the mysql pass in LocalSettings.php. Thx for the quick response. 170.248.143.63 22:31, 15 June 2015 (UTC)
That is where it belongs. 88.130.76.25 22:46, 15 June 2015 (UTC)
 22:31, 15 June 2015 (UTC)
Thank you, this helped me resolve my my (same) problem. 46.126.203.45 (talk) 14:51, 3 December 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

[RESOLVED] InstantCommons suddenly is not working

Hi Does any one else have the problem that instant commons is suddenly not showing the pictures and displaying instead the broken file path in red colour? It was working fine since yesterday but today is not working. No changes were made in mediawiki instalation and I don't know what can be the problem.

Thank you.

Example: http://es.marenostrum.info/index.php?title=El_feudalismo_en_Europa

MediaWiki 1.24.2 PHP 5.5.24 (cgi-fcgi) MySQL 5.1.73-log Carlos Cristia (talk) 22:26, 15 June 2015 (UTC)

 22:29, 15 June 2015 (UTC)
 22:32, 15 June 2015 (UTC)
 22:34, 15 June 2015 (UTC)
 22:34, 15 June 2015 (UTC)
 22:35, 15 June 2015 (UTC)
It is not fixed.
Someone posted in the wrong place.
I have found out this wiki with the same problem:
http://edu.wiki.org.il/%D7%A2%D7%9E%D7%95%D7%93_%D7%A8%D7%90%D7%A9%D7%99 Carlos Cristia (talk) 22:49, 15 June 2015 (UTC)
I do not know how it has been fixed by itself.
No idea what hapened.
Thank you Carlos Cristia (talk) 05:22, 16 June 2015 (UTC)
Could it be a similar problem - the communication to de.wikipedia is broken. The files from Commons are shown in http://regiowiki.at , but if the file is uploaded on wikipedia the http://regiowiki.at/wiki/Datei:Logo_Polizei_AT.svg is shown - tillyesterday it works okay. - Karl Gruber (talk) 14:43, 16 June 2015 (UTC)
This is https://phabricator.wikimedia.org/T102566 and should be fixed now - please see the bug report (and feel free to comment there if there are still problems). Thanks! AKlapper (WMF) (talk) 17:02, 16 June 2015 (UTC)
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 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.214 12:54, 20 June 2015 (UTC)
I have still problems with commons images in my wiki after this http to https change. My wiki is showing only red links not images. Before this change everything was working fine. My wiki is running on version 1.23.3 and has instantcommons set true. I tried also ForeignFileRepos with both http and https links but with no success. Where is the problem? I couldn't find any help on internet. What I have to change or update to get it working properly again? 88.196.21.151 09:31, 26 June 2015 (UTC)

How can I change the HTML title suffix of all the pages?

The suffix of pages in the English version of Wikipedia is " - Wikipedia, the free encyclopedia", how do I change the suffix to be different than the name of the website? My website is Speedypedia, still in alpha. I'm using the latest production versions of MediaWiki, PHP and MySQL - I don't know the version numbers, but you can see the source code of MediaWiki on GitHub. Uri Even-Chen (talk) 04:31, 16 June 2015 (UTC)

Edit MediaWiki:pagetitle Ciencia Al Poder (talk) 09:34, 16 June 2015 (UTC)
This page was deleted 8 years ago! Uri Even-Chen (talk) 17:04, 16 June 2015 (UTC)
Yes, because such messages come from the MediaWiki code. They were deleted during an upgrade if they matched the default text, so if the message changes on a next upgrade it won't be inadvertently overridden by the text of that page. See Help:System message Ciencia Al Poder (talk) 19:23, 16 June 2015 (UTC)

For a better video playback experience we recommend an HTML5 video browser.

I already have a HTML5 browser that works with YouTube. So why do I get a message saying I need a new browser? QuentinUK (talk) 07:03, 16 June 2015 (UTC)

Do you think that's enough information that allows someone else to answer? :)
Which MediaWiki version, which browser, which video file type, any public testcase to link to? Malyacko (talk) 08:33, 17 June 2015 (UTC)
I've tried looking at a Wikipedia source and it says
<meta name="generator" content="MediaWiki 1.28.0-wmf.1">
That is odd because the MediaWiki 1.28 page says it is a future release.
Anyway does that answer the first question? QuentinUK (talk) 10:03, 18 May 2016 (UTC)
I don't know which version of MediaWiki is used by Wikipedia, or even if it has standardised all the different pages to use the same version. Do the Wikimedia engineers know which version of MediaWiki is used by Wikipedia, or does Wikipedia have its own Wikimedia engineers? Maybe I should be asking the Wikipedia engineers but I don't know where to find them. QuentinUK (talk) 09:52, 18 May 2016 (UTC)
We've asked which MediaWiki version because MediaWiki software can be downloaded and installed on your own server, and you didn't specify if the problem happened on Wikipedia or somewhere else.
Also, please specify your browser version and on which video/page you're having this problem. Ciencia Al Poder (talk) 11:18, 18 May 2016 (UTC)

[RESOLVED] Orphans pages after upgrade

Hi,

mediawiki 1.25 PHP 5.4.41 MariaDB 5.5.40

Apparently all my pages is orphans after upgrade to version 1.25. When I try access the wiki I get : Main Page There is currently no text in this page. You can search for this page title in other pages, or search the related logs, but you do not have permission to create this page.

How I can fix this?

Regards, 187.51.15.5 10:29, 16 June 2015 (UTC)

The message "There is currently no text in this page. You can search for this page title in other pages, or search the related logs" is shown, when MediaWiki does not find a fitting record in the page table inside the database. We need more information in order to tell you, what might have happened: How did you do the upgrade? Have you copied the database during that process? Did you import/export pages? From which version did you upgrade? Was it maybe a really, really old one?
The quickest solution will most likely be: Take a backup of the database, run the database update again and use that database. 88.130.116.30 11:51, 16 June 2015 (UTC)
Thank you.
Now the problem is with revision:
Página principal
The revision #2950 of the page named "Página principal" does not exist.
This is usually caused by following an outdated history link to a page that has been deleted. Details can be found in the deletion log.
I check the revision table and rev_id 2950 exist. What can to be?
MariaDB [wikidb]> select * from revision where rev_id=2950;
+--------+----------+-------------+-------------+----------+---------------+----------------+----------------+-------------+---------+---------------+----------+--------------------+-------------------+
| rev_id | rev_page | rev_text_id | rev_comment | rev_user | rev_user_text | rev_timestamp  | rev_minor_edit | rev_deleted | rev_len | rev_parent_id | rev_sha1 | rev_content_format | rev_content_model |
+--------+----------+-------------+-------------+----------+---------------+----------------+----------------+-------------+---------+---------------+----------+--------------------+-------------------+
|   2950 |        1 |        2920 |             |        1 | Results       | 20110810213137 |              0 |           0 |    2454 |          1932 |          | NULL               | NULL              |
+--------+----------+-------------+-------------+----------+---------------+----------------+----------------+-------------+---------+---------------+----------+--------------------+-------------------+
1 row in set (0.00 sec)
187.51.15.5 14:15, 16 June 2015 (UTC)
What have you done inbetween? Is the "There is currently no text in this page" error solved now? Or do you see both errors, the one for "Main Page" and the other for "Página principal"? 88.130.116.30 14:31, 16 June 2015 (UTC)
Hi,
I restore a old backup and run update.php and now work fine.
Regards, 187.51.15.5 14:52, 16 June 2015 (UTC)

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 Karl Gruber (talk) 12:58, 16 June 2015 (UTC)

Sounds to me like you have the same issue as this user here: [[Project:Support desk/Flow/2015/06#c-Carlos_Cristia-2015-06-15T22:26:00.000Z-[RESOLVED]_InstantCommons_suddenly_is_not_working]]
For him the "solution" was to wait and the issue fixed itself. Somehow... 88.130.116.30 14:38, 16 June 2015 (UTC)
See https://phabricator.wikimedia.org/T102566 AKlapper (WMF) (talk) 17:02, 16 June 2015 (UTC)
I have tried it with 'https://de.wikipedia.org/w/api.php', - but the problem is not solved. Commons works okay. -- Karl Gruber (talk) 20:35, 16 June 2015 (UTC)
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 -- Karl Gruber (talk) 04:52, 18 June 2015 (UTC)
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 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.214 12:55, 20 June 2015 (UTC)
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 Karl Gruber (talk) 14:56, 20 June 2015 (UTC)
Hi Karl,
the URL, which you have there looks ok. However, please note that for $wgUseInstantCommons, valid values are true and false. So basically both of the lines you posted above might make your wiki explode or run away with your girlfriend, but they most likely don't do what you think they do. ;-) Depending on how the source code is written, invalid values might "work" at one place while they don't work at another.
$wgUseInstantCommons = true;
$wgUseInstantCommons = false;
are valid. To activate instant commons, set $wgUseInstantCommons = true;! 88.130.116.214 22:33, 20 June 2015 (UTC)
I tried it now, with a lokal testinstallation. I have the same effekt. If I link to a lokal image ->all is okay - if I link to a commons I get the error: Error creating thumbnail without more information. If I link to the file without "thumb" or other options so the link appears as File:image.jpg as a blue link, and its possible to click to commons. In the wanted files the file appears also correctly. I dont know more :-( regards and thx-- Karl Gruber (talk) 16:53, 1 July 2015 (UTC)
Only short: Instead the image only the link to the image is shown - either local or http://regiowiki.at/wiki/Hauptseite - I can't find a solution. thx Karl Gruber (talk) 11:01, 2 July 2015 (UTC)
I see your wiki is using InstantCommons on http instead of https
Please comment out $wgUseInstantCommons = true; and use instead:
        $wgForeignFileRepos[] = array(
                'class' => 'ForeignAPIRepo',
                'name' => 'wikimediacommons',
                'apibase' => 'https://commons.wikimedia.org/w/api.php',
                'hashLevels' => 2,
                'fetchDescription' => true,
                'descriptionCacheExpiry' => 43200,
                'apiThumbCacheExpiry' => 86400,
        );
If it continues failing, then your webserver may have problems with the certificate that WMF is using for HTTPS, for example if the server doesn't have updated certificates. Ciencia Al Poder (talk) 13:59, 2 July 2015 (UTC)
Hi, the first method I tried, it was not the failure. I think the missing certificate is the problem. But now I am not sure, how does work - so I will try it on my local test and following I can make the changes on regiowiki. But in the meantime I search a german a explanation - it's a little bit easier for me ;-) but muchas gracias :-) -- Karl Gruber (talk) 14:38, 2 July 2015 (UTC)
Now, I couldn't find an answer, what I should do in an local apache server, that I can call the commons-server. thx in advance -- Karl Gruber (talk) 19:38, 4 July 2015 (UTC)

running install script with admin

I am trying to install a wiki server on my local machine.

I have successfully got to the point in the installation instructions where I must run the install script. I am trying to do this over the command line as follows:

   php /var/www/mediawiki/maintenance/install.php --wiki=biosys --server=localhost --dbuser:root --dbpass=biosys --dbname=wiki_db --dbtype=mysql <bioadmin>

... as it is this format specified when I continually got it wrong. Though I get an error like this:

   bash: syntax error near unexpected token `newline'

... since the command can't end with ">".

I have also tried bioadmin without "<>" but I get the error:

   Argument <admin> required!

...error.


If this is a known error a solution would be greatly appreciated, thanks very much! Eoin 14:03, 16 June 2015 (UTC)

Usually, you set up MediaWiki by copying the wiki files to your htdocs folder, in your case to /var/www/ as you have done it.
Next step is to go to your wiki with your web browser. Just by visiting localhost/ or where the wiki is located. Then follow the MediaWiki installer, which you see there, it will guide you through the setup! 88.130.116.30 14:34, 16 June 2015 (UTC)

Pictures don't show after importing xml-dump

Hallo

I am trying to move a mediawiki installation via xml-dump to a different machine as I have no commandline permission on the original machine. I have exported all pages from the first machine and imported all pages on to the new machine. As I may ftp onto both machines, I copied the image-directory from machine 1 to machine 2. Everything is perfectly fine, just the pictures are not shown on the pages. I have controlled the code, it is correct, the files of the pictures are in the correct place (If I upload the picture once again, the overwrite the the original picture, so the file structure is correct). I have used the importImages.php-script from maintainance and I can see, that lots of pictures get imported, but no change on the site. It just names the name of the file, that obviously seems to be missing.

What have I missed. Thanks for help, Jürgen 91.59.17.129 17:21, 16 June 2015 (UTC)

I think importImages.php will fail if the images you're trying to import are already on the correct place where MediaWiki would store them, because the script will try to copy them on that location, and if the file already exists, I imagine it will fail somehow.
It may also be a cache problem, if the files were imported successfully. Try purging one of the pages to see if it displays the file properly. Ciencia Al Poder (talk) 09:35, 17 June 2015 (UTC)

Like Button on Mediawiki

Hi all,

Is there a like button on mediawiki which can like articles on my mediawiki site then retrieve the top most likes article monthly?

I have found the facebooklikebutton extension but because my company does not want the users to like from their facebook account so I can't use that.

Could anyone point to me the right direction? Thanks so much!! Really need all the help I can get!! 203.127.197.23 00:07, 17 June 2015 (UTC)

Basic questions about data saving

Hello everybody Trying to convince my bosses about the use of a Wiki in our company, they asking questions I can't answer. So here I am.

1. After using Wiki for maybe a half of year and for a reason it should be stopped. Is it possible to save the data we insert already and if yes how does it work? 2. By inserting informations into the Wiki, like for example tis lines, in what format are they going to be saved by the Wiki and is it possible to export informations in a Word- or Pdf-file? 3. By linking on already existing documents in our network does it make sense to create an own root for the Wiki for coping the linked documents in there?

Thank you so much for helping.

Ivo 193.135.253.122 07:58, 17 June 2015 (UTC)

I hope that "wiki" actually means "MediaWiki"? 1. Exporting all the files of a wiki 2. Manual:Backing up a wiki 3. Not sure I understand the question and what "an own root" is. Malyacko (talk) 08:37, 17 June 2015 (UTC)
Hello Malyacko
Thanx for the help. Yes MediaWiki is my favorite. About the "root question". By linking to a document which is saved somewhere in the network, the link wont work anymore once there are made changes on the root by an admin. How to prevent?
Thanx again. 193.135.253.122 09:57, 17 June 2015 (UTC)
Tell your users to stop changing document names that are linked from the wiki, or configure file uploads and tell them to upload documents on the wiki. Ciencia Al Poder (talk) 09:21, 18 June 2015 (UTC)

Users created with random password cannot login

Hello,

When I create a user (on the page Special:UserLogin&type=signup), the user receives an email with his random password, but he cannot login with this password! (error is Password incorrect). When I input the password myself, it works fine.

So the bug/error must be on the password generation/hashing.

  • Mediawiki is version 1.25.0
  • PHP is 5.4.39-0+deb7u2 (fpm-fcgi)
  • MySQL 5.5.43-0+deb7u1

Relevant part of Localsettings.php :

# The following permissions were set based on your choice in the installer
# Disable for everyone.
$wgGroupPermissions['*']['edit'] = false;
# Disable for users, too: by default 'user' is allowed to edit, even if '*' is not.
$wgGroupPermissions['user']['edit'] = false;
# Make it so users with confirmed e-mail addresses are in the group.
$wgAutopromote['emailconfirmed'] = APCOND_EMAILCONFIRMED;
# Hide group from user list.
$wgImplicitGroups[] = 'emailconfirmed';
# Finally, set it to true for the desired group.
$wgGroupPermissions['emailconfirmed']['edit'] = true;
# disable read for everyone
$wgGroupPermissions['*']['read']    = false;
# Prevent new user registrations except by sysops
$wgGroupPermissions['*']['createaccount'] = false;

I cannot give you the url of the wiki as it is on intranet network.

If someone can help me troubleshoot this problem, I would be glad :)

Thank you, Regards, ~Nico 195.220.100.11 09:57, 17 June 2015 (UTC)

Something is in the water

Is this core, Cite or VE? References showing up totally messed up though only one section was inserted to the page. [[kgh]] (talk) 16:38, 17 June 2015 (UTC)

None of them. It was stupid ME. Forgot the closing ref tag though I actually expect a better behaviour from Cite when facing this human failure. [[kgh]] (talk) 16:41, 17 June 2015 (UTC)
What is it that you would have liked to get from Cite? 88.130.102.165 17:28, 17 June 2015 (UTC)
Something like a message: "There is a closing ref tag missing" or so. Getting the last section of the page as well as the references duplicated as well as having some raw code is a bit confusing. [[kgh]] (talk) 17:52, 17 June 2015 (UTC)
So I guess you should make that a feature request in Phabricator! 88.130.102.165 21:08, 17 June 2015 (UTC)
Yeah, there is something on my list! :) [[kgh]] (talk) 21:12, 17 June 2015 (UTC)
See phab:T28145. :) AKlapper (WMF) (talk) 08:05, 18 June 2015 (UTC)
Great, thanks for the info! [[kgh]] (talk) 11:44, 18 June 2015 (UTC)

Is it possible to schedule an Export?

I am looking for a way to use the SpecialːExport feature, or something similar, to automate exporting everything it can export (user pages, sandboxes, history, everything possible) to an xml file that is saved to a directory on the server.

I am the admin for the server that MediaWiki is installed to, so if this can be accomplished through a cron job, or something similar, I can manage it, I just don't know how to execute the Export feature outside of visiting the page and using the interface.

The reason I want to do it this way is to make it as easy as possible for other users recreate the wiki, if they so desire, without the added complications of database restoration. And as an FYI, for uploaded files, I'm planning on just running a cron job to archive /images/*. MadenssContinued (talk) 18:48, 17 June 2015 (UTC)

See Manual:Maintenance scripts for a list of scripts you can use to do maintenance or export/import data from the command line. Those scripts are in the /maintenance folder. You can use dumpBackup.php for this. Ciencia Al Poder (talk) 09:23, 18 June 2015 (UTC)

git.wikimedia.org not loading for me

Hi git.wikimedia.org is not loading for. It just keeps showing the spinner on top tab saying web page is loading then it shows the default error in ie11 which is this webpage cannot be loaded.

Please fix it. Paladox2017 (talk) 20:16, 17 June 2015 (UTC)

Seems to be back up now. —TheDJ (Not WMF) (talkcontribs) 22:10, 17 June 2015 (UTC)
See phab:T96002 AKlapper (WMF) (talk) 08:15, 18 June 2015 (UTC)

Extension Distributor is only partially available right now

FYI, the extension distributor is partially available right now. It's not able to download master and the latest release branches. This is because the download server is lagging behind on the real world a bit. User:legoktm will be working to bring it back ASAP. —TheDJ (Not WMF) (talkcontribs) 22:21, 17 June 2015 (UTC)

Hi,
Everything should be back to normal now. Please let me know if you spot any issues. Legoktm (talk) 22:40, 17 June 2015 (UTC)

New translator-Haitian wikpedia

If I translate all the content that has to do with Wikilove into kreyol ayisian (Haitian) will then Wikilove be available on the ht wikipedia? I'm trying to prioritize my efforts to help the ht wikipedia rather than help people write new programs. Or is it the same thing? Bfpage (talk) 23:46, 17 June 2015 (UTC)

If you refer to Extension:Wikilove: For information about how to request extension deployments on Wikimedia sites, please see meta:Requesting wiki configuration changes. AKlapper (WMF) (talk) 08:20, 18 June 2015 (UTC)

Large WikiEditor Header Problem

Hi,

I have just run the update.php script and now I am having a problem with the wikieditor-ui. When I edit a page with the advanced editor eg. the one used here, there is a large blank 'blue' box between the 'Bold', 'Italic', 'Link', etc. icons and the text box where the edit is made. I am not sure what the problem is. I have a feeling it has something to do with the 'SkinAfterBottomScripts' or 'SkinAfterContent' but I can't figure it out. Any help would be greatly appreciated.

Thanks Michael 110.22.47.221 01:27, 18 June 2015 (UTC)

Which skin and which MediaWiki version is this about? Are there any errors in the developer console of your browser? AKlapper (WMF) (talk) 08:21, 18 June 2015 (UTC)

Please help to align a table

Hello all,

I started to use Wikimedia this week and i have a problem with cell,

I wrote this :

Désignation du traitement
Schedule Name
Job
Nom Type
Planification

But I obtained a bad result : the colomns are not aligned, I need to have all colomns aligned, but I don't know how to do this with a table like this :

Do you know how to align all columns ?? Cacro790 (talk) 09:31, 18 June 2015 (UTC)

If you want align to mid, you use blank twice at start and end | Job |
If you want align to right, you use blank twice only at start 217.115.65.7 09:52, 18 June 2015 (UTC)
I don't quite understand the problem, but maybe you want to use a single table and use colspan and rowspan to make cells span across several rows or columns. See Help:Tables#HTML colspan and rowspan Ciencia Al Poder (talk) 09:14, 19 June 2015 (UTC)

Not found error after moved mediawiki to another VPS.

Hi.

I moved my viki to another VPS with different VPS configuration (CPanel). My url structure is like that now: viki.site.com/Title

So, Cpanel give me error cause of the this url structure:

"Not Found

The requested URL /Ana_Sayfa was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request."

But /index.php?=Title structure is working.

I think this problem caused Virtualhost configs. How i fix this problem? Bekircem (talk) 10:50, 18 June 2015 (UTC)

In your case the redirect from site.com/Title to the index.php file of MediaWiki obviously is no longer working. On your old system, this redirect (most likely done with a few RewriteRules) either is located in the VirtualHost config or in the .htaccess file in the folder where you installed MediaWiki. Please make sure that you have also copied this part of configuration to the new server! When I set up a wiki, I always put that into the .htaccess file, so I would now still have to copy this file over. 88.130.65.200 12:41, 18 June 2015 (UTC)

MediaWiki VCS (Git, Mercurial) backend?

Hi guys. Sorry if such a question was asked here dozen times.

As a long-time MediaWiki user, I would like to start a new wiki project because I really appreciate MediaWiki maturity and very flexible and powerful capabilities. But I have doubts that I want to take all of MediaWiki infrastructure on board for the new project.

Let's say, I would really like to have a VCS backend to have all wiki edits in one place. As far as I know, MediaWiki supports RBDMS backends only. I've recently came across this old question : stackoverflow.com/questions/8255749/wikis-with-vcs-backends (4 yrs ago). After playing a while with Gitit and Ikiwiki, I feel that Gitit is a better choice allowing integration with GIt or Mercurial, and it's not a static compiler unlike Ikiwiki. Gitit seems to be a much lighter solution than MediaWiki, however I'm afraid it's not even a 10% powerful comparing to MediaWiki: I couldn't compare revisions through the web interface, not sure if I can use categories or templates that are crucial to me, just a few plugins. But I really love the idea of having a VCS backend, because I can sync with the backend locally, can easily export it and use all Git or Mercurial features.

I do remember there is a Git remote helper that is a bridge-like solution between MediaWiki API over HTTP and Git. I tested it as well, and I had a strong feeling that this Git extension is very raw and seemed to work very slow causing even restart Git cloning in some cases (probably due to the real wiki performance, not sure), and probably might cause another issues. I had never managed to get a full history dump unfortunately.

Is there a way of using a Git or Mercurial as a real MediaWiki backend?

Thanks in advance. 195.234.75.165 11:25, 18 June 2015 (UTC)

UP looking for the clarification because I do believe that MediaWiki cannot fulfill my request.
Just a note: From what I have discovered/read/found the last few days, MediaWiki does not support it. I seem to look for an easy MediaWiki wiki content replication way, from my understanding. Dumps seem to be very heavy + not sure if it's possible to have incremental dumps. 194.44.30.5 18:09, 20 June 2015 (UTC)
See http://webmasters.stackexchange.com/questions/82374/mediawiki-vcs-backend-preferrably-dcvs-like-git-or-mercurial for the cross-posting with answers. 88.130.116.214 19:23, 20 June 2015 (UTC)
That is my question. I have cross-posted the question hoping to reach more MediaWiki experts, and I used to trust this board more than WebMasters StackExchange. If that guy's answer reflects the actual things, then I have to accept it as the best one. I just was looking for a clarification here. Sorry for cross-posting. 194.44.30.5 19:53, 20 June 2015 (UTC)
I understand that you want to use MediaWiki together with Git. I know both, but I never thought about combining them.
I would say trying to do so is pretty much something people don't really do. MediaWiki has its own revisioning system, users and access control. All that comes from a database. Maybe from MySQL or from MariaDB or from Postgres, but from a DB. Also, John makes a good point when he reminds us that MediaWiki was made for a DB backend and that many parts of MediaWiki's code are optimized for usage with a DB, but not for usage with something like Git. Git basically has the same things (commits, committers and so). However, using something like Git is not what MediaWiki was made for.
I don't say that it won't work, but if it does, it might not be very clever to use something like that: Due to a small userbase of this system-combination (and most likely no users in the WMF), this is way more likely to break without anyone really taking care than MediaWiki or Git alone. 88.130.116.214 20:13, 20 June 2015 (UTC)
That's it. Thank you very much for the clarification. 194.44.30.5 20:25, 20 June 2015 (UTC)

Salesforce (Chatter) + Mediawiki

Hi folks,

I would like to ask is it possible to share an article from my mediawiki site to Salesforce (Chatter)? I have never used Chatter before and has just started on Mediawiki about 3 weeks ago.

My company wants me to share an article (random) from mediawiki to chatter. I've managed to retrieve the random article daily. Now, is it possible to share to Chatter?

Thanks in advances for any kinds of assistance. Greatly appreciated! 2401:7400:C800:32AC:E080:2382:FF3F:7E37 14:32, 18 June 2015 (UTC)

Salesforce Chatter is a social collaboration tool. Something like a social network, basically like facebook?
I guess you can somehow post stuff on Chatter. Or are you looking for something like a "Share on Salesforce" function? Like a button, which would be displayed inside MediaWiki? I guess that could be doable, but I don't know how Chatter works (it should have an API, which such a button could use) and I am pretty sure that such a button for MediaWiki does not exist currently, meaning: It would have to be programmed first. 88.130.65.200 15:27, 18 June 2015 (UTC)
Hello,
Thank You for your response!
So if I am looking for "Share on Salesforce" function or "Share on Chatter" function, either one does not exist yet on mediawiki right? That means I have to develop the extension myself? *panic*
Thanks for your time and assistance! 2401:7400:C800:32AC:E080:2382:FF3F:7E37 16:09, 18 June 2015 (UTC)
I have just googled that and the results confirm what I already thought: No, such a function does not exist currently.
An idea on how that could work is e.g. like so: Take one of the hooks, which are executed when a page is rendered and use this hook in LocalSettings.php. In that function inside LocalSettings.php, check, if the user, who is currently calling the page, is logged in or maybe better, if he is an admin. If he is not, just do nothing (prevents abuse). If he is an admin, then add a small HTML snippet to the wiki source code. This will be the button. Add some CSS to it so that you can style it and place it at the place where you want it to be displayed.
The rest depends on the Chatter API. Depending on what the API requires you to do, the button must point to the fitting URL and must have the right parameters. I could imagine that you have to log in to Chatter and - once the login is done - that you afterwards do another request to actually send the post. 88.130.65.200 22:33, 18 June 2015 (UTC)
Hello,
Thanks for your assistance! I'm really thankful!
I did the first part of what you mentioned as below. May I know if I am correct?
$wgHooks['ParserFirstCallInit'][] = 'ifUserSysop';
function ifUserSysop() {
    global $wgUser;
    if (in_array("sysop", $wgUser->getEffectiveGroups())) {
        // if sysop
		echo 'Hello People. I am sysop.';
		echo "<button class='test' type='button' onclick='alert('Hello world!')'>Click Me!</button>";
    }
    if($wgUser->isLoggedIn()) {
        // is logged in
		echo 'Hello People. I am logged in';
    }
    return true;
}
This code is at the bottom of my localsettings file. Thanks so much for your time! 203.127.197.23 00:26, 19 June 2015 (UTC)

How to remove all the FlaggedRevs parser calls from a Mediawiki site

I have had FlaggedRevs installed due to earlier needs. Now I want to remove it and all the parser calls from lua, ie scribunto as well. I'm getting these parser errors popping up on my site pages as lua errors. What is the way, any way, to remove these, to get rid of errors. I do not want to reinstall Extension:FlaggedRevs to rid myself of them. I think they are embedded in some of the Wikipedia templates or Modules that I use. But i'm not sure. Jfoster81747 (talk) 15:57, 18 June 2015 (UTC)

You should check what templates are using those functions and fix them Ciencia Al Poder (talk) 09:22, 19 June 2015 (UTC)

How can I remove the /index.php from the URL of all the pages?

The URL of a page, for example Tel Aviv is [domain_name]/index.php/Tel_Aviv , and I want it to be [domain_name]/Tel_Aviv . How do I do it? Uri Even-Chen (talk) 16:17, 18 June 2015 (UTC)

This might be helpful to take a look at.
https://www.mediawiki.org/wiki/Manual:Short_URL
Basically, make a few configuration changes, and voila! Ckoerner (talk) 20:27, 18 June 2015 (UTC)

Help adding/correcting information about myself.

Hi, My Name is Jerry Jewell. I am listed under Sirius Software but there are many other aspects of my life that I would like added - preferably under a separate heading. Below is a rough outline with references. Would anybody that does not know me wish to tackle this contribution?

Highlights: Disabled Vietnam Vet with 3 Air medals, Bronze Star with V, two Purple Hearts Co-Founder of Sirius Software with Terry Bradley. See Wiki article. (please note Nasir Gebelli did NOT co-found Sirius Software. He was an outside programmer) Founder of The Jewell Performing Arts Center, Inc. , a non-profit educational center for teens. Founder of ScaryU - the world's first Haunted House school and winner of numerous national awards. Founder and current owner of SkullTronix - a leading provider of animatronic characters to theme parks and haunted attractions. Graduate with BA in Anthropology from UCLA Survivor of Gunshot wounds, Lupus, and a tumor in my brain the size of a lime ;)

Sources include the Smithsonian Institution Archives Record Unit 9533, Softalk, Byte, Creative Computing, People and other magazines, US Army records and more. That's a start. Any takers? Thanks..

Skulltronix (talk) 02:13, 19 June 2015 (UTC) Jerry Jewell Skulltronix (talk) 02:13, 19 June 2015 (UTC)

Hi, it seems you refer to content on (English?) Wikipedia? Feel free to use the specific article's discussion page to discuss improvements or corrections to an article. (This site, mediawiki.org, is basically for the discussion of the software behind Wikipedia but not the Wikipedia content.) Malyacko (talk) 09:22, 19 June 2015 (UTC)
The English WP has an article on en:Sirius Software. This is the company Jerry speaks about. But things like Purple Heart, center for teens and so on are out of scope for that article. The English WP also does have an article en:Jerry Jewell, but careful: This is another Jerry Jewell. As far as I see, the Jerry from Sirius Software does not have an own article. That is what he is asking about and that is where this information would belong to.
The page en:Wikipedia:Notability will tell you, if an own article in the English Wikipedia is considered useful or not.
I don't know how the guys from the English WP interpret these rules, so I cannot really help here. But aspects might be the honors you mentioned above and another aspect might be that you are co-founder of a company, which obviously is considered notable. 88.130.92.25 13:40, 19 June 2015 (UTC)

Request for non-existing articles (pages) then display on main page

Hi all,

I have to implement “make a request” function whereby user can request for a non-existing article. and the request will appear somewhere on the homepage for people to contribute their input.

Anyone knows how to achieve the above?

Currently, I am thinking of having a link which says "Request Articles Here" then by clicking on that link will direct you to a page where you can type in the article title to create the page.

From here, once the article is created, I am planning to have a dropdownmenu called "Requested Articles" at the main page and the newly created articles will be displayed there. But how should I go about doing it?

Thanks for all assistance and time! Greatly appreciated! Anyhowputx (talk) 05:06, 19 June 2015 (UTC)

Just to add on,
the permission in my localsetting is set as below
### Permission ----------------------------------------
# Prevent new user registrations except by sysops
$wgGroupPermissions['*']['createaccount'] = false;
# Disable anonymous reading, editing, create page
$wgGroupPermissions['*']['read'] = false;
$wgGroupPermissions['*']['edit'] = false; 
$wgGroupPermissions['*']['createpage'] = false; 
$wgGroupPermissions['user']['edit'] = false;
$wgGroupPermissions['user']['createpage'] = false;
$wgGroupPermissions['user']['upload'] = false;
$wgGroupPermissions['user']['reupload'] = false;
$wgGroupPermissions['user']['reupload-shared'] = false;
$wgGroupPermissions['user']['movefile'] = false;
$wgGroupPermissions['user']['move'] = false;
$wgGroupPermissions['user']['move-subpages'] = false;
$wgGroupPermissions['user']['move-rootuserpages'] = false;
$wgGroupPermissions['user']['minoredit'] = false;
$wgGroupPermissions['Editor']['edit'] = true;
$wgGroupPermissions['Editor']['createpage'] = true;
$wgGroupPermissions['Editor']['upload'] = true;
$wgGroupPermissions['Editor']['reupload'] = true;
$wgGroupPermissions['Editor']['movefile'] = false;
$wgGroupPermissions['Editor']['move'] = false;
$wgGroupPermissions['Editor']['move-subpages'] = false;
$wgGroupPermissions['Editor']['move-rootuserpages'] = false;
$wgGroupPermissions['Editor']['minoredit'] = false;
$wgGroupPermissions['KMadmin']['createaccount'] = true;
# Assign the usermerge right to a usergroup
$wgGroupPermissions['bureaucrat']['usermerge'] = true;
# Login page
$wgWhitelistRead = array ("Special:Userlogin","Help:Logging_in");
Right now, I think only sysops can edit the page. How do I allow non-sysops to edit certain pages only ? That is the pages that is created through "Request Articles Here" link?
I am logging into my mediawiki site using the auto_remoteauth which means I am logging in using my windows credentials account.
Thanks all!! Really need all the help I can get!! Anyhowputx (talk) 05:57, 19 June 2015 (UTC)

Configuring PHPMailer to use with Extension:EmailPage while wiki is mail enabled

Hi,

I installed the EmailPage extension that comes with a version of the PHPMailer included. I already have the wiki SMTP-mail enabled. But now I do not succeed in configuring the mail function as addressed by EmailPage to use the PHPMailer. To my surprise there is nothing in the Mediawiki site on this - important - extension PHPMailer at all... I find several *.php classe files in the folder but it is not clear to me ...

  • which one do I use ? phpmailer.php / smtp.php  ?
  • how do I configure it to use my standard smtp settings or do I have to duplicate them somewhere within the phpmailer ?
  • how do I link this together ?

thanks for all help I can get ....

Wiki - latest version - 1.25.1 php 5.4.15 mysql 5.5.30 Philip Verstraeten (talk) 06:42, 19 June 2015 (UTC)

Hi @Philip Verstraeten,
just wanted to ask if you have found a solution? Having the same troubles and can't find any help 77.177.130.137 (talk) 14:57, 14 July 2018 (UTC)

Multiple Mediawiki Instances - Problems with Hoster

MediaWiki 1.24.1 PHP 5.5.26 (cgi-fcgi) MySQL 5.1.73-1+deb6u1

So we have 2 Problems:

Use multiple Mediawikis with 2 Servers (2 Database Servers)

We have 2 Wikis running with SharedDB, the Main Wiki and external wiki for an Topic that deserves its own. Everything is working fine, now we want to host an other "Sub"-Wiki like before. But this time on an other Server. So we need something like $SharedDBServer = "Domain" so it does not use "localhost" of the Database.

Use multiple Mediawikis with diferent Database Users (each Database has it own User)

Second Problem is. If we move all Wikis do the new server, the new hoster does some strange things. If you create a new Database, it also creates a new database user. The Database "Wiki 1" has user "wiki 1" and Database "wiki 2" has user "wiki 2". So for this I need to have something like $SharedDBUser = "wiki 1".

Is there something besides CentralAuth which is super complex to switch to (from the SharedDB thing)

Regards 2.246.136.107 08:40, 19 June 2015 (UTC)

Databases need to be on the same server because tables of the wiki and shared db are used on the same query, so they need the same connection.
Having different users for each database is not a problem. However, shared tables need to be accessible from the original wiki, which means you need to add permissions to the database user accessing the wiki database to at least read (and maybe update) on the shared tables of the shared database. Ciencia Al Poder (talk) 09:35, 19 June 2015 (UTC)

Upgrading

Hello.

I'm trying to upgrade to MediaWiki 1.23.9.

So I uploaded new versions files and run mypage.com/mw-config/ but get error:

3b19e340] /mw-config/ Exception from line 318 of /home/trouse/domains/westeros.pl/public_html/wiki/includes/MagicWord.php: Error: invalid magic word 'listerrors'

Backtrace:

  1. 0 /home/trouse/domains/westeros.pl/public_html/wiki/includes/MagicWord.php(241): MagicWord->load(string)
  2. 1 /home/trouse/domains/westeros.pl/public_html/wiki/includes/parser/Parser.php(4984): MagicWord::get(string)
  3. 2 /home/trouse/domains/westeros.pl/public_html/wiki/extensions/Validator/src/legacy/ParserHook.php(208): Parser->setFunctionHook(string, array, integer)
  4. 3 /home/trouse/domains/westeros.pl/public_html/wiki/extensions/Validator/src/legacy/ListErrors.php(37): ParserHook->init(Parser)
  5. 4 [internal function]: ValidatorListErrors::staticInit(Parser)
  6. 5 /home/trouse/domains/westeros.pl/public_html/wiki/includes/Hooks.php(206): call_user_func_array(string, array)
  7. 6 /home/trouse/domains/westeros.pl/public_html/wiki/includes/GlobalFunctions.php(4013): Hooks::run(string, array, NULL)
  8. 7 /home/trouse/domains/westeros.pl/public_html/wiki/includes/parser/Parser.php(275): wfRunHooks(string, array)
  9. 8 /home/trouse/domains/westeros.pl/public_html/wiki/includes/parser/Parser.php(287): Parser->firstCallInit()
  10. 9 /home/trouse/domains/westeros.pl/public_html/wiki/includes/parser/Parser.php(4825): Parser->clearState()
  11. 10 /home/trouse/domains/westeros.pl/public_html/wiki/includes/parser/Parser.php(367): Parser->startParse(Title, ParserOptions, integer, boolean)
  12. 11 /home/trouse/domains/westeros.pl/public_html/wiki/includes/installer/Installer.php(612): Parser->parse(string, Title, ParserOptions, boolean)
  13. 12 /home/trouse/domains/westeros.pl/public_html/wiki/includes/installer/WebInstaller.php(681): Installer->parse(string, boolean)
  14. 13 /home/trouse/domains/westeros.pl/public_html/wiki/includes/installer/WebInstallerPage.php(391): WebInstaller->getInfoBox(string)
  15. 14 /home/trouse/domains/westeros.pl/public_html/wiki/includes/installer/WebInstallerPage.php(379): WebInstaller_ExistingWiki->showKeyForm()
  16. 15 /home/trouse/domains/westeros.pl/public_html/wiki/includes/installer/WebInstaller.php(283): WebInstaller_ExistingWiki->execute()
  17. 16 /home/trouse/domains/westeros.pl/public_html/wiki/mw-config/index.php(63): WebInstaller->execute(array)
  18. 17 /home/trouse/domains/westeros.pl/public_html/wiki/mw-config/index.php(31): wfInstallerMain()
  19. 18 {main} TraaBBIT (talk) 09:10, 19 June 2015 (UTC)
The first result when searching for that error message is mw:Extension talk:Validator#c-2A02:8070:61FC:8E00:89B9:8FD7:CD69:7C9-2013-12-29T14:04:00.000Z-Fatal_error:_Validator_depends_on_the_ParamProcessor_library Malyacko (talk) 09:28, 19 June 2015 (UTC)
I upload the correct version of Validator. Now I have another error:
3b19e340] /mw-config/ Exception from line 318 of /home/trouse/domains/westeros.pl/public_html/wiki/includes/MagicWord.php: Error: invalid magic word 'listerrors'
Backtrace:
0 /home/trouse/domains/westeros.pl/public_html/wiki/includes/MagicWord.php(241): MagicWord->load(string)
1 /home/trouse/domains/westeros.pl/public_html/wiki/includes/parser/Parser.php(4984): MagicWord::get(string)
2 /home/trouse/domains/westeros.pl/public_html/wiki/extensions/Validator/src/legacy/ParserHook.php(208): Parser->setFunctionHook(string, array, integer)
3 /home/trouse/domains/westeros.pl/public_html/wiki/extensions/Validator/src/legacy/ListErrors.php(37): ParserHook->init(Parser)
4 [internal function]: ValidatorListErrors::staticInit(Parser)
5 /home/trouse/domains/westeros.pl/public_html/wiki/includes/Hooks.php(206): call_user_func_array(string, array)
6 /home/trouse/domains/westeros.pl/public_html/wiki/includes/GlobalFunctions.php(4013): Hooks::run(string, array, NULL)
7 /home/trouse/domains/westeros.pl/public_html/wiki/includes/parser/Parser.php(275): wfRunHooks(string, array)
8 /home/trouse/domains/westeros.pl/public_html/wiki/includes/parser/Parser.php(287): Parser->firstCallInit()
9 /home/trouse/domains/westeros.pl/public_html/wiki/includes/parser/Parser.php(4825): Parser->clearState()
10 /home/trouse/domains/westeros.pl/public_html/wiki/includes/parser/Parser.php(367): Parser->startParse(Title, ParserOptions, integer, boolean)
11 /home/trouse/domains/westeros.pl/public_html/wiki/includes/installer/Installer.php(612): Parser->parse(string, Title, ParserOptions, boolean)
12 /home/trouse/domains/westeros.pl/public_html/wiki/includes/installer/WebInstaller.php(681): Installer->parse(string, boolean)
13 /home/trouse/domains/westeros.pl/public_html/wiki/includes/installer/WebInstallerPage.php(391): WebInstaller->getInfoBox(string)
14 /home/trouse/domains/westeros.pl/public_html/wiki/includes/installer/WebInstallerPage.php(379): WebInstaller_ExistingWiki->showKeyForm()
15 /home/trouse/domains/westeros.pl/public_html/wiki/includes/installer/WebInstaller.php(283): WebInstaller_ExistingWiki->execute()
16 /home/trouse/domains/westeros.pl/public_html/wiki/mw-config/index.php(63): WebInstaller->execute(array)
17 /home/trouse/domains/westeros.pl/public_html/wiki/mw-config/index.php(31): wfInstallerMain()
18 {main}
TraaBBIT (talk) 09:33, 19 June 2015 (UTC)
Seems like the error still is the same, namely: Exception from line 318 of /home/trouse/domains/westeros.pl/public_html/wiki/includes/MagicWord.php: Error: invalid magic word 'listerrors'
The usual solution is to deactivate the extension, which provides that magic word and to run the upgrade, to update the extension and to activate it again. 88.130.92.25 11:50, 19 June 2015 (UTC)
But what extension is it? 193.23.61.254 13:30, 19 June 2015 (UTC)
Looking at the stack trace, it seems to be Validator extension. Ciencia Al Poder (talk) 10:40, 20 June 2015 (UTC)
But I updated Validator to version compatible with my new mediawiki 193.23.61.254 11:23, 22 June 2015 (UTC)
That's right, but Validator can't be enabled during the upgrade because of the bug. See T69877 Ciencia Al Poder (talk) 10:57, 24 June 2015 (UTC)

How to allow users to edit some pages

Hi all,

Is it possible to allow users of my mediawiki site to edit some pages but not all pages? The pages that they can edit are created by themselves and the rest of the pages that are not created by themselves they cannot edit.

Currently, the permissions in my localsetting file are as follow

### Permission ----------------------------------------

# Prevent new user registrations except by sysops
$wgGroupPermissions['*']['createaccount'] = false;

# Disable anonymous reading, editing, create page
$wgGroupPermissions['*']['read'] = false;
$wgGroupPermissions['*']['edit'] = false; 
$wgGroupPermissions['*']['createpage'] = false; 

$wgGroupPermissions['user']['edit'] = false;
$wgGroupPermissions['user']['createpage'] = false;
$wgGroupPermissions['user']['upload'] = false;
$wgGroupPermissions['user']['minoredit'] = false;

$wgGroupPermissions['Editor']['edit'] = true;
$wgGroupPermissions['Editor']['createpage'] = true;
$wgGroupPermissions['Editor']['upload'] = true;
$wgGroupPermissions['Editor']['minoredit'] = false;

$wgGroupPermissions['KMadmin']['createaccount'] = true;

# Assign the usermerge right to a usergroup
$wgGroupPermissions['bureaucrat']['usermerge'] = true;



Thanks for all assistance and guidance! I greatly appreciated it! 203.127.197.23 10:00, 19 June 2015 (UTC)

(We should have a default answer for that...)
First: MediaWiki is not made for access control. Using MediaWiki there will always be a way around your restrictions. It is possible to allow users only edit pages in certain namespaces. See Manual:Preventing_access#Restrict_editing_of_an_entire_namespace and Extension:AccessControl. I do not know of per-page permissions. 88.130.116.214 22:47, 20 June 2015 (UTC)
Hi,
Thanks for your response.
I have tried to allow editing of pages through custom namespace but it seems to not to work.
Below is my code
/* To allows user to create and edit "Request" namespace */
// Define constants for my additional namespaces.
define("NS_REQUEST", 508); // This MUST be even.
define("NS_REQUEST_TALK", 509); // This MUST be the following odd integer.
 
// Add namespaces.
$wgExtraNamespaces[NS_REQUEST] = "Request";
$wgExtraNamespaces[NS_REQUEST_TALK] = "Request_talk"; // Note underscores in the namespace name.
$wgContentNamespaces[] = NS_REQUEST;
$wgNamespaceProtection[NS_REQUEST] = array( 'editrequest' ); // permission "editrequest" required to edit the foo namespace
$wgNamespacesWithSubpages[NS_REQUEST] = true;            // subpages enabled for the foo namespace
#grant all rights to these groups, block the rest
$wgNamespacePermissionLockdown[NS_REQUEST]['*'] = array('sysop','user');
$wgNamespacePermissionLockdown[NS_REQUEST_TALK]['*'] = array('sysop','user');
# Start with assigning the default permissions from group "user"
$wgGroupPermissions['sysop']['Request'] = true;      // permission "Request" granted to users in the "sysop" group
$wgGroupPermissions['user']['Request'] = true;      // permission "Request" granted to users in the "user" group
$wgGroupPermissions['Request']['edit'] = true;
$wgGroupPermissions['Request']['createpage'] = true;
I want to allow the creation and editing of page permission to users who are in the request group. however, when I tried to create a page starting with Request:ABC, it tells me permission denied. why is that so?
Thanks for your response! 203.127.197.23 02:06, 22 June 2015 (UTC)
By the way, can I allow user in that group to create only page that start with Request:(name) instead of abc?
Thank you so much! 203.127.197.23 02:38, 22 June 2015 (UTC)
You need to keep a consistent permission name. You start off by calling the permission "editrequest" in the $wgNamespaceProtection line, but then it changes to "Request" when you set $wgGroupPermissions for sysop and user.
I think you are getting confused between a user right (an action a user is allowed to do, eg. edit) and a user group (a set of users, e.g. sysop, who gain a certain set of rights). In $wgNamespaceProtection you create a right (call it say "editrequest"), then you need to assign that "editrequest" right to certain groups. This, that and the other (talk) 11:15, 22 June 2015 (UTC)
Hello, I redefined my whole thing to as follows. I am trying to allow the "user" group to ONLY be able to create and edit pages that starts with "Requests:(pageTitle)". Any other titles that do not start with "Requests:", they will not be able to do it.
define("NS_REQUEST", 508);
define("NS_REQUEST_TALK", 509);
 
$wgExtraNamespaces = 
    array(508 => "Requests",
          509 => "Requests_talk",
    );
 
$wgNamespaceProtection[NS_REQUEST]      = array( 'requests-edit' );
$wgNamespaceProtection[NS_REQUEST_TALK] = array( 'requests-talk-edit' );
 
//$wgGroupPermissions['Requests']['requests-edit'] = true; //only Requests can edit pages in the Request namespace
//$wgGroupPermissions['Requests']['requests-talk-edit'] = true; //Requests can edit pages in the Request_talk namespace
//$wgGroupPermissions['Requests']['edit'] = true;
//$wgGroupPermissions['Requests']['createpage'] = true;
$wgGroupPermissions['user']['requests-edit'] = true; //only user can edit pages in the Request namespace
$wgGroupPermissions['user']['requests-talk-edit'] = true; //user can edit pages in the Request_talk namespace
$wgGroupPermissions['Requests']['edit'] = true;
$wgGroupPermissions['Requests']['createpage'] = true;
$wgNamespaceProtection[NS_MAIN] = array( 'edit-main' ); // Restrict Requests group to only create pages starting with Requests:pageTitle
$wgGroupPermissions['user']['edit'] = true; //true to allow them to create pages that start with Requests:pageTitle only
$wgGroupPermissions['user']['createpage'] = true; //true to allow them to create pages that start with Requests:pageTitle only
/* Allows these user group to create and edit main pages */
$wgGroupPermissions['Editor']['edit-main'] = true; 
$wgGroupPermissions['sysop']['edit-main'] = true;
The above is what I implemented. Could you advise if I am on the right track? Really appreciated your help! Thanks so much! 203.120.42.151 00:18, 23 June 2015 (UTC)

Bot for linking pages?

Looking for a bot/script that will link text in pages to existing page titles. For instance: "The rain in [[Spain]] falls mainly on the plains" Links to Spain Stuartbman (talk) 11:44, 19 June 2015 (UTC)

Blank page

There is a problem that we can not upload ogg files. I put error_reporting( E_ALL ); ini_set( 'display_errors', 1 ); in LocalSetting.php. Then trying uploading an ogg file again, this text appears: Warning: call_user_func() expects parameter 1 to be a valid callback, function 'efClearStatistics' not found or invalid function name in /var/www/web352/html/w/includes/Setup.php on line 551 Warning: require_once(PEAR.php): failed to open stream: No such file or directory in /var/www/web352/html/w/extensions/OggHandler/PEAR/File_Ogg/File/Ogg.php on line 114 Fatal error: require_once(): Failed opening required 'PEAR.php' (include_path='/var/www/web352/html/w/extensions/OggHandler/PEAR/File_Ogg:.:/var/www/confixx/html/include:/var/www/confixx/html:/var/www/confixx/html/PEAR') in /var/www/web352/html/w/extensions/OggHandler/PEAR/File_Ogg/File/Ogg.php on line 114

MediaWiki Version: 1.21

I need help here and I don't now where to start. There is no file „PEAR.php“ in the /OggHandler directory. Where is it?

includes/Setup.php

/* Line 550 */ 	wfProfileIn( $profName );
/* Line 551 */	call_user_func( $func );
/* Line 552 */	wfProfileOut( $profName );
/* Line 553 */	}

extensions/OggHandler/PEAR/File Ogg/Ogg.php

/* Line 114 */ require_once('PEAR.php');

2003:57:E349:7201:6175:99E5:9307:F91D 13:09, 19 June 2015 (UTC)

The OggHandler extension requires the PEAR package. This is an extension to PHP. The files from this package (among them PEAR.php) must be available somewhere in the include_path. Your include_path contains this path: /var/www/confixx/html/PEAR, which makes it look like PEAR should be available at that place. Your hoster should be able to tell you where PEAR is or if it is installed or not. 88.130.92.25 13:18, 19 June 2015 (UTC)
Thank you very much for your response. We'll what we can do. One more question. If PEAR doesn't exit in our server, is there any legal way to download PEAR somewhere and install it? 2003:57:E349:7201:6175:99E5:9307:F91D 14:54, 19 June 2015 (UTC)
Legally that's not a problem; the PEAR package comes with PHP and is available for free. What might be an issue is, how and if you can install it. As you obviously are on a shared host, it might be that you cannot install packages yourself, meaning: That must be done by the host. 88.130.92.25 16:00, 19 June 2015 (UTC)

[RESOLVED] Commons images disappeared

Hello everyone, I am using the latest version of MediaWiki, PhP 5.3.8, MySqQL 5.5.21. While until yesterday everything was fine, today the images hosted on Commons and displayed on my wiki have disappeared without reason. What remains is just the red link. I didn't touch any setting, just visited the homepage and realised the problem. The images hosted on the wiki itself are still being displayed though. What can have possible happened? Tanonero (talk) 16:24, 19 June 2015 (UTC)

Wait a day and it will be fixed.
This issue appeared for several users within the last week and while I guess no one knows what is going on, it got fixed "magically" after around one day. 88.130.92.25 17:17, 19 June 2015 (UTC)
There was a problem recently, see T102566, but it should be fixed now. Maybe you need to purge the page or something? I don't really know how to force the wiki to fetch the image from commons again. Ciencia Al Poder (talk) 17:28, 19 June 2015 (UTC)
Thanks to both of you, images appeared again. Tanonero (talk) 09:47, 20 June 2015 (UTC)
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 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.214 12:53, 20 June 2015 (UTC)

Cannot get SVGs to display

Whenever I click an SVG on get the following error:

Warning: symlink(): Cannot create symlink, error code(1314) in C:\Inetpub\vhosts\gamepaduniverse.com\wiki.gamepaduniverse.com\w\includes\media\SVG.php on line 207

The file is located here: https://wiki.gamepaduniverse.com/wiki/File:SVG_logo.svg

How do I correct this symlink error? GamepadUniverse (talk) 05:53, 21 June 2015 (UTC)

Does your stack run as administrator user ? Apparently on Windows, symlink requires such elevated permissions...
Should probably file a bug about this, to make sure this part gets better routines for Windows systems. —TheDJ (Not WMF) (talkcontribs) 08:27, 21 June 2015 (UTC)
Where do I add a bug? GamepadUniverse (talk) 18:11, 21 June 2015 (UTC)
In phabricatorTheDJ (Not WMF) (talkcontribs) 19:42, 22 June 2015 (UTC)
How to report a bug AKlapper (WMF) (talk) 08:52, 23 June 2015 (UTC)

Search for term 'gz' in main page search box returns x-gzip encoded file

Not sure if this is the right place to post this bug...

From the main english Wikipedia page,

Enter 'gz' in the search box and press return or the arrow.

Instead of seeing search results, a file called "Gz.gz" is downloaded to the desktop.

The server responds with ContentEncoding set to gzip.

When uncompressed. the file Gz.gzip contains the HTML code for the disambiguation page.


Request URL:https://en.wikipedia.org/wiki/Gz Request Method:GET Status Code:200 OK Request Headersview source Accept:text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Encoding:gzip, deflate Accept-Language:en-us Referer:https://www.wikipedia.org/ User-Agent:Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_8) AppleWebKit/534.59.10 (KHTML, like Gecko) Version/5.1.9 Safari/534.59.10 Response Headersview source Accept-Ranges:bytes Age:11185 Cache-Control:private, s-maxage=0, max-age=0, must-revalidate Connection:keep-alive Content-Encoding:gzip Content-Language:en Content-Length:7800 Content-Type:text/html; charset=UTF-8 Date:Sun, 21 Jun 2015 06:18:31 GMT Last-Modified:Sun, 14 Jun 2015 18:20:03 GMT Server:nginx/1.6.2 Strict-Transport-Security:max-age=259200 Vary:Accept-Encoding,Cookie Via:1.1 varnish, 1.1 varnish, 1.1 varnish X-Analytics:page_id=513615;ns=0;https=1;WMF-Last-Access=21-Jun-2015 X-Cache:cp1053 hit (1), cp4009 miss (0), cp4010 frontend hit (5) X-Content-Type-Options:nosniff X-Powered-By:HHVM/3.6.1 X-Ua-Compatible:IE=Edge X-Varnish:1847471332 1836203081, 2203487553, 2440854620 2439956779 175.156.228.73 06:22, 21 June 2015 (UTC)

All pages are gzip'ed, it's not a problem, as you can see in the headers the Content-Type is still text/html and that is what counts.. The problem is your browser thinking that it should download something that ends with gz. What platform and browser is this exactly ? —TheDJ (Not WMF) (talkcontribs) 08:21, 21 June 2015 (UTC)

[SOLVED]Widgets not workings

I have two widgets that are not working in the way that they should. The result shows blank on both my Widget:Daily Motion and Widget:DISQUS found at the respective locations:


The result of the Disqus widget can be found here under the header that says "Comments": https://wiki.gamepaduniverse.com/wiki/List_of_Device_Manufacturers

Why are they displaying improperly and how can i fix the issue? GamepadUniverse (talk) 06:22, 21 June 2015 (UTC)

Disqus loads for me on the given link, after telling my web browser to not block mixed content (as you load Disqus via http while your page is https). Malyacko (talk) 11:29, 21 June 2015 (UTC)
OMG! Thanks for pointing that out. Is there anyway to get around that in https so the user doesn't have to unblock each time? GamepadUniverse (talk) 17:05, 21 June 2015 (UTC)
Change the URLs of the widget that point to disqus, so they use https:// instead of http:// Ciencia Al Poder (talk) 17:33, 21 June 2015 (UTC)
I changed the widget to the following code with no effect:
<noinclude>__NOTOC__ This widget allows you to embed '''[http://www.disqus.com/ DISQUS Comments]''' on your wiki page. Created by [http://www.mediawikiwidgets.org/User:Sergey_Chernyshev Sergey Chernyshev] == Using this widget == For information on how to use this widget, see [http://www.mediawikiwidgets.org/DISQUS widget description page on MediaWikiWidgets.org]. == Copy to your site == To use this widget on your site, just install [https://www.mediawiki.org/wiki/Extension:Widgets MediaWiki Widgets extension] and copy [{{fullurl:{{FULLPAGENAME}}|action=edit}} full source code] of this page to your wiki as '''{{FULLPAGENAME}}''' article. </noinclude><includeonly><div id="disqus_thread"></div> <script type="text/javascript"> /* * * CONFIGURATION VARIABLES * * */ var disqus_shortname = '<!--{$id|escape:'urlpathinfo '}-->'; // required: replace example with your forum shortname <!--{if (isset($uniqid))}-->var disqus_identifier = '<!--{$uniqid|escape:'quotes'}-->';<!--{/if}--> <!--{if (isset($url))}-->var disqus_url = '<!--{$url|escape:'quotes'}-->';<!--{/if}--> /* * * DON'T EDIT BELOW THIS LINE * * */ (function() { var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true; dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js'; (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq); })(); </script> <noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a></noscript> GamepadUniverse (talk) 20:34, 21 June 2015 (UTC)
If you inspect the HTML source code of the pages that include that widget, you will see that it's still using the code with "http://" urls on it. This seems to be a caching issue.
Try purging the page, or perform a null edit and see if it succeeds. Ciencia Al Poder (talk) 09:40, 22 June 2015 (UTC)
Purging and null edit proved ineffective GamepadUniverse (talk) 20:52, 24 June 2015 (UTC)
It does not seem like the code has been edited in a long time on MediawikiWidgets which Disqus has since added support for SSL for a single universal code solution. I have updated my code on my site to reflect the new universal code, but it still does not work for me:https://wiki.gamepaduniverse.com/w/index.php?title=Widget:DISQUS&action=edit GamepadUniverse (talk) 00:45, 30 June 2015 (UTC)
Resolved. Upgraded the Widgets extension to the latest Smarty release. GamepadUniverse (talk) 04:35, 30 June 2015 (UTC)
Hello,
I'm running 1.22.6 (on Apache) and I've set up pretty/short URLs as per the instructions found in Manual:Short URL.
I have also set up pretty URLs for actions (edit, view history, etc.) using $wgActionPaths.
This works fine, but there are still a few links referencing index.php:
That's all I could find for now, there's probably even more.
Is there any way to change these remaining links to pretty URLs as well?
Thanks. Bolaja (talk) 18:07, 21 June 2015 (UTC)
Where are these links? I e.g. know that the login page is referenced in a number of system messages. For my installs I fixed that by adding according RewriteRules, which also rewrite the URLs with index.php in them. 88.130.83.231 21:08, 21 June 2015 (UTC)
Those were all links that can be found on any MediaWiki page, basically.
By default, the login and logout links are at the top right of the page, the printable version and permalink links are in the side pane on the left and the search (technically a form, not a link) can also be found at the top right.
RewriteRules have nothing to do with this, after all they cannot change the links that MediaWiki produces. Bolaja (talk) 22:10, 21 June 2015 (UTC)
This is intended. See Requests for comment/Clean up URLs. 121.219.74.235 06:31, 22 June 2015 (UTC)
The examples in that article (action URIs) can already be changed by adjusting $wgActionPaths, though. So to me it is confusing why a handful of links would be left "hardcoded" to use the /w/index.php?title=<title>&<more query parameters> format.
In case it was unclear, the short URL versions of the links I mentioned in my original post already work, they're just not being used by MediaWiki. That is what I'm trying to change. I suppose I'll have to resort to editing the source. Bolaja (talk) 11:36, 22 June 2015 (UTC)
Anyone else, maybe? Bolaja (talk) 10:53, 24 June 2015 (UTC)
Bolaja (talk) 12:32, 27 June 2015 (UTC)
See T14619 for the current status - and for showstoppers. 88.130.106.110 13:03, 27 June 2015 (UTC)
What is described in that link can already be accomplished by adjusting $wgActionPath, though.
I was specifically referring to the handful of links that can not be configured in such a manner. Bolaja (talk) 20:13, 29 June 2015 (UTC)
Bump. Bolaja (talk) 16:45, 23 July 2015 (UTC)
Bump. Bolaja (talk) 20:18, 6 August 2015 (UTC)
Bump 46.134.60.214 (talk) 06:50, 20 February 2020 (UTC)
Did you file a bugreport about that? Ciencia Al Poder (talk) 10:47, 20 February 2020 (UTC)

Pie charts

On Wikipedia the following generates a good pie chart in the entry Helium, but here and on Wikiversity, it and its called templates does this:





Estimated 2013 U.S. fractional helium use by category. Total use is 47 million cubic meters.

  Cryogenics (32%)
  Pressurizing and purging (18%)
  Welding (13%)
  Controlled atmospheres (18%)
  Leak detection (4%)
  Breathing mixtures (2%)
  Other (13%)

Each of the mediawiki functions apparently work fine but "border-width" does not seem to want to give the correct arc. Help! As you can see, it also doesn't work here. Comments, suggestions are most welcome! Marshallsumter (talk) 18:09, 21 June 2015 (UTC)

Marshallsumter (talk) 18:09, 21 June 2015 (UTC)

en:Template:Pie_chart#How_it_works. You need to add the transborder class to MediaWiki:Common.css —TheDJ (Not WMF) (talkcontribs) 19:38, 22 June 2015 (UTC)

No "Protect" Tab - Logged in as Admin

Hi,

I am logged in as administrator(sysop) but don't have a Protect Tab on my wiki.

My localsettings.php has:

$wgGroupPermissions['sysop']['protect'] = true;</pre>

with no other references to this right below it.

Why would I still not have a Protect Tab.

V1.25 - Monobook skin.

Thanks Barbs [[Special:Contributions/103.39.136.65|103.39.136.65]] 23:16, 21 June 2015 (UTC)
:Hi Barbs,
:I could think of the following things, which might be part of the problem:
:* Permission is actually taken away again, somehow, somewhere.
:* Custom CSS, which hides the tab.
:* Your account is no admin.
:Please go to the page ''Special:ListGroupRights'' in your wiki and check, if in the row "Administrators" it ''does'' list the "protect" right.
:Then click the link "(list of members)" and verify that your account actually is an admin. Note that account names are case-sensitive.
:Finally please visit a "protect-action page", e.g. with this URL in your wiki: ''index.php?title=Main_Page&action=protect''. This will show you a form. In that form, are you ''actually able to change'' protection settings? Or can you only ''see'' the settings, but not change them? [[Special:Contributions/88.130.83.231|88.130.83.231]] 01:19, 22 June 2015 (UTC)
::Hi Thanks for your help,
::<syntaxhighlight lang='text'>Please go to the page Special:ListGroupRights in your wiki and check, if in the row "Administrators" it does list the "protect" right.</pre>
Yes.  It says "Change protection levels and edit cascade-protected pages (protect)".
<pre>Then click the link "(list of members)" and verify that your account actually is an admin. Note that account names are case-sensitive.</syntaxhighlight>
::Yes it's listed as an Admin and a Bureaucrat.  I have tried removing the the account from the bureaucrat group (in case there was a conflict) and that didn't help.
::<syntaxhighlight lang='text'>Finally please visit a "protect-action page", e.g. with this URL in your wiki: index.php?title=Main_Page&action=protect. This will show you a form. In that form, are you actually able to change protection settings? Or can you only see the settings, but not change them?</pre>
I can see the form, I can change options in the form but if I "Confirm" the changes the page does not appear in Special:ProtectedPages.
So I guess it IS a permissions issue.  Now to figure out why.  :)
Barbs [[Special:Contributions/103.39.136.65|103.39.136.65]] 02:40, 22 June 2015 (UTC)
:::After you changed the protection settings, when you then revisit the protect-action page again, then not the old, but the changed settings are displayed? Is that the case? [[Special:Contributions/88.130.117.164|88.130.117.164]] 00:22, 23 June 2015 (UTC)

== ConfirmEditHooks ? ==

Endlich habe ich es geschafft das Wiki von 1.23 auf 1.25 upzudaten. Er erscheint eine Fehlermeldung ganz oben auf der Seite:
<code>
Warning: call_user_func() expects parameter 1 to be a valid callback, class 'ConfirmEditHooks' not found in /var/www/web130/html/wikiverzeichnis/includes/registration/ExtensionRegistry.php on line 169 Warning: call_user_func() expects parameter 1 to be a valid callback, class 'ConfirmEditHooks' not found in /var/www/web130/html/wikiverzeichnis/includes/Setup.php on line 678
</code>
Zuerst einmal: Was ist ConfirmEditHooks? Ich kenne nur ConfirmEdit und diese Erweiterung ist auch bei mir installiert und habe die Erweiterung vor kurzem geupdatet. :o

Diese Fehlermeldung sehe ich nicht als schwerwiegend an, denn es scheint, dass der Update problemlos lief. Mit Ausnahme der Fehlermeldung. Ein Backup des Wikis habe ich noch auf Lager. [[Special:Contributions/2003:57:E349:7201:1E8:3A02:C93B:1555|2003:57:E349:7201:1E8:3A02:C93B:1555]] 05:56, 22 June 2015 (UTC)
:Maybe [[Extension talk:ConfirmEdit/2015#c-83.27.70.135-2015-05-27T09:43:00.000Z-Solution_for_typical_problems_with_reCaptcha_and_MediaWiki_1.25]] has some hints? [[User:Malyacko|Malyacko]] ([[User talk:Malyacko|talk]]) 08:44, 22 June 2015 (UTC)
::Yeah, that worked - thanks! One more question. It is possible to insall Google reCAPTCHA 2.0 for MediaWiki 1.25? As I noticed reCAPTCHA in ConfirmEdit is an old version, even if you install the master version for MediaWiki 1.25.Where can I find the API files in my MediaWiki directory? [[Special:Contributions/2003:57:E349:7201:1E8:3A02:C93B:1555|2003:57:E349:7201:1E8:3A02:C93B:1555]] 09:17, 22 June 2015 (UTC)

== Redirect after login not working ==

Dear all,
we have a local mediawiki installation running with the product version below. Our users need to login to see anything. Therefore, whenever opening a known link from e.g. the bookmark page, they are correctly asked to enter their username and password and click on login. I believe that then the following happens: Mediawiki redirects to the originally requested page, but somehow neither Chrome nor Internet Explorer reload the content but deliver what was previously delivered and thus the user sees the Login request again. However, if I manually click on reload page, both browsers serve the desired content without any further action needed. This is quite confusing. 

Would be great if anybody had a suggestion of what me hight have configured incorrectly or whether this is a known bug, I was not able to find anything on this while searching.

Thank you all for your help
Stephan

Product	        Version
MediaWiki	1.23.3
PHP	        5.5.26 (fpm-fcgi)
MySQL	        5.5.41-log [[Special:Contributions/141.39.148.25|141.39.148.25]] 09:13, 22 June 2015 (UTC)
:This seems to be a browser cache issue.
:There was an issue [[Release notes/1.22|fixed in 1.22]]: ''(bug 46680) "Return to" links are no longer tagged with rel="next".'' [[User:Ciencia Al Poder|Ciencia Al Poder]] ([[User talk:Ciencia Al Poder|talk]]) 09:56, 22 June 2015 (UTC)

== NiceCategoryList2 will not display any categories on my mediawiki homepage ==

Hi All,

Hope you can help us, i have installed the NiceCategoryList2 extension on my Wiki but it will not display any categories on the site. Instead this is all i get

Note: This is not a full list

/div /div
/div /div
/div
/div
/div
/div
/div /div

etc.........

When i go to the /mediawiki/index.php/Special:Categories page i can see all my categories there so not sure where i went wrong

Should there only be one PHP file in the NiceCategoryList2 folder or should there be other files that it needs to reference off? Should i be using this extension, if not can you recommend a different one with install instructions thanks.

MediaWiki Version 1.25
PHP and MySQl latest versions [[User:GTSOPS|GTSOPS]] ([[User talk:GTSOPS|talk]]) 11:28, 22 June 2015 (UTC)

== how do I "optimize" my mediawiki site? ==

Hi, do you guys know how I can optimize it so the number of exceeded resources goes down?

Site Info:

MediaWiki	1.24.1
PHP	5.5.26 (cgi-fcgi)
MySQL	5.1.66 [[User:HypercaneTeen2|HypercaneTeen2]] ([[User talk:HypercaneTeen2|talk]]) 15:01, 22 June 2015 (UTC)
:What do you mean by "number of exceeded resources"? Do you want to use less PHP memory? Or do you want to have fewer HTTP requests? Faster delivery times? Something else? [[Special:Contributions/88.130.117.164|88.130.117.164]] 15:41, 22 June 2015 (UTC)
::Yes if it'll lessen the amount of times my site exceeds my hosts resources. [[User:HypercaneTeen2|HypercaneTeen2]] ([[User talk:HypercaneTeen2|talk]]) 17:57, 22 June 2015 (UTC)
:::Which of your host's resources? [[Special:Contributions/88.130.117.164|88.130.117.164]] 20:45, 22 June 2015 (UTC)
::::Idk I just need my site optimized [[User:HypercaneTeen2|HypercaneTeen2]] ([[User talk:HypercaneTeen2|talk]]) 23:44, 22 June 2015 (UTC)
:::::When there are no problems, then there is nothing to optimize. Maybe you know the saying: "Never change a winning team." There is something true about that.
:::::If you want to do yourself a favour, then you might do one thing: [[Upgrade]] MediaWiki to a current version, which is either 1.24.2 or the even more current 1.25.1! [[Special:Contributions/88.130.117.164|88.130.117.164]] 23:54, 22 June 2015 (UTC)

== autoconfirmed users (משתמשים ותיקים) ==

What are autoconfirmed users in MediaWiki and how are they autoconfirmed? Is it possible to change the way users are autoconfirmed? I noticed that there are differences between different languages of Wikipedia. [[User:Uri Even-Chen|Uri Even-Chen]] ([[User talk:Uri Even-Chen|talk]]) 18:23, 22 June 2015 (UTC)
:[[Manual:Autoconfirmed_users]] —[[User:TheDJ|Th<span style="color: green">e</span>DJ (Not WMF)]] ([[User talk:TheDJ|talk]] • [[Special:Contributions/TheDJ|contribs]]) 19:24, 22 June 2015 (UTC)

== Cannot connect database server ==

My 1.24.1 installation is in error now (msg:Cannot connect database server) after FastWebHost upgraded the php on server from 5.3 to 5.4. 
FastWebHost support tells me "upgrade all your site applications or coding parts to PHP5.4 from PHP5.3."

Kristin [[Special:Contributions/213.213.153.168|213.213.153.168]] 23:41, 22 June 2015 (UTC)
:Hi Kristin,
:MediaWiki 1.24 is compatible with PHP 5.3 and with 5.4, see [[Compatibility#Software_required_to_run_MediaWiki]]. At least for the MediaWiki software itself, there is nothing to upgrade.
:However, you have not told us where exactly you get this error message, so I am not ''exactly'' sure what is happening. Anyway, a "Cannot connect database server" error usually means that the database server is not available currently. Most likely the MySQL server is just not running. If you are on a shared host, meaning if FastWebHost offers you the server, then you won't be able to fix that yourself. This is something ''they'' have to fix.
:Would be interesting to know, if you can connect to the database server ''differently'', e.g. using something like PHPMyAdmin (which FastWebHost might have to give you access to the DB). [[Special:Contributions/88.130.117.164|88.130.117.164]] 23:47, 22 June 2015 (UTC)
::Thanks thats what I thought.  I can connect to the db through PHPMyAdmin - everything seems to be ok.
::The mediawiki is set up on uppskrift.belgur.net (don't mind the errors on belgur.net - this is a wordpress setup no longer being updated or maintained) [[Special:Contributions/217.28.190.130|217.28.190.130]] 10:48, 23 June 2015 (UTC)
:::This is the error, which you get:
:::<syntaxhighlight lang='text'> Sorry! This site is experiencing technical difficulties.
 Try waiting a few minutes and reloading.
 (Cannot contact the database server)
</syntaxhighlight>
:::This error definitely is ''not'' output by MediaWiki. According to the HTTP header it seems to be output by the server:
:::<syntaxhighlight lang='text'>HTTP/1.0 500 Internal Server Error =>
Date => Tue, 23 Jun 2015 11:52:29 GMT
Server => LiteSpeed</syntaxhighlight>
:::Is it possible that together with the PHP upgrade the host also changed something with the MySQL server? E.g. that they changed the server and it now is available under a different IP address? That would be relevant for the value of [[Manual:$wgDBserver|$wgDBserver]]. Please also double check the MySQL username and password, which you have provided in LocalSettings.php. A mistake there can also cause this problem. [[Special:Contributions/88.130.88.162|88.130.88.162]] 11:26, 23 June 2015 (UTC)
::::Thanks for your help.  I forwarded the info to the FastWebHost support and they have fixed this finally.  My wiki is now working fine.
::::I last updated mediawiki in March and have since then not done any changes to the config so I guess they changed something on the server that caused this to break.  Not very reassuring and their support people don't seem to know much.
::::But this is fixed now and I am happy. 
::::Thanks again.
::::Kristin [[Special:Contributions/217.28.190.130|217.28.190.130]] 12:29, 23 June 2015 (UTC)
:::::Yepp, some webhosts are more likely to break their customer's systems than others. I realize there seems to be a correlation: The more money you spend in hosting, the less likely will you have problems with it.
:::::Something that you might still want to do is: [[Upgrade]] your MediaWiki installation to a current version. That is 1.24.2 (where doing an upgrade should be trivial) or 1.25.1, which is even newer. [[Special:Contributions/88.130.88.162|88.130.88.162]] 12:40, 23 June 2015 (UTC)
::::::Yes I should upgrade - it always makes me a bit worried though since I don't have complete control in this hosting environment. :S
::::::You think 1.25.1 is ok considering the topic of this thread?
::::::Kristin [[Special:Contributions/217.28.190.130|217.28.190.130]] 12:57, 23 June 2015 (UTC)
:::::::You mean if you will run into strange problems with your host when you upgrade to 1.25? I don't know that. Maybe you do... ;-)
:::::::An upgrade from 1.24.1 to 1.24.2 is basically simple; you only have to replace the files and that is it. If that is done correctly, I think that nothing will break.
:::::::And if you have a backup of your system (files and database), then you can also try an upgrade to 1.25. But basically that is also what our guide [[Upgrading]] tells you: Make sure you have a working backup! [[Special:Contributions/88.130.88.162|88.130.88.162]] 13:34, 23 June 2015 (UTC)
::::::::Yes of course I have gone through this a few times.
::::::::I might start with 1.24.2 ;)
::::::::Kristin [[Special:Contributions/217.28.190.130|217.28.190.130]] 13:45, 23 June 2015 (UTC)
  17:48, 24 June 2015 (UTC)

== [RESOLVED] show original table symbol ==

Hi guys:

I dump a zh wikipedia to my self site.

* Mediawiki: 1.25.1
* PHP: 5.5.9-1ubuntu4.9 (apache2handler)
* Mysql: 5.5.43-0ubuntu0.14.04.1
* url: http://120.25.162.82/mediawiki/index.php/%E5%91%A8%E6%9D%B0%E5%80%AB

My problem is: 
in the right panel, it shows the original "\<tr\> \<td\>" and so on.

The right panel use Template:藝人.which has the same problem.

My English is poor. Can any one tell me how to solve it, thanks [[User:Huhuang03|Huhuang03]] ([[User talk:Huhuang03|talk]]) 09:18, 23 June 2015 (UTC)
:I don't see any td or tr tags in your wiki. This is how it looks like: http://imgur.com/moIXXjA
:Ahh, in fact what I see there only is an error message: Something like "you don't have permission to view the page". That means that for the user group "*" you have taken away the "read" permission. Setting 
:<code> $wgGroupPermissions['*']['read'] = true;</code>
:in LocalSettings.php should change that. [[Special:Contributions/88.130.88.162|88.130.88.162]] 12:03, 23 June 2015 (UTC)
::Hello:
::I have change it to
::<code>    $wgGroupPermissions['*']['read'] = true;</code> [[User:Huhuang03|Huhuang03]] ([[User talk:Huhuang03|talk]]) 11:07, 24 June 2015 (UTC)
:::You may try to use only wiki syntax instead of td and tr elements. See [[Help:Tables]]
:::Note that inside parser functions, the pipe character will conflict with the parameter separator, so inside parser functions, whenever you need to use a pipe for table syntax, use <code>{{!}}</code> instead.
:::In fact, since you wiki allowed to edit, I was able to preview changes on Template:藝人/core using this syntax and issue was fixed.
:::See a little example of your code transformed:
:::<syntaxhighlight lang='text'>{| class="infobox vcard" style="width:275px; font-size: 95%;"
|-
! style="text-align: center; font-size: 120%; background: {{藝人/color selector|{{{type|artist}}}}};" colspan="3" class="fn n"|{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}
{{#if:{{{image|}}}
  |<nowiki/>
{{!}}- style="text-align: center;"
{{!}} colspan="3" {{!}} [[File:{{{image}}}|{{#if:{{{imagesize|}}}|{{{imagesize}}}|220px}}|{{{caption|}}}]]<br /><div style="font-size: 90%">{{{caption|}}}</div><span class="photo" style="display:none">{{filepath:{{{image}}}}}</span>
}}
|-
! style="background: {{藝人/color selector|{{{type|artist}}} }};" colspan="3" class="title role"| {{#if:{{藝人/type return|{{{type|none}}}}}|{{藝人/type return|{{{type|none}}}}}|艺人或艺术家}}
{{#if:{{{birthname|}}}
  |<nowiki/>
{{!}}-
{{!}} style="white-space:nowrap;" {{!}} '''本名'''
{{!}} colspan="2" class="additional-name" {{!}} {{{birthname}}}
}}<!--   
-->{{#if:{{{foreignname|}}}   
  |<nowiki/>
{{!}}-
{{!}} style="white-space:nowrap;" {{!}} '''原文名'''
{{!}} colspan="2" {{!}} {{#if:{{{fnamelang|}}}|{{lang|{{藝人/lang selector|{{{fnamelang|}}}}}|{{{foreignname}}} }}|{{{foreignname}}}}}
}}
...
</syntaxhighlight> [[User:Ciencia Al Poder|Ciencia Al Poder]] ([[User talk:Ciencia Al Poder|talk]]) 11:54, 24 June 2015 (UTC)
:Thank you
:I search google for html tag parse problem, and try set $wgUseTidy=true; in LocalSetting.php. It works, thanks a lot [[User:Huhuang03|Huhuang03]] ([[User talk:Huhuang03|talk]]) 08:50, 27 June 2015 (UTC)

== Can't view wikipedia on cellphone browser ==

I have a Palm Centro with a Blazer browser. As of about a month ago I could no longer view wikipedia articles. Please restore compatibility. Thank you. [[User:LJRich|LJRich]] ([[User talk:LJRich|talk]]) 06:07, 24 June 2015 (UTC)
:Does [https://en.wikipedia.org/wiki/Blazer_%28web_browser%29 Blazer] support [//meta.wikimedia.org/wiki/HTTPS HTTPS]? HTTPS is now required to access (English) Wikipedia, for your own improved safety. [[User:Malyacko|Malyacko]] ([[User talk:Malyacko|talk]]) 09:50, 24 June 2015 (UTC)
::Blazer dates from 2008 so I think it's unlikely to support HTTPS. Was this policy to require HTTPS implemented within the last 2 months? If so, could there be a reconsideration for old phones so that they still work? [[User:LJRich|LJRich]] ([[User talk:LJRich|talk]]) 18:18, 24 June 2015 (UTC)
:::See https://meta.wikimedia.org/wiki/HTTPS - due to security concerns, it was not possible to leave an option for opting out. You may want to consider upgrading to a recent and more secure browser. [[User:Malyacko|Malyacko]] ([[User talk:Malyacko|talk]]) 16:53, 29 June 2015 (UTC)

== numbering content will also number the content how is do doable? ==

Hello Everyone 

numbering content works fine but how do i do that it will also number whats it refers to?

lets say "1.dev" in content and the information its self in the page the header will have aswell 1.Dev 

is this possible?

thanks in advance [[Special:Contributions/84.95.206.229|84.95.206.229]] 08:14, 24 June 2015 (UTC)
:I don't quite understand what do you want to do. Maybe expanding the example and what do you refer to about "header" would help. [[User:Ciencia Al Poder|Ciencia Al Poder]] ([[User talk:Ciencia Al Poder|talk]]) 11:36, 24 June 2015 (UTC)
::heres an example the content is numbered as you can see and this content refers to the information below which isnt numbered
::how do i do that it will automaticly number the content aswell?
::<syntaxhighlight lang='text'>Contents [hide] 
1 Scope
1.1 Browsers
1.1.1 Chrome
1.1.2 Firefox
1.1.3 Explorer
1.1.4 Version 9
1.1.5 Version 11
Scope[edit]
Site and BO features that jQuery2 affects.
Browsers[edit]
Chrome[edit]
Latest version.
Firefox[edit]
Latest version.
Explorer[edit]
Version 9[edit]
Version 11[edit]
Mobile Devices[edit]
Mobile device will be tested in special specified cases.
[edit]
</syntaxhighlight> [[Special:Contributions/84.95.206.229|84.95.206.229]] 13:45, 24 June 2015 (UTC)
:::If you want that for all pages, there's a user preference that controls this behavior. You can change the default so all users see them.
:::If not, you may be interested in following {{phabricator|T33735}} in case it goes somewhere some day [[User:Ciencia Al Poder|Ciencia Al Poder]] ([[User talk:Ciencia Al Poder|talk]]) 17:52, 24 June 2015 (UTC)
::::where is that in the user preferences exactly? [[User:Asafm14567|Asafm14567]] ([[User talk:Asafm14567|talk]]) 09:44, 25 June 2015 (UTC)
:::::auto numbering headings thanks 
:::::is it possible to apply it to all? [[User:Asafm14567|Asafm14567]] ([[User talk:Asafm14567|talk]]) 10:21, 25 June 2015 (UTC)
::::::Yes. See [[Manual:$wgDefaultUserOptions]]. [[User:Ciencia Al Poder|Ciencia Al Poder]] ([[User talk:Ciencia Al Poder|talk]]) 13:18, 25 June 2015 (UTC)

== [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.

like here: http://wiki.westeros.pl/index.php?title=Wojna_Pi%C4%99ciu_Kr%C3%B3l%C3%B3w

Could anybody help me? [[User:TraaBBIT|TraaBBIT]] ([[User talk:TraaBBIT|talk]]) 10:31, 24 June 2015 (UTC)
: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. [[User:Ciencia Al Poder|Ciencia Al Poder]] ([[User talk:Ciencia Al Poder|talk]]) 11:42, 24 June 2015 (UTC)
::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 [[User:TraaBBIT|TraaBBIT]] ([[User talk:TraaBBIT|talk]]) 12:16, 24 June 2015 (UTC)
:::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 [http://pastebin.com/tCAR7Jhi] (search for &lt;)
:::I think those 
:::and  tags shoud be using wiki tables instead. [[User:Ciencia Al Poder|Ciencia Al Poder]] ([[User talk:Ciencia Al Poder|talk]]) 17:31, 24 June 2015 (UTC)
::::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. [[User:TraaBBIT|TraaBBIT]] ([[User talk:TraaBBIT|talk]]) 19:07, 24 June 2015 (UTC)
:::::I've exported the page of wiki.westeros.pl on my test 1.23 wiki and it rendered broken as well [[User:Ciencia Al Poder|Ciencia Al Poder]] ([[User talk:Ciencia Al Poder|talk]]) 15:17, 26 June 2015 (UTC)
::::::Any idea to resolve that issue? [[Special:Contributions/89.66.208.117|89.66.208.117]] 06:07, 28 June 2015 (UTC)
:::::::I resolved that issue.
:::::::I added  $wgUseTidy=true; in LocalSetting.php. It works, thanks a lot [[Special:Contributions/89.66.208.117|89.66.208.117]] 06:17, 28 June 2015 (UTC)
::::::::Note that tidy fixes the ouput of broken markup - it ''does not'' fix the cause of the problem: The broken markup itself. Also, tidy can cause a number of interesting rendering bugs. [[Special:Contributions/88.130.106.110|88.130.106.110]] 10:15, 28 June 2015 (UTC)
:::::::::Yeah I know but I didn't find anything else to sesolve my issues [[User:TraaBBIT|TraaBBIT]] ([[User talk:TraaBBIT|talk]]) 06:08, 2 July 2015 (UTC)

== Commenting on Mediawiki ==

Hi all,

I am using this extension,

but it is giving me this error when I tried to edit/access that page.
<pre>PHP Fatal error:  Call to a member function getMaxIncludeSize() on a non-object in C:\inetpub\wwwroot\wiki\includes\parser\Parser.php on line 3135

May I know how to solve?

Or are there any other comment extension available ?

Thanks so much !!!! 203.120.42.151 10:43, 24 June 2015 (UTC)

Wrong displayyin on some pages

I have wrong displaying on some pages like on : http://wiki.westeros.pl/index.php?title=Wojna_Pi%C4%99ciu_Kr%C3%B3l%C3%B3w

It's happen after upgrading to newest version of MW. TraaBBIT (talk) 11:42, 24 June 2015 (UTC)

You are using the Vector skin and the problem is not present on all pages, but only on some. The Main_Page e.g. displays just fine. So I guess this is caused by some HTML elements in your page. For these elements, you obviously have CSS styles, which break the design; these styles might e.g. be in MediaWiki:Common.css or in MediaWiki:Vector.css.
If you have upgraded from MediaWiki 1.24.x to 1.25, then you can check these commits to see, what was actually changed. 88.130.78.198 13:26, 24 June 2015 (UTC)
So what should I do? TraaBBIT (talk) 13:35, 24 June 2015 (UTC)
Inspect the CSS of that page and see, why e.g. the tabs and the search are displaced. Make sure to deactivate the ResourceLoader first, so that you see the actual lines of CSS, which contain the problematic code (and not one long compressed version of everything). 88.130.78.198 13:41, 24 June 2015 (UTC)
This pretty sure is an unclosed HTML tag somewhere in the page:
E.g. the tabs have a font-size, which is too small. This is the CSS rule, which causes this problem:
table.navbox {
    font-size: 88%;
So basically the the tabs and many other things (like e.g. the links in the page footer) are inside the table with the class "navbox". This should not be the case! 88.130.78.198 13:45, 24 June 2015 (UTC)
That can't be unclosed HTML tag somwhere.
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. TraaBBIT (talk) 13:49, 24 June 2015 (UTC)
Ok, let's try that from a logical point of view: We know that a table with the class "navbox" does not appear in the Vector skin itself, but that it appears in your page content. And we know that after the opening table tag appeared, following content is not rendered outside of it, but inside it. Logically there cannot have been a closing HTML tag for that table. Maybe there was one, but it was commented, invalid at the place it has been noted, cascaded incorrectly or something like that; however, the result remains the same: This table is not closed. 88.130.78.198 14:32, 24 June 2015 (UTC)
OK. So could You help me find that missing and fix it?
Mayby that page is broken: http://wiki.westeros.pl/index.php?title=Szablon:Navbox_subgroup TraaBBIT (talk) 16:29, 24 June 2015 (UTC)

Recent Articles in Mediawiki - getting the content

Hi folks,

I am trying to implement a recent article function on mediawiki and am using the newest page extension to do so. (https://www.mediawiki.org/wiki/Extension:Newest_Pages). Currently, I am retrieving the top 3 recently created article by using the format { {Special:Newestpages/-/3} } and is showing me the article title link.

But I will also like to get the content from the above 3 titles. Below is a code that I have modified in the php file. The bold one are the 2 lines of code I have added in to get the content. However, it is echo-ing out. How should I make it display on the main page??

Thanks for all advises!!!!

	function makeListItem( $row ) {
		global $wgUser;
		$title = Title::makeTitleSafe( $row->page_namespace, $row->page_title );
		'''''$article = new Article( Title::newFromText( $title ) ) ;
		echo $article->getContent();'''''
		if( !is_null( $title ) ) {
			$skin = $wgUser->getSkin();
			$link = $row->page_is_redirect
					? '<span class="allpagesredirect">' . $skin->makeKnownLinkObj( $title ) . '</span>'
					: $skin->makeKnownLinkObj( $title );
			return( "<li>{$link}</li>\n" );
		} else {
			return( "<!-- Invalid title " . htmlspecialchars( $row->page_title ) . " in namespace " . htmlspecialchars( $row->page_namespace ) . " -->\n" );
		}
	}

2401:7400:C800:32AC:685E:99CE:6825:EACA 16:09, 24 June 2015 (UTC)

Server Error 500

hi i have the following error on my wiki:

Server Error 500 - Internal server error. There is a problem with the resource you are looking for, and it cannot be displayed.

i was working fine then yesturday i appear that message and haven't work again

please Help 192.8.61.2 17:54, 24 June 2015 (UTC)
A server error is usually logged in the server log. So, if you are using the Apache webserver, then the Apache log will contain useful information on what is actually going wrong.
If you have access to that file, you can read it yourself. If you are on a shared host, then you should ask your host so that he can give you more information.
Please post us the according information! 88.130.78.198 17:56, 24 June 2015 (UTC)

Cannot instantiate abstract class ElasticaConnection

Hi

I updated my wiki to 1.25 and had an old version of elastica running. I updated elastica but when i try to enter the "specialpage" Version i get > Fatal error: Cannot instantiate abstract class ElasticaConnection in /home/public_html/extensions/Elastica/ElasticaConnection.php on line 37

Why ? 83.254.88.249 17:55, 24 June 2015 (UTC)

I'm having exactly the same problem with this version :/
Personnaly, I downloaded another version from Gerrit : https://gerrit.wikimedia.org/r/#/c/174681/
But I would like to know why it doesn't work otherwise .... Débutante (talk) 07:42, 20 July 2017 (UTC)

Custom wiki markup?

Is there a method in place for extensions to add to the wikitext markup? I'm not talking to add tags, but to extend the core markup itself (eg: things like '', ''', ==, ;, : and so on. I skimmed the extensions help area but didn't see anything that seemed to have it -- they all relied on tags or magic words. 71.112.171.251 22:29, 24 June 2015 (UTC)

No, that's hardcoded in the parser itself.
You can, however, create a tag extension and create your own parser, and use it for the content inside your tag. Maybe you can even process that inside an existing hook without the need to wrap wikicode inside that new tag. Ciencia Al Poder (talk) 09:28, 25 June 2015 (UTC)

Admin and protections - no final warning

Greetings. This came up recently (just now) on en.wikipedia . It appears that if an administrator starts editing an article, opens the edit window, some second administrator applies full protection, and then the first administrator clicks "save" on the article, that there is no warning on the first administrator's edit that protection was applied while the edit was in progress. I believe a normal editor gets a denied at that point, but the admins edit just goes through.
I believe that this is a bug; the admin should probably see some form of warning and be required to click affirmatively that they still want the edit to take effect, under that circumstance. That should I think only apply if the admin did not get the first, red-edit-window warning (start to edit something already protected) - that should be good enough. But if the protection was applied after editing started, switch to this "are you really sure? someone else protected while you are editing..." behavior.
Thanks. Georgewilliamherbert (talk) 02:07, 25 June 2015 (UTC)
You should probably request that in Phabricator Ciencia Al Poder (talk) 09:33, 25 June 2015 (UTC)

[Solved] Naming a category with a "-" in it

Am I allowed to give a new category a name like Rembrandtkade 52-66? Sonty567 (talk) 09:15, 25 June 2015 (UTC)

To be more specific: Is that allowed on Wikimedia Commons? Sonty567 (talk) 09:17, 25 June 2015 (UTC)
It seems so, just found a category there with a "-" in it. Sonty567 (talk) 09:27, 25 June 2015 (UTC)
In MediaWiki in general, yes, it's allowed. For Commons in particular, you should ask on that wiki. Ciencia Al Poder (talk) 09:33, 25 June 2015 (UTC)

Getting article content using Title ?

Hello all,

I would like to ask how do I get the article content using the Title class and display the content on my main page.


Currently, I have to first retrieve the recently created articles then get the content of those title. I am using newest page extension (https://www.mediawiki.org/wiki/Extension:Newest_Pages) to do so. However, I tried editing the file but fail because I am echo-ing out the content instead of displaying on the main page.

$article = new Article( Title::newFromText( $title ) ) ;
echo $article->getContent();

How should I do that? I am thinking of parser function. But I am not sure if I am on the right track.

Thanks for all assistance and time! Anyhowputx (talk) 09:22, 25 June 2015 (UTC)

What you say basically is right: $article->getContent(); will contain the actual article text.
I guess that you are somehow editing this file here, right: https://git.wikimedia.org/blob/mediawiki%2Fextensions%2FNewestPages/1547d9f6891e2c5831d315d6d6d3ed2e4301a882/NewestPages.page.php?
I have not yet tested, how exactly that extension is working, but reading the code, I guess that inside function execute(), where the code deals with $wgOut, that this would be where you can somehow add the actual article text (instead of letting the code create the link, which it would normally create). Maybe something like
$article = new Article( Title::newFromText( $title ) );
$articleText = $article->getContent();
$wgOut->addWikiText( $articleText );
works the way you want... 88.130.101.155 12:42, 25 June 2015 (UTC)
Hello there,
Thanks for giving me the direction to start. Yes you are right, I am editing the NewestPages.page.php file
I have created a new function to retrieve the content and it works fine
<?php
function showArticleText ($row)
	{
		$titleText = Title::newFromText($row->page_title);
		if (!$titleText) return '<h1>Could not retrieve this Article Page.</h1>';
		$page = $titleText->getFullText();
		$article = new Article( $titleText );
		$articleText = $article->getContent();
		$limit = 100;
		if (strlen($articleText) > $limit) {
		 $words = str_word_count($articleText, 2);
		 $pos = array_keys($words);
		 $articleText = html_cutArticle($articleText, $limit). '<br/>' . '<br/>' . '[[' . $titleText . '|(Read more)]]';
		 // return the changed text
		 return $articleText . "<br/>";
	} else {
		echo "<br/>";
		 return  $articleText . "<br/>";	
	}
?>
and also added the
$wgOut->addHTML( $this->showArticleText( $row) );
in the execute function.

Right now, I am trying to implement a "Read More" function if the article is > 100 words. However, I tried to do the above but it is giving me TitlePage instead. I can't even click on that. I am guessing because no parser function was used? How should I implement that? Or are there any other methods to implement it? Really appreciate your assistance and time!! Have a good day! 2401:7400:C800:32AC:A9CE:A9EF:A862:5EA8 15:40, 25 June 2015 (UTC)

Hi,
I have used your method and it works (partially). However, it is giving me weird characters as shown here (http://i60.tinypic.com/eslrhy.png).
Any idea how to fixed it?
Please advise. Thank You so much! Anyhowputx (talk) 00:09, 1 July 2015 (UTC)
I have put the code you advise here (https://dpaste.de/T4Yu) from line 181 - 191 but it is giving me the weird characters as seen here (http://i60.tinypic.com/eslrhy.png)
Thank you for your time and assistance! Anyhowputx (talk) 00:48, 1 July 2015 (UTC)

Creating account

Hello

I created an account on the app.

I then went onto the PC version and tried to edit the site by adding a picture.

It brought me to this wiki, i found the create account page, but says the requested ID is taken. Is this because the same ID registered on the app?

I cant see anyone else having the same username as me...

Cheers Mark 10:33, 25 June 2015 (UTC)

Yes, your username is shared between (almost all) Wikimedia foundation hosted wiki properties. —TheDJ (Not WMF) (talkcontribs) 20:33, 28 June 2015 (UTC)

Cannot upload files - no error messages

Whenever I select a file and click "Upload file" the page simply refreshes and does not upload the file. The file list shows that no files have been uploaded.

Error reporting is turned on in LocalSettings.php. $wgEnableUploads = true in LocalSettings.php. Images folder permissions for IIS user are set to Read, Write, and Execute. 86.134.196.97 13:11, 25 June 2015 (UTC)

This looks like POST data is being discarded and not arriving to PHP.
This have potentially several causes:
  • Wrong rewrite rules
  • Wrong $wgServer (the form points to an URL that redirects to another URL)
  • You attempt to upload a file larger than PHP post_max_size and upload_max_filesize (note that the actual usable size may be lower due to encoding) Ciencia Al Poder (talk) 09:17, 26 June 2015 (UTC)

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.123 13:39, 25 June 2015 (UTC)

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.155 14:40, 25 June 2015 (UTC)
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.175 06:53, 26 June 2015 (UTC)
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.83 05:29, 3 July 2015 (UTC)
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... Ciencia Al Poder (talk) 09:34, 3 July 2015 (UTC)

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.30 14:02, 25 June 2015 (UTC)

That's not the 'proper' way to add CSS: ResourceLoader/Developing_with_ResourceLoader.
But are you adding a style block, or an external stylesheet ? Can you give links perhaps ? —TheDJ (Not WMF) (talkcontribs) 20:25, 28 June 2015 (UTC)
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.237 16:53, 29 June 2015 (UTC)
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.30 14:53, 1 July 2015 (UTC)
You are using JavaScript to load your styles, so they aren't loaded immediately. Use addModuleStyles. 121.219.253.36 09:43, 2 July 2015 (UTC)

Babel languages

On meta an editor suggested to support ancient languages in extension:babel, and out of curiosity I tested non for Old Norse. That failed, I got "English" instead of "Old Norse", let alone runesthe user actually wanted Futhark. Now not following my own advice to ask on the babel talk page I saw that tlh-0 (= does not speak Klingon) also does not more work. That's new, apparently {{#language:tlh}} => tlh is broken.

Update: {{#babel:tlh-0}} still works here, but fails on Meta. m: + mw: are both at 1.26wmf11 (0abab45). Be..anyone (talk) 14:13, 25 June 2015 (UTC)

Can't upgrade (xampp)

Hi,

When I run maintenance/update.php, I get the error "DatabaseBase::factory no viable database extension found for type 'mysql'":

mywiki/maintenance$ php update.php 
MediaWiki 1.24.1 Updater

[1c0b983f] [no req]   Exception from line 890 of /opt/lampp/htdocs/mywiki/includes/db/Database.php: DatabaseBase::factory no viable database extension found for type 'mysql'
Backtrace:
#0 /opt/lampp/htdocs/mywiki/includes/db/LoadBalancer.php(737): DatabaseBase::factory(string, array)
#1 /opt/lampp/htdocs/mywiki/includes/db/LoadBalancer.php(610): LoadBalancer->reallyOpenConnection(array, boolean)
#2 /opt/lampp/htdocs/mywiki/includes/db/LoadBalancer.php(490): LoadBalancer->openConnection(integer, boolean)
#3 /opt/lampp/htdocs/mywiki/includes/GlobalFunctions.php(3632): LoadBalancer->getConnection(integer, array, boolean)
#4 /opt/lampp/htdocs/mywiki/maintenance/update.php(136): wfGetDB(integer)
#5 /opt/lampp/htdocs/mywiki/maintenance/doMaintenance.php(101): UpdateMediaWiki->execute()
#6 /opt/lampp/htdocs/mywiki/maintenance/update.php(206): require_once(string)
#7 {main}

I searched in other threads, and didn't understand where the error comes from: my PHP version is 5.5.9-1ubuntu4.9 (so I guess it's ok), and my wiki works hosted on localhost works fine. So, how can I upgrade my MediaWiki version? Hydorn (talk) 15:32, 25 June 2015 (UTC)

The error
DatabaseBase::factory no viable database extension found for type 'mysql'
means that MySQL is not available from inside PHP. You can upload a PHP file to your server with the following content:
<?php phpinfo();
When you call this file with your webbrowser, you will see information on your PHP installation.
Make sure that the MySQL extension of PHP is enabled (by editing php.ini)! After you enabled it, restart the server for your changes to take effect. The phpinfo() output then should contain a section on MySQL and it should say that MySQL is "enabled". 88.130.101.155 16:26, 25 June 2015 (UTC)
MediaWiki now requires mysqli driver instead of mysql, IIRC Ciencia Al Poder (talk) 09:22, 26 June 2015 (UTC)
I don't know that, but newer versions of PHP definitely have the mysql extension deprecated in favour of mysqli. So you surely should use the mysqli extension, if that is available.
Thanks for noting! 88.130.71.198 12:18, 26 June 2015 (UTC)
Well, apparently mediawiki now uses mysqli as default, and mysql as fallback, but both are still supported. Ciencia Al Poder (talk) 14:57, 26 June 2015 (UTC)
OK, here is my php configuration (got with phpinfo()) :
Is mysqli or mysql disabled? Not clear to me... Hydorn (talk) 09:39, 1 July 2015 (UTC)
In the line "MySQL(i) support" it both times says "enabled". In a system of mine I also have both extensions enabled and MySQL is running nicely with that. So I guess it's also not a conflict between those two. That should be fine... 88.130.97.252 11:03, 1 July 2015 (UTC)
I think the problem is the way how PHP is accessed. When you call a file with the web browser, one version of PHP may be invoked, while when you call a file from the shell, another version may be used.
Since you say that your wiki is basically working (not now, but before you upgraded MediaWiki), I guess that the PHP version, which is used when you hit a page with the browser, is fine. update.php however uses the shell, which might be a completely different version.
On the shell, please type this command
php -i
This will (among other things) display a list of the loaded extensions. Look there to see if mysql or mysqli are installed! 88.130.97.252 12:13, 1 July 2015 (UTC)
With 'php -i', mysql or mysqli aren't in the list. But I don't understand, the wiki should use the PHP version of XAMPP, no? Hydorn (talk) 15:39, 29 July 2015 (UTC)
With 'php -i', mysql or mysqli aren't in the list
And that is your problem. When you access PHP from the command line, in CLI mode, neither the mysql, nor the mysqli extension is loaded. Make sure that also on the command line version of PHP these extensions are activated! This can be done by editing the according php.ini files and activating the extenion(s) there. 88.130.102.228 17:43, 29 July 2015 (UTC)

I am using Media wiki 1.25.1, tried chrome, firefox, IE11.

I would want to open an external link of a drive for example. So, I have tried a couple of ways but none seem to work for me. I have added the following in my LocalSettings.php: $wgUrlProtocols[] = 'file://'; $wgExternalLinkTarget = '_blank';

Case 1: Then in the wiki page, i added: [file://Q:/Document/]

I tried clicking it with IE, nothing came up, no explorer open. No response. When i hover over the link, it is the correct link that i need: file:///Q:/Document/ When I paste this link on the IE address bar; it opens the directory explorer.

Case 2: Then i tried UNC Template: https://www.mediawiki.org/wiki/UNC_links I added the following link into mediawiki page: Template:Unc

When i hover my mouse i get: file://home_network/Document/ When i click on the link, nothing happens in the browser. When I paste this link on the IE address bar; it opens the directory explorer.

Hope someone can help me with this.

Thanks! AT AmazingTrans (talk) 17:19, 25 June 2015 (UTC)

You say that clicking that link does nothing, but does that text look actually like a link?
You said you have $wgUrlProtocols[] = 'file//'; but it should be $wgUrlProtocols[] = 'file://'; (note the colon) Ciencia Al Poder (talk) 09:26, 26 June 2015 (UTC)
yes it is a link. and sorry about the mistyped there. I actually have $wgUrlProtocols[] = 'file://';
after reading more on the UNC links in detailed, i got the links working in Chrome if i have LocalLinks extensions installed. After clicking on the links in chrome, it open the directory trees in the browser, or open xls, doc in chrome. But could not get pptx to work in chrome.
Whereas, for IE11, clicking the link doesn't do anything at all. Ideas? AmazingTrans (talk) 03:39, 29 June 2015 (UTC)
This seems to be a security restriction on the browser.
For IE11, see http://arstechnica.com/civis/viewtopic.php?f=15&t=1250955 Ciencia Al Poder (talk) 15:24, 30 June 2015 (UTC)

How can we gather Usage Stats of our Wiki?

My group or organization is creating a wiki. Please advise if we can gather usage statistics? If so, what kind? PreferenceBickhamPepp (talk) 21:05, 25 June 2015 (UTC)

Sync MediaWiki Site

We are trying for DR purposes to one way sync from main Wiki in the office to offsite Wiki in DR center. I am considering running MySQL replication and either using SVN or RSYNC or Puppet to sync files. I noticed the MediaWiki extension is experimental which I prefer not to use in production. Digitalbigsky (talk) 21:41, 25 June 2015 (UTC)

MYSQL replication and rsync/puppet are not MediaWiki extensions, so I don't know what "experimental" software are you talking about. Ciencia Al Poder (talk) 09:25, 26 June 2015 (UTC)
I would not really call MySQL replication experimental - isn't that also what the WMF does with Wikipedia? As far as I see the question is how to best copy changed files. I don't know Puppet. For SVN I am asking myself why one should use that. MediaWiki itself has logs about uploads/overwrites/deletes of files; there is no need to duplicate that by creating say one revision per day in SVN.
Basically, I would start testing with RSYNC; which also has an option to only update changed files. This should make things pretty fast. 88.130.71.198 12:15, 26 June 2015 (UTC)

Compilation stop with errors at 22%

Hi everybody, I really need you help. I tried to follow the installation guide but I am not so sure to have done everything right. I am working on Ubuntu 14.04 and I think (since I have not change anything concerning it) that I am trying to compile using g++. After giving to command "make" I get this error at 22% of the elaboration:

make[2]: *** Nessuna regola per generare l'obiettivo "/usr/lib/x86_64-linux-gnu/libpng.so", necessario per "src/utilities/SSRB". Arresto. make[1]: *** [src/utilities/CMakeFiles/SSRB.dir/all] Errore 2 make: *** [all] Errore 2

I am sorry for it to be in italian but I hope you will get the point. Let me know if you have any solution. Thanks.

M.S. 159.213.59.135 08:41, 26 June 2015 (UTC)

What are you trying to compile? MediaWiki uses PHP, you don't have to compile it. Ciencia Al Poder (talk) 09:29, 26 June 2015 (UTC)
Oh my god! -.-"
I thought I was still on the STIR wiki page!
Sorry for bothering you ... :\ 159.213.59.135 10:37, 26 June 2015 (UTC)

Support Desk cannot reply

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


Hi there, i tried clicking reply on a thread and then click save page. it does not save the page. it comes back to the Wiki-Editor.
Show-preview & Show changes work. but SavePage does not work for me in reply. What should i check? AmazingTrans (talk) 17:45, 26 June 2015 (UTC)
I met the same problem Huhuang03 (talk) 08:55, 27 June 2015 (UTC)
Anybody else having same issue?
Looks like it works now for me again. AmazingTrans (talk) 02:35, 29 June 2015 (UTC)
Any error messages in your browser console output is welcome if this happens again. AKlapper (WMF) (talk) 08:42, 29 June 2015 (UTC)
This could happen if your edit triggers one of the filters of AbuseFilter, or if you include external links that trigger a captcha. That's because LQT can't display captchas nor Abuse Filter warnings, Ciencia Al Poder (talk) 15:43, 30 June 2015 (UTC)
Well I have a related (probably) issue: I don't see a reply field in the topic [[Project:Support desk/Flow/2015/05#h-[NOT_REALLY_SOLVED]_link_color:_"light_red_link"_of_article_does_not_change-2015-05-20T23:36:00.000Z]]. When I'm not logged in to wiki, I can see this form, but can't publish anonimous reply.
EDITED: solved, that was just a closed thread, that's why there were no field for reply. It's a bit confusing that the field is tthere when I'm not logged in. Norsen1983 (talk) 14:01, 25 March 2019 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

how to show images when I dump a wiki

Hi guys:

I dump a zh wikipedia(https://zh.wikipedia.org/) to my self site.

But now has problem:

Images show like this: 22x20px. Is there a way to show those images correctly! Thanks! Huhuang03 (talk) 11:23, 27 June 2015 (UTC)

I have an article with a section.

The section itself is a concise form of another full-fledged article.

What I want to do is create a link to the second article.

I am using the tag:

{{Main|History of Battle of Plassey}}

Instead of a link, what I am getting is a red link (to a page that does not exist) saying:

Template:Main

Do I have to install some new extension for this? Or am I getting the code wrong?

NB: This is what I am doing on my own new site. The MediaWiki version is 1.25.1. Nokho (talk) 08:31, 28 June 2015 (UTC)

See Help:Links. FriedhelmW (talk) 09:22, 28 June 2015 (UTC)
Use [[Main|History of Battle of Plassey]], not {{Main|History of Battle of Plassey}}! Suriyaa Kudo (iSC Inc.) (talk) 10:15, 28 June 2015 (UTC)
When I do this, the text 'History of Battle of Plassey' does appear in red colour.
And the link leads to
index.php?title=Main&action=edit&redlink=1
Ideally, it should look like what appears here:
https://en.wikipedia.org/wiki/James_Bond#Young_Bond
i.e.
Main article: History of Battle of Plassey Nokho (talk) 11:43, 28 June 2015 (UTC)
In fact, I have an identical problem with 'see also'
[[See also|Battle of Plassey]]
I get the same error.
Even this leads to the same link: index.php?title=Main&action=edit&redlink=1 Nokho (talk) 12:08, 28 June 2015 (UTC)
Please, see the link provided by FriedhelmW. You want to use [[Battle of Plassey|See also]] instead Ciencia Al Poder (talk) 15:54, 30 June 2015 (UTC)
Hey @Nokho: are you using {{main}} and {{see also}} after seeing it on Wikipedia? These are templates that were created on Wikipedia, and they aren't built-into the Mediawiki software.
If you want to have a template on your wiki where you type...
{{main|Battle of Plassey}}
... and See the main article regarding Battle of Plassey appears on your page, you need to create the template yourself.
You can refer to the code on Wikipedia for the Main template and the See also template, but they're kind of tricky now that they use the Lua language. (It's do-able with regular wiki-syntax too, of course.)
I hope this helps!
Cheers! • Supāsaru 15:23, 8 July 2015 (UTC)

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?

Any advise is appreciated!!

Thanks all for your kind assistance and time!!!! 2401:7400:C800:32AC:EDB1:E392:C63B:A9C0 16:08, 28 June 2015 (UTC)

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.112 17:18, 28 June 2015 (UTC)
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.
Please advise and tell me if you need anymore information. Thank You!!!!! Anyhowputx (talk) 03:23, 29 June 2015 (UTC)
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. Ciencia Al Poder (talk) 15:40, 30 June 2015 (UTC)
Thanks for your advise!!
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!!!!!!! Anyhowputx (talk) 16:10, 30 June 2015 (UTC)
As said in QINU fix, apparently you need to use the method recursiveTagParse of the parser Ciencia Al Poder (talk) 16:44, 30 June 2015 (UTC)
Hi,
I have tried using the link you provided. But it is not going into my function (as seen from the echo, i did not see anything output to the screen when I tried to test it)
https://dpaste.de/P7QN (This is the code link which I put the parser, from line 14 - line 30)
Please advise. Thank you so much!!!!! Anyhowputx (talk) 00:41, 1 July 2015 (UTC)
Do not echo anything from PHP code. It breaks any attempt to modify headers (like setting cookies, expiration, etc) and may result in a Blank page. Ciencia Al Poder (talk) 12:34, 1 July 2015 (UTC)

Creating a template that includes a category without including the template itself in the category

Hi all,

I have created a template (named "Journal") for my own private wiki that, at the bottom, ends with this code:

[[Category:Journal entries]]

However I don't want the template itself to be included in the Journal Entries category, only the pages that use the template.

Is this possible to do?

Thanks 2.34.114.231 19:03, 28 June 2015 (UTC)

Your code is missing, but if there's stuff you only want in the transcluded pages you just need to wrap it in <includeonly></includeonly> tags. Clump (talk) 19:19, 28 June 2015 (UTC)

No me permite editar nada

Me sale esto Esta acción ha sido automáticamente identificada como errónea o dañina, y por tanto ha sido deshabilitada. Si crees que tu edición es legítima, por favor, ponte en contacto con un bibliotecario, e infórmale de lo que intentabas hacer. Una breve explicación acerca de por qué se ha deshabilitado la acción es: PRUEBAS - Caracteres gráficos, emoticonos y arte ASCII acá dejo el link https://es.wikipedia.org/w/index.php?title=Entorno_Virtual_de_Aprendizaje&action=submit gracias SilviaVill (talk) 21:12, 28 June 2015 (UTC)

Since my Spanish is .. a bit rusty, I used Google to get an English version:
I get this This action has been automatically identified as wrong or harmful, and therefore has been disabled. If you think your issue is legitimate, please contact a librarian, and inform him of what you were trying to do. A brief explanation of why the action is disabled: TESTS - Graphic characters, emoticons and ASCII art here is the link https://es.wikipedia.org/w/index.php?title=Entorno_Virtual_de_Aprendizaje&action=submit thanks
---
Your edit obviously has been caught by a spam filter. The Spanish WP obviously has "librarians", who can change spam filters. In order to identify, what the problem is, we need to know, what you wanted to save. Something in this text has been recognized as "Graphic characters, emoticons or ASCII art". 88.130.81.112 22:15, 28 June 2015 (UTC)

Widget giving error for some reason

I created a widget called Widget:Amazon that is suppose to display the image of a url that I input into the $image variable. But I get "Error in widget Amazon" instead.

Here is my code found at https://wiki.gamepaduniverse.com/wiki/Widget:Amazon

<includeonly><img border="0" src="<!--{$image|escape:'url'}-->"></includeonly>

This is how the code is being ultized:

{{#widget:Amazon|image=http://ws-na.amazon-adsystem.com/widgets/q?_encoding=UTF8&ASIN=B003ZSP0WW&Format=_SL250_&ID=AsinImage&MarketPlace=US&ServiceVersion=20070822&WS=1&tag=gaunllpa-20}}

Any ideas why I am getting an error/how do I correct it? GamepadUniverse (talk) 02:36, 29 June 2015 (UTC)

Extension used in Project Support Desk?

I am interested in utilizing threading like the one mediawiki Project: Support Desk use. Is this utilizing LiquidThread Extension? AmazingTrans (talk) 04:55, 29 June 2015 (UTC)

Project:Support desk still uses Extension:LiquidThreads which is no longer actively maintained. At some point, this page will use Extension:Flow instead. AKlapper (WMF) (talk) 08:44, 29 June 2015 (UTC)

page revision "cur" show the location of the changes when you click on the changes

Hello Everyone

i need an assistance

in revision "cur" it shows you the changes been made thats excellent but the problem it tells you the line (example "Line 123") but you cannot know where is that line exactly without counting the lines by your self

is there any way to add lines to the page only in revision or when you click on line 123 it will actually take you to line 123

thanks in advance Asafm14567 (talk) 08:41, 29 June 2015 (UTC)

PHP update and empty pages

Hi there,

I've updated my server to the latest php and mysql versions, all my websites and scripts works well except MediaWiki which shows none of articles regularly (editor shows them properly, then they are there in DB). I read about the problem across the net, and it seems that the only solution is upgrading. The thing is my MediaWiki is widely customized (even plugins and theme), then the upgrade is a useless solution. Is there any other solution (like changing a line, adding a code, replacing a file) to solve the issue of empty pages? 2.180.50.250 09:13, 29 June 2015 (UTC)

That is an issue with old MediaWiki versions and current versions of the PHP PCRE extension. Maybe you could somehow patch the MediaWiki core, but that is not what I would recommend. Instead, you should actually really do a MediaWiki upgrade. 88.130.119.228 12:45, 29 June 2015 (UTC)
Thanks for reply, I'd prefer to change the script to prevent happening such things in future. 5.232.58.145 14:38, 29 June 2015 (UTC)
T60640 has the according core patch, which solves the issue. 88.130.119.228 15:41, 29 June 2015 (UTC)
Thanks a lot, the page you've mentioned contains many revision of the file /includes/MagicWord.php, but after testing the latest revisions, one works properly and save me of a huge work and time. The file is ready to download as file 122450, it should be replaced (info for others having the same problem). Special thanks to: timo.gurr, matmarex, Aklapper and bzimport. 5.232.49.80 07:46, 30 June 2015 (UTC)
> Special thanks to: timo.gurr, matmarex, Aklapper and bzimport
He is one of our best! ;-) 88.130.119.228 12:06, 30 June 2015 (UTC)

SQLite isn't listed when running MediaWiki setup

Dear all,

I try to setup a Mediawiki 1.25.1 on a ubuntu 14.04 server. I followed the instructions of this homepage.

I want to use SQLite as database but mediawiki doesnt show this option.

Can somone tell me what I can do that mediawiki recognize that sqlite is installed?

I have the following packages intalled:

ii  apache2                2.4.7-1ubuntu4.4 amd64            Apache HTTP Server
ii  apache2-bin            2.4.7-1ubuntu4.4 amd64            Apache HTTP Server (binary files and modules)
ii  apache2-data           2.4.7-1ubuntu4.4 all              Apache HTTP Server (common files)
ii  php-apc                4.0.2-2build1    all              APC User Cache for PHP 5 (transitional package)
ii  php-pear               5.5.9+dfsg-1ubun all              PEAR - PHP Extension and Application Repository
ii  php5                   5.5.9+dfsg-1ubun all              server-side, HTML-embedded scripting language (met
ii  php5-apcu              4.0.2-2build1    amd64            APC User Cache for PHP 5
ii  php5-cli               5.5.9+dfsg-1ubun amd64            command-line interpreter for the php5 scripting la
ii  php5-common            5.5.9+dfsg-1ubun amd64            Common files for packages built from the php5 sour
ii  php5-curl              5.5.9+dfsg-1ubun amd64            CURL module for php5
ii  php5-intl              5.5.9+dfsg-1ubun amd64            internationalisation module for php5
ii  php5-json              1.3.2-2build1    amd64            JSON module for php5
ii  php5-readline          5.5.9+dfsg-1ubun amd64            Readline module for php5
ii  php5-sqlite            5.5.9+dfsg-1ubun amd64            SQLite module for php5
ii  sqlite                 2.8.17-10ubuntu2 amd64            command line interface for SQLite
ii  sqlite3                3.8.2-1ubuntu2   amd64            Command line interface for SQLite 3

Thank u in advance Simon 2A02:5D8:200:600:82:150:200:4 15:24, 29 June 2015 (UTC)

Use phpinfo() to see if sqlite modules are enabled in php.ini Ciencia Al Poder (talk) 15:45, 30 June 2015 (UTC)

Means of notification when an article is being created/updated

Hi all,

I am trying to implement a "Make a request" function where users can request for article if it does not exist. I used namespace to allow users to create/edit articles as seen here (http://postimg.org/image/ov3jwo1td/)

So after an article (Requests:Title1) has been created, is there any method to notify (through email, sms or whatever) the admin that such namespace article has been created and it should be removed from the list manually.

These 2 page titles that you all seen here are implemented using the newest page extension.

I have 2 questions here 1) Any means to notify the admin that an article has been created ? 2) Remove the links from there manually . (Eg: a checkbox to tick to remove the links but the article is still there) or any other better methods.

If my current approach is wrong, please feel free to correct me and point me to the right direction. I really appreciated all help and assistance!!!

THANK YOU GUYS!!!!!


Just in case you all need my namespace code. I configured it as below

define("NS_REQUEST", 508);
define("NS_REQUEST_TALK", 509);
 
$wgExtraNamespaces = 
    array(508 => "Requests",
          509 => "Requests_talk",
    );
 
$wgNamespaceProtection[NS_REQUEST]      = array( 'requests-edit' );
$wgNamespaceProtection[NS_REQUEST_TALK] = array( 'requests-talk-edit' );
 

$wgGroupPermissions['user']['requests-edit'] = true; //only user can edit pages in the Requests namespace
$wgGroupPermissions['user']['requests-talk-edit'] = true; //user can edit pages in the Requests_talk namespace

$wgGroupPermissions['Requests']['edit'] = true;
$wgGroupPermissions['Requests']['createpage'] = true;

$wgNamespaceProtection[NS_MAIN] = array( 'edit-main' ); // Restrict Requests group to only create pages starting with Requests:pageTitle

/* Allows these user group to create and edit pages */
$wgGroupPermissions['Editor']['edit-main'] = true; 
$wgGroupPermissions['sysop']['edit-main'] = true;

Anyhowputx (talk) 15:45, 29 June 2015 (UTC)

Confirmation Email not working - Pear not installed

I get the following error after creating a new account.

828d69a3] /w/index.php?title=Special:UserLogin&action=submitlogin&type=signup&returnto=PadPedia MWException from line 268 of C:\Inetpub\vhosts\gamepaduniverse.com\wiki.gamepaduniverse.com\w\includes\mail\UserMailer.php: PEAR mail package is not installed Backtrace:

  1. 0 C:\Inetpub\vhosts\gamepaduniverse.com\wiki.gamepaduniverse.com\w\includes\User.php(4208): UserMailer::send(MailAddress, MailAddress, string, string, NULL)
  2. 1 C:\Inetpub\vhosts\gamepaduniverse.com\wiki.gamepaduniverse.com\w\includes\User.php(4184): User->sendMail(string, string)
  3. 2 C:\Inetpub\vhosts\gamepaduniverse.com\wiki.gamepaduniverse.com\w\includes\specials\SpecialUserlogin.php(409): User->sendConfirmationMail()
  4. 3 C:\Inetpub\vhosts\gamepaduniverse.com\wiki.gamepaduniverse.com\w\includes\specials\SpecialUserlogin.php(314): LoginForm->addNewAccount()
  5. 4 C:\Inetpub\vhosts\gamepaduniverse.com\wiki.gamepaduniverse.com\w\includes\specialpage\SpecialPage.php(384): LoginForm->execute(NULL)
  6. 5 C:\Inetpub\vhosts\gamepaduniverse.com\wiki.gamepaduniverse.com\w\includes\specialpage\SpecialPageFactory.php(582): SpecialPage->run(NULL)
  7. 6 C:\Inetpub\vhosts\gamepaduniverse.com\wiki.gamepaduniverse.com\w\includes\MediaWiki.php(267): SpecialPageFactory::executePath(Title, RequestContext)
  8. 7 C:\Inetpub\vhosts\gamepaduniverse.com\wiki.gamepaduniverse.com\w\includes\MediaWiki.php(566): MediaWiki->performRequest()
  9. 8 C:\Inetpub\vhosts\gamepaduniverse.com\wiki.gamepaduniverse.com\w\includes\MediaWiki.php(414): MediaWiki->main()
  10. 9 C:\Inetpub\vhosts\gamepaduniverse.com\wiki.gamepaduniverse.com\w\index.php(41): MediaWiki->run()
  11. 10 {main}


I am using Windows Server 2012 R2 and PHP 5.4. The following was inputted into Cygwin64:

$ pear list
Installed packages, channel pear.php.net:
=========================================
Package          Version State
Archive_Tar      1.3.16  stable
Auth_SASL2       0.1.0   beta
Console_Getopt   1.4.0   stable
Mail             1.2.0   stable
Net_SMTP         1.6.2   stable
Net_Socket       1.0.14  stable
PEAR             1.9.5   stable
Structures_Graph 1.1.0   stable
XML_Util         1.3.0   stable

paulbanwart@u ~
$ pear install Mail
pear/Mail is already installed and is the same as the released version 1.2.0
install failed

75.72.156.129 23:48, 29 June 2015 (UTC)

Follow this checklist: http://pear.php.net/manual/en/installation.checking.php. Specially, be sure that PHP include_path setting contains the PEAR installation directory 88.130.97.252 13:48, 30 June 2015 (UTC)

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.174 03:39, 30 June 2015 (UTC)

What magic word are you using and why? Ciencia Al Poder (talk) 15:55, 30 June 2015 (UTC)
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.2 13:50, 1 July 2015 (UTC)
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. Ciencia Al Poder (talk) 14:54, 1 July 2015 (UTC)
Thank you for your comment Ciencia.
Unfortunately, a lot of our folders has spaces and i cant change all the folders naming convention because other people has links to them as well, and i know if we work on website design, we utilize <a href>, it works on web browsers.
Just wondering if i have to insert %20 myself or maybe there is some extension that covers something like this.
Thanks AmazingTrans (talk) 16:04, 7 July 2015 (UTC)
wiki syntax break external links on spaces, so you must encode them with %20.
What I mean about URLENCODE::
file://///network/{{urlencode:shared folder|PATH}}/{{urlencode:application file|PATH}}
produces:
file://///network/shared%20folder/application%20file
That's tedious, yes. Maybe you can simply enable Extension:StringFunctions (which is integrated in Extension:ParserFunctions but a flag needs to be set) and do a replace of spaces -> %20, and make a template with it to use for your links. Ciencia Al Poder (talk) 18:34, 8 July 2015 (UTC)

mediawiki最新版1.24.2在windows下无法上传带有中文的目录文件名

mediawiki最新版1.24.2在windows下无法上传带有中文的目录文件名 ITliuhuan (talk) 08:21, 30 June 2015 (UTC)

mediawiki最新版1.24.2在windows下无法上传带有中文的目录文件名
谢谢大家能够帮忙告诉一下怎样更改,环境windows 2008 wamp+mediawiki 无法上传中文名附件 ITliuhuan (talk) 08:21, 30 June 2015 (UTC)
You are using MediaWiki 1.24.2 on a Windows 2008 server. According to Google Translate you are unable to upload catalog file name with Chinese.
I understand you want to upload a file. This file has Chinese characters in its filename. Uploading this file does not work.
---
It's a consequence of T3780. A current limitation of PHP and the handling of character sets of NTFS filesystems. There's a patch set, but it is not yet implemented in MediaWiki. 88.130.97.252 15:54, 30 June 2015 (UTC)
有补丁?叫什么名字 task t3780? ITliuhuan (talk) 08:29, 1 July 2015 (UTC)
If you are unable to upload, could you please describe steps and what exactly happens when? AKlapper (WMF) (talk) 15:54, 30 June 2015 (UTC)
上传文件时,目录文件名 这边写入中文之后,提示:本wiki不支持在文件名中使用特殊字符 其实我只是使用了中文文件名 thank you. ITliuhuan (talk) 08:40, 1 July 2015 (UTC)
There's a limitation in PHP regarding filenames on windows. See T3780 Ciencia Al Poder (talk) 16:05, 30 June 2015 (UTC)

Getting the URL of a page section

Is there a quick way to get the URL of a page section (H2, H3 etc headers within a page)? When the page has a table of contents I can just right click and copy the URL to that section, but what about when there is no table of contents?

Thanks 2.34.114.231 10:40, 30 June 2015 (UTC)

This should be fixed when someone solves T18691. In the meantime, there's no simple way of getting them without a table of contents :( Ciencia Al Poder (talk) 15:57, 30 June 2015 (UTC)
Ok I found a sort of shortcut, I just right click the title to edit and then save it again, and this gives me the URL of the section in the browser address bar 2.34.114.231 20:48, 30 June 2015 (UTC)

Make FlaggedRevs Groups visible to users

Hello, we have the following MediaWiki:

MediaWiki 1.24.1 PHP 5.6.9-0+deb8u1 (apache2handler) MySQL 5.5.43-0+deb8u1 Lua 5.1.5


______

I have FlaggedRevs installed and I have two Tags with 3 Groups. I want that each group is visible to the user.

Example:

I am a User and I edit/post an article, it has group 1. Then a reviewer comes and marks it as proofread and sets the group to 2, then finally an Chief-Reviewer sets the group to 3.

I want each group to be visible on the edge of the Site, is this possible? And when, how?

Regards 95.90.54.1 11:35, 30 June 2015 (UTC)

How to redirect user to Main Page instead of verification succeeded page after successful verification

Hello there , I want to redirect user to Main page instead of Verification succeeded page. How can I do that?

Media Wiki Version : 1.23.0 PHP : 5.5.9-1ubuntu4 (apache2handler) MariaDB: 5.5.5-10.0.14-Mariadb-1-trusty-log

Regards, Pooja Goel Email : pooja.goel@oacplc.com 122.166.220.179 13:41, 30 June 2015 (UTC)

Hello, I updated my Mediawiki to the newest Version to get the Topicon Function. Now I want to know how to get a Featured Article Function like on Wikipedia.

I did one Topicon as Template but that can be set by anyone I want this Template to be only usable by SysOPs. How to do this?

I am from germany and do not know english very good and also I am very new to mediawiki.

Regards 95.90.54.1 18:00, 30 June 2015 (UTC)

The english Wikipedia topicons can also set by anyone. —TheDJ (Not WMF) (talkcontribs) 18:07, 5 July 2015 (UTC)
Category:Support desk archives Category:Support desk archives with syntax highlighting errors