Jump to content

Project:Support desk/Flow/2015/08

Add topic
From mediawiki.org
This page is an archive.
Please ask questions on the current support desk.


Can we delete the talk namespace?

Can we delete the talk namespace even the talk tab? Someone wants to replace it with a BBS. AngeCI (talk) 14:21, 1 August 2015 (UTC)

If we can't delete the talk tab, can we delete the talk namespaces and redirect it to an BBS site? AngeCI (talk) 16:26, 2 August 2015 (UTC)
Pushing. AngeCI (talk) 14:49, 4 August 2015 (UTC)
Pushing. AngeCI (talk) 05:26, 6 August 2015 (UTC)
Manual:FAQ#How_do_I_add.2Fremove_tabs_throughout_my_wiki.3F Malyacko (talk) 08:40, 6 August 2015 (UTC)

Anlegen bestimmter Seitennamen verhindern (Disallow the creation of specific page titles)

Guten Tag,

ich möchte verhindern das Benutzer bestimmte Seiten anlegen. Z.B. "Mauskatze". Ich habe lange gesucht aber nicht gefunden wie das funktioniert. Ich finde immer nur Hinweise zu gesperrten Seiten. Ich möchte aber schon das anlegen verhindern. Unter Spezial:Gesperrte_Titel soll eine Liste existieren. Bei mir wird diese Spezialseite aber nicht gefunden. Kann mir jemand helfen? 212.185.232.52 (talk) 22:10, 1 August 2015 (UTC)

Exakt, das sollte durch die Erweiterung TitleBlacklist möglich sein :) Florianschmidtwelzow (talk) 01:16, 2 August 2015 (UTC)

MWException from line 886 of /var/www/html/w/includes/db/Database.php: DatabaseBase::factory no viable database extension found for type 'mysql'

Hi,

I just installed MW 1.25 up from 1.22.x. I running across a fatal exception while simply trying to load the main page, as follows:

[9d70b055] / MWException from line 886 of /var/www/html/w/includes/db/Database.php: DatabaseBase::factory no viable database extension found for type 'mysql'

Backtrace:

#0 /var/www/html/w/includes/db/LoadBalancer.php(763): DatabaseBase::factory(string, array) #1 /var/www/html/w/includes/db/LoadBalancer.php(629): LoadBalancer->reallyOpenConnection(array, boolean) #2 /var/www/html/w/includes/db/LoadBalancer.php(506): LoadBalancer->openConnection(integer, boolean) #3 /var/www/html/w/includes/GlobalFunctions.php(3594): LoadBalancer->getConnection(integer, array, boolean) #4 /var/www/html/w/includes/objectcache/SqlBagOStuff.php(158): wfGetDB(integer) #5 /var/www/html/w/includes/objectcache/SqlBagOStuff.php(245): SqlBagOStuff->getDB(integer) #6 /var/www/html/w/includes/objectcache/SqlBagOStuff.php(219): SqlBagOStuff->getMulti(array) #7 /var/www/html/w/includes/cache/MessageCache.php(300): SqlBagOStuff->get(string) #8 /var/www/html/w/includes/cache/MessageCache.php(881): MessageCache->load(string) #9 /var/www/html/w/includes/cache/MessageCache.php(800): MessageCache->getMsgFromNamespace(string, string) #10 /var/www/html/w/includes/cache/MessageCache.php(738): MessageCache->getMessageFromFallbackChain(Language, string, string, boolean) #11 /var/www/html/w/includes/Message.php(1075): MessageCache->get(string, boolean, Language) #12 /var/www/html/w/includes/Message.php(698): Message->fetchMessage() #13 /var/www/html/w/includes/Message.php(789): Message->toString() #14 /var/www/html/w/includes/Title.php(520): Message->text() #15 /var/www/html/w/includes/MediaWiki.php(109): Title::newMainPage() #16 /var/www/html/w/includes/MediaWiki.php(125): MediaWiki->parseTitle() #17 /var/www/html/w/includes/MediaWiki.php(480): MediaWiki->getTitle() #18 /var/www/html/w/includes/MediaWiki.php(414): MediaWiki->main() #19 /var/www/html/w/index.php(45): MediaWiki->run() #20 {main}

System Info:

CentOS 6.6

MW 1.25

MySQL 5.1.73

PHP 5.6

Any guidance would be appreciated. Thank you! Eze123p (talk) 02:42, 2 August 2015 (UTC)

Have you already tried what's covered in https://www.mediawiki.org/wiki/Project%3ASupport%20desk/Flow/2013/11#h-%5BRESOLVED%5D_Fatal_exception_of_type_MWException_after_upgrading_php_and_apache-2013-11-07T09%3A22%3A00.000Z and https://www.mediawiki.org/wiki/Project%3ASupport%20desk/Flow/2014/07#h-%5BRESOLVED%5D_Fatal_error_update_to_Mediawiki_1.23%3A_DatabaseBase%3A_factory_no_viable-2014-07-03T20%3A14%3A00.000Z AKlapper (WMF) (talk) 11:27, 2 August 2015 (UTC)

Unable to render some pngs in 1.25.1

Hello. I made a png file from Powerpoint 2013, then uploaded into my wiki for use of my article, but it does not works for make small thumbs. I tried another my wiki and the same happened [1] : So if you think this is problem of software, please make fablicator issue, or show me the way for solve it. thanks. - Ellif (talk) 08:39, 2 August 2015 (UTC)

Have you checked https://www.mediawiki.org/wiki/Manual:Errors_and_symptoms#Image_Thumbnails_not_working_and.2For_appearing ? AKlapper (WMF) (talk) 11:25, 2 August 2015 (UTC)
This seems not about these problems: Because I'm the server which another people have su, I could not make install imagemagick. And In the first wiki, which installed mw 1.25.1, in the /image, /thumb itself not made. I'll make task on mw phabricator. Ellif (talk) 11:11, 26 August 2015 (UTC)
Now please see https://phabricator.wikimedia.org/T110320 . Ellif (talk) 11:39, 26 August 2015 (UTC)
I've closed the Phabricator task as I see no bug in MediaWiki here but a support request how to configure correctly. As you wrote "I could not make install imagemagick" please elaborate which exact steps you followed, where they are listed, and what "could not make install" means (steps and error messages). AKlapper (WMF) (talk) 12:07, 26 August 2015 (UTC)
The problem is your URL scheme and your rewrite rules
The thumb URL looks like this: http://wiki.ellif.10g.kr/images/thumb/1/18/Img_xl.jpg/599px-Img_xl.jpg but it's being interpreted as a page by MediaWiki, because normal pages start from the document root (/) instead of from a defined path (/wiki/ or similar)
Did you read the warnings in Manual:Short URL#URL_like_-_example.com.2FPage_title? Ciencia Al Poder (talk) 12:36, 26 August 2015 (UTC)

VisualEditor

Hello.

I install and enabled VisualEditor on my page wiki.westeros.pl

But it doesn't work TraaBBIT (talk) 16:54, 2 August 2015 (UTC)

"Doesn't work isn't a very good error description" :) What happens, if you click Edit? Does VE load? If I look at the output of the visualeditor api module I would suspect, that you haven't installed Parsoid or haven't configured it (correctly). Did you followed the HowTo to install Parsoid? Florianschmidtwelzow (talk) 21:23, 2 August 2015 (UTC)
Hello.
I didn't install Parsoid.
How can I do that? TraaBBIT (talk) 10:16, 3 August 2015 (UTC)
Read the tutorial i linked you :)
-> Parsoid/Setup Florianschmidtwelzow (talk) 10:54, 3 August 2015 (UTC)
So I have to install Parsoid on server where I have my Wiki? TraaBBIT (talk) 17:00, 3 August 2015 (UTC)
If you want to have VisualEditor, yes. But it hasn't has to be installed on the same server as your wiki, the service must be reachable by the server where your wiki is hosted on. Florianschmidtwelzow (talk) 06:02, 4 August 2015 (UTC)
nd how to get that toolbar:
http://pl.tinypic.com/r/o8t535/8 TraaBBIT (talk) 17:08, 3 August 2015 (UTC)
That's not VisualEditor, that's Extension:WikiEditor. Florianschmidtwelzow (talk) 06:02, 4 August 2015 (UTC)
OK.
So I installed WikiEditor and nothing happened TraaBBIT (talk) 17:41, 4 August 2015 (UTC)
Have you activated it? (Read the extension page to know how to do that). Florianschmidtwelzow (talk) 21:12, 4 August 2015 (UTC)
What do You mean?
I put in LocalSettings.php this code:
require_once "$IP/extensions/WikiEditor/WikiEditor.php";
# Enables use of WikiEditor by default but still allows users to disable it in preferences
$wgDefaultUserOptions['usebetatoolbar'] = 1;
# Enables link and table wizards by default but still allows users to disable them in preferences
$wgDefaultUserOptions['usebetatoolbar-cgd'] = 1;
# Displays the Preview and Changes tabs
$wgDefaultUserOptions['wikieditor-preview'] = 1;
# Displays the Publish and Cancel buttons on the top right side
$wgDefaultUserOptions['wikieditor-publish'] = 1;
Do I need anything else? TraaBBIT (talk) 18:13, 10 August 2015 (UTC)

User is anonymous after login

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,

I have a problem with my MediaWiki 1.23 installation. Under certain circumstances (which - unfortunately - are unkown) it happens, that a user is anonymous after login, meaning that his IP instead of his username will be displayed. I traced it back to the getName() function in User.php which checks if the item name is loaded (with the help of the isItemLoaded function). If that's not the case it returns the IP. However I am not that familiar with the MediaWiki code and am not sure under which circumstances that might be the case. Any pointers in the right direction here are appreciated.

Thanks ahead,

blckDTshadow BlckDTshadow (talk) 07:55, 3 August 2015 (UTC)

The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Migrate server, database and media wiki version the same time

Hello everybody and thanks for reading this ...

I have to migrate a mediawiki version 1.12.0, with mysql 5.0.26 from server A to server B with postgres 9.4 and the current media wiki version.

I found a lot on upgrading among different wiki versions, however, nothing on how to migrate from mysql to postgres and updating the wiki version the same time.

Basically, I plan to dump the mysql db with mysqldump and feed it into the new postgres DB for the new wiki - both already setup.

Since I'm not sure, wheather there a some gaps I might be falling into doing the migration this way, I'd appreciate comments and suggestions on this enterprise.

Maybe there's someone out there with some experience who might say 'are you nuts? Better do so ...'.

Anyway, I thank you for any comment, wheather solving my concerns or not .. maybe it'll bring me forward.

Thanks,

Sebastian Aspiaspi (talk) 12:51, 3 August 2015 (UTC)

Well, changing database engine is not a good idea and it's probably not supported.
Migrating MediaWiki from one server to another and also upgrade is easy, and it's like a normal upgrade, but just backing up database and images in old server and restoring on the new one.
I'd suggest doing the migration first, and if everything is successful, then try changing database engine. Ciencia Al Poder (talk) 18:51, 5 August 2015 (UTC)
Hey 'Cienca Al Poder',
thanks for your comment. I do agree with your suggestion doing the migration first. If I've performed the db engine change also, I'll post my experience on this task. Maybe someone's out there googling for the same questions ;) Aspiaspi (talk) 07:06, 7 August 2015 (UTC)

Math extension not showing symbol

Hi, I have extracted the Math extension, and also extracted a texvc binary into the extensions/Math/math directory.

I tried the following: <math>pi=frac{3}{4} sqrt{3}+24 int_0^{1/4}{sqrt{x-x^2}dx}</math>

but i got the following pi=frac34sqrt3+24int1/40sqrtx−x2dx [2]

the frac, sqrt, int, does not seems to work. But the superscript & subscript works though. AmazingTrans (talk) 13:41, 3 August 2015 (UTC)

Issue with MediaWiki up-gradation from 1.12 to 1.25 on RedHat 5 Linux

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.


Hello All,

We just mirrored our Prod environment (XAMPP based) and set up a new Test server for MediaWiki up-gradation.

Then we upgraded the PHP from 5.1.6 to 5.3.3 on test server, MySQL version is still 5.0.77 (did not upgrade), postNuke still works but MediaWiki 1.12 stopped working.

Now I renamed the existing wiki to Wiki_Old and, then copied the MediaWiki 1.25, unzipped it placed unzipped version under /var/www/htdocs/postNuke/wiki

Now when I try to configure the MediaWiki from browser (http://MyServer/wiki/index.php) it gives error message "The webpage cannot be found"

Note: - My PostNuke works perfectly at http://MyServer/ . I have successfully upgraded the MediaWiki on Windows (without postnuke on fresh installation of XAMPP and MediaWiki)

Is there any thing which I missed? Naimish88 (talk) 13:42, 3 August 2015 (UTC)

Getting below exception:
Strict Standards: Declaration of LdapAuthenticationPlugin::setPassword() should be compatible with that of AuthPlugin::setPassword() in /var/www/htdocs/Power/wiki/includes/LdapAuthentication.php on line 46 Strict Standards: Declaration of LdapAuthenticationPlugin::addUser() should be compatible with that of AuthPlugin::addUser() in /var/www/htdocs/Power/wiki/includes/LdapAuthentication.php on line 46 Strict Standards: Declaration of LdapAuthenticationPlugin::initUser() should be compatible with that of AuthPlugin::initUser() in /var/www/htdocs/Power/wiki/includes/LdapAuthentication.php on line 46 $wgShowSQLErrors = true; $wgDebugDumpSql  = true; error_reporting( -1 ); ini_set( 'display_errors', 1 ); Parse error: syntax error, unexpected T_NAMESPACE, expecting T_STRING in /var/www/htdocs/Power/wiki/includes/Namespace.php on line 49 Naimish88 (talk) 17:49, 3 August 2015 (UTC)
The issue was with mess with files between new and old, removing all files and downloading fresh MediaWiki solve this issue. Naimish88 (talk) 18:55, 3 August 2015 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Are there image thumb expirate deletion setting?

For example I want to delete any thumb not been used for more than 356 days, or any thumb img generated a year ago.

Are there expiration setting or auto deletion setting available? Deletedaccount4567435 (talk) 02:51, 4 August 2015 (UTC)

No, but you can create a shell script to delete files modified before a certain date, or accessed before certain date (if the filesystem supports this feature). On linux the "find" command can be used for that. Ciencia Al Poder (talk) 18:47, 5 August 2015 (UTC)

Is it possible to auto-block on registeration?

Hello.

Is there a way I could make it so if someone registers on my wiki, they get auto-blocked with a message? 72.219.238.198 (talk) 05:28, 4 August 2015 (UTC)

What would be the reason to do that? Why not disable user account registration? Florianschmidtwelzow (talk) 06:04, 4 August 2015 (UTC)
atm my wiki is getting invaded by spambots
also, the reason i would do that is because the wiki is exclusive for a certain site, i don't want strangers to join it. 72.219.238.198 (talk) 06:10, 4 August 2015 (UTC)
I think the better idea would be to disable user account registration by setting this in your LocalSettings.php:
$wgGroupPermissions['*']['createaccount'] = false;
Florianschmidtwelzow (talk) 06:25, 4 August 2015 (UTC)
but I still want other people (from the exclusive site) to join it though. 72.219.238.198 (talk) 06:27, 4 August 2015 (UTC)
Doesn't fit Extension:ConfirmAccount your needs a bit more? Florianschmidtwelzow (talk) 08:48, 4 August 2015 (UTC)

Deletion of a page

I suppose we can't create self-advertising article over here, just like how we can't on other Wikis like Wikipedia or Commons, etc. Please get the page Naresh Kumar Dhewa deleted. I couldn't find any other venue to request this deletion. Dharmadhyaksha (talk) 07:05, 4 August 2015 (UTC)

Next time please make your request at Project:Requests. Regards. Syum90 (talk) 07:51, 4 August 2015 (UTC)

Википедия потеряла свой авторитет

Вы что, вообще больные??? что это такое???? с головой вообще не дружите????https://ru.wikipedia.org/wiki/%D0%94%D1%80%D0%B5%D0%B2%D0%BD%D0%B5%D1%80%D1%83%D1%81%D1%81%D0%BA%D0%BE%D0%B5_%D0%B3%D0%BE%D1%81%D1%83%D0%B4%D0%B0%D1%80%D1%81%D1%82%D0%B2%D0%BE 93.74.46.124 (talk) 09:28, 4 August 2015 (UTC)

Email notification on page change not working.

I am trying to configure email notification on a page change to work (v1.16 and 1.25)

The steps I have done.

Tested postfix / sendmail

Installed/tested php-pear mail

Configured in Localsettings the following (I believe some are unnecessary)

$wgEnableEmail      = true; $wgEnableUserEmail  = true; $wgEmergencyContact = "admin@example.com"; $wgPasswordSender = "admin@example.com"; $wgUseEnotif = true; $wgEnotifUserTalk = false; $wgEnotifWatchlist = true; $wgEmailAuthentication = true; $wgSMTP = array(  'host'     => "mailserver@example.com",  'IDHost'   => "wiki@example.com",  'port'     => 25,  'auth'     => false, );

Confirmed user email (worked)

Checked box to email watched page changes

Watched pages

Changed pages

Received no emails.

Is there anything I am missing? 66.112.152.41 (talk) 19:09, 4 August 2015 (UTC)

If you got the confirmation email, you should get the notification email too. Be sure the change is made by another user.
You can also set up a debug log and then edit that page as anon / other user and see if something fails when sending the email. Ciencia Al Poder (talk) 18:43, 5 August 2015 (UTC)

Issues enabling the API for CORS

Think I am missing something fundamental here. So want another webpage to be able to extract information from our MediaWiki implementation, more specifically calling api.php to do queries and read the resulting json.

I think these are the changes I need

$wgEnableAPI = true;

$wgCrossSiteAJAXdomains = array( 'http://127.0.0.1:30004' );

$wgAPIRequestLog = "/tmp/wgAPIRequestLog.log";

So set them in LocalSettings.php (could not find any documentation saying that they should be anywhere else). I even restarted apache just in case. But the webapp I am writing is still reporting:

XMLHttpRequest cannot load http://v-ghost.port0.org:8081/dbfswiki/api.php. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://127.0.0.1:30004' is therefore not allowed access.

I don't know if this is because I am setting the things in the wrong place or if I am missing to restart something. As the log is empty (well, don't even exist yet) I can't tell if its even trying :) 86.173.154.75 (talk) 09:26, 5 August 2015 (UTC)

Note that $wgCrossSiteAJAXdomains doesn't have protocol nor port.
Try $wgCrossSiteAJAXdomains = array( '127.0.0.1' ); Ciencia Al Poder (talk) 18:39, 5 August 2015 (UTC)
Tried that, no luck, it is almost like MediaWiki isn't picking up the changes at all. Or as if it isn't wiki that stops the request.
So set the wgEnableAPI = false; That definitely works, API calls stopped all over the place.
Set the log and tried to make internal calls, and that works
But whatever I have in the $wgCrossSiteAJAXdomains, I still get a No 'Access-Control-Allow-Origin' header is present on the requested resource. And looking at the debug log, there is no mentioning of an issue.
Eventually found what the issue was, and it was rather ridiculous. Turns out that CORS also have safety setting in the browser, which ALSO blocks it. So to get around the issue, you need to install a tool which basically turns of that functionality. 86.173.154.201 (talk) 10:09, 6 August 2015 (UTC)
Were you actually requesting cors in the browser? It isn't the default. 137.147.26.246 (talk) 07:34, 7 August 2015 (UTC)

Log In

I have tried to activate my Media Monkey Gold Key it says invalid key.

I have tried the help section all I got was a automated response saying to enter it right.

So Who do I contact. without having to log into their website which does not let me log in neither, 63.153.168.114 (talk) 13:00, 5 August 2015 (UTC)

This is the MediaWiki support channel. We don't know anything about Media Monkey Gold Key Ciencia Al Poder (talk) 18:36, 5 August 2015 (UTC)

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.


First link SLI not working, why?

https://en.wikipedia.org/wiki/Scalable_Link_Interface#Caveats Schalice (talk) 19:15, 5 August 2015 (UTC)

Which "first link SLI" do you refer to exactly? AKlapper (WMF) (talk) 08:42, 6 August 2015 (UTC)
Works now. Not sure what the problem was. Schalice (talk) 05:47, 23 September 2015 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

InMoov Robot

Could I run Leaf if I use Raspberry Pi Quad core with 32 GB micro SD card.

Randall Shipp brotherreapergrymm@yahoo.com 172.242.56.135 (talk) 03:11, 6 August 2015 (UTC)

Method to delete all orphaned pages?

I have a mediawiki installation that spammers were able to get into and there are currently 102k orphaned spam pages. I'd like to just delete all of these at once. Is there a way to do that? 98.245.163.76 (talk) 04:41, 6 August 2015 (UTC)

My apologies, I forgot some of the basic information.
Version - 1.24.2
PHP - 5.3
MySQL - 5.1.56 98.245.163.76 (talk) 04:58, 6 August 2015 (UTC)

Invalid/expired email confirmation token.

Hi, I'm setting up a new free wiki and I have a little issue with the confirmation token.

Whenever a new user registers the confirmation email sent to him, but the page always results in:

'Invalid confirmation code. The code may have expired.'

What configurations? modules should I change look into to solve this?

thanks in advance.! 84.95.209.72 (talk) 07:18, 6 August 2015 (UTC)

See phab:T105896. AKlapper (WMF) (talk) 08:36, 6 August 2015 (UTC)

Magic word error

please help me with this error, how to resolve it "" is not a valid magic word "star" Fcfcfrc (talk) 07:32, 6 August 2015 (UTC)

Please provide steps to reproduce the problem (did you upgrade? when and why did the problem start?) and see Manual:How to debug. Whichever extension provided that word in the past on your installation you probably need to find. Malyacko (talk) 08:38, 6 August 2015 (UTC)

Registration does not save email token

Hi, I'm having issues with user registration, the email confirmation code is always invalid, I was able to get to the bottom of it I guess.

in User.php saveSettings function when it updates the user's settings email confirmation never gets saved, because of this I always get the error

"Invalid confirmation code. The code may have expired. ".

after some testing turns out it fails to compare the `user_touched` value, always thinking that user has changed, when I check with the db it is always off by one.

any suggestions? thanks in advance.! Dimainitech (talk) 08:37, 6 August 2015 (UTC)

installing SyntaxHighlight_GeSHi

Hi how do I install SyntaxHighlight_GeSHi since it is now python based. Since swiching from geshi to another highlighter. Because on my wiki it has gone black please see http://en.random-wikisaur.tk/wiki/MediaWiki:Common.css it should be colourful but it is not. Do we have to run composer or not. I carnt run composer since I doint have root access. Paladox (talk) 09:51, 6 August 2015 (UTC)

The extension isent highlighting anything for me since switching to python based highlighter. Paladox (talk) 11:51, 6 August 2015 (UTC)
Bump. Paladox (talk) 18:20, 8 August 2015 (UTC)

Cannot edit Main Page

Hoping that someone can help.

I have recently restored two wikis from a backup after a harddisk failure. The wikis make use of a single MySQL database, each of them using prefixed tables. One of the wikis is running just fine after the restore; the other one is not.

The issue is that all of the content on the malfunctioning wiki's main page is gone; the page just displays the sample text "There is currently no text in this page. You can search ..." Even worse, I cannot edit the wiki's main page: clicking the edit button when registered brings up the message "No such section --- You tried to edit a section that does not exist. Since there is no section , there is no place to save your edit."

What's also confusing is that all of the other pages seem to be fine; I can search for pages, and clicking on "Random page" does what it's supposed to do. I can also edit all other pages except for the main page.

Has anyone come across anything remotely similar?

Version information:

MediaWiki: 1.14.0

PHP: 5.2.11

MySQL: 5.1.37 134.34.80.150 (talk) 13:20, 6 August 2015 (UTC)

Bumping this. I am pretty sure it has to be an error within the database. If I export an XML dump of all the pages, the main page is not among the pages in the XML. However, the page table contains an entry for the main page. How can I test the validity of that entry? 134.34.80.80 (talk) 12:34, 7 August 2015 (UTC)

Main Page title is incorrect

I have run into an odd problem on mediawiki 1.25 (recently upgraded from 1.19). The title of my Main Page is set to "Main Page" according to Page Information but the browser title is displayed as "TESTING1 12 2 23". I did a dump of my database and I found that in the "text" table:

(root@db.cape) [wiki_itwiki]> select * from text where old_id = 6775;

+--------+----------+-----------+

| old_id | old_text | old_flags |

+--------+----------+-----------+

|   6775 | TESTING1 12 2 23   | utf-8     |

+--------+----------+-----------+

1 row in set (0.00 sec)

Changing the entry to something else had no effect on the page title.

Anyone else seen this? Can anyone suggest where this title might be hiding? It appears nowhere else on the database and if I do a recursive egrep through my mediawiki folder for "TESTING" I only find one entry and it is not this one.

This wiki is internal to our site so I cannot share the URL.

Thanks

Simon Simonfishley (talk) 14:52, 6 August 2015 (UTC)

Why CSS can't be load properly by the skin?

I wrote a skin and it only load the HTML properly, but all the CSS is lost. I'm sure that the CSS file can be runned properly. AngeCI (talk) 15:21, 6 August 2015 (UTC)

This is urgent. I must solve it within a week. AngeCI (talk) 04:01, 7 August 2015 (UTC)
Pushing. AngeCI (talk) 16:33, 7 August 2015 (UTC)
Pushing. AngeCI (talk) 11:25, 8 August 2015 (UTC)
What is link to code. Paladox (talk) 18:19, 8 August 2015 (UTC)
I referenced Manual:Skinning and the Vector skin and write the following code:
<?php
/**
 * Metro Skin
 *
 * @todo document
 * @file
 * @ingroup Skins
 */
if( !defined( 'MEDIAWIKI' ) ) {
	die( -1 );
}
$wgExtensionCredits['skin'][] = array(
	'path' => __FILE__,
	'name' => 'Metro',
	'version' => '0.0.1 alpha',
	'url' => 'http://cnspedia.ml/',
	'author' => 'Abcabc2',
	
);
$wgValidSkinNames['metro'] = 'Metro';
$wgResourceModules['skins.metro'] = array(
	'styles' => array(
		'metro/main.css' => array( 'media' => 'screen' )
	),
	'remoteBasePath' => &$GLOBALS['wgStylePath'],
	'localBasePath' => &$GLOBALS['wgStyleDirectory'],
);
/**
 * SkinTemplate class for Metro skin
 * @ingroup Skins
 */
class SkinMetro extends SkinTemplate {
	var $skinname = 'metro', $stylename = 'metro',
		$template = 'MetroTemplate', $useHeadElement = true;
	protected static $bodyClasses = array( 'metro-animateLayout' );
	/**
	 * Initializes output page and sets up skin-specific parameters
	 * @param $out OutputPage object to initialize
	 */
	public function initPage( OutputPage $out ) {
		global $wgLocalStylePath;
		parent::initPage( $out );
		/*
		// Append CSS which includes IE only behavior fixes for hover support -
		// this is better than including this in a CSS fille since it doesn't
		// wait for the CSS file to load before fetching the HTC file.
		$min = $this->getRequest()->getFuzzyBool( 'debug' ) ? '' : '.min';
		$out->addHeadItem( 'csshover',
			'<!--[if lt IE 7]><style type="text/css">body{behavior:url("' .
				htmlspecialchars( $wgLocalStylePath ) .
				"/{$this->stylename}/csshover{$min}.htc\")}</style><![endif]-->"
		);
		$out->addModules('skins.metro.js'); */
	}
	/**
	 * Load skin and user CSS files in the correct order
	 * fixes bug 22916
	 * @param $out OutputPage object
	 */
	function setupSkinUserCss( OutputPage $out ){
		parent::setupSkinUserCss( $out );
		$out->addModuleStyles( array(
			'mediawiki.skinning.interface', 'skins.metro'
		) );
	}
	/**
	 * Adds classes to the body element.
	 *
	 * @param $out OutputPage object
	 * @param &$bodyAttrs Array of attributes that will be set on the body element
	 */
	function addToBodyAttributes( $out, &$bodyAttrs ) {
		if ( isset( $bodyAttrs['class'] ) && strlen( $bodyAttrs['class'] ) > 0 ) {
			$bodyAttrs['class'] .= ' ' . implode( ' ', static::$bodyClasses );
		} else {
			$bodyAttrs['class'] = implode( ' ', static::$bodyClasses );
		}
	}
}
AngeCI (talk) 05:00, 9 August 2015 (UTC)
You didn't autoload the code.
It would be better to have SkinMetro class in a separate file to autoload please do
This is assuming you will put the class in seperate file.
$wgAutoloadClasses['SkinMetro'] = __DIR__ . '/SkinMetro.php';
Also please follow the updated mediawiki code here https://git.wikimedia.org/tree/mediawiki%2Fskins%2FVector for latest mediawiki.
It seems you have skin.metro.js but it doesent exist in your resource loader. Paladox (talk) 09:24, 9 August 2015 (UTC)

HTTP user and password parametrization

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.


Hello!

I use an internal wiki shared by a small team. When I try to confirm my e-mail address, I don't receive anything. I suspect the reason might be that we use a secure http server, and that the Http user and password must be provided when the software sends a mail.

Which parameters should be used in such a case in Mediawiki parameter files, and in which files?

Thanks Lmaltier (talk) 15:48, 6 August 2015 (UTC)

No idea? I would have expected to find this information in Manual:Configuration_settings but I can't find it. Lmaltier (talk) 08:37, 7 August 2015 (UTC)
Email auth should be provided in Manual:$wgSMTP. You can also set a debug log to see what's happening when the mail is sent. Ciencia Al Poder (talk) 09:56, 12 August 2015 (UTC)
Thanks. I should have found it... Lmaltier (talk) 14:52, 1 September 2015 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Changing my username (or the case of my username)

My username is Lucasgelfond, which weirdly bothers me because I wanted it to be lucasgelfond (no caps) or LucasGelfond and didn't know about the always-uppercase first letter. Its oddly and annoyingly asymmetrical. Is there anyway for me to change my username to either LucasGelfond or lucasgelfond? LucasGelfond (talk) 18:28, 6 August 2015 (UTC)

You can request a rename via the special page Special:GlobalRenameRequest. It will take some time, until your username is changed on all projects, presumed that your request will approved. See m:Global_rename_policy for more information about global renaming. Florianschmidtwelzow (talk) 05:16, 7 August 2015 (UTC)
You may append some special characters like * or ^ to your username like me. *devunt (talk) 05:27, 7 August 2015 (UTC)

RefToolbar/2.0

Hello, When trying to Edit Wikipedia: Clicking on the Cite toolbar on a Mac computer using both Firefox and Chrome -- it isn't working. I click and can see a sliver of white, but can't select anything. Thx. @BrillLyle BrillLyle (talk) 07:01, 7 August 2015 (UTC)

Issue of LDAP Authentication configuration with MediaWiki 1.25.1

Hi All,

I am facing with LDAP Authentication configuration issue with MediaWiki 1.25.1

I downloaded extension file from https://www.mediawiki.org/wiki/Special:ExtensionDistributor?extdist_name=LdapAuthentication&extdist_version=REL1_25&extdist_submit=

and kept it under the extensions directory of MediaWiki .

Now in the LocalSetting.php, at the bottom, i add below lines and restart the Apache/MySqL

require_once( "/extensions/LdapAuthentication/LdapAuthentication.php" );
require_once( "/extensions/LdapAuthentication/LdapAutoAuthentication.php" );

On browsing the page, It gives server error 500.

And when I comment those lines then again I can see the wiki pages.

I am sure somehow at runtime, the application not able to find the LdapAuthentication.php

I installed MediaWiki on RedHat Linux Naimish88 (talk) 15:15, 7 August 2015 (UTC)

Customize Special:UserLogin

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'd like to add something things to the login screen. Particularly a disclaimer and terms of use information (or a link to it). It looks like this used to be fairly easy by editing MediaWiki talk:Loginend. But these system messages no longer appear.

Changing MediaWiki:Userlogin-helplink2 is the closest thing I can find, but I don't know how to change it's link target. Is there some new way to achieve the old customization? Thanks! Lbillett (talk) 16:08, 7 August 2015 (UTC)

There is also Mediawiki:LoginpromptTheDJ (Not WMF) (talkcontribs) 10:53, 9 August 2015 (UTC)
Hrm. Seems the Loginprompt system message has been un-referenced by Special:UserLogin too. While I like the overall appearance of the updated login special page, I'm miffed as to how to customize instructions/content there for my users. Lbillett (talk) 12:33, 10 August 2015 (UTC)
Found a thread with some of the answer. I could modify includes/templates/Userlogin.php to fully customize the login screen. On looking there, I see the link target for userlogin-helplink2 is the MediaWiki:Helplogin-url system message.
I changed both to link to our terms and conditions of use. I suppose it kind of hijacks the intention of those messages, but it's much cleaner than me mucking about with customized templates. Lbillett (talk) 13:04, 10 August 2015 (UTC)
Ok, so getting a link wasn't enough. I had to get wikitext into the system message.
I had to hack my /templates/Userlogin.php to specify a new div and system message. I put it just before the last closing div tag.
<div id="mw-userlogin-my-custom-message" >
    <?php
    $this->msgWiki( 'mw-userlogin-my-custom-message' );
    ?>
    </div>
Means extra hassle for upgrades, but give me exactly what I needed. If anyone knows the proper way to do this, I'd be very interested. Lbillett (talk) 18:02, 10 August 2015 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

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

Hello! I have been getting this error every time we try and login to our wikipedia page. I have done the obvious and checked to make sure cookies are enabled. They are. We are using Google Chrome. I have also gone and looked at how other people have tried to solve this problem, but unfortunetly I haven't found an easy step-by-step solution. I'm not the MOST technically savvy person, but I will do anything to figure this out. Please if anyone can give me a solution that won't bring me on a crazy, wild goose chase that would be great! 108.13.230.43 (talk) 18:34, 7 August 2015 (UTC)

Check Manual:Errors_and_symptoms#Login_page_warns_about_cookies_disabled Ciencia Al Poder (talk) 09:53, 12 August 2015 (UTC)

Mediawiki Print/export functions.

What extension does mediawiki uses for creating a book, download as PDF? AmazingTrans (talk) 19:12, 7 August 2015 (UTC)

Extension:CollectionTheDJ (Not WMF) (talkcontribs) 10:50, 9 August 2015 (UTC)

Xampp authentication required?

I installed MediaWiki via Xampp on Linux. When my users access MediaWiki, they are first asked to authenticate xampp user. How do I go about disabling that authentication without making xampp unsecure. I'm already requiring my users to have a MediaWiki account. Penfold07 (talk) 20:05, 7 August 2015 (UTC)

Get image path via JavaScript

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.


How can I get the path to an image hosted in Commons via JavaScript? I want to insert images into pages from MediaWiki:Common.js. I have the names of the images, but I need the path to them in order to construct <img> tags and insert them into the page. So for example, if an image is called File:Example.jpg, I would need some way to do:

var title = new mw.title( 'Example.jpg', NS_FILE );

var path = title.getPath();

var img = $( '<img>' ).attr( 'src', path );

I've checked the JavaScript methods available, but none seems to do what I require. Will I have to do an API call, or is there a simpler way? Thanks! Sophivorus (talk) 12:48, 8 August 2015 (UTC)

As a quick hack: You can use https://commons.wikimedia.org/wiki/Special:Filepath/Example.jpg
Those URLs won't be cached, and may be slow.
Alternatively, you can construct the URLs yourself. URLs follow a pattern. For example: https://upload.wikimedia.org/wikipedia/commons/a/a9/Example.jpg
The variable part is a/a9/Example.jpg
a and a9 are the first and 2 first characters respectively of the md5 (in hexadecimal) of the filename (Example.jpg). You can compute the md5 with this script [3] that I use and it works reliably for unicode characters (call the hex_md5 function). Ciencia Al Poder (talk) 10:02, 10 August 2015 (UTC)
I found a workaround using the "filepath" magic word. It's good enough for now, but in case of need your solutions seem very promising, thanks! Sophivorus (talk) 18:47, 11 August 2015 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

MediaMonkey Gold Activation

I have looked all over for the place where I put my activation key. Can you tell exactly where?

Windows 10, Gold 4.x license 2601:205:4002:4FEE:319A:AFAC:C62A:3B9C (talk) 17:46, 8 August 2015 (UTC)

I think your in the wrong place this is for MediaWiki an open source project they doint ask anyone for money to use nor do they use activation keys. Paladox (talk) 18:18, 8 August 2015 (UTC)

Sudden blank pages

I haven't done anything with any settings since last November and my host hasn't changed anything on their end. We'll start with that.

Two days ago, my wiki went blank. The data is still there when you go to edit but it just doesn't display anymore. This particular wiki is version 1.21.2. I know there was the error with PCRE, but that's not it, at least I don't think it is. My host is currently running PHP 5.4 and PCRE 8.12.

But even if that WAS the issue, I did a brand new install in a new subdomain with 1.25.1, linked it to my existing database and still had the issue.

The errors in my log are a bunch of the same thing:

[07-Aug-2015 01:03:22 America/Denver] PHP Warning: preg_replace(): Compilation failed: group name must start with a non-digit at offset 4 in /home5/spacekad/public_html/mushwiki/includes/MagicWord.php on line 881 [07-Aug-2015 01:03:22 America/Denver] PHP Warning: preg_match_all(): Compilation failed: group name must start with a non-digit at offset 4 in /home5/spacekad/public_html/mushwiki/includes/MagicWord.php on line 876 [07-Aug-2015 01:03:22 America/Denver] PHP Warning: Invalid argument supplied for foreach() in /home5/spacekad/public_html/mushwiki/includes/MagicWord.php on line 877

There are different lines being mentioned at various times, but the overall messages are representative of the different error lines I get.

I've been tearing my hair out over this for two days now... anyone have any suggestions? Spacekadt (talk) 21:09, 8 August 2015 (UTC)

Mediawiki 1.21.2 is from september 2013. It is not compatible with PCRE 8.12 You should upgrade to at least 1.21.11 the last patched version of the 1.21 series. But the 1.21 series is unsupported, you should try to upgrade to at least the 1.23 series which is the "Long term support" version. —TheDJ (Not WMF) (talkcontribs) 10:45, 9 August 2015 (UTC)

Cannot load main page

I added code for a image map and now the main page won't load. Is there anyway to remove the code from the page? Hsedidin (talk) 22:07, 8 August 2015 (UTC)

just append "?action=edit" to the url of the page to drop directly into edit mode. —TheDJ (Not WMF) (talkcontribs) 10:37, 9 August 2015 (UTC)
Thank you Hsedidin (talk) 18:30, 9 August 2015 (UTC)
Still getting a 500 Internal server error.
http://healthcareusecases.com/index.php?title=Main_Page
I added the "?action=edit" and still have the same error.
I added the extension for an image map https://www.mediawiki.org/wiki/Extension:ImageMap and modified my LocalSettings.php as stated in th4e Installation instructions.
I added the following for the image maps All the pages exist.
<imagemap>
Image:ADT1.png
rect 516 524 607 602 [[Admit_visit_notification]]
rect 679 406 777 477 [[register_a_patient]]
rect 641 172 741 240 [[cancell_preadmit]]
rect 514 60 614 134 [[Pre_admit_a_patient]]
rect 379 170 472 237 [[Cancel_pending_admit]]
poly 515 202 563 169 607 206 561 236 514 202 514 202 [[Pre_admit]]
rect 158 8 251 78 [[Change_patient_identifer_list]]
rect 8 164 103 258 [[Change_patient_account_number]]
rect 228 298 323 369 [[Merge_Person_information]]
rect 34 405 128 476 [[Delete_Person_Information]]
rect 225 404 322 475 [[Update_patient_information]]
rect 225 571 319 642 [[add_person_information]]
poly 160 211 207 244 253 208 205 177 161 208 161 208 162 210 206 176 [[Change]]
circle 555 403 48 [[Patient]]
desc none
</imagemap>
The ADT1.png is in the Images folder. it's size is 784 x 649 Hsedidin (talk) 18:48, 9 August 2015 (UTC)
If the URL already contains a "?" character, then you should add "&action=edit" instead.
Still, I don't think that's the problem, since I've tried it on that URL and the page doesn't load, event for action=history, requesting Special:Version or even api.php
Maybe you have a syntax error in your LocalSettings.php Ciencia Al Poder (talk) 09:57, 10 August 2015 (UTC)

Main page doesn't show content

Hello. I have a mediawiki 1.25.1 installation. I have been facing this problem for the last 4 days. Every now and then my home page disappears. The layout is ok, the navigation menu on the left is ok and working, everthing looks ok except for the content of the page which is not shown. If I click on "View source" or "Edit" I can see that the content is there, it is just not shown. If I download the LocalSettings.php file via FTP and then upload it again the issue disappears, only to come back after some time, usually less then a hour, even if no one navigates to the wiki during that period. This happens only on the remote shared server I have used for more that 6 years now. The same wiki with the same database on my local server works just fine instead. Pierpaolobertalotto (talk) 06:02, 9 August 2015 (UTC)

magicword.php error

trying to figure out what's wrong with my wiki... http://www.monumentalpictures.com/wiki/ 99.180.100.138 (talk) 08:43, 9 August 2015 (UTC)

Refer to Manual:Errors_and_symptoms#All_pages_have_no_content.2C_but_when_editing_a_page_the_wiki_text_is_there Ciencia Al Poder (talk) 09:59, 10 August 2015 (UTC)
Can't upgrade without downgrading PCRE. Problem is, I'm having serious trouble downgrading PCRE. I've tried several different patches from around the web to no avail. How do you downgrade correctly I guess is my question? 99.180.100.138 (talk) 01:24, 20 August 2015 (UTC)
There's something you probably didn't understood: You need to upgrade MediaWiki to solve the issue, or downgrade PCRE if you still want to use your obsolete and insecure mediawiki installation. Ciencia Al Poder (talk) 13:48, 20 August 2015 (UTC)
No, I got that, but, as I said, I can't upgrade Mediawiki without fixing the issue! Which means I have to downgrade PCRE first before I can upgrade Mediawiki. I can't run any update scripts in the state that the wiki currently is in. So do you know how or could you point me to someone who knows how to downgrade the PCRE so I can then upgrade mediawiki? 99.180.100.138 (talk) 23:28, 20 August 2015 (UTC)
you say "I can't upgrade Mediawiki without fixing the issue", but upgrading to a supported version will fix this issue without downgrading PCRE! Ciencia Al Poder (talk) 09:15, 21 August 2015 (UTC)

MathCaptcha

Hi, I'm trying to set up math captcha with texvc, I'm not doing anything unsual, just follow the guide.

I can see the images rendered, and can open them with their url, however captcha always show "1" as the question and never display the image.

I read some of Math extension's code, and realized that this is the `return self::MW_TEXVC_SUCCESS;` in MathTexvc.php that returns the 1 or true.

why the image is not showing? is this something with the configuration or just old extension?

thanks in advance. DimaOrterr (talk) 10:16, 9 August 2015 (UTC)

Does someone here know enough about the Math extension w/ texvc? I don't want to start learning the details of this extension...
the main problem is that it returns the succes flag and not the new url of the image on the server. but where is my problem? is it configuration issue? or should I modify the Extension itself (not likely).
thanks in advance, and please help. DimaOrterr (talk) 15:15, 11 August 2015 (UTC)

Sorry! This site is experiencing technical difficulties.

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.


Sorry! This site is experiencing technical difficulties. in one particular pag Harugon1 (talk) 21:57, 9 August 2015 (UTC)

The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Outputting PDF or ODT from a web-based, private Mediawiki

I'm trying to get a PDF, or ideally ODT, output from my fairly extensive Mediawiki wiki. The wiki is hosted on a remote server, not locally, and it is not publicly accessible -- only someone with an account (i.e., me) can see it. How do I get PDF or ODT output?

Things I've already tried, and why they (seemingly) don't work:

  • mediawiki2latex seems to require public, automatic creation of an account to work. There seems to be no way to specify a particular account/password to log in to the wiki, so either I make the wiki open to spammers or I can't use that app.
  • The readme for Extension:Collectionstates

    SECURITY NOTICE: If the MediaWiki and the render server communicate over an insecure channel (for example on an unencrypted channel over the internet), please DO NOT USE THIS SETTING, as the credentials will be exposed to eavesdropping!

    So that seems to imply that I shouldn't use it to output files from my wiki to some public render server.
  • My webspace provider can't set up a render server there.
  • Setting up my own render server locally seems to still require an IP address, and apparently that can't be 127.0.0.1:

    Please note that nserve does not allow you to have your mediawiki base_url (equivalent to $wgServer in LocalSettings.php) set to localhost or an IP beginning with 127.0. or 192.168.

    Or is there some way to specify a different IP there? What would that IP address be?

I'm sure there's something I'm not understanding somewhere. It can't really be that hard to output PDF from a privacy-controlled Mediawiki wiki, can it? 71.220.10.23 (talk) 03:27, 10 August 2015 (UTC)

I myself use the Extension:Collection to have PDFs created and I think it can also provide ODT files.
With its default settings, this extension uses a render server, which is provided by some company and the extension will then send your page content there, meaning: Over the internet. If that is not what you want, in order to be able to use this extension, you would have to set up a rendering server yourself (which I have not tried, but which might not be trivial and which surely needs changes in the host server). 88.130.112.182 (talk) 11:51, 10 August 2015 (UTC)
mediawiki2latex requires to wiki to be publicly readable. But an account or possibility to create one is not needed. Still it has already been requested that mediawiki2latex should support working with accounts. I am not going to prevent that from happening, and the software is open source, so you are welcome to implement such a feature, and provide a patch. Dirk Hünniger (talk) 11:01, 24 November 2019 (UTC)

How do I make an atribute in an infobox not show up on the page?

I want to hide the attribute for coordinates. I want it to still be there, but I dont want it to show the coords. Vapblack (talk) 14:34, 10 August 2015 (UTC)

Several ideas:
First: Make sure there is some kind of CSS class around the attribute and then add a few lines of CSS code to the page MediaWiki:Common.css in your wiki to hide that class.
Second: If you are using a template, then in this template there most likely is a line, in which the coordinates are being displayed. This line can most likely be commented using <!-- and -->. Then it will still be there, but it will not be rendered. 88.130.86.151 (talk) 19:43, 10 August 2015 (UTC)
Yeah, that's pretty much how I have been doing it.
I'd like for it to be rendered correctly though.
I imported a small page about a village in NY State Below is how it looks on wiki
[4]
and below is how its rendered on my wiki
[5]
I imagine im missing some CSS somewhere or some modual. any ideas anyone? Vapblack (talk) 16:37, 13 January 2016 (UTC)

Create Account Temp Password

The temporary password created for a user on the create account page is being generated and sent in the email but not updated in the database. When I checked the database it didn't appear that any password values were set for the new user after creation. Is this a known issue for the latest release? Mattdgregg (talk) 17:49, 10 August 2015 (UTC)

It may be T102927 Ciencia Al Poder (talk) 09:57, 11 August 2015 (UTC)
The email validation works fine as long as a password is entered for the user when the account is created (which sends a validation email). My issue is with the email that is sent when an account is created for someone and an auto generated password is created and sent in the email asking the user to log in with that password and change it. It might be similar though to the linked task in that an error could be happening on account creation with setting password values in the db. I'll try to run a debug and see what I get. Mattdgregg (talk) 15:35, 11 August 2015 (UTC)

Missing Sysop, in MW 1.25.1

I looked into the DefaultSettings.php file and i saw sysop are set. But when i tried to select what group a user should go to under Special:UserRights, i only see bot, admin, bureucrats. How can i enable sysop? AmazingTrans (talk) 19:49, 10 August 2015 (UTC)

All settings from DefaultSettings.php can be changed in LocalSettings.php, e.g. groups can be removed by unsetting them from $wgGroupPermissions. Make sure this not the case! You can use the page Special:ListGroupRights in your wiki to verify that this user group itself does exist! 88.130.86.151 (talk) 20:15, 10 August 2015 (UTC)

Hosting site updated, lost my wiki

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 installed MediaWiki to my personal website as a way to store notes and ideas. It's a private wiki and was only accessible by 5 people. My hosting site is HostGator, and I used their QuickInstall function to install MediaWiki. Since it's a small wiki, I opted to use the sqlite format to store my data.

HostGator recently performed some type of updates and as a result, I received several PHP errors when trying to access my wiki. Upon further investigation, I learned that the wiki no longer existed according to the hosting site and all of the data was missing. I was able to save the entire folder (containing images and the localsettings.php file among many others) as well as the sqlite database.

I have since loaded a new wiki onto my domain, but I'm struggling to figure out how to force the wiki to point to the old database. I have ensured that it was re-installed using the sqlite format. I hoped that it would be as easy as putting the old localsettings.php file in place of the new one and making sure that it was pointing to the correct database, but this does not seem to be the case.

Is there a tutorial somewhere that I can follow to be able to re-load my wiki or even access all of my notes again so that I could re-create the wiki (even though the latter would take ages if I'm forced to re-build). I'm at my wits end... how do I get my wiki back? DSiebert13 (talk) 00:46, 11 August 2015 (UTC)

Maybe you need to specify $wgSQLiteDataDir to point it to the right location Ciencia Al Poder (talk) 09:55, 11 August 2015 (UTC)
I'm the original poster -- it's not letting me sign in right now, and I don't care enough to update or reset my credentials.
I initially installed the wiki to the default directory, so the directory at $wgSQLiteDataDir is the same with the new version as the old.
Nonetheless, I found a firefox extension that allows me to read the contents of an sqlite database, so I just went through and manually re-created all my pages. It took several hours and I lost my templates, but at least I have my data back now.
Thanks anyway. 50.24.52.237 (talk) 04:30, 12 August 2015 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Need help with correct images position

My page: http://wiki.westeros.pl/index.php?title=Tyrion_Lannister

Correct page: http://awoiaf.westeros.org/index.php/Tyrion_Lannister

Look at the images near name "Tyrion lannister". Why images on my page are displaying wrong? TraaBBIT (talk) 05:50, 11 August 2015 (UTC)

The wiki that doesn't "look good" has a sharing widget or something like that which is floating on the left, and that interferes with the way you're adding those images (which are already floating). You should probably separate your images from the sharing widget by adding
before them Ciencia Al Poder (talk) 09:53, 11 August 2015 (UTC)
I disabled that widget but images still are on the same positions TraaBBIT (talk) 12:46, 12 August 2015 (UTC)
Something in your configuration on that wiki is removing the table's caption and instead putting it outside the table as a paragraph. 121.214.165.68 (talk) 17:51, 12 August 2015 (UTC)
But what ? :) TraaBBIT (talk) 18:13, 12 August 2015 (UTC)

No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:3283' is therefore not allowed access.

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.


XMLHttpRequest cannot load https://en.wikipedia.org/w/api.php?action=query&titles=Main%20Page&prop=revisions&rvprop=content&format=json. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:3283' is therefore not allowed access. Rathoreofficialwiki (talk) 08:47, 11 August 2015 (UTC)

And that's correct
If you want to load an api URL from another domain, you should use $.getJSON and provide a callback=yourFunction (or similar) to the URL so you are in fact requesting a JSONP. Ciencia Al Poder (talk) 09:49, 11 August 2015 (UTC)
Thanks it's working. :) Rathoreofficialwiki (talk) 10:20, 11 August 2015 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Enable javascript in a page?

I am looking to include the following javascipt into a wiki page. How do i include js ?

<script> Math.random(); </script> AmazingTrans (talk) 12:50, 11 August 2015 (UTC)

Why would you want to do that? Wikitext doesn't allow HTML or JavaScript by default (for good reasons). If you really want to do that, you can achieve this with Manual:$wgRawHtml. But you should really rethink what you do and use another way to solve you rproblem :) Florianschmidtwelzow (talk) 14:26, 11 August 2015 (UTC)
I guess, wiki was best to use as knowledgebase, then somehow i want to implement html with js on some knowledgebase for example to perform some math.
I guess in order to do that, i will have to create a separate html and link wiki to that then.
Thanks! AmazingTrans (talk) 19:31, 11 August 2015 (UTC)

When I try to upload a file I get the following error message

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.


Interner Fehler

[d0a0f666] 
/index.php?title=Spezial%3AHochladen   MWException from line 487 of 
C:\inetpub\wwwroot\wiki_giga\includes\media\TransformationalImageHandler.php:
TransformationalImageHandler::escapeMagickPath: unexpected colon 
character in path name

Backtrace:

<nowiki>#</nowiki>0 
C:\inetpub\wwwroot\wiki_giga\includes\media\TransformationalImageHandler.php(454):
TransformationalImageHandler->escapeMagickPath(string, boolean)
<nowiki>#</nowiki>1 C:\inetpub\wwwroot\wiki_giga\includes\media\Bitmap.php(155): 
TransformationalImageHandler->escapeMagickInput(string, boolean)
<nowiki>#</nowiki>2 
C:\inetpub\wwwroot\wiki_giga\includes\media\TransformationalImageHandler.php(244):
BitmapHandler->transformImageMagick(UploadStashFile, array)
<nowiki>#</nowiki>3 C:\inetpub\wwwroot\wiki_giga\includes\filerepo\file\File.php(1112): 
TransformationalImageHandler->doTransform(UploadStashFile, string, 
string, array)
<nowiki>#</nowiki>4 C:\inetpub\wwwroot\wiki_giga\includes\filerepo\file\File.php(1079): File->generateAndSaveThumb(TempFSFile, array, integer)
<nowiki>#</nowiki>5 C:\inetpub\wwwroot\wiki_giga\includes\specials\SpecialUpload.php(1006): File->transform(array)
<nowiki>#</nowiki>6 C:\inetpub\wwwroot\wiki_giga\includes\specials\SpecialUpload.php(808): UploadForm->getDescriptionSection()
<nowiki>#</nowiki>7 C:\inetpub\wwwroot\wiki_giga\includes\specials\SpecialUpload.php(253): UploadForm->__construct(array, DerivativeContext)
<nowiki>#</nowiki>8 
C:\inetpub\wwwroot\wiki_giga\includes\specials\SpecialUpload.php(391): 
SpecialUpload->getUploadForm(string, string, boolean)
<nowiki>#</nowiki>9 C:\inetpub\wwwroot\wiki_giga\includes\specials\SpecialUpload.php(458): SpecialUpload->showUploadWarning(array)
<nowiki>#</nowiki>10 C:\inetpub\wwwroot\wiki_giga\includes\specials\SpecialUpload.php(195): SpecialUpload->processUpload()
<nowiki>#</nowiki>11 C:\inetpub\wwwroot\wiki_giga\includes\specialpage\SpecialPage.php(384): SpecialUpload->execute(NULL)
<nowiki>#</nowiki>12 C:\inetpub\wwwroot\wiki_giga\includes\specialpage\SpecialPageFactory.php(582): SpecialPage->run(NULL)
<nowiki>#</nowiki>13 C:\inetpub\wwwroot\wiki_giga\includes\MediaWiki.php(267): SpecialPageFactory::executePath(Title, RequestContext)
<nowiki>#</nowiki>14 C:\inetpub\wwwroot\wiki_giga\includes\MediaWiki.php(566): MediaWiki->performRequest()
<nowiki>#</nowiki>15 C:\inetpub\wwwroot\wiki_giga\includes\MediaWiki.php(414): MediaWiki->main()
<nowiki>#</nowiki>16 C:\inetpub\wwwroot\wiki_giga\index.php(41): MediaWiki->run()
<nowiki>#</nowiki>17 {main}

After this I couldn't open the list of files until I delete the temp Folder under the images folder. I will get the same error message.

I have done an update to the actual version 1.25.2 and also all extensions running in our installation.

The website is running on a windows 2008 R2 server with IIS, the database is MySQL

What can i do to solve the problem? MWFrankO (talk) 13:52, 11 August 2015 (UTC)

Maybe one of your configured folders in LocalSettings.php isn't a correct directory? It's trying to write a thumbnail to the images folder, but a check is made to assure the origin and target path starts with a valid drive letter (C:\, etcm file:///C:/ won't be allowed).
Maybe the problem is that you specified a relative path somewhere. The relevant configuration variable may be $wgUploadDirectory, $wgImageMagickTempDir, or $wgTmpDirectory Ciencia Al Poder (talk) 09:51, 12 August 2015 (UTC)
Hello Ciencia,
there isn't a path with C: in my local settings.
They are set to
$wgUploadPath       = "$wgScriptPath/images";
$wgUploadDirectory  = "$IP/images";
$wgTmpDirectory = "$IP/images/temp";
$wgScriptPath       = "";
Any other idea?
Best regards,
Frank MWFrankO (talk) 10:14, 12 August 2015 (UTC)
What i find out now:
When i upload a txt-file, a word, Excel or Pdf File it 's working fine.
When i upload a picture (jpg or png) The error comes up. Then i must delete the /images/temp folder first. 213.39.242.2 (talk) 13:27, 12 August 2015 (UTC)
Yes, because the problem is happening when calling ImageMagick, that's used to create thumbnails of images (something that won't happen on a txt file). Ciencia Al Poder (talk) 18:50, 12 August 2015 (UTC)
Hello, Ciencia,
i can fixed the problem.
There was one setting for ImageMagic in localsettings.php, that causes the error.
After remarked the setting
# $wgTmpDirectory = "$IP/images/temp";
images can be uploaded again. Thank you for your help
Best regards, Frank MWFrankO (talk) 08:19, 13 August 2015 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Scribunto - Lua error: Cannot create process: proc_open(NUL): failed to open stream: Permission denied

Hello,

First of all I want to say that I'm a noob with basic PHP knowledge and just trying to set up my first Wiki with infoboxes. I followed the guide for 'Importing Wikipedia Infoboxes' where I installed the required extensions 'ParserFunctions' and 'Scribunto'. After I imported a Wikipedia page with its infobox, there is an error showing up:

Lua error: Cannot create process: proc_open(NUL): failed to open stream.

There are no additional details available, but the PHP error log says:

PHP Warning: proc_open(NUL): failed to open stream: Permission denied in \\***\***\Websites\t\test-wiki\mediawiki\extensions\Scribunto\engines\LuaStandalone\LuaStandaloneEngine.php on line 220

I assumed to change somehow the permissions, but I don't know where to execute "chmod a+x /path/to/extensions/Scribunto/engines/LuaStandalone/binaries/yourOS/lua" on Win7. On the admin side, proc_open is not disabled at server level. Could anyone give me a hint how to proceed?

MediaWiki: 1.24.2 PHP: 5.6.3 Database: MySQL 5.6.17

Mafi9 (talk) 15:31, 11 August 2015 (UTC)

The problem is accessing NUL, which is the null device in windows, and seems to be the path to the error log.
You can try to set up an error log file and configure it at $wgScribuntoEngineConf['luastandalone']['errorFile'] Ciencia Al Poder (talk) 09:42, 12 August 2015 (UTC)
Thank you
for the reply. It's getting strange..I tried to get an output of the
error log $wgScribuntoEngineConf['luastandalone']['errorFile'] =
'/temp/lua-error.log'; but it shows the same error: Warning:
proc_open(/temp/lua-error.log): failed to open stream: Permission denied
in
\\***\DFS\Websites\t\test-wiki\mediawiki\extensions\Scribunto\engines\LuaStandalone\LuaStandaloneEngine.php
on line 220
Could that be a path error somehow? I tried to change $wgScribuntoEngineConf['luastandalone']['luaPath'], but with no success. Mafi9 (talk) 12:26, 12 August 2015 (UTC)
Update: Now I'm getting the "Lua error: Internal error: The interpreter exited with status 1" error. Unfortunately there is no error log file in the given path. If I choose another path than "c:/windows/temp/lua-debug.log" it's giving me the old 'permission denied' error... Mafi9 (talk) 15:22, 12 August 2015 (UTC)
Well, that's a progress, since now you know the permission error was because PHP couldn't access NUL nor /temp/ (this last path doesn't make any sense on windows, btw), but it can access c:/windows/temp/. It may be an open_basedir restriction.
The exit status of Lua is the next step. setting a debug log may help in seeing more meaningful errors than the exit status ;-) Ciencia Al Poder (talk) 18:46, 12 August 2015 (UTC)
Thanks again for your reply. I found these lines in the log which might be interesting:
  • Scribunto_LuaStandaloneInterpreter::__construct: creating interpreter: ""/usr/bin/lua" "\\...\DFS\Websites\t\test-wiki\mediawiki\extensions\Scribunto\engines\LuaStandalone/mw_main.lua" "\\...\DFS\Websites\t\test-wiki\mediawiki\extensions\Scribunto" "0""
  • Scribunto_LuaStandaloneInterpreter::checkStatus: not running
After that he tries again with the same code and "1"", but the status is still not running.
The
paths look really strange to me, and there might even be a relation to a
problem I faced at the very beginning after the installation of
mediawiki. I couldn't find out why, but everytime there was "__DIR__" or
"dirname(__FILE__)" in the code of a extension it showed really strange
double paths, for example installing interwiki gave me the errors:
Warning:
require(\\...\DFS\Websites\t\test-wiki\mediawiki/\\...\DFS\Websites\t\test-wiki\mediawiki\extensions\Interwiki/Interwiki_body.php):
failed to open stream: No such file or directory in
\\...\DFS\Websites\t\test-wiki\mediawiki\includes\AutoLoader.php on lin
1282
caused by the lines:
$dir = dirname( __FILE__ ) . '/';
$wgAutoloadClasses['SpecialInterwiki'] = $dir . 'Interwiki_body.php';
I
solved it everytime by just replacing the "dir"-stuff with the actual
path. Might there be a connection to the problem above with Scribunto?
For me it looks kind of similar Mafi9 (talk) 10:25, 13 August 2015 (UTC)
That's strange, indeed. Looks like you're on a hosting service. You should ask on the support for your hosting in case there's a misconfiguration. __DIR__ and dirname( __FILE__ ) should work, unless PHP has problems, detecting the wrong path. The hosting appears to use DFS on windows, probably with replication, which may confuse PHP. Ciencia Al Poder (talk) 16:29, 13 August 2015 (UTC)
The strange thing is when I create a simple php-file in the mediawiki-folder with the following code:
<?php
echo __DIR__;
echo dirname(__FILE__);
?>
it shows the correct path "\\***\DFS\Websites\t\test-wiki\mediawiki", so not sure why it shows these strange double paths in the errors. In fact its a problem I didn't want to discuss here, unless it's really related to the Scribunto error above...what do you think? Mafi9 (talk) 09:06, 17 August 2015 (UTC)
Ok, that's fine.
One thing I noticed is that it's trying to execute /usr/bin/lua, but that's a linux path
Maybe you need to set $wgScribuntoEngineConf['luastandalone']['luaPath'] correctly? Ciencia Al Poder (talk) 09:34, 17 August 2015 (UTC)

Wiki Data disappeared

My data has disappeared, though searches can still be performed and change data is still there. Suddenly the data display to read the pages is gone. No error codes displayed. Thank you for any suggestions. http://thewinerbuds.com/wiki Actualccb (talk) 00:58, 12 August 2015 (UTC)

I am still having this problem and don't know what to do, can anyone help? Actualccb (talk) 19:14, 24 August 2015 (UTC)
Correction to address: http://thewinebuds.com/wiki Actualccb (talk) 19:14, 24 August 2015 (UTC)
If you look at the HTML source of any page, you see a lot of MediaWiki configuration variables listed inside <script> tags which should not show up there. No idea where that comes from but that's where I'd start to investigate. Malyacko (talk) 09:30, 25 August 2015 (UTC)
See Manual:Errors_and_symptoms#All_pages_have_no_content.2C_but_when_editing_a_page_the_wiki_text_is_there. Florianschmidtwelzow (talk) 10:02, 25 August 2015 (UTC)
Thank you guys, It most like is indeed my server provider updated behind me and I need to update wiki.
This is caused by a change in PCRE 8.34. You need to downgrade PCRE, or update MediaWiki to version 1.22.1 or newer (see task T60640).
I am not sure how to upgrade the wiki site but I will search on it.
I am not sure how to downgrade PCRE, but I will search on it.
Thank you.

Actualccb (talk) 20:20, 2 October 2015 (UTC)
On a shared host, you can't upgrade or downgrade PCRE. That's up to the host. To upgrade MediaWiki, see Manual:Upgrading. Alternatively, you can patch your MediaWiki installation to fix the PCRE issue as described in the task, but that's not recommended, since your MediaWiki version is obsolete and may have open vulnerabilities Ciencia Al Poder (talk) 13:59, 4 October 2015 (UTC)

Thumbnail not enlarged

Hi all,

I have mediawiki version 1.21.1

I use this code [[File: image.jpg|thumbnail|some text]] to get a thumbnail of the image. This works fine.

When I click on the thumbnail I would like to see an enlarged image of it. But clicking on a thumbnail shows a page with some informations of the image. There is also a larger version of my image. When clicking on that image I get what I want: the image on a dark background.

What is going wrong? Bs47445 (talk) 09:46, 12 August 2015 (UTC)

What you describe sounds like expected default behavior. If you would like to see an overlay of an enlarged version of the image, check out Extension:MultimediaViewer. Also note that 1.21.1 is an ancient and unsupported version full of security issues nowadays. Please run supported software. Malyacko (talk) 10:10, 12 August 2015 (UTC)
You are right. I've thought the default behavior is what I expected. Seems, everyone has MultimediViewer installed. Now I have installed it too. Bs47445 (talk) 05:26, 13 August 2015 (UTC)
I did a fresh install with mediawiki 1.25.2 and MultimediaViewer REL1_25 on linux.
In the begining it seemed to be fine but now I have found that it works "only a few times". Most of the time I see the page File:image.jpg.
There is still something wrong. Any suggestions? Bs47445 (talk) 06:42, 14 August 2015 (UTC)

two separate pages for the same article that need to be merged

I am dutch speaking and when I was looking for the german page I couldn't find it via the regular link, when I did some more searching I finally found it. I tried to connect the pages but I couldn't because they have different numbers or so, I'm no computer geek and do not understand a lot about it, but could someone merge the two, as they are about the same subject. I added the links of the two wikidata links where you can see the languages each of them have.

https://www.wikidata.org/wiki/Q20804392

https://www.wikidata.org/wiki/Q7903650

thank you 193.190.253.150 (talk) 12:21, 12 August 2015 (UTC)

It looks like this is rather a wikidata-specific problem than a problem of the mediawiki-software (and I would guess that's why nobody so far answered you). I think the community portal of wikidata would be a good place to look for help; I would recommend the Administrators' noticeboard; it looks like there are similar requests as yours. LiturgicaNotata (talk) 07:12, 17 August 2015 (UTC)

How can I automatically assign custom namespaces to new pages created on Mediawiki?

I have created two namespaces - X and Y on my wiki setup. Also 2 content pages - test1 and test2. Now what I want is that every time a user creates a new page in test1 it automatically gets mapped under namespace X and similarly for pages created under test2 to get mapped under namespace Y. Essentially I want to force pages to be assigned to namespaces of my choice. Is there an already available extension for this? Garvjain82 (talk) 19:07, 12 August 2015 (UTC)

How do I implement Role based user access on Mediawiki?

I am trying to setup a private wiki for my team. I have already achieved AD based authentication to login into the wiki using LDAPAuthentication extension. But now I want to implement some kind of role based access. To be more precise - 1. I have setup 5 different project pages 2. Now I want that only the people who are part of a particular project can access that page 3. Also any subsequent pages placed within this project page also need to follow the access restriction set for the project page by default

If any extension provides the facility out of the box, it would be good to know. Garvjain82 (talk) 19:09, 12 August 2015 (UTC)

You might peruse (if you haven't) Category:User rights extensions for what you need. In my experience, none of them will give you exactly what you want without risking trouble down the road. There is a trend of un-maintained extensions in this flavor, perhaps due to how tricky it is to accomplish in the first place.
We currently use Extension:Lockdown to protect content that is considered secret (and there's not much of it). It's based on defining namespaces and associating each with groups allowed to see them. It's not perfect, but has a history of being maintained and gets the job done. We used Extension:SimpleSecurity for a couple years, but it went unstable after some upgrades. We cut it loose when newer features of MW were too useful to resist. You should check out Extension:Access Control List (a spinoff of HaloACL from SMW+ ). If it gets/maintains a strong following I'll probably be checking it out soon. It could be the tipping point for corporate mediawiki adoption.
Further, I'd strongly recommend examining what reasons you have for limiting access to users across the same mediawiki installation. Mediawiki works because it connects a community who all have the same interest/stake in the content and are empowers them to improve it. If the users are deprived this ability, you are left with a CMS that tracks history. If you really want to reliably separate who can see what, install a wiki for each group. Lbillett (talk) 20:42, 12 August 2015 (UTC)
Lbillett - Thanks for the info. Actually i have explored some of the extensions you mentioned above. My immediate need now is How can I automatically assign custom namespaces to new pages created on Mediawiki? To elaborate on this - lets say I have created two namespaces - X and Y. Also 2 content pages - test1 and test2. I have mapped these under X and Y respectively. Now what I want is that every time a user creates a new page (on test1) it automatically gets mapped under namespace X and similarly for pages created under test2 to get mapped under namespace Y. Essentially I want to force pages to be assigned to namespaces of my choice. Is there a solution for this or an already available extension for this? Garvjain82 (talk) 06:05, 13 August 2015 (UTC)
If I understand correctly, you almost want to force users to type in the fully qualified page name with namespace prefix "X:test1" or "Y:test2" etc. every time they create a page, but without them actually having to do this?
You should check out Extension:SemanticForms. It would allow you to make custom page creation forms that would accomplish the above easily. If you combine that with some user information extensions like Extension:WikiUserInfo you can preferentially display content (not in the security sense) to users based on their group.
Otherwise, you're talking about creating some page like Main:mypage then performing a move operation to X:mypage. Lbillett (talk) 12:19, 13 August 2015 (UTC)
You can use Extension:CreateBox so people don't have to manually type the namespace, you can simply fill the prefix= parameter with the namespace and pages will be created on them.
You can then put several createbox, one for every namespace. Ciencia Al Poder (talk) 16:59, 13 August 2015 (UTC)
Ciencia - I wanted to use CreateBox but could not get the source or extension snapshot 182.71.223.2 (talk) 21:01, 13 August 2015 (UTC)
Whoops, the correct extension is Extension:InputBox, which is bundled in MediaWiki tarballs Ciencia Al Poder (talk) 09:28, 14 August 2015 (UTC)
yeah I used that. Thanks. But its all turning into a one big hack :). Looking now for something out of the box now. Exploring other wikis too. 182.71.223.2 (talk) 10:58, 14 August 2015 (UTC)

Robots created many pages. How to delete them?

Hello.

Last time some robots registered on my mediawiki and created over 3000 pages.

How can I delete them pernamently from my mediawiki (also database) TraaBBIT (talk) 19:35, 12 August 2015 (UTC)

Hi!
Ude Extension:BlockAndNuke together with Extension:UserMerge for that. 88.130.82.16 (talk) 10:58, 13 August 2015 (UTC)
To delete pages, Extension:Nuke. Note that if the spam lasted for too long (and also many pages were created) it would probably be more easy to restore from a backup.
Even deleted, those pages are still in the database and consuming storage space. You can delete them straight from the maintenance script nukePage.php (don't use Extension:Nuke before that, then) or deleteArchivedRevisions.php to permanently erase all pages and revisions that were deleted. Ciencia Al Poder (talk) 17:06, 13 August 2015 (UTC)
Ok.
I think that I should use that https://www.mediawiki.org/wiki/Manual:Reduce_size_of_the_database#Permanently_remove_the_history_of_deleted_pages TraaBBIT (talk) 17:06, 13 August 2015 (UTC)
And then that one:
https://www.mediawiki.org/wiki/Manual:PurgeOldText.php TraaBBIT (talk) 17:12, 13 August 2015 (UTC)
Also my wiki has suffered a similar attack.
  1. Now if the LocalSettings.php has $wgGroupPermissions['*']['createaccount'] = true; receives new attacks. IMPORTANT: How to preventing this attacks? ...
  2. MainPage has been suffered the main attack, is possible to clean the Revision history of this page? Jmarchn (talk) 17:36, 13 August 2015 (UTC)
Jmarchn:
  1. Manual:Combating_spam
  2. You can simply delete the page, and then restore only the non-spam revisions of the page. Ciencia Al Poder (talk) 18:41, 13 August 2015 (UTC)

Is there any way to adjust external image's alignment?

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.


To adjust size and alignment of external images, I set $wgAllowImageTag parameter to true.

It works well on size, but doesn't alignment. It ignores alignment property such as align="right", style="align:right". Dlwnsgud0819 (talk) 22:32, 12 August 2015 (UTC)

you probably need to put them inside a <div style="float:right;"></div> Ciencia Al Poder (talk) 17:07, 13 August 2015 (UTC)
Thank you. It works. Dlwnsgud0819 (talk) 07:48, 14 August 2015 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Can I move the search bar to the top of the sidebar?

Right now, I'm using a theme called Daddio. The search bar is toward the bottom of the sidebar. I'd like to move it to the top Vapblack (talk) 01:35, 13 August 2015 (UTC)

Hi!
If you have access to the actual files on the server, you can modify the template file Daddio.skin.php, whichyou find inside the folder skins/Daddio/. That way you can change the HTML structure and place the search where you want it to be.
Another option is to move it using CSS. Wiki administrators can add CSS to the wiki page MediaWiki:Daddio.css in your wiki. This CSS will then be valid for the Daddio skin. 88.130.82.16 (talk) 11:05, 13 August 2015 (UTC)
thanks. I figured as much, I'll definitely go dredging through there. problem is I don't know html or CSS well enough to confidently do something like that.. I'll probably ctrl-f for search and see if I can find a way to move it. Vapblack (talk) 03:15, 22 August 2015 (UTC)
so I found that folder, and the code is as follows. I dont see how to move it to the top of the sidebar.
<div id="mw_portlets">
    <?php
        $sidebar = $this->data['sidebar'];
        if ( !isset( $sidebar['SEARCH'] ) ) {
            $sidebar['SEARCH'] = true;
        }
        if ( !isset( $sidebar['TOOLBOX'] ) ) {
            $sidebar['TOOLBOX'] = true;
        }
        if ( !isset( $sidebar['LANGUAGES'] ) ) {
            $sidebar['LANGUAGES'] = true;
        }
        foreach ( $sidebar as $boxName => $cont ) {
            if ( $boxName == 'SEARCH' ) {
                $this->searchBox();
            } elseif ( $boxName == 'TOOLBOX' ) {
                $this->toolbox();
            } elseif ( $boxName == 'LANGUAGES' ) {
                $this->languageBox();
            } else {
                $this->customBox( $boxName, $cont );
            }
        }
    ?>
    
</div>
    </div> Vapblack (talk) 22:05, 31 August 2015 (UTC)
So, I notice that its loading the search, toolbox and languages after all the sidebar links. So I need to find a way to separate the search bar and put it ahead of everything. Vapblack (talk) 22:16, 31 August 2015 (UTC)

Main Page loads to middle of page after upgrade to MW 1.25.1

After upgrading to 1.25.1 my website opens in the middle of the page when coming to the site's Main page, rather than the top like any other website.

Other links and pages open as expected, at the top of the page, only the Main page is acting in this odd way???

This happens in Firefox, Chrome and Android mobile devices I have tested on. DaveLMW 1.25.1, PHP 5.4.37, MySQL5.1.73-cll SMW 2.2 03:34, 13 August 2015 (UTC)

Do a search in your Main page's source code for "autofocus". If nothing shows up, try disabling JavaScript in your browser. Ike Hecht 21:12, 17 September 2015 (UTC)

Nothing working on the Mediawiki:common.css page

Hello, I am trying to make the background of my wiki black and all of the text white, however when I try to add code to the css page nothing happens, even when I hard refresh. (I am VERY new to wiki editing). I would put the link here, but I don't have a domain so I can't.

Some codes work and others don't. or example:

h1 {
        color: black;
        background: yellow;
        font-size:200%
}

works just fine. The title is highlighted in yellow and has black text; but

body { color: green; }

does nothing.

Furthermore how does one change the background of the wiki?

50.157.65.55 (talk) 05:32, 13 August 2015 (UTC)

Changing colors of all the elements may be tricky.
CSS is based on rules, but most specific rule wins, not the last one, so:
body { color: green; }
is more generic than
h1 { color: black; }
So independently of which rule comes first, the h1 rule wins. This may be a reason why it does nothing.
A brute-force rule for that would be:
  • { color: green !important; }
The same goes for backgound, which can be even ofuscated by a background image that doesn't let you see the background color.
You should document yourself about how CSS rules work, and also play with your styles using the developer console of your browser (open with F12) where you can write CSS code that will be immediately applied to the page Ciencia Al Poder (talk) 09:46, 14 August 2015 (UTC)

LdapAuthentication not working with HaloACL

On setting the variable haclgBaseStore to HACL_STORE_LDAP -

Getting the below error:

PHP Fatal error:  Call to protected method LdapAuthenticationPlugin::getGroups() from context 'HACLStorageLDAP' in /var/www/html/mediawiki-1.25.1/extensions/HaloACL/storage/HACL_StorageLDAP.php on line 513, Garvjain82 (talk) 09:01, 13 August 2015 (UTC)

How do I stop FileZilla from auto launching?

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.


FileZilla launches every time I reboot or start up my computer. How do I stop it from automatically launching? 2605:E000:8442:BE00:1801:8AC3:F9B5:DA36 (talk) 16:09, 13 August 2015 (UTC)

Hello, this is the support desk about MediaWiki. Your question is not related to MediaWiki Ciencia Al Poder (talk) 16:49, 13 August 2015 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Is there a simple, stable, and secure method to add <scripts> to the <head>, sitewide?

I want to add two <script> tags to my site <head>, to be loaded on every page. I'm using an off-the-shelf MediaWiki skin, and I'd prefer not to edit the skin's source files in order to avoid having my changes wiped out whenever I need to upgrade the site.

Is there an easy way to to add <script> tags to the <head> of every page, without compromising the security of my site? Searching MediaWiki.org, I have found a two extensions, but the discussion page for one lists security vulnerabilities, and the other has a dependency that is no longer maintained.

Thank you! 76.100.188.32 (talk) 20:21, 13 August 2015 (UTC)

You can add scripts directly on some MediaWiki: pages that are loaded for every page. See Manual:Interface/JavaScript (but note that the script won't be loaded in the login screen for security reasons).
You can also use ResourceLoader. I did an example in Project:Support desk/Flow/2014/10#h-How_to_add_custom_CSS_via_LocalSettings.php-2014-10-14T20:00:00.000Z Ciencia Al Poder (talk) 20:39, 13 August 2015 (UTC)
Thank you, Ciencia! Is it feasible to use one of these methods to run Google Analytics or similar? 76.100.188.32 (talk) 21:08, 13 August 2015 (UTC)

Yes. You can put the code that google analytycs presents inside <script></script><nowiki> tags directly in MediaWiki:Common.js, without the <nowiki><script></script><nowiki> tags [[User:Ciencia Al Poder|Ciencia Al Poder]] ([[User talk:Ciencia Al Poder|talk]]) 09:25, 14 August 2015 (UTC) == Moving from Sharepoint to MediaWiki == Hi everyone, I am about to integrate internal MediaWiki and SharePoint, ill be pleased if someone could give me some advice. Should I simply copy the cointain of SharePoint through wikiTextGenerator or is there some way how to do it? I have also simple programme written in C# that generates wikitext tables from excel into separated .txt files. Is there some way how to transclude/substitute local files into internal MediaWiki? Thank you! :) [[User:Wydrak|Wydrak]] ([[User talk:Wydrak|talk]]) 07:41, 14 August 2015 (UTC) == Moving images folder == Heya, Is it possible to move the images folder of a mediawiki instance? I tried moving my images to the new location then setting <code>$wgUploadDirectory</code> and <code>$wgUploadPath</code>, but then images stops displaying and give an error message instead: <code>Error creating thumbnail: File missing</code> [[User:Guillaumito|Guillaumito]] ([[User talk:Guillaumito|talk]]) 12:53, 14 August 2015 (UTC) :Yes, it's possible and making the change to those settings should be sufficient. Be sure you changed it properly, specially $wgUploadDirectory. You can also see the log of where it's trying to get the image from by creating a [[Manual:How_to_debug|debug log]] [[User:Ciencia Al Poder|Ciencia Al Poder]] ([[User talk:Ciencia Al Poder|talk]]) 13:20, 16 August 2015 (UTC) == Redirecting privacy policy == Hi, How can i redirect my privacy policy link in the footer to the wikimedia? <nowiki>https://wikimediafoundation.org/wiki/Privacy_policy 95.49.50.140 (talk) 18:08, 14 August 2015 (UTC)

Why would you want to do that? In any case, see https://www.mediawiki.org/wiki/Manual:Footer Malyacko (talk) 12:11, 16 August 2015 (UTC)

Spam Filter

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.


The word denemet is refused by spam filter. In Hungarian, there are millions of words containing denemet, for example "Mindenemet" = (my everything) , and so on. I wrote into Mediawiki:Spam-whitelist denemet \bdenemet \bdenemet\b all that does not help, denemet is refused (see page teszt1 on hu.right.shoutwiki.com)

How can I cause shoutwiki to accept the word denemet? Thanks in advance. 178.48.239.89 (talk) 21:08, 14 August 2015 (UTC)

Hi!
The text entries on MediaWiki:Spam-whitelist are only matched against host names inside URLs, not against normal text. I think this is why an entry there does not help.
I am currently unsure, why you are getting this error: After trying to save this word, your wiki uses the system messages "spamprotectiontitle" and "spamprotectiontext". Their English text is "The text you wanted to save was blocked by the spam filter. This is probably caused by a link to a blacklisted external site."
That should make it possible to find out, why this message shows up. 88.130.95.174 (talk) 22:01, 14 August 2015 (UTC)
You should probably bring this up to the shoutwiki support, so they remove that word from their spam filter Ciencia Al Poder (talk) 13:17, 16 August 2015 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

How to import mediawiki dump to new namespace.

Hi,

I have a mediawiki page dump from server A and I want to import page dump to another mediawiki Server B with new namespace. Could anyone help me on this

Thanks,

Saravanan 202.3.120.4 (talk) 03:51, 15 August 2015 (UTC)

See the answer in http://stackoverflow.com/questions/32021363/how-to-import-mediawiki-dump-to-new-namespace Malyacko (talk) 12:10, 16 August 2015 (UTC)

How to move headers up and down, left and right?

I have a header with an empty space to the right of it. How would I move a header to that empty space? 2601:5C6:8101:732:E055:A6D9:A381:7358 (talk) 05:52, 16 August 2015 (UTC)

Generally you can change the appearance of elements in the wiki with CSS. Something like text-align: right; will, if applied to an element, move it to the right. 88.130.75.245 (talk) 20:09, 17 August 2015 (UTC)

RequiredGroups option in LdapAuthentication not working

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.


If I include this option, I am unable to login. Without it, it works perfectly fine. Garvjain82 (talk) 08:27, 17 August 2015 (UTC)

You should ask your question on the extension talk page :)
Extension_talk:LDAP_Authentication Florianschmidtwelzow (talk) 00:34, 18 August 2015 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Problem with MultimedaViewer

Hi,

I'm using mediawiki 1.25.2 and MultimediaViewer REL1_25 on linux.

When I click on a thumbnail, I get an enlarged view of the image. But this works "only a few times". After some page navigation when i go back to the page with the thumbnail I see the page File:image.jpg when I cklick on the thumbnail.

What is going wrong there?

Bs47445 (talk) 09:46, 17 August 2015 (UTC)

Are there any errors in your JavaScript console? Did you wait for all the JavaScript on the page to finish loading before clicking on an image? Legoktm (talk) 05:14, 19 August 2015 (UTC)
eachtime when entering the page:
12:08:13.604 Kein Element gefunden1 mod_pagespeed_beacon:1:1
in case of failure:
12:31:24.598 TypeError: title.getExtension(...) is null1 mmv.bootstrap.js:190:28 Bs47445 (talk) 10:47, 20 August 2015 (UTC)

Best hook to display a header per namespace?

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.


Which is the best hook to add a header per namespace? E.g. a naviagtion header on all help pages.
I tried BeforePageDisplay, but it won't let me use
$out->wfMessage( 'fooBar' )->parse();
The content of the headers should not be part of the article content (search, template usage etc.) 217.247.165.215 (talk) 11:59, 17 August 2015 (UTC)
OutputPage doesn't have a method wfMessage(), you could use:
$out->addHtml( wfMessage( 'foobar' ) );
or even better:
$out->addWikiMsg( 'foobar' );
See the doc for OutputPage for possible functions. Florianschmidtwelzow (talk) 00:26, 18 August 2015 (UTC)
I used to place it in the skin, but then magic words like <nowiki>{{PAGENAME}}</nowiki> don't work after redirects (it returns the old name from the redirecting page). 217.247.165.215 (talk) 12:02, 17 August 2015 (UTC)
With ParserBeforeInternalParse I don't seem to be able to check the namespace. 217.247.165.215 (talk) 12:04, 17 August 2015 (UTC)
What about Manual:Hooks/ArticleViewHeader ? Florianschmidtwelzow (talk) 00:26, 18 August 2015 (UTC)
Umm, I checked that and thought it's about the html header :) Thanks! 217.247.165.60 (talk) 18:07, 18 August 2015 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

SSL certificate always appear

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.


When i try to access my mediawiki page, it always pop up the SSL certificate "There is a problem with this website's security certificate. Continue to this website (not recommended)."

How can i address this so that it only appears once for the user? AmazingTrans (talk) 12:52, 17 August 2015 (UTC)

Get a trusted certificate (one signed by a certification authority and issued for your domain), or ask your users to permanently add the certificate to the list of trusted ones. Ciencia Al Poder (talk) 20:07, 17 August 2015 (UTC)
ciencia, my mediawiki is internally on the intranet. Do i still have to get a trusted certificate or is there a way to generate locally?
Also, is there anyway to disable https on mediawiki? AmazingTrans (talk) 00:51, 19 August 2015 (UTC)
Yes, a https connection needs to have a valid certificate or you'll get the warning, no matter if the website is on local intranet or Internet. That said, on a local network the network admin may have tools to deploy and install certificates on each machine centrally (on a windows network, for example), so generating a valid domain certificate may be possible without need of one issued by a CA.
https can be disabled, yes, Simply publish it for http and not https (you may need to adjust $wgServer if you included https:// on it) Ciencia Al Poder (talk) 13:31, 19 August 2015 (UTC)
thanks ciencia.
I found a way to create a certificate locally.
For those who are interested, they can follow the following and insert a large number of days for example 10 yrs = 3650 days.
https://wiki.bitnami.com/Components/Apache#How_to_create_a_SSL_certificate.3f
For more information: https://help.ubuntu.com/community/OpenSSL AmazingTrans (talk) 04:52, 21 August 2015 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Waiting for the password

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, i have created my account and also verified the link which you sent to my mailbox. am waiting for my password desperately. Can someone from the admin team sort this out?

username:: Sandesh

Thanks in advance. 45.116.46.171 (talk) 14:07, 17 August 2015 (UTC)

oh thank god, i just received the password. 45.116.46.171 (talk) 14:13, 17 August 2015 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

68.200.143.146,

Just created an account, got confirmation email with no confirmation number just a link to click the below message was on the link. Can you please help?

Invalid confirmation code. The code may have expired.

Username: tgravvt 68.200.143.146 (talk) 16:17, 17 August 2015 (UTC)

The user Special:CentralAuth/tgravvt is not registered, so I think you're talking about your own wiki? If yes, you should refer to T105896 :) Florianschmidtwelzow (talk) 00:21, 18 August 2015 (UTC)

Hi there- there is a guy on wikipedia deleting my pages

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'm researching, reading books on Islamic caliph (known as Amir al-Mu'minin) and posting on Wikipedia. But this user:Fenerli1978 is always deleting my researches which I mostly found on books. With sharing my sources too (book name, page, ISBN). What's the problem with wikipedia? Is it easy to give rights to a user to delete others hard work for no reason? I need an explanation.
45.59.129.37 (talk) 17:15, 17 August 2015 (UTC)
You should take this issue to Wikipedia, not here. Try talking with him first. Ciencia Al Poder (talk) 20:04, 17 August 2015 (UTC)
The licence under which the texts in Wikipedia are posted allow everyone to change or delete texts. However, there also are vandals sometimes, who without an encyclopedical cause vandalize articles. I have not read your contributions and I currently have other things to do apart from becoming part of a religious war, so I cannot tell, which is the case here. 88.130.75.245 (talk) 20:07, 17 August 2015 (UTC)
Can you send me a link where to contact Wikipedia? Fenerli1977 (talk) 20:14, 17 August 2015 (UTC)
I suspect, that you contributed to trwiki, right? Here a short snippet from CentralAuth:
tr.wikipedia.org 16:49, 17 August 2015 new account(?) Blocked indefinitely. (account creation blocked, cannot edit own talk page) Reason: #5-Vandalizm
I think, you should try to unblock your account first. For that you should read the help pages in your wikipedia language version to find out, what the process for a possible unblock looks like. After that you can contact everyone via their talk pages, For a first introduction in user talk pages, you could read the information in the english Wikipedia, and, if your wikipedia language has it, there, too.
And, last, but not least, mediawiki.org (especially the support desk where you're posting on) is for general help about running (setup, maintain, upgrade and so on) the mediawiki software, not for solving support tasks for wikipedia (or any other wmf project), most of the wikis has their own processes and places for this, and we (the people helping here) can't know all of them from any wikipedia language.
Good look and hopefully, wikipedia (and mediawiki.org maybe, too) can see a lot of constructive contributions from you!
Best, Florianschmidtwelzow (talk) 00:16, 18 August 2015 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

starting new page

can't get edit functionality on my new page 2602:306:CD5D:D2A0:45DE:C295:8A65:80AB (talk) 19:40, 17 August 2015 (UTC)

Could you please elaborate? Read also the instructions on the left side of this page. Ciencia Al Poder (talk) 20:02, 17 August 2015 (UTC)

Edit area's font size

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.


Can't find a way how to increase edit area's font size.

Using MediaWiki 1.25.2 with Vector 87.100.236.49 (talk) 09:04, 18 August 2015 (UTC)

Have you tried setting a different font-size via custom Manual:CSS? Malyacko (talk) 10:03, 18 August 2015 (UTC)
[SOLVED]
Include Common.css the following:
#wpTextbox1 {
line-height: 1.0em;
resize: vertical;
        font-size: 1.0em;
} 87.100.236.49 (talk) 10:44, 18 August 2015 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

"revision # does not exist" help

Recently upgraded to 1.25.2 and things went amiss, so I restored a previous backup. Getting "revision # does not exist" messages. Looked up how to fix it and the task is beyond my talent level. Question: If I go to an earlier backup, will this likely resolve the problem, or would it remain?

Thanks Klwilcoxon (talk) 17:04, 18 August 2015 (UTC)

Where do you get these messages exactly? From which version did you upgrade and how? Malyacko (talk) 20:46, 18 August 2015 (UTC)

getNamespace after save complete

In an extension using LinkerMakeExternalLink, <code>$wgTitle->getNamespace()</code> doesn't return the namespace after saving a page (category in my test). It returns as "0".

Do have to call the context? How would I do that?

MW 1.25.2 217.247.165.60 (talk) 17:24, 18 August 2015 (UTC)

The hook LinkerMakeExternalLink does not have the Title object as one of its parameters. Did you make sure that you have got it somehow, e.g. with global $wgTitle; or using a function to get the Title object? 88.130.92.150 (talk) 20:29, 18 August 2015 (UTC)
Yes, $wgTitle is there. Found the problem: $wgTitle returns as "API".
And it stays that way, even with <code>$titleThis = RequestContext::getMain()->getTitle();</code> 217.247.165.60 (talk) 21:39, 18 August 2015 (UTC)
Is this related to phab:T109533? Legoktm (talk) 05:12, 19 August 2015 (UTC)
Yep, I guess we can close this here. Subfader (talk) 11:22, 19 August 2015 (UTC)
That hook isn't supposed to be used to change it depending on the page being displayed... But well, if you need it, you can grab the title from another hook and save it to your own global (or better, a class member variable if the extension has it's own class) to use it later. Ciencia Al Poder (talk) 13:59, 19 August 2015 (UTC)
Yes I need LinkerMakeExternalLink cos I have to check the atributes. Actually I need the NS, but that's the same problem.
Creating an own global with another hook sounds like a good workaround. Cheers! Subfader (talk) 14:13, 19 August 2015 (UTC)

Attempt to d/l FreePDK45, v1.4 opens a LicAgr: "NCSU CDK[sic] D/L"

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.


In addition to the title of the License Agreement for FreePDK being named "NCSU CDK," the contents seems to treat only of "the use of SVRF(TM) Technology" from Mentor Graphics Corporation.

Firstly, is this really the right document?

Secondly, for my University, which is unable to agree that it can "ensure that persons permitted access to SVRF Technology do not disclose it or use it except as permitted by this agreement" ... which provisions "shall survive the termination or expiration of this agreement", is there a way to use FreePDK without the SVRF Technology, which seems to be the sticking point?

Lastly, "how important can it really be?" if it's a click-through agreement, which form my university at least doesn't recognize as binding (being non-negotiated)? (Related question: whom would one negotiate with?)

What I'd like to do is kick this down to the professor's department to put onto their server, where they can limit (better than we at the college computer center) who can access it, and the professor can arrange to inform students who use it about the restrictions and collect and store individual agreements.

We just aren't that fine-grained here, generally preferring "One Hammer Fits All."

Thanks, folks. 2607:F388:1082:FFFF:7646:A0FF:FEA4:FCE1 (talk) 19:18, 18 August 2015 (UTC)

https://www.mediawiki.org/wiki/Project:Support_desk (where you posted this) provides support for the "MediaWiki" software. Whatever "FreePDK" is, it is unrelated to MediaWiki and hence this is the wrong place to ask, sorry. Malyacko (talk) 20:45, 18 August 2015 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Cant login to newly created mediawiki page, no error message

I created a mediawiki page, but I cant login.

No error are displayed and I just get returned to the login page.

I have verified that my password is correct and that the "session.save_path" directory is writable.

When I try to login sess_* files are created.

I have tried latest versions of both firefox and chrome. Cookies are enabled. Yurij89 (talk) 19:23, 18 August 2015 (UTC)

Anyone?
I have tried version 1.23.10 and 1.25.2
PHP version 5.6 Yurij89 (talk) 20:10, 21 August 2015 (UTC)
Does your error log show anything? Do you see anything if you turn on debugging? What does your debug log in the debug toolbar say if you turn it on? MarkAHershberger(talk) 03:29, 22 August 2015 (UTC)
Also be sure you configured your $wgServer correctly, and that there's no redirection (like canonical domain redirect or something) being done there.
For example, a server misconfigured to redirect example.com to www.example.com but $wgServer set to example.com will cause any form input to be lost when sent to the server. This can be seen in the debug log if the login page never gets a POST request, only GET Ciencia Al Poder (talk) 08:08, 22 August 2015 (UTC)

How change default in Extension:UniversalLanguageSelector

I install Extension:UniversalLanguageSelector but I want instead of English, another language be default.

How do I configure? Beginneruser (talk) 05:14, 19 August 2015 (UTC)

Have you tried checking the archives and asking on https://www.mediawiki.org/wiki/Extension_talk:UniversalLanguageSelector ? Malyacko (talk) 10:47, 19 August 2015 (UTC)
Thank you, but I did not get the right answers Beginneruser (talk) 13:23, 19 August 2015 (UTC)
The answers here (on mw:Support_Desk]] might not be magically "righter"... Malyacko (talk) 09:31, 25 August 2015 (UTC)

Continue parameter for timestamp ordered category member queries

Note: These queries are running against the Commons Mediawiki installation.

I am successfully using the continue parameter for default sorted category members (excluding cmsort parameter), for example, this works with the initial, blank, continue params :

curl -s 'https://commons.wikimedia.org/w/api.php?action=query&list=categorymembers&cmpageid=21909076&cmtype=file&format=json&cmprop=ids%7Ctitle%7Ctimestamp&cmcontinue=&continue='

*however* when sorting by timestamp (cmsort=timestamp) :

curl -s 'https://commons.wikimedia.org/w/api.php?action=query&list=categorymembers&cmpageid=21909076&cmtype=file&format=json&cmsort=timestamp&cmprop=ids%7Ctitle%7Ctimestamp&cmcontinue=&continue='

I get "Invalid continue param".

More info :

If I leave off the "cmcontinue" part as follows

curl -s 'https://commons.wikimedia.org/w/api.php?action=query&list=categorymembers&cmpageid=21909076&cmtype=file&format=json&cmsort=timestamp&cmprop=ids%7Ctitle%7Ctimestamp&continue='

it will then return a "continue" data structure along with the first page. If I take the returned data and supply it (suitably URI encoded) it still does not work :

curl -s 'https://commons.wikimedia.org/w/api.php?action=query&list=categorymembers&cmpageid=21909076&cmtype=file&format=json&cmsort=timestamp&cmprop=ids%7Ctitle%7Ctimestamp&cmcontinue=2012-10-04%2021:26:13%7C21909191&continue=-%7C%7'

and gives "Invalid continue param".

How can I use the continue param with timestamp sorted category members? Ftclausen (talk) 06:09, 19 August 2015 (UTC)

The first URL works (removing the trailing single quote).
The second one doesn't. You can't have both cmcontinue and continue empty. this works for me.
The last one ends with %7C%7 which is an invalid encoding (percent encoding must have 2 hexadecimal digits next to percentage, not one) Ciencia Al Poder (talk) 14:12, 19 August 2015 (UTC)
Thanks for your input Ciencia - I think that last one ending with %7C%7 is a paste error. I'll see if I can get it working otherwise put together some better examples. Ftclausen (talk) 08:31, 21 August 2015 (UTC)

Quick index extension?

Hi.

In my wiki there is a concept of quick indexes introduced. I was not participated in developing this concept, but this can be used for some kind of quick navigation, and probably it makes some practical sense for the wiki users (but I doubt about it pretty much, because those indexes are not really visible for a user). These indexes were written manually thus they never get updated when a new major article is created. They all are outdated for, I guess, 2-3 years. Frankly speaking, I'd love to get rid of the indexes page because of the reason described above, but I think that my teammates wouldn't accept such an idea.

The structure of the quick indexes page is roughly as follows:

  • Start page containing links to digits-related or a certain letter-related titles. Something like: # A B C ... X Y Z
  • An article, let's say "B quick index", contains a list of terms and their definitions in a list form, like: bar - A foo companion. baz - A bar companion.

What I'm looking for is an extension that is designed for such a use case. Is there any extension (or any other way) to let such indexes be generated?

Thank you in advance.

P.S. It would be incredible if such an extension could specify somehow which articles are worthy to be listed in the quick index; swapping (/omitting) the leading "the" in the titles to the end in the quick index lists would be great (the are a lot of articles named like "The ...", so "..., the" could be awesome). 194.44.30.245 (talk) 09:22, 19 August 2015 (UTC)

Hopefully up. (If not, let the question get down.) 195.234.74.134 (talk) 09:20, 24 September 2015 (UTC)
Maybe a sort of Extension:DynamicPageList (third-party) extension or something similar may do the trick.
Categories can also be useful for that, since you can change their sort key, although the page will be listed with the page name, no the sort key. Ciencia Al Poder (talk) 09:32, 24 September 2015 (UTC)
Thank you for reply, Ciencia. We use categories a lot, but they are not considered very user friendly for casual users. The index I described a month ago is a sort of excerpt list for the most important articles that we group by the first letter.
Regarding the DPL, thank you for the suggestion! I'll take a look soon. 195.234.74.134 (talk) 17:49, 24 September 2015 (UTC)

How do I start a new page article?

How do I start a new page article?I would like to set up a page for my Raghu-nomics work. Raghunomics (talk) 10:11, 19 August 2015 (UTC)
For input boxes on a dedicated page see Extension:CreateBox Subfader (talk) 11:10, 19 August 2015 (UTC)
No idea what "Raghu-nomics" is, but if your question is how to create your own Wiki site on your own server by using the MediaWiki software, see mediawiki.org.
If your question is related to Wikipedia instead, please ask there and elaborate there. Malyacko (talk) 10:45, 19 August 2015 (UTC)

Flashing layout (repainting) for anons only?

I noticed that anons get a flashing layout. I guess that's caused by "repainting".

You can check that on https://en.wikipedia.org when you browse through long article links (logged in and out).

It doesn't happen when you're logged in. What causes this? I def want to fix that on my wiki. Subfader (talk) 11:14, 19 August 2015 (UTC)

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.


Wiki Please stop your editors, they are deleting all of my personal photos claiming they are copyright violations with no proof or Claim. SkyPhoenix6, Skyphoenix6 (talk) 02:59, 20 August 2015 (UTC)

These are my personal pictures i added to Wiki Commons and they are all mine and no one else has any claim to them Skyphoenix6 (talk) 03:00, 20 August 2015 (UTC)
mediawiki.org is for discussing the software called MediaWiki. If you want to discuss stuff about Wikimedia Commons, please [ https://commons.wikimedia.org/wiki/User_talk:Skyphoenix6 | use your userpage on Wikimedia Commons instead ] which has enough warnings that have been ignored so far... Malyacko (talk) 11:05, 20 August 2015 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

[MediaWiki] Short URL.

Hey.

I have a problem with shorlt url in MediaWiki.

My url default is http://clamsiopl-web.pl/clamsiopl-wiki/index.php?title=Strona_główna but it's bad address.

My plan is:

  1. $wgArticlePath = "/wiki/$1";
  2. $gUsePathInfo = true;

and URL it's http://clamsiopl-web.pl/clamsiopl-wiki/Strona_główna but this not working.

Error 404.

Please help me. McReyer (talk) 06:29, 20 August 2015 (UTC)

If you really plan $wgArticlePath = "/wiki/$1"; then it would not be http://clamsiopl-web.pl/clamsiopl-wiki/Strona_główna (as you write) but http://clamsiopl-web.pl/clamsiopl-wiki/wiki/Strona_główna instead... Malyacko (talk) 11:03, 20 August 2015 (UTC)
Note that $wgUsePathInfo = true; is for when you can't use rewrite rules on the server to have nice /wiki/PAGENAME URLs, and instead you want to use index.php/PAGENAME urls (http://clamsiopl-web.pl/clamsiopl-wiki/index.php/Strona_g%C5%82%C3%B3wna). Don't use both configurations.
If you really want $wgArticlePath = "/wiki/$1"; you need to use rewrite rules, as explained in the manual page. Ciencia Al Poder (talk) 14:03, 20 August 2015 (UTC)
Ok, I delete $wgUsePathInfo.
What's next. McReyer (talk) 17:53, 20 August 2015 (UTC)
It depends on how do you want your URLs look like, and if you can activate rewrite rules on the server... Next step is reading Manual:Short URL Ciencia Al Poder (talk) 20:14, 20 August 2015 (UTC)

$wgExternalLinkTarget = '_blank'; in German Version 1.25

This does not work in the footer section.

[6]

Regards @Bmrberlin [[User:Bmrberlin| Bernd M.]] (talk) 07:39, 20 August 2015 (UTC)

Well, the license link and PoweredBy icon are examples ;)
Feel free to report it as a bug, Surprisingly, I haven't seen it reported yet. That seems to be controlled in the parser, and those footer links aren't passed through the parser. The same was happening for sidebar links (T31533), which needed to be coded specifically for this.
There's also a script in Extension:LaunchExternal#Recommended_Script_for_.22outside_links_only....22 Ciencia Al Poder (talk) 14:26, 20 August 2015 (UTC)
https://www.mediawiki.org/wiki/Extension:LaunchExternal#Recommended_Script_for_.22outside_links_only....22
I installed this script. But it seems not to work.
Regards@Bmrberlin [[User:Bmrberlin| Bernd M.]] (talk) 11:05, 22 August 2015 (UTC)
The link "Bedingung: Namensnennung - Nicht kommerziell - Keine Bearbeitungen" now opens on a new window, but not the footer icons. I've updated the script to include those.
I've reported the bug: T109979 Ciencia Al Poder (talk) 14:58, 23 August 2015 (UTC)

Special Pages error

I needed to migrate our wiki from one server to another. Everything works fine except special pages. When I click on special pages I get this error.


Warning: require(/var/www/html/smiwiki/includes/specials/SpecialAllMessages.php): failed to open stream: No such file or directory in /var/www/html/smiwiki/includes/AutoLoader.php on line 1282

Fatal error: require(): Failed opening required '/var/www/html/smiwiki/includes/specials/SpecialAllMessages.php' (include_path='/var/www/html/smiwiki:/var/www/html/smiwiki/includes:/var/www/html/smiwiki/languages:.:/usr/share/pear:/usr/share/php') in/var/www/html/smiwiki/includes/AutoLoader.php on line 1282

Any thoughts as to where to start looking? That line(1282) in the php file is - require $filename; Earlier in that same section there is a $filename = false; statement.

Am I missing permissions? All of the files from the working server are there. Dna512 (talk) 14:54, 20 August 2015 (UTC)

Please have a look inside the folder /var/www/html/smiwiki/includes/specials/!
Is the file SpecialAllMessages.php present in that folder? According to the error it is not - or at least permissions to access this one file are wrong. 88.130.126.59 (talk) 17:20, 20 August 2015 (UTC)
specialallmessages.php is present. What permissions should it be? 173.249.65.194 (talk) 13:57, 24 August 2015 (UTC)
specialallmessages.php is present. What permissions should it be? Dna512 (talk) 13:58, 24 August 2015 (UTC)

mb_convert_encoding() - api.php

I'm getting this error when I try to access the api page http://my.url/tw/api.php

Fatal error: Call to undefined function mb_convert_encoding() in /var/www/tw/includes/HtmlFormatter.php on line 66

I see notes about multibyte issues but it is not clear to me why I would need this feature; we have simple needs only in english... phpinfo indicates Zend Multibyte Support is disabled. This is a relatively new install with 2-3 year old content from an earlier version of wikipedia. Never tried to use the api function before.

Thanks for any tips,

Chris. Chrisjx (talk) 19:42, 20 August 2015 (UTC)

I see the line 66 of HtmlFormatter.php:
$html = mb_convert_encoding( $this->html, 'HTML-ENTITIES', 'UTF-8' );
it's not clear why the api function would be calling a non-existent function if multibyte is optional.
from: https://www.mediawiki.org/wiki/PHP_configuration
==== Optional ====
MediaWiki either needs or wants a number of optional features of PHP that need to be enabled at compile time:
  • mbstring multibyte character string support (optional; slower custom code will be used if not available)
Does this mean I have to recompile PHP to use api? Yikes.
Chrisjx (talk) 19:57, 20 August 2015 (UTC)
Did not have subscription to yum repos for rhel. Downloaded the rpm, php-mbstring-5.3.3-46.el6_6.x86_64.rpm
ran:
yum install php-mbstring-5.3.3-46.el6_6.x86_64.rpm
seems to be working... Chrisjx (talk) 20:34, 20 August 2015 (UTC)
In order to use the mb_convert_encoding() function, you must have the mbstring PHP extension activated. 88.130.126.59 (talk) 21:25, 20 August 2015 (UTC)
Known bug, see T62174 Ciencia Al Poder (talk) 09:26, 21 August 2015 (UTC)

Is it possible to display a slideshow of pictures on a Wiki page?

is there any code to display a bunch of pictures like a slideshow on a wiki page? Juan Cristobal Viscarra (talk) 02:13, 21 August 2015 (UTC)

You could try to use MultimediaViewer, which implements such a feature. Another approach is the slideshow gadge from Wikimedia Commons, see commons:Help:Gadget-GallerySlideshow. Florianschmidtwelzow (talk) 17:57, 21 August 2015 (UTC)

Saving a changed article takes very long

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.


If I change an article and save it, the article will either take very long to save or it will not save. I do not get any error messages Does anybody have the same problem? What can I do? 185.46.212.59 (talk) 06:17, 21 August 2015 (UTC)

Manual:Performance tuning Malyacko (talk) 11:49, 21 August 2015 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

use wiki like software-version

i want to use wiki in parts for software version control and i upload an perl-script. when try to download i get the message error 404!!!! the file is in the folder structure of wiki existing?

i work local in company by windows server. JanTappenbeck (talk) 06:37, 21 August 2015 (UTC)

For version control there are version control systems instead. It's unclear **how** you upload a Perl script to me and **where** you go afterwards to download and what exactly you do there to get a 404 so all this needs clearer steps/commands without paraphrasing. And if the file exists in the folder structure only you can tell as you have access to the company's internal server... :) Malyacko (talk) 11:48, 21 August 2015 (UTC)

Weird template behaviour

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 have Template:Planets/Pluto:

<pre>

{{Planets

 |name=Text - Pluto 2

 |foos=bars

}}

</pre>

When I add <nowiki>{{Planets/Pluto}}</nowiki> on my user page, the parameters are not properly sent to Template:Planets, the name is even replaced to "Text - Pluto" which could have been the value a year ago.

This occurs not on Template:Planets/Pluto itself or when add the content of Template:Planets/Pluto to my user page. Only when I include <nowiki>{{Planets/Pluto}}</nowiki>.

And it doesn't occur with all templates of that series.

I can reproduce it with a test installation that uses a copy of the DB, so it's no weird cache thing.

What could cause it? Can I run some maintenance script? Subfader (talk) 11:53, 21 August 2015 (UTC)

When I change the template parameter "name" to something else, e.g. "title" then the value gets not replaced. It's not returned at all on the user page: <nowiki>{{{title}}}</nowiki>.
$wgNamespacesWithSubpages[NS_TEMPLATE] = true; Subfader (talk) 12:07, 21 August 2015 (UTC)
Renaming the complete template "Planets" doesn't help either. Subfader (talk) 12:10, 21 August 2015 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

I cannot execute command: C:\cd (My created filename)

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 cannot execute command: C:\cd (My created filename) Leon Bredenkamp (talk) 12:25, 21 August 2015 (UTC)

With the cd command, you can change the directory.
So if I have a file TEMP/my-file.txt
then I can do
cd TEMP/
to change inside the TEMP/ directory.But I cannot use cd to change "into" the my-file.txt, because it is not a directory.
However, I am currently not sure, in how far this is related to MediaWiki... 88.130.126.59 (talk) 14:23, 21 August 2015 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

updateSearchIndex: Couldn't write to the searchUpdate.MyWiki.pos

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.


When I run maintenance/updateSearchIndex.php I get the error
<pre>

--- Unlocking --

Done

*** Couldn't write to the searchUpdate.MyWiki.pos!

</pre>

Does the maintenance directory needs some write rights? Atm is has <code>drwxr-xr-x 17 user-mywiki psacln</code>.

Subfader (talk) 14:43, 21 August 2015 (UTC)
The maint directory shouldn't need write permissions. The error (Couldn't write to searchUpdate.MyWiki.pos) can be overcome by using the "-p" option to specify a location that is writable. See UpdateSearchIndex.php. Error reporting here could be improved. I've created a task for that. MarkAHershberger(talk) 16:04, 21 August 2015 (UTC)
Thanks, rebuildtextindex.php is the right one anyway. Subfader (talk) 19:02, 21 August 2015 (UTC)
I got same problem. I build the searchindex by
CREATE TABLE `searchindex` (
  `si_page` int(10) UNSIGNED NOT NULL,
  `si_title` varchar(255) NOT NULL DEFAULT '',
  `si_text` mediumtext NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
ALTER TABLE `searchindex`
  ADD UNIQUE KEY `si_page` (`si_page`);
ALTER TABLE `searchindex` ADD FULLTEXT KEY `si_title` (`si_title`);
ALTER TABLE `searchindex` ADD FULLTEXT KEY `si_text` (`si_text`);
then maintenance/updateSearchIndex.php give me Couldn't write to the searchUpdate.MyWiki.pos! .
/updateSearchIndex.php /tmp/writable give me Couldn't write to the /tmp//writable! .
rebuildtextindex.php successfully ran, but did nothing in Table: searchindex. It's still empty any how....
I got elasticsearch installed. Is the index been wrote to elasticsearch? Deletedaccount4567435 (talk) 22:45, 17 April 2017 (UTC)
What worked for me is creating the searchUpdate.MyWiki.pos file first by doing a
"touch /path/to/MyWiki/maintenance/searchUpdate.MyWiki.pos" (on Linux systems), then making sure it's writeble to the user executing the task and then doing
"cd /path/to/MyWiki/maintenance && php updateSearchIndex.php" 194.95.59.150 (talk) 09:06, 2 August 2019 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

How can I get notified about new Support desk requests?

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.


Under the LQT scheme, I could just add Project:Support_desk to my watchlist. It is still on my watchlist, but I'm not being notified of new postings. MarkAHershberger(talk) 16:13, 21 August 2015 (UTC)

Same here, that isn't really productive! :( Florianschmidtwelzow (talk) 17:53, 21 August 2015 (UTC)
When I watch the page it says "You're subscribed to this discussion board! You will get a notification when a new topic is created on this board."
So it sounds like it's *supposed* to be notifying you... I wonder what's going wrong. Krenair (talkcontribs) 16:11, 22 August 2015 (UTC)
I believe this is related to phab:T107835 ("Fix new topic notification on wikis with job queue"), and possibly phab:T101050 ("Set $wgEchoUseJobQueue = true on all Wikimedia wikis (tracking)"). I'll ask for further details. HTH. Quiddity (WMF) (talk) 21:14, 22 August 2015 (UTC)
@Quiddity (WMF): this implies, that I should get a notification sometimes, yes? If so, it seems I doing something wrong, because I never ever (iirc) got a notification about a new topic on any board I'm watching (and some of them were converted as the first ones on mediawiki.org :( Florianschmidtwelzow (talk) 01:08, 23 August 2015 (UTC)
So, today I see "5 new topics" in my notifications. I guess that is an improvement. MarkAHershberger(talk) 23:24, 25 August 2015 (UTC)
Same for me :) Florianschmidtwelzow (talk) 05:39, 26 August 2015 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Hosting MediaWiki on Windows Server 2012 with IIS

Hi,

I am testing using MediaWiki as a wiki-page provider for my company.

We plan to host the wiki on one of our internal servers which runs Windows Server 2012. We currently host a website on this server through IIS which connects to a SQL Server 2012 database. Ideally we would love to host our MediaWiki site in the same way if possible.

If we can host the wiki site on this server then i can create a DNS entry on our domain and also with our web provider to make the site externally accessible.

Can you confirm whether this is possible and how hard it is to implement?

Many thanks,

Dan. Danbilsborough (talk) 16:18, 21 August 2015 (UTC)

It is possible but I can't say anything about difficulty. I have a client running an old wiki on IIS/MySQL, but SQL Server support is included in MediaWiki.
The SQL Server support was recently updated, but I don't know how active the maintainers are. MarkAHershberger(talk) 17:09, 21 August 2015 (UTC)
I don't recommend using SQL Server as backend. I don't know if support has improved, but MediaWiki wasn't functional on SQL Server lately and some things may not work. Ciencia Al Poder (talk) 08:17, 22 August 2015 (UTC)
Yeah, I would also always prefer MySQL over MSSQL when it comes to MediaWiki. Using MSSQL you will have plenty of trouble with issues, which -if you used MySQL- will just work. 88.130.105.27 (talk) 15:20, 22 August 2015 (UTC)

Show/Hide button texts displayed as <hidetoc> for table of contents

Hi All,

I am having some strange issue with table of contents in my wiki Show/Hide are displayed as <hidetoc> instead of Hide. Can any one help me why this is happening?

Thanks, Sridhar Sridhar.chalimeti (talk) 19:02, 21 August 2015 (UTC)

That's because the message key can't be found in the messages for this language. In which language you try to view the page? Do you use any localisationCache? You could try to run the Manual:RebuildLocalisationCache.php maintenance script (have you disabled the automatic refresh of messages on a web request via the Manual:$wgLocalisationCacheConf config?). Florianschmidtwelzow (talk) 19:58, 21 August 2015 (UTC)
Hi,
Thank for your response, it makes more sense to me what you have explained. I am very new to Mediawiki, could you please specify the files and its location and process to edit/execution message key related changes.
I am trying view the Wiki page in english only, I did not use any localaisation cache.
Regards,
Sridhar Sridhar.chalimeti (talk) 22:01, 21 August 2015 (UTC)
Hi All,
I am new to mediawiki and php. In table of contents, hide text displaying as<hidetoc> , show text dispalying as <showtoc>. can someone help on this to find solution to resolve. Sridhar.chalimeti (talk) 22:05, 21 August 2015 (UTC)
rebuildLocalisationCache.php is located in the maintenance folder. You need to run it from command line. See Manual:Maintenance scripts. Sice you advertise you're new to MediaWiki and PHP, I guess you haven't touched $wgLocalisationCacheConf. Ciencia Al Poder (talk) 08:11, 22 August 2015 (UTC)

special:Notifications at various WMF projects

Dear friends! I wondered how and where special:Notifications works. Neither does w:de:special:Notifications support @[[user:Foo bar|]] nor:

  1. pa: w:pa:special:Notifications
  2. pnb: w:pnb:special:Notifications

At some other projects notifications are delayed:

  1. d: d:special:Notifications – notification delayed
  2. si: w:si:special:Notifications – notification delayed
see testwiki:user:לערי ריינהארט/! messages#links to test pages at other WMF projects

note: I did not test all WMF projects ;-)
question: Is this behaviour intended? Best regards lɛʁi ʁɑjnhɑʁt (leri raynhart)

לערי ריינהארט (talk) 11:32, 22 August 2015 (UTC)
Hi. The Notifications extension ("Echo") is installed on all wikimedia wikis. However, there are some complicated technical restrictions on how the "Mention" feature of that extension works. Those are detailed at Manual:Echo#Mentions.
For example, using your edits:
  • this edit would not trigger a mention, because it is "a change to existing content". Mentions only work if they are purely "an addition of new content".
  • this first edit would not have worked, because it added a bunch of content above the section heading. (e.g. this did not work, but this did).
Re: delays - I'm not sure about this problem. It might be related to phab:T101050 ("Set $wgEchoUseJobQueue = true on all Wikimedia wikis (tracking)") - I will ask the developers for details.
Hope that helps. Quiddity (WMF) (talk) 22:07, 22 August 2015 (UTC)

Accessing mediawiki

Good Day!

I just want to ask this thing, because I always encounter this problem.

"my mediawiki always appeared differently on other computer aside from server"

why this be ?

can you help me guys with this problem ?

thanks Roseanablana (talk) 14:31, 22 August 2015 (UTC)

Hi!
What exactly do you mean with "different"?
The are a few possible reasons for this; the most likely one is that you have to change the value of the configration variable Manual:$wgServer inside your LocalSettings.php file. It may not be set to "localhost" or anything equivalent to that.
The second possibility, however less likely in your case, is that you cannot access load.php properly. 88.130.105.27 (talk) 15:16, 22 August 2015 (UTC)
(Obviously the reason is not that you have to change a variable, but the wrong value of that variable is the reason for why it appears that way, which is the reason for why you might want to change that value.) 88.130.105.27 (talk) 15:18, 22 August 2015 (UTC)
thanks for your response.
the "differently I'm refering to, is the design of a page, looks like it don't have CSS. Roseanablana (talk) 15:22, 22 August 2015 (UTC)
Yeah, see above. Most likely $wgServer is set incorrectly. 88.130.105.27 (talk) 16:02, 22 August 2015 (UTC)

uploading failure in filezilla

1) I can't upload my new index.htm

2) My current index.htm shows empty ("0")

3) ergo, my website is now dark

thx Inotreb (talk) 00:36, 23 August 2015 (UTC)

Hi!
Why do you want to upload a new index.htm file? I would have to check the MediaWiki tarball again to be really really sure, but I am pretty sure that MediaWiki does '''not''' come with an index.htm file. Do you maybe mean the index.'''php'' file?
The index.php file should just be the one from the tarball. It should not be changed. If yours got corrupted, modified whatevr, replace it by a copy of the orignal as it came with your version of MediaWiki! 88.130.113.190 (talk) 01:50, 23 August 2015 (UTC)
This question might even be unrelated to MediaWiki. At least no indication by Inotreb that they actually use MediaWiki on their website. AKlapper (WMF) (talk) 13:36, 24 August 2015 (UTC)

country flags

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 want to enable country flags on the latest mediawiki, so that something like the following would show the USA flag:

{{flag|USA}}

What needs to be installed to get this working? 96.50.92.102 (talk) 03:38, 23 August 2015 (UTC)

  1. Create a Template:Flag on your wiki, probably with code like [[File:Flag of {{{1}}}.svg]]
  2. Upload to your wiki flags of all countries following the name of "Flag of XXXX" where XXXX is the country name, so it works with the template. Alternatively, use Instant Commons to have those images from commons directly.
See Help:Templates Ciencia Al Poder (talk) 15:04, 23 August 2015 (UTC)
Thank you, this works fine! 96.50.92.102 (talk) 16:05, 23 August 2015 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Normally Mediawiki detects whether a link link to an existing page, or a non-existent page.

The link has the color red when the target does not exists you. Once the target exists you, the link will be blue.

In my installation this does not function ore automatically. Only when the linking page is edited and re-saved, recognizes Mediawiki that the link exists you.

Where can you set the and where can I look why this is not like work for me in the standard? 95.90.209.49 (talk) 21:15, 23 August 2015 (UTC)

Updating the pages is done automatically by the Manual:Job queue. If that's not working, then the automatic job execution on every page load is failing. Maybe $wgJobRunRate is set to 0, or there's another problem. That page has some tips you can check to diagnose the problem and potentially fix it. Ciencia Al Poder (talk) 14:18, 24 August 2015 (UTC)

PHP session Timeout

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 use MediaWiki on my desktop (running 64bit Mageia Linux) as my personal documentation repository (or kbase). I am the only user who accesses the wiki, and I access it from both my Linux host and a Win7 VM. This configuration has worked perfectly for several years, including through multiple distro-hops.

My latest change installed a new version of MediaWiki, which broke the PHP timeout. Under previous versions, I could override the timeout so that an editing session could last for an entire 8-5 workday without timing out.

I've already changed the following settings, which have not helped:

session.gc_maxlifetime = 28800

session.cache_expire = 500

session.cookie_lifetime = 0

How do I increase the PHP timeout to 8 or 9 hours?

Here is my version info:

ThomasMcA (talk) 21:28, 23 August 2015 (UTC)
With PHP timeout do you mean session timeout? That is, you get logged-out very frequently?
You could look in the server, having a known active session, check the session file on the server, and see if when the session gets lost, the file is really there. That would be odd, but maybe there's a cron job set up to clean old session files that hasn't been touched in the last x hours.
Another possibility is that you have another application on the same server, and your cookie configuration shares the same cookie path and name. If you access a page of the other application, it may automatically logout you. Ciencia Al Poder (talk) 14:46, 24 August 2015 (UTC)
Yes, I meant session timeout.
The problem was the authority to my custom temp directory. I don't remember if I changed the temp directory while troubleshooting this problem, or if I changed it ages ago. Once I fixed the authority to that directory, the increased timeout was used.
Thanks for pointing me in the right direction. ThomasMcA (talk) 20:26, 15 September 2015 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

How do I delete multiple topics at once?

I have a ton of spammers on our Wiki and I am trying my hardest to get in under control... However as quickly as I am removing them more are coming up... Is there a faster way to delete rather than going to each individual page? 24.57.127.193 (talk) 01:51, 24 August 2015 (UTC)

We have a great Manual for that, see Manual:Combating_spam. There is a section "If spam has won the battle" explaining, what you can do to clean up the wiki after Spam was incoming :) Florianschmidtwelzow (talk) 09:02, 24 August 2015 (UTC)
ola boa noite amigo! …você pode me ajudar? Eu não falo Englesh, se queris me ajudar fala a minha linguagem por favor para mim intender, obrigado por ler até mais. @waynga @Wikipédia Saber Michael waynga 21:45, 24 August 2015 (UTC)

change Tracking categories Mediawiki 1.25 German

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.


How can I change these? Even logged in as sysop, it's not possible.[7]

Hoping for some hint.

Bernd@Bmrberlin [[User:Bmrberlin| Bernd M.]] (talk) 08:40, 24 August 2015 (UTC)

Have a look at Help:Tracking_categories, especially Manual:$wgTrackingCategories. So you can't edit these categories on-wiki. Florianschmidtwelzow (talk) 09:01, 24 August 2015 (UTC)
This is not very helpful, Florian,
Its's a database page. So, as a sysop, I should be able to edit it.
Bernd@Bmrberlin [[User:Bmrberlin| Bernd M.]] (talk) 10:37, 24 August 2015 (UTC)
Sorry for being not helpful (in your opinion), but I think (if you don't clarify, what you want change) that the pages I linked give all information you need. Florianschmidtwelzow (talk) 11:21, 24 August 2015 (UTC)
Florian,
I want to change the tracking categories page. Which special permission beside sysop is necessary to do this?
I found, that this is hard code in Special:TrackingCategories
See this:
private static $coreTrackingCategories = array(
        'index-category',
        'noindex-category',
        'duplicate-args-category',
        'expensive-parserfunction-category',
        'post-expand-template-argument-category',
        'post-expand-template-inclusion-category',
        'hidden-category-category',
        'broken-file-category',
        'node-count-exceeded-category',
        'expansion-depth-exceeded-category',
    );
Bernd @Bmrberlin [[User:Bmrberlin| Bernd M.]] (talk) 11:51, 24 August 2015 (UTC)
Ok, why you want to change these? It seems, that it's currently impossible to change the tracking categories added by MediaWiki itself. Florianschmidtwelzow (talk) 12:48, 24 August 2015 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Load Word document into mediawiki

I'd like to use mediawiki to present to the user some MS Word document that we have in a shared folder.

Now we are using a tool to convert the doc into mediawiki in a manual process. What we'd like to do is to connect mediawiki directly to the Word document in order to show the changes of the document without refreshing it manually.

Is there a plugin to accomplish this? Maybe is there some API to do this by a batch program running multiple times a day? Stefano.furlani (talk) 09:14, 24 August 2015 (UTC)

First you need some kind of converter, which creates wiki syntax out of your document. I think for what you want, it would be ideal, if this converter could be run from the command line, meaning: You do not have to do clicks inside a program interface to use it, but you can call it with a certain command and then it does its job. Do you already have such a tool? If so, which one?
I expect that after running the above program, you have the wikitext somewhere: Maybe somewhere in a variable inside that script or maybe written into a text file somewhere on your disc.
After that, the rest should be doable using the MediaWiki API: You have to do a login and to edit a page. The details on how that is working are on API:Login and API:Edit.
If your server is running on some kind of UNIX, then you can do these things regularly by executing the necessary commands from a cronjob. On Windows the same is possible using a Task. 88.130.115.36 (talk) 20:51, 24 August 2015 (UTC)
If you have access to the commandline on the wiki server (I expect you do), then you do not even have to use the API. You then can just use the maintenance script edit.php to save the text from the file or from the variable it is in into MediaWiki. 88.130.115.36 (talk) 20:56, 24 August 2015 (UTC)
If you have VisualEditor, some simple Word documents can just be cut-n-pasted into VE. Things that don't work should be considered bugs and reported as such. MarkAHershberger(talk) 15:24, 26 August 2015 (UTC)

hello everybody...

how can i edit "MediaWiki:Sidebar" in that way, that the headings (the first-level list elements) become Links to my WikiSite?

For example, i tried:

*[[TitleOfMyWikiSite | Title]] ** site1 | something ** site2 | something else

But that doesn't work.

What am I doing wrong? 46.237.238.54 (talk) 11:54, 24 August 2015 (UTC)

You can't. That's not supported for the sidebar in Vector nor Monobook skins. Ciencia Al Poder (talk) 14:15, 24 August 2015 (UTC)

About Help:Extension:Translate/Glossary

Hello here. It would be a huge advantage to the Glossary to see English original in translated versions. Maybe other glossaries if they exist have other sheme of tagging the page, I didn't look. But please. Translators will appreciate. Ата (talk) 13:57, 24 August 2015 (UTC)

Hello só you help me now?
o very much @Waynga Michael waynga 21:39, 24 August 2015 (UTC)

Problem with Extension:Flow

I'm trying to get Extension:Flow working on my test wiki. Other extensions on it include Semantic Wiki. I have run update.php. When I try to use a Flow-enabled page, I get the following error:

  • Query:
    SELECT * FROM `smw_flow_workflow` WHERE workflow_type = 'discussion' AND workflow_wiki = 'database_tla-tla_' AND workflow_namespace = '3' AND workflow_title_text = 'Username' ORDER BY workflow_id DESC LIMIT 1
  • Function: Flow\Data\Storage\BasicDbStorage::find (flow_workflow)
  • Error: 1146 Table 'database_tla.tla_flow_workflow' doesn't exist (localhost)

Since I've run update.php I'm not sure what causes this. Checking the update.php log it doesn't look like it's trying to add any tables for Flow. RDGGDR (talk) 21:54, 24 August 2015 (UTC)

I don't know, why the database table did not get created for you. If the extension is included properly, meaning: if it is listed on the wiki page Special:Version in your wiki, then running update.php also should add these tables.
For the 1.25 branch of MediaWiki these are the tables, which the extension needs:
https://git.wikimedia.org/blob/mediawiki%2Fextensions%2FFlow.git/576f7055056905c777262df735736d3d167ce59f/flow.sql
You can add them manually in your database, should they be missing! 88.130.115.36 (talk) 23:11, 24 August 2015 (UTC)
I can confirm that Flow DOES display on the Version page, but running update.php does NOT add tables. RDGGDR (talk) 18:18, 25 August 2015 (UTC)
I can also confirm that adding in the SQL, then including my database prefix, worked. Thank you, anonymous user! RDGGDR (talk) 18:43, 25 August 2015 (UTC)

Creating Page by Form

Hi all,

I'm a current Tiki Wiki user but was considering swapping over to Media Wiki. The main contention is whether mediawiki has a handy extension allowing one to build wiki pages via forms (so as to make a structured, pre-formatted page) instead of allowing users open reign. I've seen a variety of extensions I thought might could do this, but without really having my feet wet in mediawiki, I thought I might be chasing a wild goose.

Any suggestions as to particular extensions that might allow me to limit users to creating pages by form-fields?

Thanks,

J 68.119.83.109 (talk) 03:33, 25 August 2015 (UTC)

Maybe Extension:Semantic_Forms is what you're looking for? :) Florianschmidtwelzow (talk) 05:23, 25 August 2015 (UTC)
I think I had bumped into Semantic_Forms, but I was concerned it wouldn't give me the ability to limit users to only creating pages by those forms. I see that the extension has a how-to on linking to the forms and causing red-links to go to form pages, but as I understand from how mediawiki is setup, a user could still search for an uncreated page and then manage to get the typical creation box that way. Am I right that this is an issue/is there a work-around?
Thanks,
J 68.119.83.109 (talk) 12:19, 25 August 2015 (UTC)
I'm not sure, but there is a viewedittab right, that is added by SemanticForms. This wouldn't (if I understand it correctly) prevent a user from openening a title with ?action=edit, but the edit tab isn't shown anymore. Maybe you can open a task in phabricator to request a feature to limit a user to only edit via forms :) Florianschmidtwelzow (talk) 13:50, 25 August 2015 (UTC)
Thanks Florian,
I presume I couldn't just hard-write the edit page template without messing up the general infrastructure of mediawiki, could I? I'm used to Tiki where the CMS for the admin can be different from the end-users, but as I understand mediawiki's site admins run the same edit page options as the users so that would mess me up.
I suppose those I could run a permission extension that could block page edits for all non-admin users through the typical route, but I guess I'd have to ask semantic forms if that would block the forms page too.
-J 68.119.83.109 (talk) 00:38, 26 August 2015 (UTC)
I should verify, by the way, that a little further research shows I can get what I want through Extension:Semantic_Forms. It's even possible to have red links go to the form edit also, so it seems the only remaining quandry (as far as I know) is:
Is it possible to get rid of the "?action=edit" capability for non-admin users without breaking overall functionality?
An example site I'm finding helpful so far is:
http://www.mikomos.com
Thanks,
J 68.119.83.109 (talk) 01:17, 26 August 2015 (UTC)

User rights - specific pages

Hello,

Is-it possible to change the write permission for a specific page of my wiki with the localsettings file (bots : True - Users : False) ? The protection option doesn't allow bots to write on the page.

If so, how should you proceed ?

Thank you 109.208.83.70 (talk) 07:54, 25 August 2015 (UTC)

It's not possible in the LocalSettings.php, if I'm right, but you could use Manual:$wgRestrictionLevels to add new protection levels. Florianschmidtwelzow (talk) 10:07, 25 August 2015 (UTC)
Or allow bots to edit protected pages:
$wgGroupPermissions['bot']['editprotected'] = true; Ciencia Al Poder (talk) 17:33, 25 August 2015 (UTC)
But this would allow bots to edit _all_ protected pages :) Florianschmidtwelzow (talk) 19:55, 25 August 2015 (UTC)

Export/Import Templates from Mediawiki

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.


Hello,

I'm trying to export the template "Template:Welcome" from mediawiki.org (Special:Export, upper textfield) according to https://www.mediawiki.org/wiki/Help:Templates. It doesn't work. What's wrong? Are there any user-restrictions?

Thank you! Strike 65 (talk) 11:35, 25 August 2015 (UTC)

What do you mean by "it doesn't work"? It works for me [8] Ciencia Al Poder (talk) 17:31, 25 August 2015 (UTC)
Nothing happens... No download... I'm using Firefox 40, all scripts allowed. Strike 65 (talk) 18:54, 25 August 2015 (UTC)
So, you go to https://www.mediawiki.org/wiki/Special:Export, and in the large text field, you type "Template:Welcome", check off "Include Templates" and then click "Export" and nothing happens? MarkAHershberger(talk) 15:21, 26 August 2015 (UTC)
No. It was my fault. Now it works... Thanks for assistance! Strike 65 (talk) 12:58, 20 September 2015 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Upgrading to 1.25.2 - No update script?

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! I'm new with Mediawiki and I upgraded the Wiki from 1.23.2 to 1.25.2 via FTP client. After that the Wiki was still working without run the update script. Is that ok? 109.73.23.41 (talk) 12:32, 25 August 2015 (UTC)

Not really :) Running the update script takes care, that the actual used database schema represents the MediaWiki version you're using, including (but not limited to) adding and removing of tables, alter the structure of tables and so on. That your wiki works without running the update script, doesn't mean, that it will for any function a user may use in the future (e.g. it's possible that a special function (just an example!) like hide/unhide of revisions needs a database change and is now broken and will throw a database error when used). So, you should run the update script, even if it seems, that it isn't needed. Florianschmidtwelzow (talk) 13:55, 25 August 2015 (UTC)
okay, thank you! :) 2003:5F:6569:9A01:C4F4:86CE:5F82:452A (talk) 19:16, 25 August 2015 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Running update.php does not make any changes

I've run into a problem where running the update.php script from the command line doesn't make any changes. It doesn't add SQL for Flow, for example. It does sometimes try to add SQL (e.g. for Semantic MediaWiki) but not always. RDGGDR (talk) 18:33, 25 August 2015 (UTC)

What is the output when you run update.php? MarkAHershberger(talk) 15:17, 26 August 2015 (UTC)
No output at all, usually. RDGGDR (talk) 23:28, 26 August 2015 (UTC)
To clarify, you when you run update.php (assuming a *nix host), you see this:
$ php maintenance/update.php --quick
$
Is that what you see? MarkAHershberger(talk) 02:46, 27 August 2015 (UTC)
Maybe a fatal PHP error is happening but PHP error reporting level prevents displaying the error.
Add this to LocalSettings.php:
error_reporting( -1 );
ini_set( 'display_errors', 1 );
Also be sure you're executing php 5.3.3 or newer, execute php with --version to check that. If not, maybe the 5.3.3 version or newer is located on a non-standard path like /usr/bin/php53 or something Ciencia Al Poder (talk) 09:17, 27 August 2015 (UTC)
Thanks to getting back to me. I'm running PHP 5.4.44.
After enabling error reporting I get this:
Warning: require_once(/path/w/extensions/Flow/maintenance/../../Echo/includes/BatchRowUpdate.php): failed to open stream: No such file or directory in /path/w/extensions/Flow/maintenance/FlowFixLog.php on line 13
Fatal error: require_once(): Failed opening required '/path/w/extensions/Flow/maintenance/../../Echo/includes/BatchRowUpdate.php' (include_path='.:/usr/lib/php:/usr/local/lib/php:/usr/local/php54/lib/php') in /path/w/extensions/Flow/maintenance/FlowFixLog.php on line 13
I then installed Echo as an extension and update.php ran. Thank you! RDGGDR (talk) 23:00, 16 September 2015 (UTC)

how to place banner across top of vector skin?

Hello

I know very little about coding, and I've been unable to find an answer to the following online.

I've installed MediaWiki, and have added my logo to the top-left corner:

https://www.credulism.org/wiki/About

However, I'd prefer to use the larger version of the logo, on the above page, as the site logo, running along the top of the page, starting from the top-left corner, with the page content area therefore pushed down somewhat.

If I simply replace the current site logo with the larger version, then only a 160  x 160 pixel portion is shown in the top-left corner.

Does you know how can achieve what I want? As I said, I know very little about coding. 78.148.83.236 (talk) 21:26, 25 August 2015 (UTC)

I posted the above - I forgot to sign-in first. Derrickfarnell (talk) 21:30, 25 August 2015 (UTC)
You would have to use CSS. See my other reply to newer requests from you on this subject. We can help, but this isn't really the right place for us to teach you CSS. I suggest searching for "Introduction to CSS" or the like. MarkAHershberger(talk) 15:16, 26 August 2015 (UTC)

Can some help me please! Tribute to the Events of September 11

I am looking to add my uncial info to Wikipedia or if i have the wrong page

Info to be added from this link http://www.oobdoo.com/online/potpouri/music.htm

to this page https://en.wikipedia.org/wiki/List_of_songs_about_the_September_11_attacks

I do not want to make any mistakes . Randy Davidson (talk) 01:20, 26 August 2015 (UTC)

Hi, this Support desk is for questions and help about the MediaWiki software, not about a project of the WMF, like Wikipedia. You should ask your question on the discussion page of the Wikipedia page where you want to ad content to. You should, probably, read the help pages of the Wikipedia language version, too, to know, what content can be added and what not :) Florianschmidtwelzow (talk) 05:38, 26 August 2015 (UTC)

CloudTag, CategoryTag

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.


Hello,

I've just installed the last version of mediawiki for my service, i would like to index and cloudtag our data in the main page of our wiki like on this example :

https://semantic-mediawiki.org/wiki/Demo:Tagcloud/Template_and_the_tagcloud_sphere_widget

I'm new to the wiki community, i search all the extensions about cloudtagging, categorytagging, etc ....

But i haven't been able to obtain results.

Could someone be able to help me ?

Regards.

Olivier. 195.101.218.65 (talk) 08:35, 26 August 2015 (UTC)

To get a tagcloud like that one, you'll need to install Semantic MediaWiki. Since you're just starting out, I'd recommend using Semantic Bundle. MarkAHershberger(talk) 15:14, 26 August 2015 (UTC)
Thanks for this answer, i'll download it, install it and try the new options offered by this bundle. 195.101.218.65 (talk) 06:54, 27 August 2015 (UTC)
Thank you very much MarkAHershberger, i installed the semantic bundle ans have been able to add a 3d spherical tagcloud on my home page using a template. 195.101.218.65 (talk) 11:27, 27 August 2015 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Infobox company

Im Using Mediawiki on my localhost. i copied code from one of the article(company article)but im unable see infobox company details in correct format.please help me Shashankpratap (talk) 10:29, 26 August 2015 (UTC)

You probably need to export the infobox template from Wikipedia and/or the CSS styling used on it and import those into your wiki. MarkAHershberger(talk) 15:09, 26 August 2015 (UTC)

How do you change font size in the navigation sidebar?

Hi

I know very little about coding - can anyone provide explicit instructions about how to do the above?

I'd also like to be able to change the font size for the links in the top-right corner of the page, and along the top of the content area, and in the footer. Derrickfarnell (talk) 12:32, 26 August 2015 (UTC)

You can modify [[MediaWiki:Common.css]] on your site to change the styling of any element. As Malyacko said, you can use the developer tools of your browser to find which elements to style.
In my browser (firefox), for example, right clicking on "Tools" on https://www.credulism.org/wiki/About and then selecting "Inspect element" brings up the html code with <h3 id="p-tb-label">Tools</h3> highlighted. So if want to make "Tools" in the sidebar red, I would put the following in [[MediaWiki:Common.css]]:
#p-tb-label {color: red}
If you want to do more of this sort of thing, you're going to have to read up on CSS. I think http://www.csszengarden.com/ will give you an idea of what you can do. MarkAHershberger(talk) 15:03, 26 August 2015 (UTC)

How do you change the font of headings?

Hi

As stated in my previous post, I know very little about coding - can anyone provide explicit instructions about how to do the above for headings of any size? I want the heading font to match the sans-serif font of the article text. Derrickfarnell (talk) 12:37, 26 August 2015 (UTC)

Change the font style by customizing the CSS for the corresponding heading element(s). Any browser's developer tools ("inspecting elements") also allow you to quickly change CSS on the fly and see the results, for testing. Malyacko (talk) 12:39, 26 August 2015 (UTC)

Database query error

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.

Today I installed an old backup (jun/jul 2014) of mediawiki and imported an old db.

These are the versions I'm currently running:

MediaWiki 1.23.

PHP 5.5.9-1ubuntu4.11

MySQL 5.5.44-0ubuntu0.14.04.1

The problem is, that I always get an error if I try to save an article (new or edited) or delete an article. Something like "A database query error has occurred. This may indicate a bug in the software."

I already started the update script:

php update.php

in folder maintenance

(no errors occured)

Any tips or hints? 77.12.207.55 (talk) 12:57, 26 August 2015 (UTC)

I activated the full log for SQL errors and get this:
  • Query:
    DELETE FROM `categorylinks` WHERE cl_from = '14'
  • Function: LinksDeletionUpdate::doUpdate
  • Error: 1449 The user specified as a definer ('mediawiki_user'@'%') does not exist (localhost)
but that's not true! 77.12.207.55 (talk) 13:38, 26 August 2015 (UTC)
Dump:
#0 .../includes/db/Database.php(1123): DatabaseBase->reportQueryError('The user specif...', 1449, 'DELETE FROM `ca...', 'LinksDeletionUp...', false)
#1 .../includes/db/Database.php(2910): DatabaseBase->query('DELETE FROM `ca...', 'LinksDeletionUp...')
#2 .../includes/deferred/LinksUpdate.php(931): DatabaseBase->delete('categorylinks', Array, 'LinksDeletionUp...')
#3 .../includes/deferred/DataUpdate.php(101): LinksDeletionUpdate->doUpdate()
#4 .../includes/WikiPage.php(2837): DataUpdate::runUpdates(Array)
#5 .../includes/WikiPage.php(2803): WikiPage->doDeleteUpdates(14, Object(WikitextContent))
#6 .../includes/Article.php(1779): WikiPage->doDeleteArticleReal('Inhalt war: ???...', false, 0, true, '')
#7 .../includes/Article.php(1604): Article->doDelete('Inhalt war: ???...', false)
#8 .../includes/actions/DeleteAction.php(45): Article->delete()
#9 .../includes/Wiki.php(428): DeleteAction->show()
#10 .../includes/Wiki.php(292): MediaWiki->performAction(Object(Article), Object(Title))
#11 .../includes/Wiki.php(588): MediaWiki->performRequest()
#12 .../includes/Wiki.php(447): MediaWiki->main()
#13 .../index.php(46): MediaWiki->run()
#14 {main}
77.12.207.55 (talk) 13:45, 26 August 2015 (UTC)
I tried the following mysql command:
SELECT definer FROM mysql.proc WHERE db='mediawiki_db'
And get the following:
+---------------+
| definer       |
+---------------+
| mediawiki_b@% |
| mediawiki_b@% |
| mediawiki_b@% |
| mediawiki_b@% |
| mediawiki_b@% |
+---------------+
5 rows in set (0.00 sec)
77.12.207.55 (talk) 13:54, 26 August 2015 (UTC)
mediawiki_b@% is mediawiki_user@% sorry 77.12.207.55 (talk) 13:56, 26 August 2015 (UTC)
See MySQL:The user specified as a definer does not exist (error 1449)-Solutions ... Does this blog entry help? MarkAHershberger(talk) 14:48, 26 August 2015 (UTC)
Thank you. Your post wasn't the solution for my problem but it was nevertheless a good hint.
As I said I've imported an old backup in a new database with a new user and replaced the old user in the .sql file with the new user (also the DEFINER).
But the access to the db changed and I didnt noticed it.
So I'd to change all the '%' back to 'localhost', delete the imported database, import the .sql file again and now it works without any issues.
Thanks a lot! 95.114.208.160 (talk) 16:53, 27 August 2015 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

A phone number for Alluc.org

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 need the phone number to (Alluc.org)

I need to cancel the order I created how long I can use Alluc.org. I ordered the wrong package to watch movies. I wanted the free 7 day trial. I ordered the wrong pacjage, I wanted the free service for 7 days.

I ordered the wrong plan. by mistake I click on for the 6 month for $14.95. What I ordered was not $49.00 re-bill option.

I need the phone number for company for ALLUC.ORG. please cancel the $44.99 order. I need their phone number. This alluc.org making it hard to get number. NOT FAIR. send me a e-mail saying that you cancel that order.

Thanks,

Beverly jacobs

beverlyjacobs1@yahoo.com 98.248.115.70 (talk) 08:22, 27 August 2015 (UTC)

The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Redirect table

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.


Hello everybody!

Have question about Manual:Redirect table. Is the table data incomplete now, too? Or redirect table is fine now?

Also, there should be some updates for DB schema. There is at least one new table - wbc_entity_usage (related to Wikidata). Edgars2007 (talk) 09:09, 27 August 2015 (UTC)

I think the Manual on the Redirect table is fine.
Note that the page DB only lists database tables, which are related to the MediaWiki Core. It does not list tables of extensions. That entity_usage is not listed on that page, is correct. 88.130.101.177 (talk) 13:19, 27 August 2015 (UTC)
I think you misunderstood me. I'm talking about this note:
NOTE: as of August 2007, database dumps for Wikipedia and other Wikimedia projects as provided on http://download.wikimedia.org/ have incomplete data in this table: only redirect pages that have been created or edited recently are present. For older redirects, resort to using the pagelinks table.
My question was: what is the status of it currently - as of August 2015?
About wbc_entity_usage. OK, that seems normal, but where I could find, what DB tables are available for work at quarry? Edgars2007 (talk) 15:09, 27 August 2015 (UTC)
Since the note says that links after August 2007 will be there and that was eight years ago, I would expect the Redirect table to be almost 100% complete now. MarkAHershberger(talk) 15:01, 28 August 2015 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Code for special pages

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.


One more question...

Where I could find the SQL code for special pages, like UnconnectedPages? Edgars2007 (talk) 09:11, 27 August 2015 (UTC)

Possibly https://github.com/wikimedia/mediawiki-extensions-Wikibase/blob/348b4be090a0bd84b2a31ac2e3209c625e9cec99/client/includes/specials/SpecialUnconnectedPages.php#L121-L146 Florianschmidtwelzow (talk) 14:20, 27 August 2015 (UTC)
Thank you! Edgars2007 (talk) 15:01, 27 August 2015 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

New Gadget namespaces

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. Do we have any information regarding the use and working of the new Gadget and Gadget definition namespaces? Are gadgets suposed to be moved to such namespaces? I couldn't find any information about them. Thanks in advance. Best regards. —MarcoAurelio (talk) 11:17, 27 August 2015 (UTC)

Thanks for asking! I wasn't aware of these changes. I've asked Legoktm for information about this. Perhaps he'll respond here. MarkAHershberger(talk) 16:54, 27 August 2015 (UTC)
No, and you shouldn't be able to move anything into them anyway. See ticket Krenair (talkcontribs) 16:57, 27 August 2015 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

How to me to editing in Lurkmore if I am blocked for a year and a fast way?

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 was blocked for the silly message on Discussions, I want to correct but couldn't, someone from participants wants someone to evaporate my advantage. 109.60.221.58 (talk) 13:22, 27 August 2015 (UTC)

MediaWiki.org's Support Desk is not going to be able to help you with this request. You need to go to the website where you were blocked. MarkAHershberger(talk) 16:44, 27 August 2015 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

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.


Hello all. I have a mediawiki install running and when I try to use the External Link search, in the SPecial Pages (can be seen here):

http://vvikipedia.co/index.php?title=Special:LinkSearch

I get the following cryptic cryptic message:

Set $wgShowExceptionDetails = true; at the bottom of LocalSettings.php to show detailed debugging information.

The LocalSettings.php file has been altered but I have no idea how to debug the installation, I am very much a front end user. Does anyone know what could be causing this error?

Thank you very much. Cjcaesar (talk) 14:04, 27 August 2015 (UTC)

You say the LocalSettings.php file has been altered. I'll assume you altered it and changed it back because the "Set $wgShowExceptionDetails = true;..." message is there now.
When you add the line
$wgShowExceptionDetails = true;
as the last line in your LocalSettings.php file, what do you see? Can you paste the debug information here? MarkAHershberger(talk) 16:43, 27 August 2015 (UTC)
Ah. Thank you. OK So I took the # off the last line and this was the result that I got when clicking External Link Search under Special Pages:
Call to undefined method LinkSearchPage::getLanguage
Backtrace:
#0 .../includes/specials/SpecialLinkSearch.php(82): SpecialPage->__call('getLanguage', Array)
#1 .../includes/specials/SpecialLinkSearch.php(82): LinkSearchPage->getLanguage()
#2 .../includes/SpecialPageFactory.php(458): LinkSearchPage->execute(NULL)
#3 .../includes/Wiki.php(226): SpecialPageFactory::executePath(Object(Title), Object(RequestContext))
#4 .../includes/Wiki.php(626): MediaWiki->performRequest()
#5 .../includes/Wiki.php(533): MediaWiki->main()
#6 .../index.php(57): MediaWiki->run()
#7 {main}
I hope this helps. Thank you for your time, expertise and help. It is highly appreciated. Cjcaesar (talk) 17:56, 27 August 2015 (UTC)
I just noticed that you're running a very old MediaWiki. You should upgrade to at least the LTS which is MediaWiki 1.23. The version you're running (1.18) is unsupported.
If you don't want to upgrade, you can see if moving to a later version than 1.18.0 has fixed this bug. MarkAHershberger(talk) 18:16, 27 August 2015 (UTC)
Thanks for checking this out for me. So what you're telling me is that this bug is inherent to the software? The only option is to upgrade my version? Do I have any other options?
Thank you for your time. Just wary of upgrading. Cjcaesar (talk) 20:00, 27 August 2015 (UTC)
I understand you're wary of upgrading. I still recommend doing it.
But, yes, that is a bug and your only options are
You should be more wary of having an unmaintained and unpatched MediaWiki installation that could have open vulnerabilities Ciencia Al Poder (talk) 09:26, 28 August 2015 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

How to install Mediawiki using https?

Hello,

do I have just to use the install script on [https://.../[directory]/mw-config/index.php https://.../[directory]/mw-config/index.php]

About https and mediawiki I only find this old extension: Extension:HttpsLogin

Thank you.

PS: On my old mediawiki 1.24.2 I tried a redirect via htaccess from http to https, but got errors because mediawiki uses not only relative paths. Metathom (talk) 16:47, 27 August 2015 (UTC)

MediaWiki should work whether you use https or not. You probably need to set $wgServer to "//hostname/[directory]" or "https://hostname/[directory]" if you already have a LocalSettings.php or just start on the https url if you're trying to set this up. MarkAHershberger(talk) 16:59, 27 August 2015 (UTC)

Sending variables to javascript

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.


Hello,

I was wondering how to get variables from my PHP to the Mediawiki Javascript

When I set up my $wgResourceModules in my MyExtension.php file for example like this:

$wgResourceModules['ext.MyExtension' ] = array(

'scripts'  => array(

     

'js/ext.MyExtension.js',

     

),

   

'localBasePath' => __DIR__,

   

'remoteExtPath' => 'MyExtension',

);

$wgMyExtensionSomeVariable;

And then in the javascript file, I call the variable like this:

var = mw.config.get( 'wgMyExtensionSomeVariable' );

It doesn't work for me. Other code works fine. Is there something Im missing? Thanks :] 62.205.122.97 (talk) 19:18, 27 August 2015 (UTC)

You need the hook ResourceLoaderGetConfigVars Ciencia Al Poder (talk) 09:30, 28 August 2015 (UTC)
Thanks :] 143.169.146.62 (talk) 11:08, 28 August 2015 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Extension to add pages to user lists?

Is there an extension that can add pages to lists? Kind of like IMDb / YouTube.

You're on an article and have the option: "Add this page to a list" > Add to existing list(s) or "create a new list".

Use cases:

  • Pages I want to edit/fix
  • "Wanted images" I plan to create
  • Greece enquiry
  • My favorite gospel singers from the 20th century
  • My LOL list 2015 (whatever...)

Special:MyLists would output all lists with its items with the option to edit and delete the lists or items.

When you're on a page that is in one of your list, the list option indicates that this page is in one of your lists (and names the list).

This could of course also be done by extending the watchlist: Add an option to create sub lists of your watchlist. Subfader (talk) 09:51, 28 August 2015 (UTC)

There is no extension that I know of that does what you want. Perhaps someone could come up with a CategorizedWatchlist that would do this, though. It seems pretty straightforward. MarkAHershberger(talk) 14:57, 28 August 2015 (UTC)

How can I add that "Add pages from namespace" in Special:Export?

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 want to add that option just like it's there on this (Mediawiki.org) site.

I'm using Mediawiki 1.25.2. 1.38.16.235 (talk) 15:37, 28 August 2015 (UTC)

Set $wgExportFromNamespaces to true. MarkAHershberger(talk) 16:00, 28 August 2015 (UTC)
@MarkAHershberger Thanks a lot! :) 1.38.20.16 (talk) 16:56, 28 August 2015 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Images not accepting formatting parameters

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.


Just upgraded a server and moved my Wiki. All images are now not displaying formatted values such as right, thumb, caption, center, etc. For example if I enter [[File:Image1.png|center|border]], the image is displayed with default parameters. If implementing a thumb format, default as well. No wiki formatting for images seem to work. I am running Mediawiki 1.21.3. Unfortunately my Wiki is not on a public IP so I can't direct you to it. 63.97.247.130 (talk) 16:51, 28 August 2015 (UTC)

It's hard to imagine what happens... so you say if you use [[File:Image1.png|thumb]] the image is not right-aligned and instead it displays in line with the text?
Are just images or the whole wiki interface displays without styles applied? Ciencia Al Poder (talk) 13:33, 29 August 2015 (UTC)
just the images. images will not apply thumb, caption, right, etc.. All other wiki syntax seems to work properly 63.97.247.130 (talk) 15:34, 3 September 2015 (UTC)
Is it possible for you to point us to your wiki? MarkAHershberger(talk) 00:28, 6 September 2015 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Updating a Realy Realy old version (1.15)

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 would like to update my local wiki to the most up-to-date version. The majority of the webpages on this topic I found were for version much newer than mine. Can this level of upgrade even be done? I have quite a bit of information that I don't want to manually re-enter.

MediaWiki 1.15.1
PHP 5.3.2-1ubuntu4.30 (apache2handler)
MySQL 5.1.73-0ubuntu0.10.04.1

My wiki is local. I don't have a link for anyone to follow.

Thank you very kindly for your help. Jessemcternan (talk) 21:41, 28 August 2015 (UTC)

Hi Jesse!
Yes, what you want is possible.
It is important that you make sure you have a working backup of your wiki: The database and the files. Put that on an external disk, unplug it and keep it far away from your actual computer. After that you can try the upgrade and you won't loose anything, should you screw up.
Here is a complete guide on how to upgrade: Upgrade!
If you have further questions, do not hesitate to ask! 88.130.95.230 (talk) 23:58, 28 August 2015 (UTC)
Hi! First: Good decision to upgrade, MediaWiki 1.15 is already unsupported for a long time :P
You should following the Upgrade tutorial when upgrading. In the FAQ section you'll find a question "How do I upgrade from a really old version? In one step, or in several steps?" :) If you have any specific problem when upgrading, feel free to ask here!
Btw.: You should really really do a backup, it's always possible, that data will be lost after or during an upgrade, even if the last 999 upgrades went fine :)
Please remember, that the latest MediaWiki version needs at least PHP 5.3.2, so you have to upgrade your php version, too. Florianschmidtwelzow (talk) 00:11, 29 August 2015 (UTC)
Please remember, that the latest MediaWiki version needs at least PHP 5.3.2, so you have to upgrade your php version, too.
Oh, that's right and not right at the same time. :-) MediaWiki 1.25 in fact needs PHP 5.3.3 at least. That means, if Jesse wants to upgrade to 1.25, he will in fact need to upgrade PHP as well. I missed that. However, according to Compatibility#PHP, MediaWiki 1.24 will work nicely also with PHP 5.3.2.
So for MediaWiki 1.25, a PHP upgrade would be necessary. MediaWiki 1.25 is working nicely also on newer PHP versions; e.g. for Ubuntu, PHP 5.5 is available. This version can be used to run MediaWiki on it. 88.130.95.230 (talk) 11:39, 29 August 2015 (UTC)
> to the most up-to-date version
:D :P But you're right, 1.24 would work :) Florianschmidtwelzow (talk) 13:32, 29 August 2015 (UTC)
UPDATE (and thanks for your support so far):
- I backed up my config files, extensions, and images
- I then updated to Ubuntu 12 (from 10). The wiki was still working!
- Then (curse my brash impatience) I updated to Ubutnu 14
Now, the wiki is not found, "Not Found  The requested URL /mediawiki/ was not found on this server."
Any suggestions? I should have stayed with Ubuntu 12...
-
My current Setup:
PHP 5.5.9-1ubuntu4.12
mysql  Ver 14.14 Distrib 5.5.44, for debian-linux-gnu (x86_64) using readline 6.3
Apache/2.4.7 (Ubuntu) Jessemcternan (talk) 20:43, 1 September 2015 (UTC)
Hi!
I guess the Ubuntu upgrade has also upgraded the Apache webserver, right? In that case, I think that something in the server configuration is missing now... Maybe the webroot is pointing to a wrong path now or a virtual host configuration (I don't know if you used one in your old Ubuntu version) is missing. 88.130.117.48 (talk) 22:21, 1 September 2015 (UTC)
UPDATE (Good news)
- My local wiki is running again after updating to Ubuntu 14
- Apache was also updated, which caused configuration problems
- phpmyadmin is simply gone now! The folder is not on my comp anymore...
So, I backed up my database using mysqldump. I also backed up config files, extensions, and images.
Any other things recommended before attempting the upgrade?
Thank you all very much.
Current Version
MediaWiki
1.15.1
PHP
5.5.9-1ubuntu4.12 (apache2handler)
MySQL
5.5.44-0ubuntu0.14.04.1 Jessemcternan (talk) 15:11, 4 September 2015 (UTC)
You should be good to go. MarkAHershberger(talk) 15:24, 4 September 2015 (UTC)
If you used a custom skin, which does by default not come with MediaWiki, then you should backup that skin as well.
Apart from that, you should have everything you need. 88.130.69.182 (talk) 15:36, 4 September 2015 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Images only indexed as thumbnails by search engines

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.


Hello,

Untill 12 months (or so) ago our wikis, like http://middelburgdronk.nl/ were indexed just fine by Google and other search engines. Especially the indexing of the historical pictures worked very good. But then suddenly something changed and I just can't figure out what. All (20K) images are still indexed, but only the thumbnails. E.g: https://www.google.nl/search?q=Ringrijders+op+de+Markt+in+Middelburg,+juli+1963.+Op+de+achtergrond+het+gebouw+van+soci%C3%ABteit+De+Vergenoeging.&safe=off&es_sm=93&source=lnms&tbm=isch&sa=X&ved=0CAcQ_AUoAWoVChMI9vTK8YHNxwIVyD7bCh1k5win&biw=1600&bih=731#imgrc=xvkTH9qMLPIimM%3A, while we would like Google c.s. to find this: http://middelburgdronk.nl/wiki/Bestand:Ringrijders_Markt_Middelburg_juli_1963.PNG

I'm not the technical admin, but still: the main content manager. Does anyone here knows what prevents the crawlers from indexing the uploaded images themselves? Thanks in advance!

Mijns (talk) 00:28, 29 August 2015 (UTC)
Your robots.txt file is looking good. 88.130.95.230 (talk) 11:42, 29 August 2015 (UTC)
This may be a problem of how google rank those full-sized images because being 2-click-away from where are they used. See T54647 where this problem is discussed. Ciencia Al Poder (talk) 12:58, 29 August 2015 (UTC)
Thanks! Mijns (talk) 06:24, 30 August 2015 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Check if a project does backup deleted revisions

Hi. At m:Meta:Deletion policy there's an old warning that Meta does not backup deleted revisions. I'd like to confirm if that's still true so I can remove such warning from the policy. Thank you. —MarcoAurelio (talk) 09:45, 29 August 2015 (UTC)

I don't know the answer, but the note reads:
Note that Meta-Wiki does not back up deleted revisions, and they may be lost in the event of a serious server failure.
If Meta uses the same user interface options as every wiki else, then deleted revisions do stay in the database. If they did not, they would no longr be restorable and the same note also states that admins do have the possibility to restore deleted revisions.
What I could think of is this: When a revision gets deleted, its revision information is internally moved to the database table "archive". Revisions from that table will still be restorable just as usual. If however, during the creation of backups this table is excluded, then the information would be lost, if a backup was used.
If the backup script still excludes the archive table today, is what I don't know. Aren't the database dumps available somewhere? Looking into them should help clear that up... 88.130.95.230 (talk) 11:31, 29 August 2015 (UTC)

Error 403 with Images

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.


Wiki Link: http://wiki.dracadia.com/index.php?title=Main_Page

Wiki Version: 1.23.9 (pretty sure, was installed via QuickInstall from HostGator)

Problem: Image Uploads is turned on, I can upload images with no problem. However they are displaying as broken images, not viewing properly. From what I was told, it's some where in the .htacess file but I have no idea what It should be saying or what I need to add/change on it to make this problem remedy itself. Strifefox (talk) 14:05, 29 August 2015 (UTC)

I've looked some pages with images and they work fine. Is the issue resolved? Marking as such, reopen if not Ciencia Al Poder (talk) 17:10, 30 August 2015 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

All Rights for Systems Admin?

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.


Just started a mediawiki here, and I wanted to add a new user group for myself as the site-developer so I could fine-tune bureaucrats and sysops a bit more (while not leaving my own rights vulnerable-- for instance, no one could remove my rights). When I define that new user group, is there any way I can open up all rights in one code line instead of having to manually add in every individual right?

-J 68.119.83.109 (talk) 21:07, 29 August 2015 (UTC)

I think (haven't tested) that if you create a super-user group and then put yourself in it, you should be able to then restrict other groups as you need to.
You would create the super user group first by putting this at the top of your LocalSettings.php:
$wgGroupPermissions['SuperUser'] = array_merge( $wgGroupPermissions['sysop'],
                                                                         $wgGroupPermissions['bureaucrats'] );
Once you've done that go put yourself in the SuperUser group. Then, using your [[Special:ListGroupRights]] and Manual:User rights, restrict the rights of sysops and bureacrats. MarkAHershberger(talk) 19:47, 30 August 2015 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

mediawiki 1.16.0 patch issue

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've installed 1.16.0.

After moving LocalSettings.php and navigating to the homepage, I get many rows of the following error:


Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /home/acemedia/public_html/includes/MagicWord.php on line 722

Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /home/acemedia/public_html/includes/MagicWord.php on line 722

I've googled and seen the mediawiki-1.16.0.patch file and attempted to run it in ssh, but nothing happens. Can someone please help?

Project Story:

I am migrating my client's 1.16.0 to wordpress. Unfortunately, they've only given me a database dump file of their 1.16.0 installation and I have to install the site on my own server so I can migrate it using a migration tool by cms2cms since its the only service online that advertises they can do it. I have installed 1.16.0 on two separate servers, but i keep getting this error. 96.51.0.200 (talk) 07:34, 30 August 2015 (UTC)

BTW, I just ran \maintenance\update.php but i still get the same issue. Ksrosales (talk) 07:40, 30 August 2015 (UTC)
See also Project:Support desk/Flow/2013/12#h-&#91RESOLVED]_MediaWiki_don't_work_with_PCRE_8.34-2013-12-18T13:15:00.000Z Shirayuki (talk) 08:21, 30 August 2015 (UTC)
Hi @Shirayuki,
I've seen that thread and have it open in one of my tabs. I see their situation is different because their PCRE version is different.
Also, the patch files in that thread are dead links.
My Setups:
I have two installations, running:
A) PHP Version 5.4.43, PCRE 8.37, MySQL 5.5.42-37.1 www.acemedia.ca
B) PHP Version 5.2.6, PCRE 7.6, MySQL 5.0.51a www.kabayan.ca
Both installations are giving me the same error.
With site A,
- I ran the 1.16.0 patch by using the command, "patch -p1 -i mediawiki-1.16.0.patch" but nothing happened - did I do this incorrectly?
- Also, I ran "php update.php" in the maintenance directory but did nothing - did I do this incorrectly?
With site B, I did nothing... yet.
What should I do next? Ksrosales (talk) 14:35, 30 August 2015 (UTC)
You should upgrade to a supported version of MediaWiki. 1.16 hasn't been supported for a while. MarkAHershberger(talk) 19:32, 30 August 2015 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

'Anti-Habsburg defamation online' = breaches against 'The Online Defamation Law'

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.


Hello, dear Wikipedia team...

I happened to have noticed that people seem to spread 'anti-Habsburg propaganda' into Wikipedia that happened to originate from the German/Austrian-Hungarian period post 1914 - 1945, when national socialism and anti-semitism was on the rise - by simply spreading unverified 'libel'. There has been historic attempts to 'erase' or 'vilify' the descendants of the Habsburg lineage (see 'Habsburg Law' April 1914, only in the 80ies being admitted of having been 'inhumane' as 'human rights infringing'. But now some people are passing this 'historic vile' that originated post 1914 into the Nazi regime onto online. By copying without common sense nor critical thinking from 'historic sources' of this 'delicate period' that has been highly 'manipulated' by two war machineries and ideologies.

When I try to put an 'historical spin doctor alert' on these pages I happen to notice, that your Clue Bot Ng sends me automatic messages.

This is the problem of 'open source' and statements been blindly copied. Historical propaganda wrongfully enters now the online domain - so that this malevolent spin repeats itself AGAIN.

What's wikipedia's stance to this? Do you want to repeat the 'pre-era' that led us into WW2 by helping to spread such wrong historical propaganda?

Is that the ethically right thing to do, to post untruth about people that once have shaped European history?

As being one of those people having donated to you repeatedly to keep this site up and running, may I now object such unnoble conduct for being against the 'Online Defamation Law'??

Warmest regards,

Dougie Lionheart DougieLionheart (talk) 09:44, 30 August 2015 (UTC)

Hi Dougie,
this page is the MediaWiki support desk. It is made for technical help with the MediaWiki software, the software used to run wikis like Wikipedia. We are however not responsible for nor could we change any content in any Wikmedia Foundation wiki.
I propose you check the policies of the according Wikipedia language to see, what sources are regarded as being reliable and to see what the process in case of false-information or contradicting information is. 88.130.123.213 (talk) 11:40, 30 August 2015 (UTC)
I have now checked your contributions. The actions of ClueBot were correct.
Edits like this one are infact not what is wanted for Wikipedia. It does not become clear, what you in fact want to change. It does not become clear, which detail you believe would be wrong. That way this is only vandalism.
A good contribution is based on reliable sources, which prove that what the contributions claims, is right. Since you have already been warned three times by now, I strongly recommend to first post on a discussion page, before you edit an article. With another bad article edit, you risk becoming blocked. 88.130.123.213 (talk) 11:46, 30 August 2015 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Internal linking to "Page history"?

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.


Hello,

usually I have no problem to link "to a Wiki page".

But how to link internal to "Page history"? E.g.

https://en.wikipedia.org/w/index.php?title=CPU_cache&action=history

Is this only possible via external link?

Thank you. Metathom (talk) 12:23, 30 August 2015 (UTC)

[{{fullurl:Page name here}}|action=history}} Link title goes here]
If you intend on using this on templates, you might want to use the magic word {{PAGENAMEE}} as the parameter to the fullurl: call. Jack Phoenix (Contact) 13:13, 30 August 2015 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Reinstalling Gnucash

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 recently had to wipe my hard drive, & reinstall everything. I use Windows 8. I backed everything up using File History. I have reinstalled Gnucash but can't get my files back. Have I lost them forever, or how do I get them back? I am a non-technical personal user. Please e-mail rwhimster@gmail.com, or call 519-661-9111. I don't know how else to contact you. Thanks, Robin Whimster. 64.231.144.3 (talk) 20:19, 30 August 2015 (UTC)

Hi Robin!
Let me repeat what I have already answered in your other thread yesterday:
You have found the Support Desk of the MediaWiki software. MediaWiki is a software used to run wikis like Wikipedia. We are not related with the gnucash financial software and we cannot help you with it.
Please ask in a gnucash forum for help! 88.130.108.16 (talk) 20:54, 30 August 2015 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Why can I hidetopics, but not mark them as resolved?

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.


When a topic has been finished, it should be set to "resolved". However, I currently do not see a button to do so. I can "hide" a topic, but it seems like this is more for spam issues? Like: I do not want to see it again, put it out of sight. This is what I have then done in the past (as I could not hide it) with the result that people obviously did no longer see the topic and the answers so that they posted the same thing again.

It would be great, if this could still be fixed! 88.130.80.141 (talk) 17:11, 31 August 2015 (UTC)

You aren't logged in, so you can't mark them resolved. If you were logged in, you'd need to be a sysop. MarkAHershberger(talk) 22:50, 31 August 2015 (UTC)
Also see https://www.mediawiki.org/wiki/Special:ListGroupRights MarkAHershberger(talk) 22:51, 31 August 2015 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Why can I hide topics, but not mark them as resolved?

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.


When a topic has been finished, it should be set to "resolved". However, I currently do not see a button to do so.

I can only "hide" a topic, but it seems like this is more for spam issues. Like: "I do not want to see it again, put it out of sight." This is what I have then done in the past (as I could not mark it as resolved) with the result that people obviously did no longer see the topic and the answers so that they posted the same thing again.

It would be great, if this could still be fixed! 88.130.80.141 (talk) 17:13, 31 August 2015 (UTC)

Dang! I replied here. MarkAHershberger(talk) 22:54, 31 August 2015 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Can't upload images from Windows 7 client to Ubuntu wiki host

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.


It seems like it's some sort of permissions issue. I get the follow error:
[2f0f4450] /mediawiki/index.php/Special:Upload MWException from line 1856 of .../includes/filerepo/file/LocalFile.php: Could not acquire lock for 'Stephenw_lake640.jpg.'
Backtrace:
#0 .../includes/filerepo/file/LocalFile.php(1148): LocalFile->lock()
#1 .../includes/upload/UploadBase.php(715): LocalFile->upload(string, string, string, integer, array, boolean, User)
#2 .../includes/specials/SpecialUpload.php(476): UploadBase->performUpload(string, string, boolean, User)
#3 .../includes/specials/SpecialUpload.php(195): SpecialUpload->processUpload()
#4 .../includes/specialpage/SpecialPage.php(384): SpecialUpload->execute(NULL)
#5 .../includes/specialpage/SpecialPageFactory.php(582): SpecialPage->run(NULL)
#6 .../includes/MediaWiki.php(267): SpecialPageFactory::executePath(Title, RequestContext)
#7 .../includes/MediaWiki.php(566): MediaWiki->performRequest()
#8 .../includes/MediaWiki.php(414): MediaWiki->main()
#9 .../index.php(41): MediaWiki->run()
#10 {main}
I'm running Windows 7 and get the same error whether I use Google Chrome or Internet Explorer.
The file I'm trying to upload is a 640 wide jpeg image.
MediaWiki is installed on a Linux Ubuntu server and apart from not being able to upload images has been working great.
My /var/www/html/images director is owned by www-data and has drwxr-xr-x permissions.
My /var/www/html/mediawiki/LocalSettings.php file has:
$wgEnableUploads = true;
My php.ini file has uploads enabled.
I'm guessing that the PHP script running on the Ubuntu server is failing to get some sort of permission either on the Ubuntu server or the Windows 7 PC.
I'm not sure what else to try.
Any and all help is greatly appreciated!
Thanks,
Stephen White Coderbynature (talk) 22:51, 31 August 2015 (UTC)
You don't say what version of MW you're using -- that might help.
I'm pretty sure this has nothing to do with Windows, although you didn't indicate if you could upload from any other system.
I was going to tell you to turn on the debug log but the code doesn't look like it has any good debugging statements.
So, as a last resort, I'll ask you to turn on PHP errors and see if any are reported. MarkAHershberger(talk) 23:21, 31 August 2015 (UTC)
Doh! Sorry, I'm using MediaWiki 1.25.1. Coderbynature (talk) 23:49, 31 August 2015 (UTC)
Warning: failed to mkdir "/var/lib/mediawiki/images/lockdir" mode 0777
[Called from wfMkdirParents in /var/lib/mediawiki/includes/GlobalFunctions.php
at line 2540] in /var/lib/mediawiki/includes/debug/MWDebug.php on line
300
Warning:
fopen(/var/lib/mediawiki/images/lockdir/f00smt22fqj94kquid3mc8ueuj5nipj.lock):
failed to open stream: No such file or directory in
/var/lib/mediawiki/includes/filebackend/lockmanager/FSLockManager.php on
line 125
Warning: failed to mkdir
"/var/lib/mediawiki/images/lockdir" mode 0777 [Called from wfMkdirParents in
/var/lib/mediawiki/includes/GlobalFunctions.php at line 2540] in
/var/lib/mediawiki/includes/debug/MWDebug.php on line
300
Warning:
fopen(/var/lib/mediawiki/images/lockdir/f00smt22fqj94kquid3mc8ueuj5nipj.lock):
failed to open stream: No such file or directory in
/var/lib/mediawiki/includes/filebackend/lockmanager/FSLockManager.php on
line 125
Warning: failed to mkdir
"/var/lib/mediawiki/images/lockdir" mode 0777 [Called from wfMkdirParents in
/var/lib/mediawiki/includes/GlobalFunctions.php at line 2540] in
/var/lib/mediawiki/includes/debug/MWDebug.php on line
300
Warning:
fopen(/var/lib/mediawiki/images/lockdir/f00smt22fqj94kquid3mc8ueuj5nipj.lock):
failed to open stream: No such file or directory in
/var/lib/mediawiki/includes/filebackend/lockmanager/FSLockManager.php on
line 125
Warning: failed to mkdir
"/var/lib/mediawiki/images/lockdir" mode 0777 [Called from wfMkdirParents in
/var/lib/mediawiki/includes/GlobalFunctions.php at line 2540] in
/var/lib/mediawiki/includes/debug/MWDebug.php on line
300
Warning:
fopen(/var/lib/mediawiki/images/lockdir/f00smt22fqj94kquid3mc8ueuj5nipj.lock):
failed to open stream: No such file or directory in
/var/lib/mediawiki/includes/filebackend/lockmanager/FSLockManager.php on
line 125
Warning: failed to mkdir
"/var/lib/mediawiki/images/lockdir" mode 0777 [Called from wfMkdirParents in
/var/lib/mediawiki/includes/GlobalFunctions.php at line 2540] in
/var/lib/mediawiki/includes/debug/MWDebug.php on line
300
Warning:
fopen(/var/lib/mediawiki/images/lockdir/f00smt22fqj94kquid3mc8ueuj5nipj.lock):
failed to open stream: No such file or directory in
/var/lib/mediawiki/includes/filebackend/lockmanager/FSLockManager.php on
line 125
Warning: failed to mkdir
"/var/lib/mediawiki/images/lockdir" mode 0777 [Called from wfMkdirParents in
/var/lib/mediawiki/includes/GlobalFunctions.php at line 2540] in
/var/lib/mediawiki/includes/debug/MWDebug.php on line
300
Warning:
fopen(/var/lib/mediawiki/images/lockdir/f00smt22fqj94kquid3mc8ueuj5nipj.lock):
failed to open stream: No such file or directory in
/var/lib/mediawiki/includes/filebackend/lockmanager/FSLockManager.php on
line 125
Warning: failed to mkdir
"/var/lib/mediawiki/images/lockdir" mode 0777 [Called from wfMkdirParents in
/var/lib/mediawiki/includes/GlobalFunctions.php at line 2540] in
/var/lib/mediawiki/includes/debug/MWDebug.php on line
300
Warning:
fopen(/var/lib/mediawiki/images/lockdir/f00smt22fqj94kquid3mc8ueuj5nipj.lock):
failed to open stream: No such file or directory in
/var/lib/mediawiki/includes/filebackend/lockmanager/FSLockManager.php on
line 125
Warning: failed to mkdir
"/var/lib/mediawiki/images/lockdir" mode 0777 [Called from wfMkdirParents in
/var/lib/mediawiki/includes/GlobalFunctions.php at line 2540] in
/var/lib/mediawiki/includes/debug/MWDebug.php on line
300
Warning:
fopen(/var/lib/mediawiki/images/lockdir/f00smt22fqj94kquid3mc8ueuj5nipj.lock):
failed to open stream: No such file or directory in
/var/lib/mediawiki/includes/filebackend/lockmanager/FSLockManager.php on
line 125
Warning: failed to mkdir
"/var/lib/mediawiki/images/lockdir" mode 0777 [Called from wfMkdirParents in
/var/lib/mediawiki/includes/GlobalFunctions.php at line 2540] in
/var/lib/mediawiki/includes/debug/MWDebug.php on line
300
Warning:
fopen(/var/lib/mediawiki/images/lockdir/f00smt22fqj94kquid3mc8ueuj5nipj.lock):
failed to open stream: No such file or directory in
/var/lib/mediawiki/includes/filebackend/lockmanager/FSLockManager.php on
line 125
Warning: Cannot modify header information -
headers already sent by (output started at
/var/lib/mediawiki/includes/filebackend/lockmanager/FSLockManager.php:125) in
/var/lib/mediawiki/includes/WebResponse.php on line
37
Warning: Cannot modify header information - headers
already sent by (output started at
/var/lib/mediawiki/includes/filebackend/lockmanager/FSLockManager.php:125) in
/var/lib/mediawiki/includes/WebResponse.php on line
37
Warning: Cannot modify header information - headers
already sent by (output started at
/var/lib/mediawiki/includes/filebackend/lockmanager/FSLockManager.php:125) in
/var/lib/mediawiki/includes/WebResponse.php on line
37
Warning: Cannot modify header information - headers
already sent by (output started at
/var/lib/mediawiki/includes/filebackend/lockmanager/FSLockManager.php:125) in
/var/lib/mediawiki/includes/WebResponse.php on line 37 Coderbynature (talk) 23:56, 31 August 2015 (UTC)
The permissions on /var/lib/mediawiki/images are drwxrwxr-x. The ownership is stephenw stephenw. The only thing in that directory is a README file. Coderbynature (talk) 00:11, 1 September 2015 (UTC)
What should the owner of the images directory be set to? I've Google searched around and got different answers such as www-data or apache. How can I tell which one is the appropriate one? Coderbynature (talk) 00:21, 1 September 2015 (UTC)
I should also mention that the jpg file is located on a local drive (D:) of the Windows 7 PC. And both the Windows 7 PC and the Ubuntu server are on the same local network. Samba is also running on the Ubuntu server and the Windows 7 PC can connect to the Samba shares just fine. Coderbynature (talk) 22:54, 31 August 2015 (UTC)
RESOLVED: I did the following and I can now upload the image:
sudo chown www-data:www-data -R /var/lib/mediawiki/images Coderbynature (talk) 00:26, 1 September 2015 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Table of Contents span full page width

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.


How can I edit it to be smaller?

Here's how the TOC looks on my wiki:

http://i.imgur.com/DWVpm2Q.png

Here's how it looks on wikipedia:

http://i.imgur.com/QHKAync.png

I'd like to make my TOC's generate like those in wikipedia. Vapblack (talk) 22:55, 31 August 2015 (UTC)

You don't mention what version of MediaWiki you're using or what skin, but, in any case, you can edit [[MediaWiki:Common.css]] on your site to include the following:
.toc, #toc {display: table;}
MarkAHershberger(talk) 23:07, 31 August 2015 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.