Project:Support desk/Flow/2016/09
| This page used the Structured Discussions extension to give structured discussions. It has since been converted to wikitext, so the content and history here are only an approximation of what was actually displayed at the time these comments were made. |
| This page is an archive. |
| Please ask questions on the current support desk. |
Adding CSS classes to user groups
Is it possible to add a CSS class or an id for example to the user page links of those users within a specific user group(e.g.: sysops)? Innosflew (talk) 09:26, 1 September 2016 (UTC)
- No, because then any change to user rights would have to purge all pages that link to a user. There is however a user script, that does something like this: https://en.wikipedia.org/wiki/User:Ais523/adminrights —TheDJ (Not WMF) (talk • contribs) 09:55, 1 September 2016 (UTC)
Account Request Issue
Hi there! I hope I'm posting this in the right place. I should preface this by saying: I know next to nothing about coding or formatting or PHP and CSS or anything like that. What I do know is self-taught, and I can make it work (usually) but I'm going to need help in the most layman-esque terms possible!!!
A forum I am a member of uses MediaWiki for their Wiki pages, but when new accounts are requested, we get the following error:
A database query error has occurred. This may indicate a bug in the software.
- Query: INSERT INTO `account_requests` (acr_id,acr_name,acr_email,acr_real_name,acr_registration,acr_bio,acr_notes,acr_urls,acr_type,acr_areas,acr_filename,acr_storage_key,acr_comment,acr_ip,acr_xff,acr_agent,acr_deleted,acr_email_token,acr_email_token_expires) VALUES (NULL,'Ellietest','ellietest@gmail.com','','20160901132919','','','','0','',NULL,'elletu_wiki:acctrequest:ip:109.145.152.241','','109.145.152.241','','Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36','0','625dc07aadd87c6f787eaadeaff30d39','20161001132919')
- Function:
UserAccountRequest::insertOn - Error: 1054 Unknown column 'acr_xff' in 'field list' (localhost)
The admin has given me access to the HostGator cPanel, which I believe has most of the Wiki stuff on there, but I've got no idea where to start! Any help would be very gratefully received.
Many thanks
Ellie 109.145.152.241 (talk) 13:37, 1 September 2016 (UTC)
- Your query is trying to use the column acr_xff inside the database table account_requests. However, this column is missing.
- This database table gets added by Extension:ConfirmAccount, which you are using obviously.
- Looking into the souce code repository shows that the column acr_xff got added after the table had already been there. Maybe you have forgotten to run update.php from the shell in order to update that table?
- If running the update.php script cannot fix it, then it might help to manually add any missing columns to the database. A complete overview of what should be there is here:
- https://github.com/wikimedia/mediawiki-extensions-ConfirmAccount/blob/5ab6646f1d1eb1ae5d8021f9034b5f359a6b9caa/backend/schema/mysql/ConfirmAccount.sql 87.123.51.145 (talk) 14:01, 1 September 2016 (UTC)
- Everything that should be there is there, so will try running an update! Thank you! 109.145.152.241 (talk) 14:13, 1 September 2016 (UTC)
- No, at least column acr_xff is not there... 87.123.51.145 (talk) 14:41, 1 September 2016 (UTC)
Does mediawiki redirect to the page from which they come from after relogin
Hi,
I have mediawiki 1.26.2 with saml authentication going to okta.
Is there a default session timeout for a mediawiki page?
We have an issue where an inactive session requires re-login through okta and after re-logging in, it goes back to the home page and does not redirect back to the page where they come from.
We are exploring options to increase session timeout for a mediawiki page as well as how to redirect back to the page where they come from after re-logging in. Please let us know if there is an option to do these tasks.
Thanks You,
J 38.125.198.194 (talk) 14:25, 1 September 2016 (UTC)
account dissapears
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, this is the third time I have made the same account since yesterday. I did a few adds, just basic information, and suddenly I cannot log-in and Wikitravel doesn't recognise my e-mail, username or password. In fact, I have been using the same username, password and e-mail for all the times I registered. I want to be able to keep my account and use it for more than 10 minutes without it deleting itself. I enabled my cookies, turned off adblock right before creating the account this time. Can anyone give some tips on how to fix the problem or will the cookie and adblock already do the trick? MegaMgala (talk) 17:44, 1 September 2016 (UTC)
- Is http://wikitravel.org/wiki/de/index.php?title=Spezial%3ALogbuch&type=newusers&user=&page=&year=&month=-1&tagfilter=&hide_tag_log=1 the wiki you are talking about? It in fact does not list any new users apart from the one new account on August 30th.
- However, please tell us the wiki URL and the usernames, which you created (or you thought you created)! 87.123.51.145 (talk) 18:39, 1 September 2016 (UTC)
- Hi, suddenly it started working. It was very strange but since the last time I made the account, it hasn't erased me yet. Thank you. MegaMgala (talk) 14:53, 12 September 2016 (UTC)
restore wiki from mediawiki folder
Hi I lost my wiki and did not do a backup of the DB. However I have a copy of the mediwiki folder and I was wondering if is there a way to restore, even partially the info of my site. My wiki was pretty simple with just a few pages.
Regards Dtorresrangel12 (talk) 18:43, 1 September 2016 (UTC)
- Hmm, possibly:
- Usually the complete content is inside the database. With the DB present it would be a walk in the park.
- Without it you would have to somehow gather bits and pieces:
- If you had the wiki configured to cache the wiki pages as HTML, then chances are that HTML versions of your wiki pages are inside the cache/ folder in your mediawiki folder.
- Another option would be to use another archive to help restore your content, e.g. Google has a webcache und there is archive.org, a big internet archive. Maybe these pages still have cached versions of your pages?
- Possibly you still have some pages cached anywhere on your PC? E.g. inside your browser cache? I currently don't know how to extract the stuff from there, but maybe there is something in there. 87.123.51.145 (talk) 18:54, 1 September 2016 (UTC)
- If your wiki is tracked in https://wikiapiary.com/ it may have been archived by the WikiTeam of archive.org, and the page about the wiki display a link to the archived pages Ciencia Al Poder (talk) 10:48, 2 September 2016 (UTC)
Deletion of the user account.
This software has an option where the user can delete his account after not using it? Analisador (talk) 20:25, 1 September 2016 (UTC)
- See previous threads on this page. Project:Support desk/Flow/2012/01#h-[RESOLVED]_How_i_can_delete_User?-2012-01-08T05:05:00.000Z , Project:Support desk/Flow/2012/06#c-88.130.108.248-2012-06-18T10:11:00.000Z-Chihonglee-2012-06-18T08:11:00.000Z Malyacko (talk) 14:30, 2 September 2016 (UTC)
REMOTE_USER auto-login with AuthManager
The authentication mechanism has been revamped in version 1.27 of MediaWiki (it now uses AuthManager instead of AuthPlugin). Can you provide any tips on how one could go about re-spinning the Extension:Auth_remoteuser auto-login feature using $_SERVER['REMOTE_USER'] ? Fstarnaud (talk) 21:40, 1 September 2016 (UTC)
What is controlling Special:PermaLink on enwp?
I noticed in this log entry that there is a link to "Special:PermaLink/737212936".
I was wondering what extension is this (if any) and what the number means. NeedAGoodUsername (talk) 23:32, 1 September 2016 (UTC)
- This is part of recent versions of MediaWiki (I don't know when it was introduced). The number is the revision id, which you can usually see as the "oldid" URL parameter on page histories. Ciencia Al Poder (talk) 10:44, 2 September 2016 (UTC)
How do I add advertisements?
I want something like on http://tfwiki.net with the "Advertisement" on the sidebar. Is there an extension that will achieve this EXACTLY? I will not change my skin to Refreshed, and every single one of the extensions in the [[Category:Advertising_extensions|advertising extensions category]] is either outdated, not what I'm looking for (ads on the sidebar at the least [not a giant blank space for an ad on the side of the page]--I can put the Google ad code and maybe put a donate button at the bottom) or just horribly explained and confusing (and if I bothered to create ask on their talk pages I would be greeted with sheer silence for months or years or decades of centuries).
I would also like to be able to put ads on the bottom of pages. Again, more of a customizing thing. If I wanted to put Amazon product ads there, I would like to be able to do that. It should definitely be possible.
Please. Please. Monobook skin. And thank you.There's like NOTHING about this anywhere, all I've seen are either people telling me to download an ad supporting skin, or one of those dead extensions. Please someone help. Please. There's nothing. 47.32.198.2 (talk) 00:11, 2 September 2016 (UTC)
Mailadress no longer available - Password recovery not possible
Hello,
due to a changed mailadress in my company I can not use the butto "Forgot password". I don't know the password because I was a few years inactive and now, without the old mailadress, ich can not do the recovery. Is there any chance that the admin can change the mailadress in my account? Or any other thing to do?
Will the pages created by me be deleted if the admin deletes my account and I create a new one?
Thanks in advance! 194.246.16.15 (talk) 06:12, 2 September 2016 (UTC)
- Your Admin should reset password if he has access to DB. Kostets (talk) 07:28, 2 September 2016 (UTC)
- Another option would be that the admin adjusts your email address inside the database. After that you could then reset the password yourself.
- Resetting the password might also be a solution. It is not so simple as the password is not stored in clear text, but as a hash. How to do it anyway is described on Manual:Resetting passwords. If it was me, I would use the changePassword.php maintenance script for that task. 87.123.34.37 (talk) 07:48, 2 September 2016 (UTC)
Empty lines before HTML code
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,
HTML code generated by WIKI has empty lines on the top. Like this:
<!DOCTYPE html ... <html xmlns="http... <head> ...
Is it possible to remove these lines?
<!DOCTYPE html ... <html xmlns="http... <head> ...Kostets (talk) 07:48, 2 September 2016 (UTC)
- Those are probably added because one or more of your PHP files (most probably your LocalSettings.php, or a MediaWiki extension not bundled with MediaWiki tarball) has this whitespace before the "<?php" mark. Just remove those empty lines from there. Also, avoid having "?>" at the end of the file, just remove them, to prevent more whitespace to appear. Ciencia Al Poder (talk) 10:41, 2 September 2016 (UTC)
- Thank You!
- You are absolutely right!
- Cause of extra lines is empty line after closing tag in my MediaWiki extensions.
- Kostets (talk) 12:17, 2 September 2016 (UTC)
.... ?>
- You should not use closing tags in PHP files for exactly this reason. 121.214.29.136 (talk) 00:56, 3 September 2016 (UTC)
Flow Page Error
Exception encountered, of type "RuntimeException" Kiwkius (talk) 09:14, 2 September 2016 (UTC)
- See How to debug how to get a stacktrace. Please provide version information for both MediaWiki and Flow. Malyacko (talk) 14:28, 2 September 2016 (UTC)
| Product | Version |
|---|---|
| MediaWiki | 1.27.1 |
| Other | ||||
|---|---|---|---|---|
| Extension | Version | License | Description | Authors |
| Flow | 1.1(af307cc) | GPL-2.0+ | Workflow management system | Erik Bernhardson, Stephane Bisson, Matthew Flaschen, Andrew Garrett, Shahyar Ghobadpour, Pau Giner, Roan Kattouw, Chris McMahon, Kunal Mehta, Matthias Mullie, S Page, Jon Robson, Moriel Schottlender and Benny Situ |
Kiwkius (talk) 15:24, 2 September 2016 (UTC)
- And now we still need the exact error message with stack trace! 87.123.34.37 (talk) 17:32, 2 September 2016 (UTC)
- Start request GET /wiki/%ED%82%A4%EC%9C%84%EC%9C%84%ED%82%A4%ED%86%A0%EB%A1%A0:%EB%8C%80%EB%AC%B8
- HTTP HEADERS:
- ACCEPT-ENCODING: gzip
- HOST: kiwki.us
- USER-AGENT: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36
- CONNECTION: Keep-Alive
- CACHE-CONTROL: max-age=0
- CONTENT-TYPE:
- CF-CONNECTING-IP: 222.100.125.42
- CF-VISITOR: {"scheme":"https"}
- CONTENT-LENGTH:
- COOKIE: __cfduid=d9bbdf5796f819e7d66d6d23fa3e0f0621470742887; wikiEditor-0-booklet-help-page=list; __utma=60615991.2146971810.1470744381.1472819921.1472827149.69; __utmc=60615991; __utmz=60615991.1472322643.44.5.utmcsr=namu.wiki|utmccn=(referral)|utmcmd=referral|utmcct=/w/%ED%82%A4%EC%9C%84%EC%9C%84%ED%82%A4; _ga=GA1.2.2146971810.1470744381; my_wiki_session=f16cg37vlu2gjnp8821aqvkjkmdt5jbj; my_wikiUserID=1; my_wikiUserName=%EC%BD%94%EC%BD%94%EC%95%84; my_wikiToken=9cf72b9def6ee6bbad7fa41ef14f9071
- CF-IPCOUNTRY: KR
- REFERER: https://kiwki.us/wiki/%ED%82%A4%EC%9C%84%EC%9C%84%ED%82%A4:%EB%8C%80%EB%AC%B8
- ACCEPT-LANGUAGE: ko-KR,ko;q=0.8,en-US;q=0.6,en;q=0.4,und;q=0.2
- X-FORWARDED-PROTO: https
- CF-RAY: 2dc59b2c2ccd5372-LAX
- DNT: 1
- ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
- UPGRADE-INSECURE-REQUESTS: 1
- X-FORWARDED-FOR: 222.100.125.42
- [caches] cluster: APCBagOStuff, WAN: mediawiki-main-default, stash: db-replicated, message: APCBagOStuff, parser: APCBagOStuff, session: APCBagOStuff
- [caches] LocalisationCache: using store LCStoreCDB
- User: got user 1 from cache
- MWCryptHash::hashAlgo: Using the whirlpool hash algorithm.
- [EventLogging] wgEventLoggingBaseUri has not been configured.
- [Flow] FlowHooks::initFlowExtension: Warning: $wgFlowContentFormat was set to 'html', but you do not have Parsoid enabled. Changing $wgFlowContentFormat to 'wikitext'
- Unstubbing $wgParser on call of $wgParser::setHook from include
- Parser: using preprocessor: Preprocessor_Hash
- Fully initialised
- IP: 222.100.125.42
- [connect] Connected to database 0 at localhost
- [queries] my_wiki: BEGIN /* DatabaseBase::query (WikiPage::pageData) */
- [queries] my_wiki: SELECT /* WikiPage::pageData */ page_id,page_namespace,page_title,page_restrictions,page_is_redirect,page_is_new,page_random,page_touched,page_links_updated,page_latest,page_len,page_content_model FROM `page` WHERE page_namespace = '5' AND page_title = '대문' LIMIT 1
- [ContentHandler] Created handler for flow-board: Flow\Content\BoardContentHandler
- [queries] my_wiki: SELECT /* WikiPage::pageData */ page_id,page_namespace,page_title,page_restrictions,page_is_redirect,page_is_new,page_random,page_touched,page_links_updated,page_latest,page_len,page_content_model FROM `page` WHERE page_namespace = '5' AND page_title = '대문' LIMIT 1
- [session] Saving all sessions on shutdown
- Start request GET /wiki/%ED%82%A4%EC%9C%84%EC%9C%84%ED%82%A4%ED%86%A0%EB%A1%A0:%EB%8C%80%EB%AC%B8
- HTTP HEADERS:
- ACCEPT-ENCODING: gzip
- HOST: kiwki.us
- USER-AGENT: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36
- CONNECTION: Keep-Alive
- CACHE-CONTROL: max-age=0
- CONTENT-TYPE:
- CF-CONNECTING-IP: 222.100.125.42
- CF-VISITOR: {"scheme":"https"}
- CONTENT-LENGTH:
- COOKIE: __cfduid=d9bbdf5796f819e7d66d6d23fa3e0f0621470742887; wikiEditor-0-booklet-help-page=list; __utma=60615991.2146971810.1470744381.1472819921.1472827149.69; __utmc=60615991; __utmz=60615991.1472322643.44.5.utmcsr=namu.wiki|utmccn=(referral)|utmcmd=referral|utmcct=/w/%ED%82%A4%EC%9C%84%EC%9C%84%ED%82%A4; _ga=GA1.2.2146971810.1470744381; my_wiki_session=f16cg37vlu2gjnp8821aqvkjkmdt5jbj; my_wikiUserID=1; my_wikiUserName=%EC%BD%94%EC%BD%94%EC%95%84; my_wikiToken=9cf72b9def6ee6bbad7fa41ef14f9071
- CF-IPCOUNTRY: KR
- REFERER: https://kiwki.us/wiki/%ED%82%A4%EC%9C%84%EC%9C%84%ED%82%A4:%EB%8C%80%EB%AC%B8
- ACCEPT-LANGUAGE: ko-KR,ko;q=0.8,en-US;q=0.6,en;q=0.4,und;q=0.2
- X-FORWARDED-PROTO: https
- CF-RAY: 2dc59b299c835372-LAX
- DNT: 1
- ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
- UPGRADE-INSECURE-REQUESTS: 1
- X-FORWARDED-FOR: 222.100.125.42
- [caches] cluster: APCBagOStuff, WAN: mediawiki-main-default, stash: db-replicated, message: APCBagOStuff, parser: APCBagOStuff, session: APCBagOStuff
- [caches] LocalisationCache: using store LCStoreCDB
- User: got user 1 from cache
- MWCryptHash::hashAlgo: Using the whirlpool hash algorithm.
- [EventLogging] wgEventLoggingBaseUri has not been configured.
- [Flow] FlowHooks::initFlowExtension: Warning: $wgFlowContentFormat was set to 'html', but you do not have Parsoid enabled. Changing $wgFlowContentFormat to 'wikitext'
- Unstubbing $wgParser on call of $wgParser::setHook from include
- Parser: using preprocessor: Preprocessor_Hash
- Fully initialised
- IP: 222.100.125.42
- [connect] Connected to database 0 at localhost
- [queries] my_wiki: BEGIN /* DatabaseBase::query (WikiPage::pageData) */
- [queries] my_wiki: SELECT /* WikiPage::pageData */ page_id,page_namespace,page_title,page_restrictions,page_is_redirect,page_is_new,page_random,page_touched,page_links_updated,page_latest,page_len,page_content_model FROM `page` WHERE page_namespace = '5' AND page_title = '대문' LIMIT 1
- [ContentHandler] Created handler for flow-board: Flow\Content\BoardContentHandler
- [queries] my_wiki: SELECT /* WikiPage::pageData */ page_id,page_namespace,page_title,page_restrictions,page_is_redirect,page_is_new,page_random,page_touched,page_links_updated,page_latest,page_len,page_content_model FROM `page` WHERE page_namespace = '5' AND page_title = '대문' LIMIT 1
- [session] Saving all sessions on shutdown Kiwkius (talk) 02:01, 3 September 2016 (UTC)
- Debug Log. Kiwkius (talk) 02:01, 3 September 2016 (UTC)
- Change $wgFlowContentFormat from 'html' to 'wikitext' and see, if that already solves the issue.
- If it does not, then we still need the PHP error message! 87.123.16.61 (talk) 07:57, 3 September 2016 (UTC)
How can I use flairs on my wiki?
Is it possible to put flairs next to the links of those users who have a certain user group(e.g. mod, admin, bureaucrat, or any custom user group) on talk pages, recent changes, or anywhere I want? Tribly (talk) 13:57, 2 September 2016 (UTC)
- Is it possible to explain first what "flairs" are exactly? Malyacko (talk) 14:28, 2 September 2016 (UTC)
- Oh sorry. By flairs I mean like Reddit flairs. I do not know any other name for them. Here is an example: https://i.gyazo.com/95f0ae461f02bf6695707dbada339b78.png
- The flair is the box thingy next to their name that indicates their rank or position. Tribly (talk) 19:18, 2 September 2016 (UTC)
- It's not possible - MediaWiki doesn't have the flair feature that reddit has.
- To verify someone's permissions, you would link to a page that shows their permissions, like [https://en.wikipedia.org/wiki/Special:ListUsers/checkuser this one for CheckUsers]. 92.25.49.42 (talk) 00:49, 3 September 2016 (UTC)
- I know it doesn't have the same flair feature. I ask if something similar can be achieved using a script or an extension, so people who go on my wiki and see the edits of the admins they will going to know instantly those are staff edits, or when they interact with other users on my wiki when they see the admins they will know instantly those are staff members. Tribly (talk) 16:33, 3 September 2016 (UTC)
Upgrade problem
Upgrading from 1.25.3 to 1.26.4, loading ./mw-config.php to update the database gives:
The wiki.mydomain.org page isn’t working
wiki.mydomain.org is currently unable to handle this request.
HTTP ERROR 500
Any idea why?
Paul N. Pauln600 (talk) 20:11, 2 September 2016 (UTC)
- No idea, but more information about this server error will be in the Apache error log.
- Note that the URL, which you should call is not mw-config.php, but mw-config/index.php! 87.123.34.37 (talk) 21:31, 2 September 2016 (UTC)
Save page as
Hi All,
We are using Semantic Forms to create forms for page creation. Once user has created a page using form, a user might need to create another page from the existing page. In other words we need an implementation of "Save page as" functionality.
Any ideas how to implement that? Usingnamespace (talk) 22:37, 2 September 2016 (UTC)
403 Forbidden Mediawiki when using HTML attributes
I am very new to web hosting and have recently set up a vanilla install of Mediawiki. For the most part everything seems to be working just fine.
However while I was editing a particular page, after saving, I was presented with a 403 Forbidden error: http://i.imgur.com/XQ7mWbe.png
At the time I thought it was because I had a table on the page I was doing something similar to this example:
{| class="wikitable"
!colspan="6"|Shopping List
|-
|rowspan="2"|Bread & Butter
|Pie
|Buns
|Danish
|colspan="2"|Croissant
|-
|Cheese
|colspan="2"|Ice cream
|Butter
|Yogurt
|}
Out of curiosity I removed the HTML attributes (colspan and rowspan) and everything worked fine, see the working code below:
{| class="wikitable"
|+Food complements |- |Orange |Apple |- |Bread |Pie |- |Butter |Ice cream |}
This has led me to conclude that there seems to be some sort error on submitting HTML related data to the database?
I have been looking around for a couple of days but I could not seem to find anyone that was having the same issue as me, I assume it has something to do with my host but I am really not too sure.
Any and all help would be greatly appreciated, feel free to ask for any information I have failed to provide. Thank you very much.
PS: I also seem to get this error when access the "User" namespace. SCTaylor (talk) 07:53, 3 September 2016 (UTC)
I want to delete the "0" from my username
There is no user registered called "Julius" but for some reason I can't register it... Please hep me and rename this account to "Julius" Julius0 (talk) 15:21, 3 September 2016 (UTC)
- See en:Wikipedia:Changing username! 87.123.16.61 (talk) 16:15, 3 September 2016 (UTC)
- User "Julius" already exists:
- https://www.mediawiki.org/wiki/Special:CentralAuth/Julius FriedhelmW (talk) 11:21, 4 September 2016 (UTC)
JavaScript Editor in Common.js not working
Hello,
I want to setup something like wikiEd.
Pasted the provided codesnipped (complete single line code with importScriptURI) into common.js page, saved, reloaded, used different browser, but there is no appearence of anything.
What is going wrong? Poisonnuke (talk) 17:27, 4 September 2016 (UTC)
- importScriptURI needs to point to the raw text version of a code piece, which you want to include, e.g. example.com/index.php?action=raw&ctype=text/javascript&title=MediaWiki%3AVDA2.js. But what is wikiEd? 87.123.40.181 (talk) 07:43, 5 September 2016 (UTC)
- Maybe Wikipedia:Wikipedia:AutoEd was meant. AhmadF.Cheema (talk) 10:35, 5 September 2016 (UTC)
- sry, there was a typo. I acutally meant wikEd. A WYSIWYG editor listed as extension for mediawiki.
- The script-URI is loaded as plain-text but I cant see the common.js or site js in the source code.
- Looks like it is not loaded at all.
- wgUseSiteJs is set to true in LocalSettings. Poisonnuke (talk) 15:26, 5 September 2016 (UTC)
- Ahh, I see. Extension:WikEd is the page of the actual extension and en:User talk:Cacycle/wikEd is the homepage, where you can report bugs and get support for the extension. You should ask there - maybe, someone else already noted the issue? 87.123.22.177 (talk) 10:04, 6 September 2016 (UTC)
Issue with one template
Hello.
I have some issue with template on page http://westeros.com.pl/index.php?title=Strona_g%C5%82%C3%B3wna
There is some section called "Wybrane cytaty". There are some articles taht are imported from http://westeros.com.pl/index.php?title=Wybrany_cytat
In every article I had had some template {{Tłumacz}} that I removed. But it is still showed on Main Page. TraaBBIT (talk) 08:43, 5 September 2016 (UTC)
Mediawiki Skins Licensing
Greetings !
Can we create skins with different licenses for Mediawiki ?
If no , then how can we create skins for selling like others CMS such as Wordpress ? Is there any scope ?
Thanks Abhishek.lal (talk) 09:30, 5 September 2016 (UTC)
- Category:Skins by license shows a list of the different licenses, which other people are using. I guess at least using these licenses is possible.
- As far as your skins build upon other, existing skins, you may have special terms. E.g. many skins are built on the Vector skin, which is licensed under GPL version 2. This license requires you to publish your deriveved work under GPL 2 as well. It does allow commercial use, but you have to provide your users with the source code as well. The users in turn then have to follow the GPL as well, meaning, they would be allowed to modify and to redistribute your work - and that also for free.
- MediaWiki itself is released under GPL 2. GPL usually enforces you to provide the source code together with whatever you are giving your users. You will have to give the users your source code anyway as otherwise they would not be able to run the skin. If other, especially non-free licenses, which do not grant the rights given to the user in the GPL (e.g. the free distribution), are possible for skins, is what I don't know currently. 87.123.40.181 (talk) 11:00, 5 September 2016 (UTC)
Strange post-upgrade behavior
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 recently decided to update the system which had a MediaWiki running on it, and after the update I cannot figure out what could recover the wiki in a working state.
I have MediaWiki version 1.16.0.0 running on Ubuntu 16.04 with PHP7.0.
Opening a wiki web page leads to a blank page. After enabling the error messages' display I see there:
'''Fatal error''': Uncaught TypeError: Argument 1 passed to wfReportException() must be an instance of Exception, instance of Error given, called in /raid/var/www/wiki/includes/Exception.php on line 348 and defined in /raid/var/www/wiki/includes/Exception.php:285 Stack trace: #0 /raid/var/www/wiki/includes/Exception.php(348): wfReportException(Object(Error)) #1 [internal function]: wfExceptionHandler(Object(Error)) #2 {main} thrown in '''/raid/var/www/wiki/includes/Exception.php''' on line '''285'''
Additionally, I tried to run the update.phpand
rebuildall.phpscripts, which both ended up in this error:
DB connection error: MySQL functions missing, have you compiled PHP with the --with-mysql option?However, I did verify that MySQL extension is installed and enabled in PHP7.0 (a few other modules connect to MySQL through PHP just fine).
My supposition is that the MediaWiki version might be way too old for the PHP7.0.
I cannot figure out where the error inException.cppleads to and would appreciate any help or advice. 137.120.78.143 (talk) 12:10, 5 September 2016 (UTC)
- Your new Ubuntu server has a current version of PHP 7. MediaWiki 1.16 however is rather old and may not be compatible with this new PHP version.
- If I should guess, I would still say that for whatever reason MySQL actually really is not available. You can check that by putting a PHP file in the root of your MediaWiki installation with
<?php phpinfo();- in that file. When you view that file with your browser, does it ontain a section about MySQL and does it say MySQL would be enabled?
- However, I would now make a backup of the MediaWiki installation, of the files and of the database. See Manual:Backing up a wiki!
- Once I got a working backup, I would try updating MediaWiki to a current version, which is MediaWiki 1.27.1 at the moment. See upgrading for how to do this! 87.123.40.181 (talk) 15:31, 5 September 2016 (UTC)
- Thank you for the input!
- The info shows that: mysqli, mysqlnd, and PDO drivers for mysql are all enabled.
- I have also checked the manual connection to the relevant database - all seems functional.
- Regarding the update suggestion - I would like to give it a try, but as I wrote in the original post, the update script gives me a MySQL error. That is why I am not sure of how to come around it. 137.120.78.143 (talk) 15:43, 5 September 2016 (UTC)
- MediaWiki 1.16 - and also the update.php script in MediaWiki 1.16) in fact is not compatible with PHP 7, not even with PHP 5.4, if you look at compatibility.
- Maybe the problem already goes away when you upgrade to a newer MediaWiki version... 87.123.40.181 (talk) 16:31, 5 September 2016 (UTC)
- Current versions of MW are indeed compatible with PHP 7.
- MediaWiki 1.16 is 6(!) years old now, practically pre-historic times as far as software is concerned. I would be very much surprised if had worked. You'll want PHP 5.2 to run an ancient version like that. 110.149.147.147 (talk) 09:46, 6 September 2016 (UTC)
- Thanks a lot for commenting on that!
- I successfully installed the latest MediaWiki 1.27.1 in place of the old wiki and linked to the formerly used database without much problems. 137.120.78.143 (talk) 15:43, 12 September 2016 (UTC)
[RESOLVED] Categories don't work
Hi there, I did a fresh install of mediawiki 1.27.0 and added some pages.
On two of them I added "
[[:Category:Kunden]]
" to the content of the page.
If I display the pages, both show a bottom line "Kategorie: Kunden".
This far, everything is correct.
But than several mistakes occur: - on the category-page "Kunden" only one of the two is listed. - adding other categories on other pages doesn't work
The database shows only one row ("Kunden") in table "category"
Any ideas how to dig into the problem? thanks Nicolai 2003:63:2401:283D:ED2B:4034:E4A2:4C9A (talk) 13:13, 5 September 2016 (UTC)
- Hi Nicolai,
- please check, if Manual:$wgRunJobsAsync helps! 87.123.40.181 (talk) 15:43, 5 September 2016 (UTC)
- Hi Nicolai,
- I had this problem too. Adding a page to the category has moved to the job queue in 1.27, that is why the behaviour has changed. If you examine how this works you may be able to alter how jobs are removed from the queue and executed.
- On my personal wiki, which only I access, I have currently set $wgJobRunRate = 1000. This seems to have solved the problem for me so far.
- To immediately clear the job queue run
maintenance/runJobs.php - Check how many jobs are in the queue with /w/api.php?action=query&meta=siteinfo&siprop=statistics&format=jsonfm
- Hope that helps MwColin (talk) 22:11, 5 September 2016 (UTC)
- Thanks to both of you!
- This worked for me:
- Run runJobs.php from the shell
- Set
- $wgJobRunRate = 1000;
- $wgRunJobsAsync = false;
- Now categories work as expected, open jobs remain at 0. 2003:63:2401:282D:ED2B:4034:E4A2:4C9A (talk) 08:24, 6 September 2016 (UTC)
- For the solution to run runJobs.php one needs to have shell access which I don't have on my webspace. Only setting "$wgJobRunRate = 1000; $wgRunJobsAsync = false;" doesn't seem to help in my case. When I tested it in a XAMPP installation I had also to run refreshLinks.php (cf. Manual:$wgRunJobsAsync) before the categories showed up the way they should.
- Is there something I can do without shell access? Michael.seitz (talk) 09:16, 6 September 2016 (UTC)
- Maybe try Extension:Maintenance. AhmadF.Cheema (talk) 10:57, 6 September 2016 (UTC)
- Thank your for your reply.
- Neither the Extension:Maintenance nor the Extension:MaintenanceShell seems to work in my setting. If I use the Extension:GoToShell I can execute commands like "ls" but no php-script. Michael.seitz (talk) 13:25, 6 September 2016 (UTC)
- This is horrible. Can you disable categorizing via the job queue? Subfader (talk) 11:11, 6 September 2016 (UTC)
Page Templates not working because of the wrong preload link
Hello all,
I have been struggling with non-working page templates and today I have discovered that it was because of the wrong preload link. Let me explain, I have created a page template by going to this address: .../bluespice/index.php/Template:AwesomePage.
Then through the Template Manager I define this page to be used as a template.
When I go to a blank page to use this template,the preload link for the template is wrong.
.../bluespice/index.php?title=AWS:AWSPage&preload=Template%3ATemplate%3AAwesomePage&action=edit&redlink=1
As you can see the Template prefix is added twice, so this does not work. If I manually delete one Template%3A from the link, it works.
I am new to MediaWiki, so I don't know where to look. Can you help me with this? Safai.tandogan (talk) 08:50, 6 September 2016 (UTC)
- You probably need to adjust whatever template is generating that preload link to not include "Template:". 110.149.147.147 (talk) 09:40, 6 September 2016 (UTC)
- How can I find what template is generating this link?
- Also, this is a clean install of MediaWiki/Bluespice, and it is a very simple error which should not occur in a widely used tool, I think. Safai.tandogan (talk) 08:19, 15 November 2016 (UTC)
What is the job "enqueue" Main_Page doing?
After truncating the job table (3.5 million old entries), it quickly fills again with multiple entries of the type "enqueue" "Main_Page". After 5 minutes I already have 260 of them.
When I runJobs.php they look like
2016-09-06 11:56:45 enqueue Main_Page jobsByWiki=array(1) (id=78) STARTING 2016-09-06 11:56:45 enqueue Main_Page jobsByWiki=array(1) (id=78) t=1 good
What are these? They seem to have no effect imo. Subfader (talk) 11:51, 6 September 2016 (UTC)
- Nobody? My job queue filled in 15 seconds:
Subfader (talk) 15:06, 9 September 2016 (UTC)- Did you have a look into the source code to see, what the enqueue job type is doing? 87.123.36.109 (talk) 15:10, 9 September 2016 (UTC)
- Yep. Cannot find such job_cmd variable definition except for DefaultSettings.php
$wgJobClasses = array( 'refreshLinks' => 'RefreshLinksJob', 'htmlCacheUpdate' => 'HTMLCacheUpdateJob', 'sendMail' => 'EmaillingJob', 'enotifNotify' => 'EnotifNotifyJob', 'fixDoubleRedirect' => 'DoubleRedirectJob', 'uploadFromUrl' => 'UploadFromUrlJob', 'AssembleUploadChunks' => 'AssembleUploadChunksJob', 'PublishStashedFile' => 'PublishStashedFileJob', 'ThumbnailRender' => 'ThumbnailRenderJob', 'recentChangesUpdate' => 'RecentChangesUpdateJob', 'refreshLinksPrioritized' => 'RefreshLinksJob', // for cascading protection 'enqueue' => 'EnqueueJob', // local queue for multi-DC setups 'null' => 'NullJob' );
- Not sure what "multi-DC setups" are. Subfader (talk) 15:23, 9 September 2016 (UTC)
[RESOLVED] Parse error in maintenance scripts
Hi there,
I'm getting Parse errors when running one of the maintenance scripts via command line (mediawiki 1.27.1). For example if I run rebuildall.php it outputs:
X-Powered-By: PHP/4.4.9
Content-type: text/html
<br />
<b>Parse error</b>: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in <b>/homepages/16/d645244760/htdocs/wiki/maintenance/rebuildall.php</b> on line <b>33</b><br />
All I want is to get rid of the "Uncaught exception 'Cdb\Exception' with message 'Unable to move the new CDB file into place.'" error, and - as far as I found out - the recommended solution for it is to run the "rebuildLocalisation.php" (I think the rebuildLocalisationCache.php is the replacement for it?).
Can someone help me with this problem?
thanks Michael 80.147.161.203 (talk) 14:02, 6 September 2016 (UTC)
- Look at the output:
X-Powered-By: PHP/4.4.9- That means that the command, which you used to execute PHP (most likely that was php ...) does not execute the same version, which is used when the webserver is requesting a page. Make sure that you are using a supported version of PHP - also on the shell! 87.123.22.177 (talk) 17:07, 6 September 2016 (UTC)
- Thanks! I didn't realized, that the shell php command by default uses an older version of php as the webserver. Now the Parser error disappeared. But now a similar error like when calling the index.php is shown:
- X-Powered-By: PHP/5.5.38
- Content-type: text/html
- Set $wgShowExceptionDetails = true; in LocalSettings.php to show detailed debugging information.
- <br />
- <b>Fatal error</b>: Uncaught exception 'Cdb\Exception' with message 'Unable to move the new CDB file into place.' in /homepages/16/d645244760/htdocs/wiki/vendor/wikimedia/cdb/src/Writer/DBA.php:60
- Stack trace:
- #0 /homepages/16/d645244760/htdocs/wiki/vendor/wikimedia/cdb/src/Writer.php(88): Cdb\Writer\DBA->close()
- #1 [internal function]: Cdb\Writer->__destruct()
- #2 {main}
- thrown in <b>/homepages/16/d645244760/htdocs/wiki/vendor/wikimedia/cdb/src/Writer/DBA.php</b> on line <b>60</b><br />
- Any idea about that? 80.147.161.203 (talk) 17:50, 6 September 2016 (UTC)
- Possibly the problem is that the cache directory is not writable.
- However, to debug this further, please set $wgShowExceptionDetails = true; in LocalSettings.php to show detailed debugging information! 87.123.22.177 (talk) 18:34, 6 September 2016 (UTC)
- With the debugging, the rebuildLocalisationCache.php returns:
- <code>
- X-Powered-By: PHP/5.5.38
- Content-type: text/html
- [5a678342eb2871d175757ffd] [no req] MWException from line 118 of /homepages/16/d645244760/htdocs/wiki/includes/cache/localisation/LCStoreCDB.php: Unable to move the new CDB file into place.
- Backtrace:
- #0 /homepages/16/d645244760/htdocs/wiki/includes/cache/localisation/LocalisationCache.php(1024): LCStoreCDB->finishWrite()
- #1 /homepages/16/d645244760/htdocs/wiki/includes/cache/localisation/LocalisationCache.php(462): LocalisationCache->recache(string)
- #2 /homepages/16/d645244760/htdocs/wiki/includes/cache/localisation/LocalisationCache.php(336): LocalisationCache->initLanguage(string)
- #3 /homepages/16/d645244760/htdocs/wiki/includes/cache/localisation/LocalisationCache.php(273): LocalisationCache->loadItem(string, string)
- #4 /homepages/16/d645244760/htdocs/wiki/languages/Language.php(3207): LocalisationCache->getItem(string, string)
- #5 /homepages/16/d645244760/htdocs/wiki/includes/specialpage/SpecialPageFactory.php(654): Language->getSpecialPageAliases()
- #6 /homepages/16/d645244760/htdocs/wiki/includes/specialpage/SpecialPage.php(76): SpecialPageFactory::getLocalNameFor(string, string)
- #7 /homepages/16/d645244760/htdocs/wiki/extensions/ConfirmEdit/includes/ConfirmEditHooks.php(187): SpecialPage::getTitleFor(string, string)
- #8 [internal function]: ConfirmEditHooks::confirmEditSetup()
- #9 /homepages/16/d645244760/htdocs/wiki/includes/Setup.php(838): call_user_func(string)
- #10 /homepages/16/d645244760/htdocs/wiki/maintenance/doMaintenance.php(97): require_once(string)
- #11 /homepages/16/d645244760/htdocs/wiki/maintenance/rebuildLocalisationCache.php(181): require_once(string)
- #12 {main}
- <br />
- <b>Fatal error</b>: Uncaught exception 'Cdb\Exception' with message 'Unable to move the new CDB file into place.' in /homepages/16/d645244760/htdocs/wiki/vendor/wikimedia/cdb/src/Writer/DBA.php:60
- Stack trace:
- #0 /homepages/16/d645244760/htdocs/wiki/vendor/wikimedia/cdb/src/Writer.php(88): Cdb\Writer\DBA->close()
- #1 [internal function]: Cdb\Writer->__destruct()
- #2 {main}
- thrown in <b>/homepages/16/d645244760/htdocs/wiki/vendor/wikimedia/cdb/src/Writer/DBA.php</b> on line <b>60</b><br />
- </code>
- the cache directory inside the wiki-directory is set to 755 (but I also tried 777 without any changes to the problem). 80.147.161.203 (talk) 18:41, 6 September 2016 (UTC)
- Please check, what directory MediaWiki actually tries to write to!
- By default, you can change this folder by setting $wgCacheDirectory accordingly.
- If that does not help, you can configure $wgLocalisationCacheConf so that a different way is used to store the cache data! 87.123.22.177 (talk) 19:13, 6 September 2016 (UTC)
- Thanks! I changed $wgCacheDirectory to a directory within the the webserver directory (and set the access rights to 700 based on the wiki: Manual:Cache/de#Localisation caching) and now it works! Seems the default cache path is outside the webserver directory and they changed the access rights to it (worked before). 80.147.161.203 (talk) 19:18, 6 September 2016 (UTC)
How to disable automatic ISBN link
Hello,
Please, how to disable automatic ISBN link creation?
Thanks,
Best regards.
Vaclav 91.199.164.40 (talk) 14:09, 6 September 2016 (UTC)
- How and where do you get these links created?
- If you are speaking about the bottom of some pages, then these links are created using a special template and you can modify this behaviour by modifying the template! 87.123.22.177 (talk) 15:13, 6 September 2016 (UTC)
- You have to hack the core because devs only code for Wikipedia... https://phabricator.wikimedia.org/T47942 Subfader (talk) 16:19, 6 September 2016 (UTC)
MW 1.27: Cannot create account
When I try to register an account, I get this error:
There seems to be a problem with your login session; this action has been canceled as a precaution against session hijacking. Go back to the previous page, reload that page and then try again.
Log:
OutputPage::sendCacheControl: private caching; ** Request ended normally [session] Saving all sessions on shutdown Start request POST /wiki/index.php?title=Special:CreateAccount&returnto=Main+Page HTTP HEADERS: HOST: test.mysite.com X-REAL-IP: XXXX X-ACCEL-INTERNAL: /internal-nginx-static-location CONNECTION: close CONTENT-LENGTH: 263 CACHE-CONTROL: max-age=0 ORIGIN: http://test.mysite.com UPGRADE-INSECURE-REQUESTS: 1 USER-AGENT: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36 CONTENT-TYPE: application/x-www-form-urlencoded ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8 REFERER: http://test.mysite.com/wiki/index.php?title=Special:CreateAccount&returnto=Main+Page ACCEPT-ENCODING: gzip, deflate ACCEPT-LANGUAGE: de-DE,de;q=0.8,en-US;q=0.6,en;q=0.4,es;q=0.2 [caches] cluster: MemcachedPhpBagOStuff, WAN: mediawiki-main-default, stash: db-replicated, message: MemcachedPhpBagOStuff, parser: MemcachedPhpBagOStuff, session: MemcachedPhpBagOStuff [caches] LocalisationCache: using store LCStoreCDB MWCryptRand::realGenerate: Generating cryptographic random bytes for MediaWiki\Session\SessionManager->generateSessionId/MWCryptRand::generateHex/MWCryptRand->realGenerateHex/MWCryptRand::generate/MWCryptRand->realGenerate MWCryptRand::realGenerate: openssl_random_pseudo_bytes generated 20 bytes of strong randomness. MWCryptRand::realGenerate: 0 bytes of randomness leftover in the buffer. [session] SessionBackend "mc7jnpat42jn76pi9ilsb6p174t6m2l8" is unsaved, marking dirty in constructor [session] SessionBackend "mc7jnpat42jn76pi9ilsb6p174t6m2l8" save: dataDirty=1 metaDirty=1 forcePersist=0 [cookie] already deleted setcookie: "DB27test_session", "", "1441642499", "/", "www.mysite.com", "", "1" [cookie] already deleted setcookie: "DB27testUserID", "", "1441642499", "/", "www.mysite.com", "", "1" [cookie] already deleted setcookie: "DB27testToken", "", "1441642499", "/", "www.mysite.com", "", "1" [cookie] already deleted setcookie: "forceHTTPS", "", "1441642499", "/", "www.mysite.com", "", "1" IP: XXXX Fully initialised [session] SessionBackend "mc7jnpat42jn76pi9ilsb6p174t6m2l8" force-persist due to persist() [session] SessionBackend "mc7jnpat42jn76pi9ilsb6p174t6m2l8" save: dataDirty=0 metaDirty=1 forcePersist=1 [cookie] setcookie: "DB27test_session", "mc7jnpat42jn76pi9ilsb6p174t6m2l8", "0", "/", "www.mysite.com", "", "1" [cookie] already deleted setcookie: "DB27testUserID", "", "1441642499", "/", "www.mysite.com", "", "1" [cookie] already deleted setcookie: "DB27testToken", "", "1441642499", "/", "www.mysite.com", "", "1" [cookie] already deleted setcookie: "forceHTTPS", "", "1441642499", "/", "www.mysite.com", "", "1" [session] SessionBackend "mc7jnpat42jn76pi9ilsb6p174t6m2l8" Taking over PHP session [session] SessionBackend "mc7jnpat42jn76pi9ilsb6p174t6m2l8" save: dataDirty=0 metaDirty=1 forcePersist=1 [cookie] already set setcookie: "DB27test_session", "mc7jnpat42jn76pi9ilsb6p174t6m2l8", "0", "/", "www.mysite.com", "", "1" [cookie] already deleted setcookie: "DB27testUserID", "", "1441642499", "/", "www.mysite.com", "", "1" [cookie] already deleted setcookie: "DB27testToken", "", "1441642499", "/", "www.mysite.com", "", "1" [cookie] already deleted setcookie: "forceHTTPS", "", "1441642499", "/", "www.mysite.com", "", "1" [MessageCache] MessageCache::load: Loading en... local cache is empty, got from global cache [authmanager] Captcha shown on account creation [session] SessionBackend "mc7jnpat42jn76pi9ilsb6p174t6m2l8" data dirty due to dirty(): SimpleCaptcha->createAuthenticationRequest/SimpleCaptcha->storeCaptcha/CaptchaSessionStore->store/MediaWiki\Session\Session->set/MediaWiki\Session\SessionBackend->dirty Invalid user language code [session] SessionBackend "mc7jnpat42jn76pi9ilsb6p174t6m2l8" save: dataDirty=1 metaDirty=0 forcePersist=0 [connect] Connected to database 0 at localhost User::getBlockedStatus: checking... QuickTemplate::__construct was called with no Config instance passed to it MWCryptRand::realGenerate: Generating cryptographic random bytes for PasswordFactory::generateRandomPasswordString/MWCryptRand::generateHex/MWCryptRand->realGenerateHex/MWCryptRand::generate/MWCryptRand->realGenerate MWCryptRand::realGenerate: openssl_random_pseudo_bytes generated 7 bytes of strong randomness. MWCryptRand::realGenerate: 0 bytes of randomness leftover in the buffer. MWCryptRand::realGenerate: Generating cryptographic random bytes for MediaWiki\Session\Session->getToken/MWCryptRand::generateHex/MWCryptRand->realGenerateHex/MWCryptRand::generate/MWCryptRand->realGenerate MWCryptRand::realGenerate: openssl_random_pseudo_bytes generated 16 bytes of strong randomness. MWCryptRand::realGenerate: 0 bytes of randomness leftover in the buffer. [session] SessionBackend "mc7jnpat42jn76pi9ilsb6p174t6m2l8" data dirty due to dirty(): LoginSignupSpecialPage->getFakeTemplate/SpecialCreateAccount->getToken/MediaWiki\Session\Session->getToken/MediaWiki\Session\Session->set/MediaWiki\Session\SessionBackend->dirty [session] SessionBackend "mc7jnpat42jn76pi9ilsb6p174t6m2l8" save: dataDirty=1 metaDirty=0 forcePersist=0 Unstubbing $wgParser on call of $wgParser::firstCallInit from MessageCache->getParser Parser: using preprocessor: Preprocessor_DOM Unstubbing $wgLang on call of $wgLang::_unstub from ParserOptions->__construct SiteStats::loadAndLazyInit: reading site_stats from slave MediaWiki::preOutputCommit: all transactions committed MediaWiki::preOutputCommit: pre-send deferred updates completed
Subfader (talk) 16:21, 6 September 2016 (UTC)
- Also cannot login with existing account:
- There seems to be a problem with your login session; this action has been canceled as a precaution against session hijacking. Go back to the previous page, reload that page and then try again.
- Subfader (talk) 17:02, 6 September 2016 (UTC)
OutputPage::sendCacheControl: private caching; ** Request ended normally [session] Saving all sessions on shutdown [caches] cluster: MemcachedPhpBagOStuff, WAN: mediawiki-main-default, stash: db-replicated, message: MemcachedPhpBagOStuff, parser: MemcachedPhpBagOStuff, session: MemcachedPhpBagOStuff [caches] LocalisationCache: using store LCStoreCDB [caches] cluster: MemcachedPhpBagOStuff, WAN: mediawiki-main-default, stash: db-replicated, message: MemcachedPhpBagOStuff, parser: MemcachedPhpBagOStuff, session: MemcachedPhpBagOStuff [caches] LocalisationCache: using store LCStoreCDB [connect] Connected to database 0 at localhost [connect] Connected to database 0 at localhost [caches] cluster: MemcachedPhpBagOStuff, WAN: mediawiki-main-default, stash: db-replicated, message: MemcachedPhpBagOStuff, parser: MemcachedPhpBagOStuff, session: MemcachedPhpBagOStuff [caches] LocalisationCache: using store LCStoreCDB [connect] Connected to database 0 at localhost [MessageCache] MessageCache::load: Loading en... local cache is empty, got from global cache [caches] cluster: MemcachedPhpBagOStuff, WAN: mediawiki-main-default, stash: db-replicated, message: MemcachedPhpBagOStuff, parser: MemcachedPhpBagOStuff, session: MemcachedPhpBagOStuff [caches] LocalisationCache: using store LCStoreCDB [connect] Connected to database 0 at localhost [caches] cluster: MemcachedPhpBagOStuff, WAN: mediawiki-main-default, stash: db-replicated, message: MemcachedPhpBagOStuff, parser: MemcachedPhpBagOStuff, session: MemcachedPhpBagOStuff [caches] LocalisationCache: using store LCStoreCDB [caches] cluster: MemcachedPhpBagOStuff, WAN: mediawiki-main-default, stash: db-replicated, message: MemcachedPhpBagOStuff, parser: MemcachedPhpBagOStuff, session: MemcachedPhpBagOStuff [caches] LocalisationCache: using store LCStoreCDB [connect] Connected to database 0 at localhost [connect] Connected to database 0 at localhost [memcached] Duplicate get(): "DB27test:ResourceFileCache:misses:js:293ca4f80f3a39f22b30cb964459ffd9e3d99e1c" fetched 2 times
- What a show stopper. MediaWiki gets worse and worse :(
- Bug reported: https://phabricator.wikimedia.org/T138168 Subfader (talk) 09:26, 7 September 2016 (UTC)
Invalid ArgumentException error when I upgrade from mediawiki 1.19 to 1.27
I am trying to upgrade the mediawiki from version
1.19.14+dfsg-1 to version 1.27 on Ubuntu. However I'm observing the below errors. Can you please let me know how we can resolve this problem
root@localhost:/mediawiki/maintenance# php update.php
PHP Fatal error: Uncaught exception 'InvalidArgumentException' with message 'Provided specification lacks both factory and class parameters.' in /usr/share/mediawiki-1.27.1/includes/libs/ObjectFactory.php:78
Stack trace:
#0 /usr/share/mediawiki-1.27.1/includes/debug/logger/LoggerFactory.php(81): ObjectFactory::getObjectFromSpec(NULL)
#1 /usr/share/mediawiki-1.27.1/includes/debug/logger/LoggerFactory.php(94): MediaWiki\Logger\LoggerFactory::getProvider()
#2 /usr/share/mediawiki-1.27.1/includes/objectcache/ObjectCache.php(168): MediaWiki\Logger\LoggerFactory::getInstance('objectcache')
#3 /usr/share/mediawiki-1.27.1/includes/objectcache/ObjectCache.php(130): ObjectCache::newFromParams(Array)
#4 /usr/share/mediawiki-1.27.1/includes/objectcache/ObjectCache.php(94): ObjectCache::newFromId(0)
#5 /usr/share/mediawiki-1.27.1/includes/objectcache/ObjectCache.php(264): ObjectCache::getInstance(0)
#6 /usr/share/mediawiki-1.27.1/includes/registration/ExtensionRegistry.php(89): ObjectCache::getLocalServerInstance()
#7 /usr/share/mediawiki in /usr/share/mediawiki-1.27.1/includes/libs/ObjectFactory.php on line 78 Tlsrikanth (talk) 00:21, 7 September 2016 (UTC)
- Do you still have old files from you version 1.19 installation inside your new installation? Make sure to remove all files of the old installation! See upgrading for how to procede! 87.123.10.200 (talk) 07:18, 7 September 2016 (UTC)
- Hi, I followed the instructions as per the link you have provided https://www.mediawiki.org/wiki/Manual:Upgrading
- In one of the steps it says : " After extractingrthe tar ball, you should copy or move some filesoand folders from the old installationadirectory to the new one ". (LocalSettings.php, images ).
- Copiedethe old filesttoithe new installation. I haven2sdirectoriesinow, /usr/share/mediawiki/- old and /usr/share/mediawiki-1.27.1.( new one ). Can you please let me know how to proceed further ? DDo you want me to deletermediawiki.1-27.1tdirectoryhandiupgradesagain ? Can you pleaselhelp. edirectorymo veet de Did the same.as ittwas mentioned. tiona ld files Tlsrikanth (talk) 15:01, 7 September 2016 (UTC)
- Your message is kind of shredded...
- You do not need to delete the old installation - for now it is enough to make sure it is out of the way and it is not used anymore. You can then delete it later.
- Just using the new directory should be fine...
- Reading your stack trace, I noticed two things: First, you obviously are using debug logging. Second you have $wgMWLoggerDefaultSpi set to NULL. Using this value for $wgMWLoggerDefaultSpi is wrong. Instead, $wgMWLoggerDefaultSpi must be an array and its default value is
$wgMWLoggerDefaultSpi = [ 'class' => '\\MediaWiki\\Logger\\LegacySpi', ];
- Make sure that you are using a valid value here, e.g. this default value! 87.123.10.200 (talk) 19:42, 7 September 2016 (UTC)
- Hi,
- I used the default value of $wgMWLoggerDefaultSpi as you have mentioned. Then executed the php update.php script, however observing this error on the main page.
- "A database error has occurred. Did you forget to run maintenance/update.php after upgrading ? See: https://www.mediawiki.org/wiki/Manual:Upgrading#Run_the_update_script
- Query : SELECT page_id,page_namespace,page_title,page_restrictions,page_counter,page_is_redirect,page_is_new,page_random,page_touched,page_latest,page_len FROM `page` WHERE page_namespace = '0' AND page_title = 'CloudView' LIMIT 1
- Function: WikiPage::pageData
- Error: 1054 Unknown column 'page_counter' in 'field list' (localhost)
- Can you please let me know how to resolve this problem. I don't see my previous Wiki home page, instead see this error. Tlsrikanth (talk) 17:04, 8 September 2016 (UTC)
- This error happened when you (or someone else) tried to view the page CloudView. Your upgrade from 1.19 to 1.27 among other things also updated the page_counter feature. While it has been included n MW 1.19, it has been extracted to Extension:HitCounters in MW 1.25. The column page_counter inside the database has been removed with the update to MW 1.27. So the fact that this column is no longer there inside your database, is ok.
- If you are using the extension HitCounters, please try removing it!
- If that does not help, the question is: Why is MediaWiki trying to use this column? This field name no longer is used in MW 1.27 and 1.27 alone should not create this SQL query... 87.123.57.253 (talk) 17:34, 8 September 2016 (UTC)
- Hi,
- I am not able to remove this page_counter column, as that column is not present in page table.
- mysql> SELECT page_counter from page;
- ERROR 1054 (42S22): Unknown column 'page_counter' in 'field list'
- Also there is no hitcounter table created in the database. I get an error when I try to access the table hitcounter.
- Can you please let me know how we can avoid Mediawiki using pagecounter column.
- We see the below query when we visit the page:
- SELECT page_id,page_namespace,page_counter FROM page.
- Can you please help. Thanks Tlsrikanth (talk) 18:44, 8 September 2016 (UTC)
- I know that the column page_counter is not there inside the table page and that also the table hitcounter is not there. Both have been removed during your upgrade. It is correct that they are not there anymore!
- Obviously the column page_counter is used somewhere in your installation. The thing is that it should not be used anymore.
- Without knowing where it is used, I can only guess. You might e.g. have old files in your upgraded installation, which cause this error. Or you are using some kind of extension, which does this. Or you are not using all or only some of the new files...
- Use grep to find out where the column page_counter is mentioned in the files of your installation! 87.123.57.253 (talk) 19:07, 8 September 2016 (UTC)
- Thanks, yes there were old files , so removed old files and after that it moved a step further.
- However I am observing this error when I click on the main page:
- MediaWiki requires the PSR-3 logging library to be present. This library is not embedded directly in MediaWiki's git repository and must be installed separately by the end user. Please see mediawiki.org for help on installing the required components.
- the new mediawiki installation has vendor directory and psr in it. Can you please let me know how to proceed further. Thanks Tlsrikanth (talk) 20:13, 8 September 2016 (UTC)
- Hell you should really follow upgrade!
- It will tell you that you have to extract all files from the tarball - including those in folder vendor/! If you are using Git, which I would not recommend, see Download from Git#Fetch external libraries! 87.123.57.253 (talk) 20:20, 8 September 2016 (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.
Дорогие друзья и коллеги, позвольте так обращаться к вам. Странные и недопустимые ситуации происходят на Википедия РУ. Некоторые лица получившие статус модераторов, один себя именует как патрульный, хотя мне предполагается, что это один и тот же человек (некоторые его высказывания и действия, явно показывают его не здоровье в плане психического состояния. Но суть в том, что Victor Pitrov и второй деятель со странным именем OneLittleMouse ведут очень странную деятельность. Я зарегистрировал свою страницу на Вики и приступил к её редактированию, а именно описывал своих родителей, кто и когда и где родились. Полностью прописать я не успел, по факту ограничения свободного времени. Через два дня после начала заполнения мною моей страницы, всё что я там написал было удивленно. Естественно я возмутился и написал удалившему Victor Pitrov вопрос на каком основании он удаляет мою информацию. Это исключительно личная информация не кого не касающаяся. В результате, мою страницу вообще заблокировал деятель со странным названием OneLittleMouse на постоянно без права обращений и регистраций новой страницы с моего адреса, с формулировкой что я кого-то там провоцирую. В реальности, это бред полный. Не знаю, обращался кто либо из участников Вики по факту действия настоящих субъектов, но я имею самые серьёзные намерения, довести это дело с этими личностями до конца. По моему мнению, им не место на таком прекрасном и нужном ресурсе как Википедия. С глубоким, Уважением Алексей Товстолужский. Nordberg - Dorsstan (talk) 01:26, 7 September 2016 (UTC)
- You are complaining that inside the Russian Wikipedia, your edit on ru:Обсуждение участника:Petrov Victor has been deleted. Actually, this edit obviously violated the rules so badly that it has not only been reverted, but it in fact had to be revision deleted and you additionally have been blocked from editing. Reason for this block is the provoking edit.
- Should you create a new account, please note that contributions to Wikipedia must be written neutrally and that they must be proven with reputable sources! 87.123.10.200 (talk) 07:16, 7 September 2016 (UTC)
- I just noticed that your contribution in wikidata is not correct as well and also your edit to Список графских родов Российской империи had to be reverted.
- Actually not a single one of your edits has been considered helpful.
- Please make yourself acquainted with the rules before complaining about others, who follow them! 87.123.10.200 (talk) 08:04, 7 September 2016 (UTC)
Template - page cache
Hello.Is there something like page cache?
I have some template that I added to some pages.
This pages are displayed on main page.. removed this template from pages but template is still displayed on main pageiom pages but the TraaBBIT (talk) 11:50, 7 September 2016 (UTC)
PHP on CentOS7
Good day,
I am using CentOS7.2 which comes shipped with php5.4 which is not adequate for MediaWiki 1.27.
I have installed php5.6 in PARALLEL (now i have both 5.4 and 5.6 versions) but MediaWiki is still complaining about having php5.4,
Is there a place where I can point MediaWiki to use the newer php5.6?
many thanks, 207.229.1.234 (talk) 18:39, 7 September 2016 (UTC)
- This sounds to me like php files are still opened with or attached to the old 5.4 executable instead of to the new 5.6 version. Maybe adding an according AddHandler directive in .htaccess helps?
- Another option would be to uninstall the old version 5.4. 87.123.10.200 (talk) 19:29, 7 September 2016 (UTC)
- Thanks, the default is still 5.4 it seems. I can easily of course replace the 5.4 with 5.6 and be done with but that will break upstream updates for php. I'd rather keep both versions in parallel and just point WikiMedia (apache) to use the newer version if only I could find out how. But you may be right, it may be easier to just scratch the old version completely. 207.229.1.234 (talk) 22:55, 7 September 2016 (UTC)
Delete all articles except those created by certain users?
Hi, my small wiki was attacked by spambots, and our wiki went from 100 pages to over 60,000. We only have about 6 users who actually contribute to the wiki, so I was wondering if there was a way to delete all articles an users except for those made by these 6 users.
I have searched everywhere and haven't been able to find anything, which is why I'm asking here.
using mediawiki 1.27.1 on Ubuntu Robotnikman (talk) 02:29, 8 September 2016 (UTC)
- Extension:Nuke could be what you're looking for. Lofty abyss 02:46, 8 September 2016 (UTC)
- I installed it and went to the Mass Delete page, but it only give me the option to delete pages of users, which means I would have to somehow be able to get a list of all the thousands of spam users and put them in there.
- Or is there something im missing here. Can you give me further instruction on how to use it? Robotnikman (talk) 16:43, 8 September 2016 (UTC)
- I installed it and went to the Mass Delete page, but it only give me the option to delete pages of users, which means I would have to somehow be able to get a list of all the thousands of spam users and put them in there.
- Or is there something im missing here. Can you give me further instruction on how to use it? Robotnikman (talk) 03:31, 8 September 2016 (UTC)
- anyone? Robotnikman (talk) 16:42, 8 September 2016 (UTC)
- I think that what you want was possible in some way, but I don't remember and I also did not find searching, how that was possible.
- What I found is the deleteBatch.php script, but this only allows to select things to keep and to delete based on page name, not on user... 87.123.57.253 (talk) 19:16, 8 September 2016 (UTC)
- Extension:BlockAndNuke can do what you want. You will have to update it to be working with MW 1.27 though. 87.123.57.253 (talk) 19:39, 8 September 2016 (UTC)
Adding links to the top right set of links
Hello, I want to add a language selection to the top right links where login and stuff is being handled. How can I achieve this? 95.91.200.233 (talk) 04:10, 8 September 2016 (UTC)
- Extension:UniversalLanguageSelector might be able to more or less do what you want!
- Another option is to use the hook PersonalUrls to add URLs to the list! 87.123.57.253 (talk) 08:18, 8 September 2016 (UTC)
- Hello, nah the language selector is for more than just the wiki, but I need atop, looks far better then on the sidebar. The PersonalUrls is something I need to dig into, didn't quite get it directly. 95.91.200.233 (talk) 08:55, 8 September 2016 (UTC)
Notifications for (un)successful mentions
When is this feature coming? Guycn2 (talk) 04:10, 8 September 2016 (UTC)
- See the https://phabricator.wikimedia.org/tag/notifications/ workboard for what is being worked on and not being worked on. Future plans of the team are listed at Notifications#Future plans and requests for feedback AKlapper (WMF) (talk) 11:15, 8 September 2016 (UTC)
- Thanks! Guycn2 (talk) 19:39, 8 September 2016 (UTC)
MediaWiki 1.27 requires mbstring to install, but it is installed.
I am installing mediawiki on a windows machine using 1.27, php5.6.25, and abyss server 2.11.1.
In the php.ini I have the zend.multibyte = On and the two related DLLs, php_mbstring.dll and php_exif.dll, set.
But I always get the message that I am missing mbstring.
There is no documentation anywhere about what settings mediawiki needs in PHP for mbstring to function. Markjlyon (talk) 07:17, 8 September 2016 (UTC)
- I figured out my extension_dir wasn't set correctly ("./" instead of "ext").
- Thanks Markjlyon (talk) 07:26, 8 September 2016 (UTC)
- I found another sequence of steps that may be required to fix this issue (running Xubuntu 18.04 but this fix may be applicable to other distributions as well). This applies if phpinfo(); reports a different version than the latest installed version.
- Disable the old version of PHP with "sudo a2dismod php7.0" (or whatever version phpinfo() is reporting).
- Enable the new version with "sudo a2enmod php7.2" (or whatever the new version is).
- "sudo service apache2 restart"
Rsmoore (talk) 00:20, 6 January 2019 (UTC)- this worked for me 64.183.170.226 (talk) 15:18, 22 October 2020 (UTC)
sspl
what is the procedure to aad an article for my company Deepakscu (talk) 12:33, 8 September 2016 (UTC)
- The procedure is to read and to understand en:WP:Notability.
- Afterwards you will most likely realize that writing an article is a waste of time, as your text, if the company is not notable, will get deleted, 87.123.57.253 (talk) 12:42, 8 September 2016 (UTC)
Sitenotice not working
Version: MediaWiki 1.26.2, PHP 5.4.32, MySQL 5.5.50-cll
URL: http://keywiki.org
Updates to MediaWiki:Sitenotice no longer take effect on the site.The current contents of the Sitenotice page are empty (just an HTML comment), but the site is displaying a page that was previously in Sitenotice.
This very strange behavior may have started when we upgraded from MW 1.22.4 to 1.26.2 in Mar 2016, but we didn't notice it at the time. Now we are trying to change the Sitenotice, but changing it has no effect even when we remove all the code (as Sitenotice stands now).
Any insight or advice would be greatly appreciated.
~Ranwaldo Ranwaldo (talk) 12:49, 8 September 2016 (UTC)
- Does it help if you purge the cache of one page of your wiki, e.g. using action=purge in the URL? Afterwards the page should be rendered again and it should then also show the new notice...
- Btw: If you do not want any notice to appear, the correct content for the sitenotice page is not empty, but a single "-" sign.
- Alo note that for the display of the sitenotice, it makes a difference, if you are currently logged in or if you are not. See Manual:Interface/Sitenotice for details! 87.123.57.253 (talk) 13:05, 8 September 2016 (UTC)
- It seems like the content, which you get included there, is somehow wrapped into the class "wds-promobox". Do you have an idea, where thisclass may come from?
- Also in the history of the Sitenotice page I saw that you have used a htmlet tag to show notices. This is based on Extension:HTMLets. Maybe this extension somehow interferes with the rest of the system? Maybe it helps to deactivate the extension... 87.123.57.253 (talk) 13:20, 8 September 2016 (UTC)
- Thank you for the replies. I am still at a loss to understand what is going on.
- I did try '?action=purge' and it had no effect. I also cleared the browser cache, even restarting it and trying other browsers. The Sitenotice page just contains the code <!-- No notice -->', but the system is behaving as though it contains a previous version of the Sitenotice code: '<htmlet nocache="yes">kw-notice06</htmlet>'. It behaves the same whether you are logged in or not.
- The element with class 'wds-promobox' is part of the code in 'kw-notice06.html', which presents the box that you see at the top of each page. I have not yet tried deactivating the htmlet extension; it is used in other parts of the site and seems to be working normally. The odd thing now is that htmlet is not currently referenced AT ALL in the Sitenotice page, but the old code is being picked up from somewhere somehow.
- How/why this is happening is still a great mystery to me. Any help or suggestions would be welcome. Thx. Ranwaldo (talk) 11:54, 9 September 2016 (UTC)
Average Cost for infrastructure set up
HI! Can you give me an estimate of the average cost for infrastructure? 198.203.181.181 (talk) 13:59, 8 September 2016 (UTC)
- Depends completely on your demands and the size of the project. A small wiki can easily hosted on a $5 host. A wiki with the size of 10k users can dig around $500 out of your pockets, per month. 95.91.200.233 (talk) 14:34, 8 September 2016 (UTC)
Ship
Sorry for my English,
Itry to open Ship, but that dont work. Can not find ShipIcons. CarloAdam (talk) 21:32, 8 September 2016 (UTC)
- Welcome to the support desk for the MediaWiki software. Please elaborate what exactly the problem is with your MediaWiki installation, and how to reproduce the problem. As far as I know, there are no ships and no ship icons in MediaWiki. AKlapper (WMF) (talk) 10:23, 9 September 2016 (UTC)
Uploaded image file does not show.
- When I first choose a picture file to be uploaded, the thumbnail of the picture shows up to the right. Pretty standard. Then I chose to upload. The upload takes and the file name is created but the image does not show. Please help.
- When I go to the Special:ListFiles, the uploaded image list does not show. It just a blank page. Kuhitkuhit (talk) 22:00, 8 September 2016 (UTC)
- Unrelated to the problem: 1.25.3 is an ancient and insecure version. See Download. AKlapper (WMF) (talk) 16:23, 10 September 2016 (UTC)
- The file page has a link with a text similar to "view full size of the image". Click on it and see if there's any error message Ciencia Al Poder (talk) 11:16, 9 September 2016 (UTC)
- The files that I upload within 800 pixels have no problems at all.
- Any files over 800 pixels. Only the URL shows . The page is blank, therefore there is nothing to look at. No picture, not text, nothing whatsover, just blank. Try clicking on that link. You will see what I am talking about. Kuhitkuhit (talk) 18:29, 10 September 2016 (UTC)
- I upgraded to mediawiki:1.25.3 and this uploading problem started.
- As you stated on the old pictures, all the functions work. the problem is when I upload new pictures.
- Here is an example of an old file that was uploaded successfully: http://cyclecityusa.com/index.php?title=File:Trek_Fuel_9.8_2016.JPG
- But here is an example of a new file that the wiki says exists but the picture does not show: http://cyclecityusa.com/index.php?title=File:Blady_grass_habitii.jpg
- I can't figure it out. Kuhitkuhit (talk) 04:33, 10 September 2016 (UTC)
- Here is another problem.
- When I insert that file in an existing page that page can't be saved. It refuses to be saved but simply stays in the submit mode.
- Weird. Is this a virus?
- When I reduce the file to a size of 800pixels width, the file uploads and everything is OK.
- Here is the same file reduced to 800pixesl http://cyclecityusa.com/index.php?title=File:Blady_grass_habitii_800x1066.jpg Kuhitkuhit (talk) 04:45, 10 September 2016 (UTC)
- Your file description page that has the problem is simply a blank page. See blank page for instructions about how to proceed and have more details about the error. Ciencia Al Poder (talk) 10:29, 10 September 2016 (UTC)
- It suggested that I increase the memory from 20 to 32M which I did.
- But that did not work.
- Anything uploaded higher that 800pixels(width) returns with a blank page.
- Any image at 800 or lower is accepted and everything is just perfect.
- I am at a loss here. Kuhitkuhit (talk) 00:58, 11 September 2016 (UTC)
- You still haven't provided an error message that would otherwise help diagnosing the problem. As you said, looking at a plain blank page doesn't give much information :) Have you turned the display of errors "on", or have you looked at the apache (or whatever server you're using) error logs and find the error message? Ciencia Al Poder (talk) 11:15, 11 September 2016 (UTC)
Unable to move the new CDB file into place.
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.
No is happening, from one day to another stopped working . Could you help me?
MediaWiki 1.27.1
PHP 5.5
MySQL 5.6
wikicarca.esy.es
[V9HzGh@qpBMAADrgRG4AAACJ] / MWException from line 118 of /home/u471652879/public_html/includes/cache/localisation/LCStoreCDB.php: Unable to move the new CDB file into place.
Backtrace:
#0 /home/u471652879/public_html/includes/cache/localisation/LocalisationCache.php(1024): LCStoreCDB->finishWrite()
#1 /home/u471652879/public_html/includes/cache/localisation/LocalisationCache.php(462): LocalisationCache->recache(string)
#2 /home/u471652879/public_html/includes/cache/localisation/LocalisationCache.php(379): LocalisationCache->initLanguage(string)
#3 /home/u471652879/public_html/includes/cache/localisation/LocalisationCache.php(294): LocalisationCache->loadSubitem(string, string, string)
#4 /home/u471652879/public_html/languages/Language.php(2561): LocalisationCache->getSubitem(string, string, string)
#5 /home/u471652879/public_html/includes/cache/MessageCache.php(869): Language->getMessage(string)
#6 /home/u471652879/public_html/includes/cache/MessageCache.php(827): MessageCache->getMessageForLang(Language, string, boolean, array)
#7 /home/u471652879/public_html/includes/cache/MessageCache.php(768): MessageCache->getMessageFromFallbackChain(Language, string, boolean)
#8 /home/u471652879/public_html/includes/Message.php(1178): MessageCache->get(string, boolean, Language)
#9 /home/u471652879/public_html/includes/Message.php(801): Message->fetchMessage()
#10 /home/u471652879/public_html/includes/Message.php(892): Message->toString()
#11 /home/u471652879/public_html/includes/title/MalformedTitleException.php(49): Message->text()
#12 /home/u471652879/public_html/includes/title/MediaWikiTitleCodec.php(296): MalformedTitleException->__construct(string, string)
#13 /home/u471652879/public_html/includes/Title.php(3343): MediaWikiTitleCodec->splitTitleString(string, integer)
#14 /home/u471652879/public_html/includes/Title.php(367): Title->secureAndSplit()
#15 /home/u471652879/public_html/includes/MediaWiki.php(79): Title::newFromURL(string)
#16 /home/u471652879/public_html/includes/MediaWiki.php(135): MediaWiki->parseTitle()
#17 /home/u471652879/public_html/includes/MediaWiki.php(661): MediaWiki->getTitle()
#18 /home/u471652879/public_html/includes/MediaWiki.php(519): MediaWiki->main()
#19 /home/u471652879/public_html/index.php(43): MediaWiki->run()
#20 {main} DanielPalaversich (talk) 00:26, 9 September 2016 (UTC)
- Make sure to set $wgCacheDirectory to an existing directory and make sure that permissions on that directory are correct! 87.123.36.109 (talk) 08:36, 9 September 2016 (UTC)
- Many thanks! It was comment out the line 101 LocalSettings.php
## Set $ wgCacheDirectory to a writable directory on the web server## To make your wiki go slightly faster . The directory shouldnt## Be publically accessible from the web .# $ WgCacheDirectory = " $ IP / cache " ;Then I corrected the line and was thus , was solved .$ WgCacheDirectory = " $ IP / cache " ;That could have caused this, if before worked well ?Thanks for your prompt response.DanielPalaversich (talk) 12:45, 9 September 2016 (UTC)- Note that the spelling of the variable name, especially its casing is important. Whether it is a capital W or a small w makes a difference! Also the spaces inside the line should not be there. Correct is this one:
$wgCacheDirectory = "$IP/cache";87.123.36.109 (talk) 13:08, 9 September 2016 (UTC)
How to make a page like this
eg: Wikipedia:zh:User:小曹2015 => https://zh.wikipedia.org/wiki/User:小曹2015
How to make:
Bilibili:3071571 => http://www.bilibili.com/video/av3071571 ? 小曹2015 (talk) 03:56, 9 September 2016 (UTC)
- I want redriect Bilibili:3071571 to http://www.bilibili.com/video/av3071571 小曹2015 (talk) 03:58, 9 September 2016 (UTC)
- Manual:Guide to setting up interwiki linking Will it work? 小曹2015 (talk) 04:02, 9 September 2016 (UTC)
- Simple HTML with tales and divs. Subfader (talk) 13:48, 9 September 2016 (UTC)
- No, look at his first post: The first link points to zh.wikipedia.org, but when you click it, you are directly redirected to en.wikipedia.org. Like an interwiki redirect.
- I have tried viewing the source code of the zh.wikipedia page and even that gets redirected. I don't have a clue how he is doing that... 87.123.36.109 (talk) 13:52, 9 September 2016 (UTC)
Delete Some Files on This 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.
Hai. I am Ranjithsiji. I am trying to upload some photos to commons.wikimedia.org using commonist programme. Unfortunately I selected mediawiki on the wiki. So some files are directly uploaded into this wiki. Category:Files to Delete - Wrong Uploads by Ranjithsiji You can see the files here. Please Delete them and The Category Also. I will take care in future . Thanks ~ Ranjithsiji (talk) 06:04, 9 September 2016 (UTC)
- Hi. Files deleted. Commonist seems to reset the settings when updated, so you are not the first user to upload images here instead of on Commons. Tegel (talk) 06:18, 9 September 2016 (UTC)
How do I put a javascipt on all 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 have a code here that I want to include as global. Where do I put it?
<script type="text/javascript">
(function(d, src, c) { var t=d.scripts[d.scripts.length - 1],s=d.createElement('script');s.id='la_x2s6df8d';s.async=true;s.src=src;s.onload=s.onreadystatechange=function(){var rs=this.readyState;if(rs&&(rs!='complete')&&(rs!='loaded')){return;}c(this);};t.parentElement.insertBefore(s,t.nextSibling);})(document,
'https://support.51talk.com/scripts/track.js',
function(e){ LiveAgent.createButton('e6a4f66b', e); });
</script> 180.232.71.202 (talk) 09:37, 9 September 2016 (UTC)
- You put the JavaScript on the wiki page MediaWiki:Common.js in your wiki!
- See Manual:Interface/JavaScript for more information! 87.123.36.109 (talk) 09:40, 9 September 2016 (UTC)
Wiki 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.
Hi
I current have a wiki, all accounts have been disabled, apart from one account with admin rights, however i do not know the password. i also dont have the root password for mysql. is there any change of me being able to change the password of one account with admin rights, there is also no email linked to the account.
I do have access to the workstations running the wiki. 88.211.115.18 (talk) 10:48, 9 September 2016 (UTC)
- If you have shell access, you can use the maintenance script changePassword.php to change the password of a user!
- Other options are explained on page Manual:Resetting passwords! 87.123.36.109 (talk) 10:53, 9 September 2016 (UTC)
- I don't have shell access however i have been trying to follow the manual:resetting password but it doesnt really outline the application to use, i have tried the php commend application within the wiki installation files, but this doesn't seem to make a different see attached screen shot 88.211.115.18 (talk) 11:12, 9 September 2016 (UTC)
- You need to use the shell/command line on the worstation on which the wiki is installed. Using the command line on your local computer won't work - unless this is the machine on which the wiki is running.
- Note that for direct database manipulation you do not need the credentials of the MySQL root user. It is enough to know the credentials of the account, which your wiki is using. These credentials are in your LocalSettings.php file. 87.123.36.109 (talk) 11:25, 9 September 2016 (UTC)
- Thats worked thank you :-) 88.211.115.18 (talk) 11:50, 9 September 2016 (UTC)
Searching in MediaWiki
Hello!
I want to start using mediawiki but i have one problem. It's about searching. I need more advanced searching than it is in basic mediawiki. It must have OR/AND logic and it must have filling logic (i mean when i write consult* in search engine it will search for consultant and consultation).
Hope you can help me! K.chlapek (talk) 11:28, 9 September 2016 (UTC)
- You probably want to install Extension:CirrusSearch with Elastica Ciencia Al Poder (talk) 13:23, 9 September 2016 (UTC)
Cache doesn't update
I'm updating from 1.25 to 1.27.1 and I have major problems with the cache.
E.g. file usage doesn't update. I add an image to another page, but the file usage on the image page only lists the old page.
I remove a category from the image, but the category page still lists it.
Or page info: I watch a page but the number of wathcing users is still 0.
Didn't help:
- action=purge
- Refreshing $wgCacheEpoch
Setup:
- MW 1.27.1
- PHP 5.5.9-1ubuntu4.14 (apache2handler)
- PHP Opcache
- $wgMainCacheType = $wgParserCacheType = $wgMessageCacheType = $wgSessionCacheType = CACHE_MEMCACHED;
- $wgUseFileCache = true; Subfader (talk) 13:37, 9 September 2016 (UTC)
- See Manual:$wgRunJobsAsync! Also note that there will be additional changes to the job queue in MW 1.27.2 - the story of bugs will continue! ;-( 87.123.36.109 (talk) 13:45, 9 September 2016 (UTC)
- Ah f**k, thanks. I remember reading about here days ago. Yes, MW gets worse and worse. It started when they removed the hitcounter... Subfader (talk) 14:04, 9 September 2016 (UTC)
- Now with $wgJobRunRate = 3; and $wgRunJobsAsync = false; the cat changes appeared after a few clicks (~20 sec).
- I added an image to a cat. After browsing some pages I now see the new categorization, but only with action=purge. But normal users don't use that. They think the wiki is broken :(
- Even if I runJobs.php as a non stop cron job: What if the job queue is filled with slow entries like thumbs or 10k jobs for Extension:ReplaceText? The contributor will see cat changes only after minutes?
- So I need a live job queue and action=purge to see changes? WTF! This is big time crap. Sorry for the harsh words.
- Test on mediawiki.org: A categorized image appeared after 20 seconds and without action=purge. Hmh.
- Btw: The "Number of page watchers" on action=info does not update at all. Subfader (talk) 14:22, 9 September 2016 (UTC)
- After minutes is better than not at all, right? You do not need action=purge, it just makes this one update faster. And btw only updating a page itself, has nothing to do with the job queue... 87.123.36.109 (talk) 14:38, 9 September 2016 (UTC)
- It was the browser cache. That makes it even worse.
- Go to Category:Foo, delete a page
- Go back to the cat page
- Wait till the job is done
- Reload > Red link
- action=purge > Link gone
- Click the category tab (no purge) > Red link
- Shouldn't the page invalidate after the job is done? I hadn't such problems on MW 1.25 where I use the same headers.
- This is cache hell!!!
- I wasted 3 days updating MediaWiki and now this shit :( Subfader (talk) 15:57, 9 September 2016 (UTC)
- Ok, it's not the browser cache. I remembered, on cat pages I return a list of pages in a custom ns. Its cache is flushed on the edit complete hook for the page's belonging categories.
- This is gone in the wind now when the user visist a page's new categorized cat page before the job updated it.
- I need a hook then for JobCompleteAfterCategorization... lol :( Subfader (talk) 18:35, 9 September 2016 (UTC)
- It was the browser cache. That makes it even worse.
- I know reloading doesn't push the job queue. Tell that my contributors... They categorize an image, click on the cat link and don't find that image.
- I added a purge tab on top for general cache reloading. It now doesn't fix this.
- So users now need to understand browser cache, server cache and "unchanged edits"?
- All this is waaaay too confusing.
- And again: What if the queue is full with slow jobs and thousands of batch / bot edits?
- Do these new cache jobs have a specific type so I can run these as non stop cron job? Subfader (talk) 14:42, 9 September 2016 (UTC)
- I could exclude slow jobs via $wgJobTypesExcludedFromDefaultQueue ...
- Being a MediaWiki admin is hard ;) Subfader (talk) 14:53, 9 September 2016 (UTC)
- Won't help either. The non-stop cronjob checks if "runJobs.php" is running... MEH! Subfader (talk) 15:38, 9 September 2016 (UTC)
- The job queue is broken. Maybe because it got implemented badly, maybe because it has basical flaws, which are hard or even impossible to fix. I don't know that.
- All I know is that the job queue in many cases and for many users is not working as expected. Setting up a cron job can help, also to get ReplaceText rows done.
- The real solution is to nudge the developers to get the basic system functional - and then to configure it properly. 87.123.36.109 (talk) 14:55, 9 September 2016 (UTC)
- Bug report: https://phabricator.wikimedia.org/T145206 Subfader (talk) 16:04, 9 September 2016 (UTC)
Active Users 0?
in Special:Statistics Actice Users 0, But in Special:ActiveUsers is working. Kiwkius (talk) 15:50, 9 September 2016 (UTC)
- See this: https://phabricator.wikimedia.org/T140079
- You might be experiencing the same bug. AhmadF.Cheema (talk) 16:34, 9 September 2016 (UTC)
- i did that, But even if the active users list changes {{NUMBEROFACTIVEUSERS}} does not change. Kiwkius (talk) 04:01, 10 September 2016 (UTC)
- For some reason I cannot see the "1,241" figure. Maybe that value is cached at your end?
- (I am assuming this should have been visible here: Special:Statistics) AhmadF.Cheema (talk) 06:16, 10 September 2016 (UTC)
- The table row with "Active Users" in it is showing me a 12 currently. 87.123.13.89 (talk) 08:18, 10 September 2016 (UTC)
- Keyboard Miss.
- But even if the active users list changes "NUMBEROFACTIVEUSERS" does not change. Kiwkius (talk) 10:05, 10 September 2016 (UTC)
- As is mentioned in the above linked phabricator page, because of this bug you will probably have to run the maintenance script every time you need to update the value.
initSiteStats.php --active- A nice way of doing this is to set up a cron job for this. AhmadF.Cheema (talk) 10:41, 10 September 2016 (UTC)
- Why i need run the maintenance script every time? Kiwkius (talk) 15:29, 10 September 2016 (UTC)
- This is a bug apparently with the MediaWiki installation through a web browser. This has not been fixed and apparently most users do not have to face this bug.
- Until the bug gets fixed (which is unlikely anytime soon), this maintenance script will probably need to be routinely run.
- You can try re-installing MediaWiki through the more complicated method of command-line installer, which might solve the problem but I think this process would be more trouble than it is worth. AhmadF.Cheema (talk) 18:48, 10 September 2016 (UTC)
Restbase private public accessibility
I was wondering how RestBase was intended to be used. I have a wiki working at: http://joshuarosales.com/wiki/index.php/Quadratic_Formula but as you can see, the RestBase server isn't correctly returning the cached svg image when one tries to access the page from outside the network. I realize this is because the embedded image has the associated HTML:
<img src="http://localhost:7231/localhost/v1/media/math/render/svg/00c22777378f9c594c71158fea8946f2495f2a28" class="mwe-math-fallback-image-inline" aria-hidden="true" style="vertical-align: -1.838ex; width:21.26ex; height:5.843ex;" alt="{\displaystyle x={\frac {-b\pm {\sqrt {b^{2}-4ac}}}{2a}}}">
Note that is says "localhost" -- so it only works when I pull up the page on the box hosting the wiki. I was wondering if there was a way for the site to access the RestBase server without having to expose RestBase to the Internet (outside connections). If not, I can live with exposing it to the Internet so anyone can query it. Restbase, Parsoid, and Mathoid and the wiki all live on the same box.
It seems to me that it would be possible for the RestBase server to deposit the generated or cached image in a directory where the wiki could access it, but I don't know about any of the technical difficulties.
Thanks for reading. Joshuar7 (talk) 22:45, 9 September 2016 (UTC)
- On Wikipedia the equivalent URL is directly accessible (e.g. [1]) so I guess Mathoid has to be directly exposed on the Web. The extension:Math has the classical mode (when $wgMathValidModes has the key 'png') where you can generate an image server-side (see Extension:Math/advancedSettings), but this not the default option because SVG or MathML can generate better-quality formulæ. You can set up the default mode to PNG with
$wgDefaultUserOptions['math'] = 'png';~ Seb35 [^_^] 07:22, 10 September 2016 (UTC)
Add logo over wiki tabs
Hello MediaWiki support,
I would like to modify my wiki design. How can I add a image over the wiki tabs?
For example:
Resources
Using a images for example: http://tieteentermipankki.fi/mediawiki/extensions/Termbank/resources/termipankki_tunnus.png.
- Source Page: http://tieteentermipankki.fi/wiki/Toiminnot:MyLanguage/Termipankki:Etusivu Suriyaa Kudo (iSC Inc.) (talk) 11:13, 10 September 2016 (UTC)
- MediaWiki has a possibility to add a custom logo. See Manual:$wgLogo for how to do that!
- This logo must have a certain size and it will be displayed in the upper left-hand corner of the screen. For the text, which you want to have in top of the page content, I would then use a second image. Maybe it is posible, to add this one using CSS on the wiki page MediaWiki:Common.css in your wiki. 87.123.13.89 (talk) 11:28, 10 September 2016 (UTC)
- I already set
$wgLogofor my wiki but I don't know how to set the text or image, which I want to have in top of the page content. Suriyaa Kudo (iSC Inc.) (talk) 11:40, 10 September 2016 (UTC) - Try skin specific CSS with a non-repeating background image having a laeft margin... 2003:6F:8B76:A00:B0D5:8DA0:9514:7402 (talk) 00:28, 11 September 2016 (UTC)
- For example? Suriyaa Kudo (iSC Inc.) (talk) 15:31, 11 September 2016 (UTC)
- You'll need to push tabs and content to the bottom. You can try this CSS:
- (commented-out values are the current defaults)
- Ciencia Al Poder (talk) 17:13, 11 September 2016 (UTC)
#left-navigation, #right-navigation { /* margin-top: 2.5em; */ margin-top:200px; } div.vectorTabs { /* height: 2.5em; */ height: 40px; } #mw-head-base { /*margin-top: -5em; height: 5em;*/ margin-top: -80px; height:240px; } - And the text to display above the tabs? Suriyaa Kudo (iSC Inc.) (talk) 05:12, 12 September 2016 (UTC)
- Put it as a background image Ciencia Al Poder (talk) 19:39, 12 September 2016 (UTC)
- For example? Suriyaa Kudo (iSC Inc.) (talk) 14:22, 13 September 2016 (UTC)
- Ciencia Al Poder (talk) 09:35, 14 September 2016 (UTC)
#mw-head { background-image: url( put here the URL of the background ); } - I set it:

- Is it possible to use a text instead of a background-image? Suriyaa Kudo (iSC Inc.) (talk) 11:18, 18 September 2016 (UTC)
- You can, but you'll have limited text formatting options. Definitively not 2 texts with different formats
- Ciencia Al Poder (talk) 11:37, 18 September 2016 (UTC)
#mw-head:after { content: "Example Text"; line-height: 200px; }
Modify wiki tabs
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 modify the wiki tabs of a MediaWiki wiki?
Suriyaa Kudo (iSC Inc.) (talk) 11:17, 10 September 2016 (UTC)
- What do you mean with "modify"?
- Do you want another text?
- Do you want to remove a tab?
- Do you want to add one?
- ... 87.123.13.89 (talk) 11:25, 10 September 2016 (UTC)
- All three:
- Another text.
- Removing a tab.
- Add a new tab. Suriyaa Kudo (iSC Inc.) (talk) 11:29, 10 September 2016 (UTC)
- The text can be changed by overwriting the according language label inside the MediaWiki namespace. See Help:System message for more information!
- A tab can be removed or added using the SkinTemplateNavigation hook. See Manual:FAQ#How_do_I_add.2Fremove_tabs_throughout_my_wiki.3F for an example on that! 87.123.13.89 (talk) 11:38, 10 September 2016 (UTC)
- Thanks. Suriyaa Kudo (iSC Inc.) (talk) 13:35, 10 September 2016 (UTC)
Some warning message I don't get after updating to MW 1.26.2
Hey there guys, I need some help. After updating from MW 1.25.1 to 1.26.2 these message can be seen sometimes above the page (in my wiki). <br />
Here are some infos you might need:<br />MediaWiki: 1.26.2<br />PHP: 7.0.10 (cgi-fcgi)<br />MySQL: 5.5.50-0+deb7u2-log<br />ICU: 4.8.1.1<br />
I hope you guys can help me out by figuring out what those warning messages are meaning and trying to fix the issues. Thanks in regards.
<pre>Warning: OutputPage::getModuleStyles: style module should define its position explicitly: mw.PopUpMediaTransform ResourceLoaderFileModule [Called from OutputPage::getModuleStyles in /var/www/xxx/xxx/xxx/includes/OutputPage.php at line 623] in /var/www/xxx/xxx/xxx/includes/debug/MWDebug.php on line 300 Warning: OutputPage::getModuleStyles: style module should define its position explicitly: mw.PopUpMediaTransform ResourceLoaderFileModule [Called from OutputPage::getModuleStyles in /var/www/xxx/xxx/xxx/includes/OutputPage.php at line 623] in /var/www/xxx/xxx/xxxx/includes/debug/MWDebug.php on line 300</pre>
(When visiting any "Category:" page)
<pre>Warning: is_file(): open_basedir restriction in effect. File(/usr/bin/git) is not within the allowed path(s): (/var/www/xxx/:/tmp/) in /var/www/xxx/xxx/xxx/includes/GitInfo.php on line 210 Warning: is_file(): open_basedir restriction in effect. File(/usr/bin/git) is not within the allowed path(s): (/var/www/xxx/:/tmp/) in /var/www/xxx/xxx/xxx/includes/GitInfo.php on line 210 Warning: is_file(): open_basedir restriction in effect. File(/usr/bin/git) is not within the allowed path(s): (/var/www/xxx/:/tmp/) in /var/www/xxx/xxx/xxx/includes/GitInfo.php on line 210 Warning: is_file(): open_basedir restriction in effect. File(/usr/bin/git) is not within the allowed path(s): (/var/www/xxx/:/tmp/) in /var/www/xxx/xxx/xxx/includes/GitInfo.php on line 210 Warning: is_file(): open_basedir restriction in effect. File(/usr/bin/git) is not within the allowed path(s): (/var/www/xxx/:/tmp/) in /var/www/xxx/xxx/xxx/includes/GitInfo.php on line 210 Warning: is_file(): open_basedir restriction in effect. File(/usr/bin/git) is not within the allowed path(s): (/var/www/xxx/:/tmp/) in /var/www/xxx/xxx/xxx/includes/GitInfo.php on line 210 Warning: is_file(): open_basedir restriction in effect. File(/usr/bin/git) is not within the allowed path(s): (/var/www/xxx/:/tmp/) in /var/www/xxx/xxx/xxx/includes/GitInfo.php on line 210</pre>
(When visiting the "Special:Version" page) 91.97.90.218 (talk) 15:36, 10 September 2016 (UTC)
- For the warning
- Warning: OutputPage::getModuleStyles: style module should define its position explicitly: mw.PopUpMediaTransform ResourceLoaderFileModule
- Please update all extensions, which you are using! This module might be defined in extension TimedMediaHandler, so it might be possible that updating this extension solves this problem. (Apart from that, in MediaWiki 1.27, this warning will not show up anymore, even if the extension would create it.)
- For the
- Warning: is_file(): open_basedir restriction in effect. File(/usr/bin/git) is not within the allowed path(s)
- There are three possible solutions:
- Add the path to Git to open_basedir in php.ini. I am not sure, if doing so would be secure.
- Or install Git somewhere inside your open_basedir and adjust $wgGitBin so that it points to that executable.
- Set $wgGitBin to false.
- The easiest solution is to set $wgGitBin to false. 87.123.13.89 (talk) 16:57, 10 September 2016 (UTC)
- Well, that's strange. After updating to 1.26.2 I also updated all extensions I'm using (including TimedMediaHandler) and for some reason this message stil appeared but (as you suggested) after updating this extension to the latest version (from 0.4.0 to 0.5.0) this message doesn't appear in any category pages anymore. Thanks! The second warning message also won't show up anymore after updating TimedMediaHandler to the latest version (for some reason). I think I don't need set $wgGitBin to false anymore since the second warning doesn't pop up anymore, am I right? If not, which file should I edit? LocalSettings.php or Gitinfo.php? 91.96.18.197 (talk) 05:16, 11 September 2016 (UTC)
- The git warning usually appears when you are visiting the page Special:Version in your wiki. If you haven't changed anything in that regard, I would expect it to happen again in the future. The MediaWiki installer btw is also setting this variable by default, but only in case of a new installation. In cases like yours, where you are doing an upgrade, you can add it manually.
- You should always edit LocalSettings.php and not other files to adjust your configuration! 87.123.56.36 (talk) 07:24, 11 September 2016 (UTC)
- Thank you sir 110.54.248.11 (talk) 14:02, 28 December 2018 (UTC)
Post-edit confirmation message bubble broken on 1.27.1
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 just updated my MediaWiki instance from 1.25 to 1.27.1 (7c4a46b), running on HHVM 3.6.6 (srv) both before and after. Things seem to be working fine overall, but I've noticed that the post-edit confirmation dialog is broken. Instead of appearing center-top with a friendly piece of feedback, it appears in the top left, elongated and empty, and pushing the nav buttons down for a bit until it disappears.
- Anyone know what might be wrong? Mxawng (talk) 20:09, 10 September 2016 (UTC)
- Same, just without the box, only text. Subfader (talk) 13:35, 14 September 2016 (UTC)
- So probably a similar treatment will work: go on your page "MediaWiki:Common.css" (and "MediaWiki:Vector.css" if the first didn’t solve the issue) and clean them. There is probably some CSS rule modifying the style of this box. An interesting (and probably good) practice is to comment the various rules to know where it should apply, and when possible try to use the CSS specificity to give some rules a high priority and be sure they apply only on some restricted parts. ~ Seb35 [^_^] 22:49, 14 September 2016 (UTC)
- Here's a screencap of the issue: http://imgur.com/a/G4Kgv Mxawng (talk) 20:12, 10 September 2016 (UTC)
- This is the 'postedit' notification. I found this old bug which is perhaps similar as well as this flash of unstyled content more recently.
- What is the browser you are using when you see this issue? Can you try another browser? In any case, be sure you clear your cache before testing (Ctrl-F5 or Ctrl-R). ~ Seb35 [^_^] 20:57, 10 September 2016 (UTC)
- I can repro on both the most recent version of Chrome and the most recent version of Firefox. Mxawng (talk) 22:57, 12 September 2016 (UTC)
- For me, the dialog shows up, and then disappears. It's very natural, but the styling is incorrect the whole time (the text is not even visible). Mxawng (talk) 23:15, 12 September 2016 (UTC)
- Ok, check you don’t have custom CSS rules in your "MediaWiki:Common.css". Else I guess it is a new bug and it’s great (in a sense) you can reproduce it, can you create a report on Phabricator with a link to the screenshot? You can connect to Phabricator with your MediaWiki.org account. And is your wiki public? ~ Seb35 [^_^] 13:39, 13 September 2016 (UTC)
- Oof, blanking MediaWiki:Common.css fixed the issue. Mxawng (talk) 18:54, 14 September 2016 (UTC)
- Whoops, hit Enter too soon.
- I have no recollection of where my wiki's Common.css came from—I added it a long time ago when I had no idea what I was doing; pretty sure I just copied it from either MediaWiki or Wikipedia. Is there anything typically in Common.css that's "necessary" for correctness, for some useful definition of necessary that you might be able to provide?
- Thanks for the help—really appreciated! Mxawng (talk) 18:56, 14 September 2016 (UTC)
- Common.css is blank by default, and nothing should be "necessary" to put there. That's part of the customizations you want to do on your wiki. Ciencia Al Poder (talk) 19:57, 14 September 2016 (UTC)
- Happy it fixed your issue :) ~ Seb35 [^_^] 22:38, 14 September 2016 (UTC)
QINU/UNIQ error in Extension:RSS in MW 1.27.1
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.
Extension:RSS returns QINU/UNIQ errors.
But the parsing is done properly according to QINU fix:
protected function sandboxParse( $wikiText, $origParser ) {
$myParser = new Parser();
$result = $myParser->parse(
$wikiText,
$origParser->getTitle(),
$origParser->getOptions()
);
return $result->getText();
}
How can this be fixed? Subfader (talk) 11:16, 11 September 2016 (UTC)
Urlencode Problem
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 got Mail with following Link:
url/index.php?title=Special:ConfirmEmail/7693cf9a223ac316a12f27d38645a580
If i click this link i will be forwarded by mediawiki to:
url/index.php?title=Spezial:E-Mail_best%25C3%25A4tigen/7693cf9a223ac316a12f27d38645a580
Why it makes this %25C3%25A4 out of ä?
Ungültiger Titel
Der angeforderte Seitentitel enthält ungültige Zeichen: „%C3“.
Zurück zur Seite Hauptseite.
The by hand editet URL
url/index.php?title=Spezial:E-Mail_best%C3%A4tigen/7693cf9a223ac316a12f27d38645a580
works fine
How to solve?
Wiki 1.27.1 80.147.9.220 (talk) 18:26, 11 September 2016 (UTC)
- It is being encoded twice (
%25is the encoding for%), perhaps an issue with a rewrite rule. 121.220.53.76 (talk) 07:03, 12 September 2016 (UTC) - You got it!
- We rewrite http to https, but there is a failure. But Why?
- Whitout thist rule it works. But Why this Rule rewrites https access?
- RewriteEngine On
- RewriteCond %{HTTPS} off
- RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} 80.147.9.220 (talk) 09:08, 12 September 2016 (UTC)
- http://stackoverflow.com/questions/6520484/mod-rewrite-urlencoding-an-already-urlencoded-querystring-parameter-any-way-to 121.220.53.76 (talk) 11:36, 12 September 2016 (UTC)
- You are the best!!!!
- Solved - Many Thanks! 80.147.9.220 (talk) 08:37, 13 September 2016 (UTC)
Can you please create usernamedelete and usernameundelete extensions?
Can you please create these features? They would be used for deleting grossly improper usernames and undeleting them if they were discovered not to be grossly improper. Paint Roller (talk) 21:12, 11 September 2016 (UTC)
- If a user has one or more contributions, the account cannot be deleted. FriedhelmW (talk) 22:26, 11 September 2016 (UTC)
- Such features are available - one way or the other:
- In Wikipedia, usernames usually are never deleted. Instead, they are renamed. en:WP:Changing username has further information on this!
- If you have your own wiki, then you can use extensions to rename users. But there also are extensions, which allow you to merge contributions from one user to another and even to make contributions of a logged in user anonymous. This includes the possibility to actually delete the then unused user account. Extension:UserMerge is what you should have a look at in this category! 87.123.56.36 (talk) 22:30, 11 September 2016 (UTC)
Javascript is not activated?!
Hey there guys, for some unkwon reasons the JS defined class mw-collapsible (mw-collapsed) is currently not working in our wiki. The "hide" and "show" wont show up. I tryed a few things, but it wont work either! And the special page "maintenence shell" is not working too! A message is always popping up saying "JavaScript must be activated" in order to use this special page. I am really confused right now. In other wiki, like this wiki, mw-collapsible (mw-collapsed) is working but not in my wiki.
I am not using any css/js rules in my wiki to define these two classes. I updated /resources and all the files to the latest version and still nothing happend.I even read the manuals and copy&pasted the css&js rules. Nothing happend. A few days ago I noticed that mw-collapsible (mw-collapsed) was not always working. Sometimes the toogle button was shown and sometimes not. But now it's entirely not working.
Currently using: MediaWiki: 1.26.2; https://php.net/ PHP 7.0.10 (cgi-fcgi); MySQL 5.5.50-0+deb7u2-log; ICU 4.8.1.1
I'd be really grateful and happy if someone could help me. 91.96.131.188 (talk) 05:46, 12 September 2016 (UTC)
- Press F12, reload the page and see the errors which come up in the console; these are preventing JS from working. Probably caused by some custom script in MediaWiki:Common.js or MediaWiki:Vector.js. 121.220.53.76 (talk) 07:01, 12 September 2016 (UTC)
- I made two screenshots, please take a look.
- http://i1250.photobucket.com/albums/hh535/lodestar/fzwscreenshot01_zps4ezxjzsc.png
- http://i1250.photobucket.com/albums/hh535/lodestar/fzwscreenshot02_zpsjnt9lffk.png
- I also copied these codes (mypage.example/example/Benutzer:xxx:26 - take a look at the second screenshot)
- <code><nowiki>
- <link rel="stylesheet" href="data:text/css;charset=UTF-8;base64,I2Nzcy1leHRlbnNpb24tY2FuYXJ5LWM0NzFmMXtiYWNrZ3JvdW5kOiNjNDcxZjEgIWltcG9ydGFudH1kaXYuY2VudGVyIHsKICAgIHRleHQtYWxpZ246IGNlbnRlcjsKfQoKQG1lZGlhIHNjcmVlbiBhbmQgKG1heC13aWR0aDogMTAwMHB4KSB7Ci5kaXNhcHBlYXIgaW1nIHsKICAgIGRpc3BsYXk6IG5vbmU7Cn0KfQ==" /><script>jQuery( function( $ ) {
- $( 'link[href^="data:text/css;charset=UTF-8;base64,I2Nzcy1leHRlbnNpb24tY2FuYXJ5LWM0NzFmMXti"]' )
- .cssExtensionDataURIFallback( 'css-extension-canary-c471f1', 'c471f1' );
- } );</script></nowiki></code>
- <code><nowiki>
- Exception encountered, of type "Error"<br />
- [b283ccc6] /load.php?debug=false&lang=de&modules=startup&only=scripts&skin=timeless Error from line 563 of /var/www/web130/html/mediawiki-1.23.4/mediawiki-1.23.4/includes/resourceloader/ResourceLoader.php: Class 'ResourceLoaderSiteStylesModule' not found<br />
- Backtrace:<br />
- #0 /var/www/web130/html/mediawiki-1.23.4/mediawiki-1.23.4/includes/resourceloader/ResourceLoader.php(132): ResourceLoader->getModule(string)<br />
- #1 /var/www/web130/html/mediawiki-1.23.4/mediawiki-1.23.4/includes/resourceloader/ResourceLoaderStartUpModule.php(406): ResourceLoader->preloadModuleInfo(array, DerivativeResourceLoaderContext)<br />
- #2 /var/www/web130/html/mediawiki-1.23.4/mediawiki-1.23.4/includes/resourceloader/ResourceLoaderStartUpModule.php(388): ResourceLoaderStartUpModule->getAllModuleHashes(DerivativeResourceLoaderContext)<br />
- #3 /var/www/web130/html/mediawiki-1.23.4/mediawiki-1.23.4/includes/resourceloader/ResourceLoaderModule.php(624): ResourceLoaderStartUpModule->getDefinitionSummary(DerivativeResourceLoaderContext)<br />
- #4 /var/www/web130/html/mediawiki-1.23.4/mediawiki-1.23.4/includes/resourceloader/ResourceLoader.php(643): ResourceLoaderModule->getVersionHash(DerivativeResourceLoaderContext)<br />
- #5 [internal function]: ResourceLoader->{closure}(string)<br />
- #6 /var/www/web130/html/mediawiki-1.23.4/mediawiki-1.23.4/includes/resourceloader/ResourceLoader.php(644): array_map(Closure, array)<br />
- #7 /var/www/web130/html/mediawiki-1.23.4/mediawiki-1.23.4/includes/resourceloader/ResourceLoader.php(696): ResourceLoader->getCombinedVersion(ResourceLoaderContext, array)<br />
- #8 /var/www/web130/h
- </nowiki></code>
- (when clicking on "Refused to execute script from 'http://fzerowiki.net/load.php?debug=false&lang=de&modules=startup&only=scripts&skin=timeless' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.")
- I am assuming somethings wrong with the [[Skin:Timeless|Timeless]] skin. 91.96.131.188 (talk) 19:02, 12 September 2016 (UTC)
- now what? 85.16.33.149 (talk) 15:30, 15 September 2016 (UTC)
- The relevant part of the error is
Class 'ResourceLoaderSiteStylesModule' not found- You should check, where (= in which file) this class should be. And why it is not there. 87.123.41.228 (talk) 15:55, 15 September 2016 (UTC)
- I think this is not a problem with that one skin. You are getting the same error message also, if you use that URL, but with "vector" or "monobook" instead of "timeless" in it.
- Class ResourceLoaderSiteStylesModule should be defined in includes/resourceloader/ResourceLoaderSiteStylesModule.php and it is referenced in autoload.php.
- Make sure that all files of the MediaWiki package got extracted and that no old files remained.
- Afterwards, make sure to empty all caches, e.g. the PHP cache, a class loader cache, APC or whatever you might have running on the server! 87.123.41.228 (talk) 18:14, 15 September 2016 (UTC)
- Done. JavaScript is now activated. Thanks. 85.16.38.51 (talk) 12:18, 17 September 2016 (UTC)
- JavaScript had been activated all the time. How have you fixed the issue? 87.123.2.94 (talk) 12:46, 17 September 2016 (UTC)
- I realized something was wrong with the Common.js page and the extension "CSS". I just updated MediaWiki to the current version. I also realized that the skins have nothing to do with the issue because the console menu is always reporting the same message even If I switch to vector or monobook. To be honest (and I realized that a few hours ago) the issue is not really fixed. I am sorry and I really don't understand how to handle with PHP and/or JS. I am just a CSS & HTML guy with a wiki on a shared host server. As you may realized I really can't do anything because I've some problems to understand where the problem is how to fix it. But I am really motivated and have interest to learn more about the current situation and how to fix it.
- I am thinking about deleting the Common.js page since these codes are useless for us. I just wanted the "click on image to toogle" thingy and I need that in the future.[2] So, let us restart so I can think about the whole problem.
- When this visiting this page these message can be seen in the console menu of Firefox and/or Google Chrome:
- (Google Chrome)
- Uncaught ReferenceError: jQuery is not defined
- load.php?debug=false&lang=de&modules=jquery%2Cmediawiki&only=scripts&skin=monobook&version=Lw3Ssrp0:178 Exception in module-execute in module site:
- load.php?debug=false&lang=de&modules=jquery%2Cmediawiki&only=scripts&skin=monobook&version=Lw3Ssrp0:178 ReferenceError: addOnloadHook is not defined ReferenceError: addOnloadHook is not defined(…)log @ load.php?debug=false&lang=de&modules=jquery%2Cmediawiki&only=scripts&skin=monobook&version=Lw3Ssrp0:178
- (Firefox)
- Exception in module-execute in module site:load.php:178:411
- ReferenceError: addOnloadHook is not defined ReferenceError: addOnloadHook is not defined [...]
- What I get is that jQuery and addOnloadHook is not defined. I clicked on "Warnings" (in the console/debug menu of Firefox while reading the "Captain Falcon page") and got several warning messages like "Use of "$j" is deprecated. Use $ or jQuery instead." or "Use of "wgAction" is deprecated. Use mw.config instead." 85.16.47.223 (talk) 09:32, 18 September 2016 (UTC)
- The "Uncaught ReferenceError: jQuery is not defined" is because Extension:CSS is injecting a script referencing jQuery at the head of the document, but jQuery is loaded asynchronously, so when the Extension:CSS script is loaded, jQuery still is not defined. I can say for sure that Extension:CSS is broken. I'd recommend uninstalling it. You can achieve similar effects by editing MediaWiki:Common.css and target your rules to the specific CSS class that every page has in the body element.
- addOnloadHook was deprecated long ago and is now no longer supported. See ResourceLoader/Legacy JavaScript. You can fix that simply by replacing "addOnloadHook" with "jQuery". But knowing that your scripts are relying on that obsolete method, it may throw other errors for similar obsolete methods when this code executes. Ciencia Al Poder (talk) 09:43, 19 September 2016 (UTC)
I know it's been five months and our wiki is a ghost town (but thats not important anyway). Erm... okay... I'm a noobie, so dont expect I understand everything. What I know is that these <idontknowhowtocallthem> are deprecated, I got it. Now I need to replace them... with newer ones, right? And how am I supposed to do that? Which file(s) should I edit and where is it (/are they)?
| Warning messages (if someones wants to take a look...) |
|---|
load.php?debug=false&lang=de&modules=jquery%2Cmediawiki&only=scripts&skin=timeless&version=Lw3Ssrp0:178 ReferenceError: addOnloadHook is not defined ReferenceError: addOnloadHook is not defined
at eval (eval at <anonymous> (load.php?debug=false&lang=de&modules=jquery%2Cmediawiki&only=scripts&skin=timeless&version=Lw3Ssrp0:4), <anonymous>:6:91)
at eval (<anonymous>)
at load.php?debug=false&lang=de&modules=jquery%2Cmediawiki&only=scripts&skin=timeless&version=Lw3Ssrp0:4
at Function.globalEval (load.php?debug=false&lang=de&modules=jquery%2Cmediawiki&only=scripts&skin=timeless&version=Lw3Ssrp0:4)
at Object.<anonymous> (load.php?debug=false&lang=de&modules=jquery%2Cmediawiki&only=scripts&skin=timeless&version=Lw3Ssrp0:163)
at fire (load.php?debug=false&lang=de&modules=jquery%2Cmediawiki&only=scripts&skin=timeless&version=Lw3Ssrp0:45)
at Object.add [as done] (load.php?debug=false&lang=de&modules=jquery%2Cmediawiki&only=scripts&skin=timeless&version=Lw3Ssrp0:45)
at Object.always (load.php?debug=false&lang=de&modules=jquery%2Cmediawiki&only=scripts&skin=timeless&version=Lw3Ssrp0:46)
at runScript (load.php?debug=false&lang=de&modules=jquery%2Cmediawiki&only=scripts&skin=timeless&version=Lw3Ssrp0:162)
at checkCssHandles (load.php?debug=false&lang=de&modules=jquery%2Cmediawiki&only=scripts&skin=timeless&version=Lw3Ssrp0:163)
log @ load.php?debug=false&lang=de&modules=jquery%2Cmediawiki&only=scripts&skin=timeless&version=Lw3Ssrp0:178
handler @ load.php?debug=false&lang=de&modules=jquery%2Cmediawiki&only=scripts&skin=timeless&version=Lw3Ssrp0:155
fire @ load.php?debug=false&lang=de&modules=jquery%2Cmediawiki&only=scripts&skin=timeless&version=Lw3Ssrp0:45
fireWith @ load.php?debug=false&lang=de&modules=jquery%2Cmediawiki&only=scripts&skin=timeless&version=Lw3Ssrp0:46
fire @ load.php?debug=false&lang=de&modules=jquery%2Cmediawiki&only=scripts&skin=timeless&version=Lw3Ssrp0:46
track @ load.php?debug=false&lang=de&modules=jquery%2Cmediawiki&only=scripts&skin=timeless&version=Lw3Ssrp0:155
runScript @ load.php?debug=false&lang=de&modules=jquery%2Cmediawiki&only=scripts&skin=timeless&version=Lw3Ssrp0:163
checkCssHandles @ load.php?debug=false&lang=de&modules=jquery%2Cmediawiki&only=scripts&skin=timeless&version=Lw3Ssrp0:163
(anonymous) @ load.php?debug=false&lang=de&modules=jquery%2Cmediawiki&only=scripts&skin=timeless&version=Lw3Ssrp0:163
fire @ load.php?debug=false&lang=de&modules=jquery%2Cmediawiki&only=scripts&skin=timeless&version=Lw3Ssrp0:45
fireWith @ load.php?debug=false&lang=de&modules=jquery%2Cmediawiki&only=scripts&skin=timeless&version=Lw3Ssrp0:46
fire @ load.php?debug=false&lang=de&modules=jquery%2Cmediawiki&only=scripts&skin=timeless&version=Lw3Ssrp0:46
fireCallbacks @ load.php?debug=false&lang=de&modules=jquery%2Cmediawiki&only=scripts&skin=timeless&version=Lw3Ssrp0:157
addEmbeddedCSS @ load.php?debug=false&lang=de&modules=jquery%2Cmediawiki&only=scripts&skin=timeless&version=Lw3Ssrp0:158
(anonymous) @ load.php?debug=false&lang=de&modules=jquery%2Cmediawiki&only=scripts&skin=timeless&version=Lw3Ssrp0:157
|
Yässinzeldafan (talk) 15:23, 19 February 2017 (UTC)
- A link to the wiki would help. Instances of "addOnloadHook" may be on those pages: "MediaWiki:Common.js" and "MediaWiki:Timeless.js", your personal scripts, or even outdated extensions/skins Ciencia Al Poder (talk) 16:10, 19 February 2017 (UTC)
- http://fzerowiki.net/index.php?title=Hauptseite Yässinzeldafan (talk) 13:12, 26 February 2017 (UTC)
- As I said: http://fzerowiki.net/index.php?title=MediaWiki:Common.js lots of addOnloadHook there.
- The site seems to have some broken configuration that breaks debug mode. All resource loader URLs are generated without the full path to the script, just the server and the version at the end of the URL example Ciencia Al Poder (talk) 15:21, 26 February 2017 (UTC)
How can I find user Jelson25?
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 MediaWiki Support Team!
How can I find user Jelson25 who created the photo of Lake Union in top right column at https://en.wikipedia.org/wiki/Lake_Union? I searched the site but didn't find him. We'd like permission to use the photo on a documentary film. Thanks!
Best Wishes,
PamKM PamKM (talk) 21:04, 12 September 2016 (UTC)
- Special:CentralAuth is a way to find users. Tropicalkitty (talk) 21:41, 12 September 2016 (UTC)
Report to show the internal url and which article it is contained in
- How to implement internal link search similar to external link search which is under special pages by using protocols which will show the url and which article it is contained in?.Is there any feature already available and which version of media wiki it supports. Ashni rai (talk) 06:23, 13 September 2016 (UTC)
- Go to the page you wish to see links to, and click "What links here" in the sidebar. 121.220.53.76 (talk) 07:19, 13 September 2016 (UTC)
- we need a report which generates all the internal links in media wiki and which article it is contained in. Ashni rai (talk) 09:37, 13 September 2016 (UTC)
- https://www.mediawiki.org/wiki/Special:LinkSearch .This is the refernce url for external link search.Likewise do we have reference url for internal links.Is this feature available in media wiki?.if yes which version of media wiki it support. Ashni rai (talk) 09:49, 13 September 2016 (UTC)
- You can query the database directly: pagelinks table Ciencia Al Poder (talk) 09:39, 14 September 2016 (UTC)
- As mentioned in the article it is doesnt support 1.23.5 version of media wiki.We are using 1.23.5 version and we want to display all the internal links in media wiki and which article it is contained in.Basically we want Custom reports which has ability to extract all URLs from wiki pages and to see which pages the URL’s are on. Ashni rai (talk) 09:22, 3 October 2016 (UTC)
- Of course is does, it was added in 1.5. 110.149.155.37 (talk) 10:09, 3 October 2016 (UTC)
- can you suggest me how to do it..any referral links?c Ashni rai (talk) 05:49, 4 October 2016 (UTC)
Set articles as "hidden"?
Is it possible to set articles as hidden, so it will not be shown in the wiki unless the user logged in first? Anta40 (talk) 09:20, 13 September 2016 (UTC)
- $wgGroupPermissions['*']['read'] = false; // Nobody can read
$wgGroupPermissions['user']['read'] = true; // But logged in users can read- You may want to disable registering then as well ;) See Manual:User rights Subfader (talk) 09:55, 14 September 2016 (UTC)
- Hi subfader,
- Sorry my question is not clear enough. What I actually want is to set some certain articles (not all) as hidden. Thus, you need to log in to see such articles. Anta40 (talk) 02:59, 15 September 2016 (UTC)
- Additionally, do you want to differentiate between the logged-in user groups in terms of which group can view the article and which can't? AhmadF.Cheema (talk) 05:20, 15 September 2016 (UTC)
- I haven't thought about this, but then again this sounds like a very good suggestion.
- Is this already possible in Mediawiki, or do I have to use another extension to do this? Anta40 (talk) 03:27, 16 September 2016 (UTC)
- MediaWiki hasn't been made to support granularity of view restrictions, only edit restrictions. The contents of those "hidden" articles can be leaked in several ways. Having said that, you can try Extension:Lockdown Ciencia Al Poder (talk) 09:19, 15 September 2016 (UTC)
- OK I'm reading the Lockdown page.
- I'm still confused, though. Let's say I have 10 pages in my miki.
- How to set, for example, page #2, #7, and #8 as hidden? Anta40 (talk) 03:38, 16 September 2016 (UTC)
- If I remember correctly, Extension:Lockdown can "hide" pages if they belong to a specially created private namespaace.
- You will have to create a private namespace (according to the instructions provided on the extension page), add the pages you want to hide in the namespace and then give some user groups read rights for that namespace.
- Note the warnings on each of these access control extensions, there usually is some loophole left for an unauthorized person someone motivated enough to see the restricted pages as MediaWiki wasn't designed for such kind of special read restrictions. AhmadF.Cheema (talk) 08:24, 16 September 2016 (UTC)
Post install, shows run();
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.
Followed the guide at Manual:Running MediaWiki on Red Hat Linux after restarting httpd and loading up the webpage its a white page with the text
run();
If I view the page source it shows
<?php /** * This is the main web entry point for MediaWiki. * * If you are reading this in your web browser, your server is probably * not configured correctly to run PHP applications! * * See the README, INSTALL, and UPGRADE files for basic setup instructions * and pointers to the online documentation. * * https://www.mediawiki.org/ * * ---------- * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * with this program; if not, write to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * http://www.gnu.org/copyleft/gpl.html * * @file */ // Bail on old versions of PHP, or if composer has not been run yet to install // dependencies. Using dirname( __FILE__ ) here because __DIR__ is PHP5.3+. // @codingStandardsIgnoreStart MediaWiki.Usage.DirUsage.FunctionFound require_once dirname( __FILE__ ) . '/includes/PHPVersionCheck.php'; // @codingStandardsIgnoreEnd wfEntryPointCheck( 'index.php' ); require __DIR__ . '/includes/WebStart.php'; $mediaWiki = new MediaWiki(); $mediaWiki->run();
Any advice would be appreciated. 2001:630:301:1100:FCC6:C48C:DC99:6935 (talk) 10:10, 13 September 2016 (UTC)
- Your file is not parsed by PHP.
- Make sure that PHP is installed, that it is activated and that .php files are parsed by PHP! 87.123.16.209 (talk) 11:22, 13 September 2016 (UTC)
- How do you verify that PHP is parsing PHP files? And how can I fix this error? 85.3.211.91 (talk) 12:34, 21 December 2019 (UTC)
- I had that issue after upgrading my debian from 9 to 10., after
apt autoremove. - It deleted php7.0 packages so broke the link between apache and php parser. I solved the issue by simply running :
apt reinstall libapache2-mod-php7.3- to enable php7.3 with apache2...
- Jérôme 176.149.136.77 (talk) 12:29, 3 February 2020 (UTC)
- Hi
- Did you solve it?
- I have the same problem and I did a reinstall
sudo apt-get install --reinstall libapache2-mod-php7.4, but it didn't change anything. - PHP 7.4.4
- Apache/2.4.29
- Ubuntu 18.04 (server)
- - Kenneth 178.157.254.233 (talk) 12:45, 2 April 2020 (UTC)
- Hi,
- Same here after upgrade from Ubuntu Server 16.04 to 18.04.
- I had two folders in /etc/php (7.0 & 7.2). There was no file in /etc/php/7.0, and I had a warning during upgrade that 7.0 was not deleted cause not empty. I deleted it manually, and run
sudo apt --reinstall libapache2-mod-php7.2(without install instruction). - Hope that helps 86.77.170.145 (talk) 00:04, 14 April 2020 (UTC)
special:book
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.
Moin moin.
What's the extension behind the spezialpage book?
https://en.wikipedia.org/wiki/Special:Book
Thanks, Paul Paul Hema (talk) 12:43, 13 September 2016 (UTC)
- I think Extension:Collection
- Right? Paul Hema (talk) 13:02, 13 September 2016 (UTC)
- Yes, that is correct. 87.123.16.209 (talk) 14:34, 13 September 2016 (UTC)
Wiki help
I am planning to use MediaWiki to run several websites. The sites are about an organisation I have made that wants to make the Internet better. I have several suggestions and also what extensions should I put. On the site, people can make articles about random stuff (even if it doesn't have to do with the topic of the site). It's not really that much of a wiki, I am just using MediaWiki to run it.
*How can I change the background colour of the Vector skin?
*What extension allows you to put a message on a banner on the top of the page? (the one that allows you to close the message) Deepweblorikeet (talk) 00:19, 14 September 2016 (UTC)
- You can modify the CSS of the Vector skin by putting your styles on the wiki page MediaWiki:Vector.css in your wiki.
- The extension you are looking for is Extension:DismissableSiteNotice! 87.123.16.209 (talk) 00:51, 14 September 2016 (UTC)
Upload merely refreshes the page
Somehow, someone changed something in our MediaWiki installation so that trying to upload a file simply refreshes the Special:Upload pages. I've read that this can be caused by misconfigured URLs in LocalSettings.php but I have checked and triple checked these URLs, and they are correct. Any information concerning this matter would be tremendously appreciated. Thank you. Deimos131313 (talk) 04:18, 14 September 2016 (UTC)
Translate an already translated page
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 try to use the translate extension. I don't found how to translate an already translated page
- I create a new page and record it
- I use Spécial:PagePreparation to prepare the translation
- I translate it
- I use "Modify" and add a new text
- I don't found the new's text add on step 4 on the translate tools
I've seen in step 11 form this page below that we have to "Click the - marked for translation - link" but I don't find it or I don't know where it is.
https://www.mediawiki.org/wiki/Help:Extension:Translate/Page_translation_example Patoow77 (talk) 11:39, 14 September 2016 (UTC)
- On top of page click "Translate this page" and then "Untranslated" wargo (talk) 11:57, 14 September 2016 (UTC)
- I have this message "Nothing to translate", also nothing in "Outdated" Patoow77 (talk) 12:09, 14 September 2016 (UTC)
- Sorry, "Translated". wargo (talk) 12:27, 14 September 2016 (UTC)
- I don't find nothing except what's having translate before.
- I've tested also in the page Fréttinga , you can see that I've added "In 2009 January the roof of the church in the island fell down. It was rebuilt
- collaboratively in the following summer.." you will see that this message is not availlable to be translated. But I don't understand why... I have the same problem in my Mediawiki, so I'm sure that I don't have understood something Patoow77 (talk) 12:43, 14 September 2016 (UTC)
- You directly edited page in original language. To add new sentences for translation they need to be wrapped by special tags (preparation) and new version of article should me marked for translation by Translation Administrator. wargo (talk) 13:24, 14 September 2016 (UTC)
- After searching a little bit, I found that "marked for translation" link is a part of the sentence "Translate this page; This page has changes since it was last marked for translation." Patoow77 (talk) 14:12, 14 September 2016 (UTC)
Job queue to wrong db
Hello. My wiki job table length is about 20000. (Before I ran runJobs.php, It was about 160K )
When I ran runJobs.php, DBconnectionerror happens. My wiki use DB 'DB_A', but job queue works on DB 'DB_B' and These are very old jobs. (From last year to January)
I think because my wiki probably change the db name 'DB_B' to 'DB_A'
How can I fix it? Here is an example about jobs_param column.
a:1:{s:10:"jobsByWiki";a:1:{s:4:"DB_B";a:1:{i:0;a:4:{s:4:"type";s:12:"refreshLinks";s:6:"params";a:0:{}s:4:"opts";a:0:{}s:5:"title";a:2:{s:2:"ns";i:6;s:3:"key";s:12:"Discount.gif";}}}}} Zlzleking (talk) 13:02, 14 September 2016 (UTC)
- What MediaWiki version? I don't see database connection settings inside the job_params on my install... Ciencia Al Poder (talk) 20:14, 14 September 2016 (UTC)
- I'm running mediawiki 1.27.1 and this is example error when I ran runJobs.php
- 2016-09-01 16:03:26 enqueue Document_A jobsByWiki={"DB_B":[{"type":"refreshLinks","params":[],"opts":[],"title":{"ns":6,"key":"DIY_\uc81c\ubcf8_7.png"}}]} requestId=c9d45da6c66779280239a240 (id=411903,timestamp=20160102213512) t=0 error=JobQueueConnectionError: DBConnectionError:DB connection error: Access denied for user 'USER_A'@'localhost' to database 'DB_B' (localhost) Zlzleking (talk) 00:57, 15 September 2016 (UTC)
- Do you have a multi-wiki environment set up? If yes, please describe how Ciencia Al Poder (talk) 09:23, 15 September 2016 (UTC)
- I didn't set anything for multi-wiki enviroment. Zlzleking (talk) 10:56, 15 September 2016 (UTC)
- I can't reproduce it but you should open a bugreport for some dev to look at it. Storing database server configuration inside job sounds like a bad design decision. Please report back the task number if you report it. Ciencia Al Poder (talk) 09:45, 16 September 2016 (UTC)
HTTP ERROR 500 when I try to include wfLoadExtension()
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,
Our wiki is working but we wanted to add a couple of extensions.
I tried to add the Upload Wizard extension to our MediaWiki installation.
I uploaded the UploadWizard folder to extensions but when i add the following line of code to LocalSettings.php
"wfLoadExtensions ( '<UploadWizard>' );"
it throws a HTTP ERROR 500 on the site.
I'm new to the MediaWiki World and any help or guidance would be greatly appreciated!
Kind Regards 212.17.59.217 (talk) 15:51, 14 September 2016 (UTC)
- There are two things to take care of:
- Inside the quotation marks, you have to put the extension name and only the name, without the <> signs. The correct line would be
- wfLoadExtensions ( 'UploadWizard' );
- Using wfLoadExtensions only is possible, if the extension uses an extension.json file. If it does not, wfLoadExtensions cannot be used with it. As far as I can tell, the extension UploadWizard is not yet using an extension.json file. So you have to include it like so:
- require_once "$IP/extensions/UploadWizard/UploadWizard.php"; 87.123.62.7 (talk) 17:31, 14 September 2016 (UTC)
- Also, if the required .json file was present, the code would be
wfLoadExtension(i.e. singular without the "s"). AhmadF.Cheema (talk) 17:46, 14 September 2016 (UTC) - Ahh, this extension does have an extension.json file! So infact, wfLoadExtension can be used with it. Prior to writing my last post, I missed that file somehow. 87.123.62.7 (talk) 20:25, 14 September 2016 (UTC)
- Thank you so much for your help!! :) 212.17.59.217 (talk) 08:17, 15 September 2016 (UTC)
Errors after installing CirrusSearch
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 am trying to install CirrusSearch. After installing the extensions and running the elastic search server, the next step says to run:
$ php extensions/CirrusSearch/maintenance/updateSearchIndexConfig.php
however I get the error:
PHP Fatal error: Class 'Elastica\Transport\Http' not found in /home/default/mediawiki/extensions/Elastica/ElasticaConnection.php on line 207
I have curl installed:
$ php -m | grep curl
curl
I'm running:
MediaWiki 1.27
Elastica-REL1_27-4607acf.tar.gz
CirrusSearch-REL1_27-dcb0cf9.tar.gz
Thanks! 2601:645:8104:3680:8C47:56DB:AA38:4676 (talk) 16:09, 14 September 2016 (UTC)
- In command line, you have to go in the directory mediawiki/extensions/Elastica and run composer install --no-dev. If you don’t have yet Composer, you can download it from https://getcomposer.org (see also Composer). ~ Seb35 [^_^] 08:07, 15 September 2016 (UTC)
- Instructions in Extension:Elastica didn't mention composer, I've updated them Ciencia Al Poder (talk) 09:15, 15 September 2016 (UTC)
- Thanks 2601:645:8104:3680:FD5D:EEBD:B922:E18 (talk) 04:03, 18 September 2016 (UTC)
detecting of PHP version issue during installation of latest version 1.27 on ubuntu 12.04
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hi All:
I'm trying to install latest version 1.27 on ubuntu 12.04. Previous installation results in a old version of php 5.3.10-1ubuntu3.24. I've used "sudo apt-get purge "php*"" to clean up the php. Later I use "sudo apt-get install php7.0" to successfully install the php.
However, when I go to set up the wiki in the browser, the webpage gives me the error "
MediaWiki 1.27 internal error
MediaWiki 1.27 requires at least PHP version 5.5.9, you are using PHP 5.3.10-1ubuntu3.24.
."
Does anyone have a clue of why wiki only sees the old version of PHP not the latest installed PHP?
Any help is greatly appreciated. Thanks!
Best,
James Jamesyfl86 (talk) 00:17, 15 September 2016 (UTC)
- Some points you can check:
- Be sure you have deinstalled PHP 5.3, you can use in command line "dpkg -l | grep php" to see what PHP packages are installed;
- When you type "php -v" in command line, what version do you get?
- Check your webserver configuration (Apache or nginx or other). For Apache you can read Apache configuration. For nginx, be sure your fastcgi_pass is the socket of the right PHP version. ~ Seb35 [^_^] 07:57, 15 September 2016 (UTC)
- The php7.0 might be for command line only. For apache it seems to be libapache2-mod-php7.0 Ciencia Al Poder (talk) 09:17, 15 September 2016 (UTC)
- Thanks for your suggestions.
- For Seb35, your points are excellent.
- "dpkg -l | grep php" gives no packages at all.
- php -v shows the correct version I've installed, e.g. 7.0.
- I'm check the apache's configuration.
- For Ciencia: thanks for your suggestion. I'll add this package to see if anything happens. Jamesyfl86 (talk) 13:23, 15 September 2016 (UTC)
- Update:
- It works after I've updated Apache from 2.2 to 2.4 and reinstall php as well as libapache2-mod-php.
- Thanks guys! Jamesyfl86 (talk) 20:27, 15 September 2016 (UTC)
ModernSkylight skin error style module should define its position explicitly
So I got this error when I tried installing the ModernSkylight skin:
Warning: OutputPage::getModuleStyles: style module should define its position explicitly: skins.modern-skylight.css ResourceLoaderFileModule [Called from OutputPage::getModuleStyles in /home/battlevi/public_html/includes/OutputPage.php at line 623] in /home/battlevi/public_html/includes/debug/MWDebug.php on line 300
And it repeats 9 total times and covers most of the wiki. I tried fixing it with this solution in this thread:
It was hard I kept getting invalid skin.json error, but now I just get the first error again.
I dont know what to do. 49.177.93.182 (talk) 01:38, 15 September 2016 (UTC)
- See MediaWiki_1.26#Module_position_for_style_modules! 87.123.62.7 (talk) 06:46, 15 September 2016 (UTC)
- Right..Well thats good but I have already done what that page says to do. I have tried it again, same result. The ModernSkylight skin declares the ResourceModules in skin.json and I've gone through the process. It doesnt work. 49.177.93.182 (talk) 11:40, 15 September 2016 (UTC)
- Ok I got it to work with no errors. Was confusing but I learned I need to read the error more carefully and the solution more carefully. 49.177.93.182 (talk) 07:50, 16 September 2016 (UTC)
- Now you should open a Pull Request at https://github.com/wiki-chan/ModernSkylight so that your patch can become part of the official version of that skin! That way others can profit from your work as well! 87.123.22.184 (talk) 08:23, 16 September 2016 (UTC)
Dashed line in Extension:Kartographer?
Is there a way to make dashed lines in Kartographer? Also, is there a list of all available marker names somewhere? Halibutt (talk) 11:23, 15 September 2016 (UTC)
- I believe the names of the marker symbols are for now identical to the names of the icons in the Maki icons. But @Yurik (WMF) should be able to tell you more. —TheDJ (Not WMF) (talk • contribs) 12:07, 15 September 2016 (UTC)
- Yeah, I was wondering if there is an actual list that wouldn't require the user to download the set and browse through the icons in search for the right one. The icons are not on Commons apparently, so a simple search there doesn't help either. Halibutt (talk) 13:11, 15 September 2016 (UTC)
- if you just hover the icons on the maki webpage, it shows you their names. —TheDJ (Not WMF) (talk • contribs) 15:08, 15 September 2016 (UTC)
Very large table
Hi.
I need to insert a very large table in a Mediawiki page.
When I mean "very large table" I mean a table with many columns (50-60) so it needs to be horizontally scrollable.
It would be nice if it would be possible to fix the first column as reference during the scroll, like what can be done in Microsoft Excel.
Is there a way to manage it with Mediawiki?
Thank you very much! Bye Decibel83 (talk) 11:40, 15 September 2016 (UTC)
- Not currently unfortunately. —TheDJ (Not WMF) (talk • contribs) 12:27, 15 September 2016 (UTC)
Is there a way to extract plain text, summary and links from article?
Hello, I am building a tool that communicates with the mediawiki API (from wikipedia) and I basically need three pieces of information from the latest revision. I would like to obtain all the links within the article, the main thumbnail, and the entire article in plain text. If possible I would also like to obtain the summary. Is this possible to obtain in a single API call? I am currently experimenting with two calls, the query action where I am able to obtain unparsed wikitext of the entire article, along with its main image [3]. From this I thought about constructing a parser but it would be very error prone. The second is the parse action where I supply a page, and this cuts a lot of work since I receive links, thumbnail, but unfortunately the entire article is in HTML [4]. Is there a way to have it in plain text?
These are just from a couple of hours doing researching, but I welcome any alternatives/suggestions. Alanz2223 (talk) 18:03, 15 September 2016 (UTC)
- from your prop=revisions you can get additional prop queries, for example, with prop=revisions|links|langlinks. Check API:Query for other possibilities. Ciencia Al Poder (talk) 09:43, 16 September 2016 (UTC)
Librarian erasing under a3 code
I spend several hours creating a nice academic entry for a XVIc. Spanish veterinarian called Francisco Reyna . It included research citations, illustrations and links that took me about a week to compile.
Within two minutes of having it finished, Superzerocool librarian has erased it, on the grounds codified as a3.
I have to say that I am a professional translator of English and have a more than proficient command of such language.
I can´t understand how it´s been possible that my fine contribution has been delete without even allowing me to explain why I wrote in English, or even offering me to keep it as long as I offered to translated also into Spanish
I´d certainly like to have my "Francisco Reyna" entry back
sincerely
oisa Oisha (talk) 18:20, 15 September 2016 (UTC)
- You are speaking about es:Francisco_Reyna. This page has been deleted with deletion reason es:WP:BR#A3. This reason should be used for cases where an article has been created using an automated tool like Google Translate and where its language is full of errors. This reason is not made for other cases, especially it is not made for cases where an otherwise good article contains one or two typing errors. Note that I have not seen your text myself, but if as you say, it was written in good language (or even better), then the deletion obviously happened groundlessly.
- I see you already asked on es:Usuario_discusión:Superzerocool.
- Another possibility is to check, if the Spanish Wikipedia has a page for undeletion requests or a page to contest a deletion. The way you describe it, this is the right page for you! 87.123.41.228 (talk) 00:06, 16 September 2016 (UTC)
- Finally I found this answer. Have you in fact posted the English text into the Spanish Wikipedia? If so, then you should check, if the English Wikipedia, e.g. en:Francisco_Reyna isn't a better place for it! And I guess in the Spanish Wikipedia, the Spanish text is still welcome as well!
- Note that administrators can restore your text at any time. So if you still want to use it, you can just ask an admin, e.g. es:Usuario:Superzerocool, to restore the text and move it into your user space! 87.123.41.228 (talk) 00:10, 16 September 2016 (UTC)
How to show a revision number in history an bottom of each page?
How to show a revision number in history an bottom of each page?
Is this possible? 80.147.9.220 (talk) 20:22, 15 September 2016 (UTC)
My Wiki doesn't display anything
I am a game Master and I created a Wiki for fellow RPG's. but now when I got to the site, no information is displayed. When I click EDIT, I can see the coding. I don't understand what's going on or how to fix it.
the site - http://omegafleetonline.com/wiki/index.php?title=Main_Page 104.129.196.75 (talk) 01:20, 16 September 2016 (UTC)
- See Manual:Errors_and_symptoms#All_pages_have_no_content.2C_but_when_editing_a_page_the_wiki_text_is_there! 87.123.22.184 (talk) 08:28, 16 September 2016 (UTC)
Wiki on page bahai.kg trying to access for the files of other 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 have an error on bahai.kg MediaWiki. Bahai.kg trying to access for the base_dir of another wiki, installed 2 days ago on same hosting server.
Warning: require_once(): open_basedir restriction in effect. File(/var/www/OTHER WIKI DIR/data/www/OTHER WIKI DIR/includes/compat/normal/UtfNormalDefines.php) is not within the allowed path(s): (/var/www/THIS WIKI DIR/data:.) in /var/www/THIS WIKI DIR/data/www/THIS WIKI DIR/includes/Defines.php on line 202
Warning: require_once(/var/www/OTHER WIKI DIR/data/www/OTHER WIKI DIR/includes/compat/normal/UtfNormalDefines.php): failed to open stream: Operation not permitted in /var/www/THIS WIKI DIR/data/www/THIS WIKI DIR/includes/Defines.php on line 202
Fatal error: require_once(): Failed opening required '/var/www/OTHER WIKI DIR/data/www/OTHER WIKI DIR/includes/compat/normal/UtfNormalDefines.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/THIS WIKI DIR/data/www/THIS WIKI DIR/includes/Defines.php on line 202
Please help. When the seond Wiki is disabled in Hosting panel First wiki working normally. PrometheusAla (talk) 05:33, 16 September 2016 (UTC)
- Apache configs looks correct. Also http://www.bahai.kg/forum/ - phpBB3 forum engine working correctly. PrometheusAla (talk) 05:35, 16 September 2016 (UTC)
- Recursively search the files in folder /var/www/THIS WIKI DIR/data/www for hits of "OTHER WIKI DIR"!
- Likely candidat for a hit is the LocalSettings.php file... 87.123.22.184 (talk) 08:25, 16 September 2016 (UTC)
- Already did it... no mentions. Problem in assigning variable _DIR_ used at Defines.php on line 202 PrometheusAla (talk) 08:47, 16 September 2016 (UTC)
- If you're using symbolic links to share the same MediaWiki installation files between both wikis, this may be the source of the problem Ciencia Al Poder (talk) 09:26, 16 September 2016 (UTC)
- No, nothing special... no symlinks between I didn't find... PrometheusAla (talk) 09:55, 16 September 2016 (UTC)
- Please help! 5.34.83.133 (talk) 03:42, 17 September 2016 (UTC)
- I've deleted this account and created a new one. Problem dissappear. PrometheusAla (talk) 02:59, 19 September 2016 (UTC)
Delete a page and all the translated page
When I try to delete a page and all the translated page from the same page,
- I click : More → Delete
- In the "Deleting translatable page", I select "List page to be deleted
- I select "Delete all sub-pages
- I click "Do the deletion
- In the page translation log, It's noted that it delete all page except the original
This action has deleted all translated page but not the original page.
I don't understand why it doesn't delete automatically the original page too. Patoow77 (talk) 06:54, 16 September 2016 (UTC)
Translate and VisualEditor
I don't understand how works Translate with VisualEditor,
For example, When I've done some translation, I want to delete a translated-message and add new text without deleting all, or just add a paragraph to a chapter without deleting all the translated text.
It's possible to use Visual Editor with Translate for writing or rewriting? Patoow77 (talk) 07:04, 16 September 2016 (UTC)
Issue with generating thumbnails
My page is http://budrysl2.ayz.pl/wiki/Plik:House_Targaryen.svg
http://budrysl2.ayz.pl/wiki/Plik:Jedruszek_the_Trident.jpg
#ImageMagic
$wgUseImageMagick = true;
#$wgImageMagickConvertCommand = 'C:/ImageMagick/convert.exe'; # for windows
$wgImageMagickConvertCommand = '/usr/local/bin/convert';
#SVG
$wgFileExtensions = array( 'png', 'gif', 'jpg', 'jpeg', 'ppt', 'pdf', 'psd', 'mp3', 'xls', 'xlsx', 'swf', 'svg', 'doc','docx', 'odt', 'odc', 'odp', 'odg', 'mpp');
$wgSVGConverter = 'ImageMagick';
$wgAllowTitlesInSVG = true;
$wgSVGConverterPath= '/usr/local/bin';
$wgLoadFileinfoExtension = true;
$wgMimeDetectorCommand = "file -bi"; TraaBBIT (talk) 08:05, 16 September 2016 (UTC)
- THe error says that the thumbnail could not be generated. On another page I see that ImageMagick responds with "Error code 127". 87.123.22.184 (talk) 08:33, 16 September 2016 (UTC)
Import translations failed
Hello,
I try the translations export offline, after exporting a page, I make an offline translation of the .po file. When I import it with "SpecialːImportTranslation", the program say ː Import complete, but I don't find nothing in Translate... I don't understand why. Someone have An Idea how I can find the problem, fix it? Patoow77 (talk) 08:51, 16 September 2016 (UTC)
- Should SpecialːImportTranlation be SpecialːImportTranslation ? Anthony Appleyard (talk) 08:54, 16 September 2016 (UTC)
- Just wrong writing hier in the description (I've corrected it) Patoow77 (talk) 08:59, 16 September 2016 (UTC)
Search behavior strange
MediaWiki 1.26.2
PHP 5.6.6
MySQL 5.1.73
When using my search field, I will only get to the search-result-page, not directly to the specific article, even when selected from suggested article dropdown. From the search results I can click on the 'matches on title' list, where the wanted article is listed.
So, how can I get my Mediawiki to proceed automatically to the article, if there is a 100% match (likewise the wikipedia-behavior? 212.117.78.162 (talk) 09:19, 16 September 2016 (UTC)
- Is there really no one, who can help me out with this problem? :( 194.76.175.212 (talk) 08:04, 16 November 2016 (UTC)
- Wiki address? Maybe you set
$wgUseTwoButtonsSearchForm? wargo (talk) 09:33, 16 November 2016 (UTC)
MediaWiki 1.27 and TreeAndMenu 4.2 with problems in load of main webpage
Hi, I have a mediawiki 1.27 with TreeAndMenu 4.2.0 extension. The problem is that first time load the tree menu but without option to click over + simbol. After that I load webpage (initial link of menu) I can use this feature without problems 200.48.202.30 (talk) 20:48, 16 September 2016 (UTC)
- I tested with PHP 7.0.11 and 5.6.7 (same problem), I have Apache 2.4.12 200.48.202.30 (talk) 20:52, 16 September 2016 (UTC)
- I have Mysql 5.6 INNODB 200.48.202.30 (talk) 20:54, 16 September 2016 (UTC)
MediaWiki 1.26.2, TimedMediaHandler, error uploading OGG files
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 just installed Extension:TimedMediaHandler and Extension:MwEmbedSupport, and when I try uploading any OGG file I receive the following error:
Notice: JobQueueGroup::__destruct: 1 buffered job(s) of type(s) RecentChangesUpdateJob never inserted. in /home/xwiki/public_html/includes/jobqueue/JobQueueGroup.php on line 420
When I attempt to the access the file, this error is displayed:
A database query error has occurred. This may indicate a bug in the software.
I'm attempting to upload the Example.ogg file from here: https://commons.wikimedia.org/wiki/File:Example.ogg AgentJess (talk) 01:16, 17 September 2016 (UTC)
- I neglected to include some information requested on the right-hand side.
- PHP: 5.6.25
- MySQL: 5.6.31
- URL: https://renx.wiki/ AgentJess (talk) 01:23, 17 September 2016 (UTC)
- Update: Issue resolved by running update.php again AgentJess (talk) 02:06, 17 September 2016 (UTC)
- There's now a warning displayed after each upload, and I seem to be unable to move them. I can work around this by deleting a file and uploading it again under the desired name. The warning doesn't appear to have any serious consequences and thus I've been ignoring it. The warning is as follows:
- Fatal error: Class 'CdnCacheUpdate' not found in /home/xwiki/public_html/extensions/TimedMediaHandler/WebVideoTranscode/WebVideoTranscode.php on line 892 AgentJess (talk) 02:48, 17 September 2016 (UTC)
- CdnCacheUpdate was introduced in MediaWiki 1.27, however you're using 1.26. Please download Extension:TimedMediaHandler for 1.26 and not the latest stable version Ciencia Al Poder (talk) 11:40, 17 September 2016 (UTC)
- Thanks; I'll just update to 1.27 in a bit then. AgentJess (talk) 18:42, 17 September 2016 (UTC)
There are lots of error about account
Internal error
[V9tOoQpAMFkAAKYF6ZYAAABD] 2016-09-16 01:45:08: Fatal exception of type "MWException"
When I first sign up, there is an error such as ↑. Then I clicked 'edit' tap, and suddenly, my account had been logout. I login again, and there is an error — 'cession hijaking'. What happened?
I signed up again. There wasn't internal error, but i cant edit because of my account's logout. This is Mediawiki's bug, Huh... 199.212.87.97 (talk) 05:31, 17 September 2016 (UTC)
- Help me please... i want to edit on kowiki. 199.212.87.97 (talk) 05:35, 17 September 2016 (UTC)
- Did you recently update to MediaWiki v1.27? AhmadF.Cheema (talk) 11:05, 17 September 2016 (UTC)
- Also set $wgShowExceptionDetails to true Ciencia Al Poder (talk) 11:35, 17 September 2016 (UTC)
MediaWiki 1.27.0 Broken Categories.
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.
This might sound like the simplest thing ever, but my peers and I are having difficulties with categories. When adding one to a page, it will appear at the bottom of the page, but when clicked, it will not be listed on the category page despite a forced refresh and waiting 24+ hours.
An example page is our page called 'Avanthar', which should link back to the 'Race' category.
https://gyazo.com/942d394dcca9133973bce247db1e287e
But upon clicking said category, woe and behold it is not there.
https://gyazo.com/cac8a45a37b721881cd03c124ccd4bc1
Here is the version info.
https://gyazo.com/d874e9f0e1025a480446fada66bd390c Suzzie2 (talk) 21:59, 17 September 2016 (UTC)
- See Manual:Errors_and_symptoms#Category_pages.2C_Special:Whatlinkshere_and_file_usage_aren.27t_being_updated! 87.123.2.94 (talk) 22:29, 17 September 2016 (UTC)
Transclusion issue
Hi,
what's the best way to debug an issue around transclusion via '{ { } }'?
E.g. I get a proper result directly accessing an URL like ...Special:IframePage/... but when I use the same path as an { { Special:IframePage/... } } it falls back to some default behaviour more or less ignoring the remainder of the path.
Any hint?
Thanks Aeroid (talk) 15:02, 18 September 2016 (UTC)
Gadget DeluxeHistory
I have my sajt vojnaenciklopedija.com using your software. However, the above gadget will not work. Please, help me. Thank you! Kizule (talk) 19:20, 18 September 2016 (UTC)
- You can view that on phabricator. https://phabricator.wikimedia.org/T145936 Kizule (talk) 20:54, 18 September 2016 (UTC)
ConfirmEdit broken in 1.27?
Hello,
We've just upgraded to 1.27 from 1.25 and it appears the ConfirmEdit extension has broken backwards compatibility or is broken? We use the QuestyCaptcha module with HTML/JS (in $wgCaptchaQuestions) and it appears the extension now displays the actual HTML (i.e. it escapes the string we passed to the $wgCaptchaQuestions instead of passing it as it to the web page).
Is this a known/intentional bug/change? Because it's fairly big breaking change and quite a few wikis rely on this specific feature to support raw/HTML string. Billyz1010 (talk) 03:39, 19 September 2016 (UTC)
- I just tested MediaWiki 1.27 with ConfirmEdit+QuestyCaptcha (branches 1.25 and 1.27) and the HTML I insert in the question is directly transmitted as raw HTML (even <iframe>), so I cannot see any possible bug.
- Can you give the HTML/question you tried to insert? (or an equivalent HTML/question if you don’t want to give the original question)
- Is your wiki public? Else can you give the versions of ConfirmEdit and QuestyCaptcha indicated on the page "Special:Version"? ~ Seb35 [^_^] 08:14, 19 September 2016 (UTC)
- MediaWiki 1.27.1 / ConfirmEdit 1.4.0
- A simple example would be:
That literally shows up as "<strong>some question</strong>" on the web page.$wgCaptchaQuestions[] = array( 'question' => '<strong>some question</strong>', 'answer' => 'someanswer' );
- A more practical example similar to what we do (albeit our's bit more complicated) is something like this:
Instead of the image loading up of course, we get the actual HTML showing up on the page. Billyz1010 (talk) 11:16, 20 September 2016 (UTC)$wgCaptchaQuestions[] = array( 'question' => '<img src="https://upload.wikimedia.org/wikipedia/commons/7/74/White_domesticated_duck%2C_stretching.jpg" alt="" title="" />', 'answer' => 'duck' );
- I would remove the HTML from the questions, because it does not belong there. Instead, if you want to have bold print, you should add an according CSS rule to the wiki page MediaWiki:Common.css in your wiki! 87.123.2.131 (talk) 17:56, 20 September 2016 (UTC)
- The bold was just an example of HTML that should be rendered correctly but doesn't. See Extension:QuestyCaptcha for example usage of HTML in the question. It's a feature many wikis utilize. Just doesn't seem to work anymore for us. Billyz1010 (talk) 23:21, 20 September 2016 (UTC)
- Maybe the extension, or MediaWiki, was patched to prevent HTML injection in some interface messages affecting this. If that's the case (and it seems to be), you should bugreport it so developers of the extension are aware Ciencia Al Poder (talk) 09:44, 22 September 2016 (UTC)
Reset password - no permission
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. I've added permission for admin "passwordreset" in localsettings.php and still "no permission" error pops up when I hit Special:Passwordreset page. I have admin account. Media wiki ver 1.23.5
Under different media wiki site localsettings.php doesnt contain such permission but password reset works. So where's the config for that ? Anyone can help ?
Thanks 83.18.8.90 (talk) 07:53, 19 September 2016 (UTC)
- problem solved
- editmyprivateinfo permission should be turned on 83.18.8.90 (talk) 08:41, 19 September 2016 (UTC)
Mediawiki with a SSL-Proxy
Does anyone know how to setup mediawiki to run it over a ssl-Proxy? My provider gives me a proxy with the adress https://ssl.webpack.de. Normally, I add the real url behind that, https://sssl.webpack.de/my.domain.com and it runs, but Mediawiki loses all formatting and almost all links are wrong. How can I set it up so it runs from the proxy-adress? 85.16.74.191 (talk) 09:45, 19 September 2016 (UTC)
Are you into home page design?
If so, Sanskrit Wikipedia is looking for help! Elitre (WMF) (talk) 09:47, 19 September 2016 (UTC)
Cannot request account
When I submit the account request page, I get the error,
Fatal error: Call to undefined method ObjectCache::getLocalClusterInstance() in /home/electowiki/wiki.electorama.com/w-1.26/extensions/ConfirmAccount/business/AccountRequestSubmission.php on line 72
Also, the captcha failed when I was asked what 32-5 was and I said 27. 100.14.175.181 (talk) 11:38, 19 September 2016 (UTC)
- Your ConfirmAccount version is for MediaWiki 1.27 (the method ObjectCache::getLocalClusterInstance() was introduced in MediaWiki 1.27). You should download the version corresponding to MediaWiki 1.26 or update MediaWiki to 1.27. ~ Seb35 [^_^] 00:02, 20 September 2016 (UTC)
Gadget-DeluxeHistory
I have my site vojnaenciklopedija.com that uses wikisoftver (media wiki). The above code does not work on that site.
Gadget DeluxeHistory should show the color of ordinary User, then administrators, bureaucrats, and other bots. Gedget This allows us a much better overview of the changes that are happening on our site. You can see when you enter the page - List of monitoring, as well as on the website - Recent changes.
The website vojnaenciklopedija we do not like this color, and you can see on our site vojnaenciklopedija.com military exercises that it works without problems. It was also raised at once and on another site.
Even the site repeatedly shot down to force me to do, and I failed, and military exercises on the site is first started working.
Gadget where I copied all the other gadgets. They are found in the settings, and where they are all there gadget copied. With this gadget Gadget-DeluxeHistory.js we go two more gadgets and Gadget and Gadget-Objects.js-DeluxeHistory.css .. Maybe I could just copying this from the French Wikipedia, and there has only Deluxe Gadget-i-history.js gadget-Deluxe-History.css. Maybe then i worked. This is copied from another Wikipedia.
Here's a link where we can find all gadgets: http://vojnaenciklopedija.com/index.php?title=%D0%9F%D0%BE%D1%81%D0%B5%D0%B1%D0%BD%D0%BE:%D0%93%D0%B0%D1%9F%D0%B5%D1%82%D0%B8
And here is a link where I was the only one gadget:
http://vojnaenciklopedija.com/index.php?title=%D0%9C%D0%B5%D0%B4%D0%B8%D1%98%D0%B0%D0%B2%D0%B8%D0%BA%D0%B8:Gadget-DeluxeHistory.js
I do not know why you ask me where I copied the gadget, would still be a place to copy or is it enough just to a place where they and everyone else gezet. Kizule (talk) 13:40, 19 September 2016 (UTC)
- https://phabricator.wikimedia.org/T145936 87.123.25.81 (talk) 13:49, 19 September 2016 (UTC)
- No. It is not working again. Kizule (talk) 14:03, 19 September 2016 (UTC)
Check user e-mail addresses?
How can I check as an admin what e-mail address a certain user has without looking up the database directly? User587668 (talk) 13:59, 19 September 2016 (UTC)
Problem using Datatables format and Safari
Hi all,
We've a weird problem using the Datatables format (https://www.semantic-mediawiki.org/wiki/Help:Datatables_format) wherein the used browser is Safari (tested with iPhone, iPad and Windows-version).
We have a very simple query:
{{#ask: [[Category:ZP Brief]]
| format=datatables
}}
Viewing the result with Chrome, Firefox, IE and Opera works fine, but when using Safari the browser continues endlessly say "Loading" showing no results, just a progress thing indication.
No difference for Vector- or Chameleon-skin.
The Safari console gives this error: "TypeError: Attempting to configurable attribute of unconfigurable property. load.php:156" and when clicking "load.php" "No <meta name="ResourceLoaderDynamicStyles"> found, inserting dynamically".
If changing format to Broadtable format or Table format it also works fine in Safari.
We use SMW 2.4.1 + MW 1.27.1.
A lot of our users use Safari...
Regards, Jethro Waanders (talk) 06:33, 20 September 2016 (UTC)
- This looks like a bug in the extension. You may want to report it so developers of SMW are aware of it. Ciencia Al Poder (talk) 09:05, 21 September 2016 (UTC)
A database query error has occurred. This may indicate a bug in the software.
I'm getting this error when I try to delete pages. Note: I'm using PostgreSQL via Heroku. You can find the wiki at http://www.preciousplasticwiki.com/ and I'm trying to delete a bunch of spam that it got hit with. However, I can't delete pages for some reason.
You can find all of the code at https://github.com/robksawyer/preciousplasticwiki Robksawyer (talk) 07:25, 20 September 2016 (UTC)
- Add $wgShowExceptionDetails = true; to the bottoms of LocalSettings.php to get the actual error message! 87.123.2.131 (talk) 08:59, 20 September 2016 (UTC)
- Added that line, but nothing new showed up.
- I'm seeing the following via console, but not sure it has anything to do with deletion.
- load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=AP7WfYH8:178 TypeError: Cannot read property 'repository' of undefined TypeError: Cannot read property 'repository' of undefined( Robksawyer (talk) 18:38, 20 September 2016 (UTC)
- For SQL query errors you need to set
$wgShowSQLErrors = true;to see details Ciencia Al Poder (talk) 09:16, 21 September 2016 (UTC)
Table of content
Sorry for the newbie question, but how do i set my wiki so that the Table of content on pages starts collapsed? I've been able to do it for specific users in their options bar, but what do I edit to make this the default state for anonymous users? 87.112.104.225 (talk) 10:50, 20 September 2016 (UTC)
- If you want to change a user preference for all users (and anons), you should set $wgDefaultUserOptions Ciencia Al Poder (talk) 09:19, 21 September 2016 (UTC)
black screen
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.
tablet will not come on. Just a blank screen. 66.119.109.250 (talk) 12:30, 20 September 2016 (UTC)
- Welcome to the support desk for the MediaWiki software. Your question seems to be about your hardware and not related to MediaWiki? AKlapper (WMF) (talk) 13:59, 20 September 2016 (UTC)
Editing and Adding information to a page
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 do you edit or add passed information to a page i cant see the edit option to do this as I have some info to add about uproar in the House theatre in South Africa and Alexandra Thetre as I worked with these various artists ????
Uproar in the House
From ESAT
Jump to: navigation, search
Uproar in the House, a popular farce by British playwrights Anthony Marriott (1931- ) and Alistair Foot. The play opened at the Whitehall Theatre, London, on 19 October 1967.
Contents
[hide]
- 1 The original text
- 2 Translations and adaptations
- 3 Performance history in South Africa
- 4 Sources
- 5 Return to
The original text
Translations and adaptations
Performance history in South Africa
Directed by Rex Garner at the Academy Theatre, Johannesburg, opening on 16 July 1968 starring British actors Paul Chapman [1], Geoffrey Lumsden [2], as well as Clive Scott with Barbara Kinghorn, Louis Ife and Paddy Canavan, Leonne Carnot, Hillery Carter, Julie Mills, Bill Smale, Ronald Wallace, Pat McGowan. The production played for twenty weeks.
Two other sources (Theatre SA and Tucker 242) list the cast as follows: Patricia Sanders, Rosemary Whitfield, Pat Lancaster, Louis Ife, Rex Garner, Gordon Mulholland, Mary Harrison, Hal Orlandini, Kenneth Baker, Julie Mills, Bill Smale, Barbara Kinghorn.
Presented by Plewman Productions and Eric Lyall at the André Huguenet Theatre in 1992 heaturing Tim Plewman, Malcolm Terrey, Paul Andrews and Diana Tilden-Davis.
Sources
Teater SA, 1(1), 1968.
Uproar in the House theatre programme, 1968.
Tucker, 1997. 242, 516. Laurence.Braun (talk) 12:52, 20 September 2016 (UTC)
- To understand your request better: Are you an administrator of http://esat.sun.ac.za ? It's up to the administrators of wiki sites how they configure their sites and whether and when they allow editing. AKlapper (WMF) (talk) 13:59, 20 September 2016 (UTC)
I updated my wiki and ran into another problem
I updated my wiki and then saw my wiki page. Everything was great until I went to login. Now it says:
"
The omegafleetonline.com page isn’t working
omegafleetonline.com is currently unable to handle this request.
HTTP ERROR 500"
there's nothing wrong with the server since it was just working. 2602:306:CF8C:1470:1817:7223:1E08:2034 (talk) 18:51, 20 September 2016 (UTC)
- Check the error log of your web server, or temporarily set $wgShowExceptionDetails in the settings. There are many ways to find what is causing an error. —TheDJ (Not WMF) (talk • contribs) 23:17, 20 September 2016 (UTC)
- This is what I now get:
- "Fatal error: Call to undefined function wfMsg() in /home6/omegafle/public_html/wiki/extensions/MultiUpload/MultiUpload.php on line 47" WwalkerOFO (talk) 02:26, 21 September 2016 (UTC)
- correction, this is what I now have:
- Fatal error: Call to a member function getIP() on null in /home6/omegafle/public_html/wiki/includes/user/User.php on line 2096
- It wasn't this hard to set it up 5 years ago. Is there someway I can just fix it so it works properly? WwalkerOFO (talk) 03:13, 21 September 2016 (UTC)
- According to the Error Log:
- "
- HP Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /home6/omegafle/public_html/wiki/includes/MagicWord.php on line 860
[03-Sep-2016 01:27:53 America/Denver] PHP Warning: preg_match_all(): Compilation failed: group name must start with a non-digit at offset 4 in /home6/omegafle/public_html/wiki/includes/MagicWord.php on line 834"WwalkerOFO (talk) 06:12, 21 September 2016 (UTC)- Are you sure you're following Manual:Upgrading? By the error messages it looks like you're not. One of the things the manual says is to get and upgrade extensions as well, and not unpack the new installation files over the old installation!! Ciencia Al Poder (talk) 09:11, 21 September 2016 (UTC)
I want to speak to a human
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 remove my profile and my photos.HOW ? Shepherddigs (talk) 19:47, 20 September 2016 (UTC)
- From where ? —TheDJ (Not WMF) (talk • contribs) 23:13, 20 September 2016 (UTC)
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.
I updated my wiki to 1.27.... I edited LocalSettings for the skin, but when I go to login, I put my user name and password then get an error page and I'm looking at a page that says there's an error with my server. Is there a way that I can by pass it via FTP - local settings or something like that? WwalkerOFO (talk) 20:04, 20 September 2016 (UTC)
- On my tablet, I tried signing up for a new account and saw that I had logged in, but when I try to go to the home page (a page that I see fine when not logged in) I get an error WwalkerOFO (talk) 20:25, 20 September 2016 (UTC)
- To get more details about the error, try setting in your LocalSettings.php file: $wgShowExceptionDetails = true;
- Maybe there is some conflict with some code (like from an extension) which becomes active when logged in. Also, try disabling all extensions and try to login again. AhmadF.Cheema (talk) 06:15, 21 September 2016 (UTC)
- right now, I can't even login. I go to my wiki:
- http://omegafleetonline.com/wiki/index.php?title=Main_Page
- and I get:
- = The omegafleetonline.com page isn’t working =
- omegafleetonline.com is currently unable to handle this request.
- HTTP ERROR 500
- In checking on how to fix this, Mediawiki is talking about a mailserver - I don't have a mail server with my wiki.
- This is starting to drive me up the wall. WwalkerOFO (talk) 06:54, 21 September 2016 (UTC)
- This is what the ERROR LOG says:
- According to the Error Log:
- "
- HP Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /home6/omegafle/public_html/wiki/includes/MagicWord.php on line 860
[03-Sep-2016 01:27:53 America/Denver] PHP Warning: preg_match_all(): Compilation failed: group name must start with a non-digit at offset 4 in /home6/omegafle/public_html/wiki/includes/MagicWord.php on line 834"WwalkerOFO (talk) 06:56, 21 September 2016 (UTC)- Usually this problem is caused by an upgrade of PCRE in combination with an old version of MediaWiki.
- The solution then is to upgrade MediaWiki to a supported version! 87.123.44.101 (talk) 08:23, 21 September 2016 (UTC)
- Duplicate of Project:Support desk/Flow/2016/09#h-I_updated_my_wiki_and_ran_into_another_problem-2016-09-20T18:51:00.000Z. See there for more answers! 87.123.44.101 (talk) 09:15, 21 September 2016 (UTC)
"There seems to be a problem with your login session" any time I have to re-authenticate.
Every time I have to re-authenticate to get to "change credentials" or any other link that requires me to re-login. I have Parisoid and VisualEdit installed, with the trusted 127.0.0.1 edit to avoid passing cookies. Im running the current 1.27 release of MediaWiki and 0.1.0 of Visual Edit.
Anyone have any ideas whats going on? OmegaNine1 (talk) 21:29, 20 September 2016 (UTC)
- See this: Project:Support desk/Flow/2016/07#h-Can't_login_or_create_user_after_upgrade_to_1.27-2016-07-05T08:20:00.000Z, maybe you're having the same issue. AhmadF.Cheema (talk) 06:16, 21 September 2016 (UTC)
problem with links in the bottom of the pages
- i inserted this on a page (see the raw code)
- seconda parte del Paragrafo 1 sulla Creazione degli Interessi.
- ----
- ----<< Importazione dei Clienti | Indice | L'Archivio dei Clienti >>
- but in the page i see the one u can see in the image below
- https://postimg.org/image/jkliazspf/
- strange thing is the other pages are fine....
- https://postimg.org/image/f36wq4lef/d1058369/ 93.40.193.35 (talk) 07:29, 21 September 2016 (UTC)
- seconda parte del [https://www.mediawiki.org/w/index.php?title=Gestione_degli_Interessi&action=edit&redlink=1 Paragrafo 1 sulla Creazione degli Interessi].<br> <br> ---- ---- [https://www.mediawiki.org/w/index.php?title=Importazione_dei_Clienti&action=edit&redlink=1 '''<< Importazione dei Clienti'''] | [[Pagina principale|'''Indice''']] | [https://www.mediawiki.org/w/index.php?title=Archivio&action=edit&redlink=1 '''L'Archivio dei Clienti >>'''] 93.40.193.35 (talk) 07:45, 21 September 2016 (UTC)
- these are my mediawiki specifications
| Prodotto | Versione |
|---|---|
| MediaWiki | 1.27.1 |
| PHP | 5.5.38 (cgi-fcgi) |
| MySQL | 5.1.73-log |
| ICU | 4.4.1 |
93.40.193.35 (talk) 07:33, 21 September 2016 (UTC)
- If your wiki is public, can you post a link to the wiki? This would greatly help. Ciencia Al Poder (talk) 09:14, 21 September 2016 (UTC)
My wiki wont send email
My wiki (located at [http://applewiki.rf.gd]) won't send emails. The lines in LocalSettings.php are as follows,
$wgEnableEmail = true;
$wgEnableUserEmail = true; # UPO
$wgEmergencyContact = "apache@applewiki.rf.gd";
$wgPasswordSender = 'apache';
$wgPasswordSenderName= 'Apple Computer Wiki';
$wgEnotifUserTalk = false; # UPO
$wgEnotifWatchlist = false; # UPO
$wgEmailAuthentication = true;
Any help would be great.
Thanks. 24.39.1.140 (talk) 14:43, 21 September 2016 (UTC)
- You may need to set Manual:$wgSMTP with your outgoing mail configuration. Note that some shared hosts block sending email by default to prevent spam abuse, in which case you would need to contact them. In any case, setting a debug log may help you seeing any error when sending the emails to troubleshoot the issue. Ciencia Al Poder (talk) 09:38, 22 September 2016 (UTC)
How to Migrate from Telligent Wiki
Dear All,
We are using Telligent Wiki, and now want to migrate to MediaWiki.
Is there any easy way to migrate my old Wiki pages in one shot ?
Thank in Advance,
Ram 14.141.35.115 (talk) 08:32, 22 September 2016 (UTC)
- I have quickly googled, whether there is any converter from Telligent to MediaWiki, but I have not found one. I don't know of any tool, which could do that.
- There surely is a way to write something yourself and to use that, but the easy way - should one exist - would be a different one. 87.123.23.254 (talk) 09:10, 22 September 2016 (UTC)
- However, there might still be other ways: If you are having your texts in a fitting format, it might be pretty simple to import them. E.g. CSV, plain text or HTML would be good options. Manual:Importing external content has more details on this topic! 87.123.23.254 (talk) 10:43, 22 September 2016 (UTC)
Error on 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.
[V@PuGVGA5zbHtj7YI-SmwAAAACQ] /wiki/Main_Page MWException from line 118 of /home/vol8_5/rf.gd/rfgd_18830076/htdocs/includes/cache/localisation/LCStoreCDB.php: Unable to move the new CDB file into place.
Backtrace:
#0 /home/vol8_5/rf.gd/rfgd_18830076/htdocs/includes/cache/localisation/LocalisationCache.php(1024): LCStoreCDB->finishWrite()
#1 /home/vol8_5/rf.gd/rfgd_18830076/htdocs/includes/cache/localisation/LocalisationCache.php(462): LocalisationCache->recache(string)
#2 /home/vol8_5/rf.gd/rfgd_18830076/htdocs/includes/cache/localisation/LocalisationCache.php(336): LocalisationCache->initLanguage(string)
#3 /home/vol8_5/rf.gd/rfgd_18830076/htdocs/includes/cache/localisation/LocalisationCache.php(273): LocalisationCache->loadItem(string, string)
#4 /home/vol8_5/rf.gd/rfgd_18830076/htdocs/languages/Language.php(464): LocalisationCache->getItem(string, string)
#5 /home/vol8_5/rf.gd/rfgd_18830076/htdocs/includes/search/SearchEngineConfig.php(42): Language->getNamespaces()
#6 /home/vol8_5/rf.gd/rfgd_18830076/htdocs/includes/user/User.php(1530): SearchEngineConfig->searchableNamespaces()
#7 /home/vol8_5/rf.gd/rfgd_18830076/htdocs/includes/user/User.php(5049): User::getDefaultOptions()
#8 /home/vol8_5/rf.gd/rfgd_18830076/htdocs/includes/user/User.php(2750): User->loadOptions()
#9 /home/vol8_5/rf.gd/rfgd_18830076/htdocs/includes/context/RequestContext.php(363): User->getOption(string)
#10 /home/vol8_5/rf.gd/rfgd_18830076/htdocs/includes/Message.php(679): RequestContext->getLanguage()
#11 /home/vol8_5/rf.gd/rfgd_18830076/htdocs/includes/context/RequestContext.php(457): Message->setContext(RequestContext)
#12 [internal function]: RequestContext->msg(string)
#13 /home/vol8_5/rf.gd/rfgd_18830076/htdocs/includes/context/ContextSource.php(190): call_user_func_array(array, array)
#14 /home/vol8_5/rf.gd/rfgd_18830076/htdocs/includes/OutputPage.php(973): ContextSource->msg(string)
#15 /home/vol8_5/rf.gd/rfgd_18830076/htdocs/includes/page/Article.php(504): OutputPage->setPageTitle(string)
#16 /home/vol8_5/rf.gd/rfgd_18830076/htdocs/includes/actions/ViewAction.php(44): Article->view()
#17 /home/vol8_5/rf.gd/rfgd_18830076/htdocs/includes/MediaWiki.php(503): ViewAction->show()
#18 /home/vol8_5/rf.gd/rfgd_18830076/htdocs/includes/MediaWiki.php(288): MediaWiki->performAction(Article, Title)
#19 /home/vol8_5/rf.gd/rfgd_18830076/htdocs/includes/MediaWiki.php(745): MediaWiki->performRequest()
#20 /home/vol8_5/rf.gd/rfgd_18830076/htdocs/includes/MediaWiki.php(519): MediaWiki->main()
#21 /home/vol8_5/rf.gd/rfgd_18830076/htdocs/index.php(43): MediaWiki->run()
#22 {main}
Help?
Thanks. 24.39.1.140 (talk) 14:46, 22 September 2016 (UTC)
- Make sure to set $wgCacheDirectory to an existing directory and make sure that permissions on that directory are correct! 87.123.23.254 (talk) 14:51, 22 September 2016 (UTC)
Localized alias for namespace
Hello.
I have multilingual wiki-site with custom namespace "Story". The name of this namespace is good for english version, but in russian version i want to translate "Story" to rus "История" like done special namespaces Category (Категория), User (Пользователь) and so on.
What's the right way? Okay I can definde NS_STORY_EN, NS_STORY_RU ... but it's not good i bet. Sergezolotukhin (talk) 15:14, 22 September 2016 (UTC)
- See Project:Support desk/Flow/2014/05#h-How_can_I_add_a_localized_name_to_a_custom_namespace?-2014-05-03T13:25:00.000Z Ciencia Al Poder (talk) 09:40, 23 September 2016 (UTC)
- that is not exactly what I`m asking, but thank you :-P Sergezolotukhin (talk) 11:29, 23 September 2016 (UTC)
- The name, which is displayed on a namespace tab, this name comes from an interface message. And interface messages can be localized.
- That way it should be possible to display a different name on the tab and this depending on user language. I don't know how confusing this might be, but technically it should be possible. 87.123.2.204 (talk) 16:56, 23 September 2016 (UTC)
- I need localized ns in browser address bar, not in namespace tab Sergezolotukhin (talk) 10:28, 26 September 2016 (UTC)
Uploading photos
Good evening all,
I am a new user of wiki and I need to find how I can upload photos in our company's wiki.?
Any advice?
Regards,
Georgios Georgios Soldatos (talk) 16:55, 22 September 2016 (UTC)
- That is possible by going to the wiki page Special:Upload in your company's wiki.
- It is possible that when you are visiting that page, you are getting a permission error, which tells you that you do not have permission to upload files. In that case this can be changed by adjusting the wiki configuration (which an administrator would have to do): He either can give one of your user groups the right to upload files (which would enable all members of that group to upload files). Or he can create a new user group, which has the right to upload files, and add your account to this user group. 87.123.23.254 (talk) 17:26, 22 September 2016 (UTC)
- Note that uploads also need to be enabled and configured. See Manual:Configuring file uploads Ciencia Al Poder (talk) 09:32, 23 September 2016 (UTC)
MediaWiki internal error
Hello, sometimes mediawiki send this error and not works:
Warning: rename(/tmp/l10n_cache-en.cdb.tmp.348291753,/tmp/l10n_cache-en.cdb): Operation not permitted in/home/u180299314/public_html/vendor/wikimedia/cdb/src/Writer/DBA.php on line 59
[V@TO9h@qpbcAAFi90EoAAADU] 2016-09-23 06:43:03: Fatal exception of type MWException
Warning: dba_close(): 214 is not a valid DBA identifier resource in /home/u180299314/public_html/vendor/wikimedia/cdb/src/Writer/DBA.php on line 54
Warning: rename(/tmp/l10n_cache-en.cdb.tmp.348291753,/tmp/l10n_cache-en.cdb): Operation not permitted in/home/u180299314/public_html/vendor/wikimedia/cdb/src/Writer/DBA.php on line 59
Fatal error: Uncaught exception 'Cdb\Exception' with message 'Unable to move the new CDB file into place.' in /home/u180299314/public_html/vendor/wikimedia/cdb/src/Writer/DBA.php:60 Stack trace: #0 /home/u180299314/public_html/vendor/wikimedia/cdb/src/Writer.php(88): Cdb\Writer\DBA->close() #1 [internal function]: Cdb\Writer->__destruct() #2 {main} thrown in /home/u180299314/public_html/vendor/wikimedia/cdb/src/Writer/DBA.php on line 60 46.24.19.42 (talk) 06:48, 23 September 2016 (UTC)
- Make sure to set $wgCacheDirectory to an existing directory and make sure that permissions on that directory are correct! 87.123.23.254 (talk) 06:56, 23 September 2016 (UTC)
Filter array
Hi,
I don't know exactly where/to whom I should ask this question...
Is it possible to add an advanced filter functionality to the arrays?
Example : https://en.wikipedia.org/wiki/Comparison_of_mail_servers
How can I get items that runs on Linux/Unix that have the GPLv2 license?
Is there still a module that can do that? How can I make this suggestion to the Wikipedia team?
Thanks! 212.9.128.231 (talk) 10:58, 23 September 2016 (UTC)
- See if Semantic MediaWiki does what you want. Jackmcbarn (talk) 02:07, 26 September 2016 (UTC)
- In fact when I said "I don't know exactly where/to whom I should ask this question..." I meant I would like to submit the idea for the wikipedia.org website, but I only found article related to the content itself, not the website functionality... To avoid that I also search on the Chrome web store to find extensions that can handle that... but nothing interesting in that area.
- And so I can't really test if Semantic MediaWiki does what I want. Maybe it is too sophisticated and too heavy... 212.9.128.231 (talk) 13:04, 26 September 2016 (UTC)
- Just sort the columns by clicking on them. You can even shift+click to sort by multiple columns.
- http://i.imgur.com/eeJCx3R.png 121.214.103.220 (talk) 06:58, 27 September 2016 (UTC)
- Ok this is what I did till now, but sorting columns has limitations. What I would like to do is filtering column... 212.9.128.231 (talk) 08:30, 27 September 2016 (UTC)
Unable to change Vector CSS back, wiki broken :(
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.
Trying to hide the left sidebar, I accidentally changed the Vector CSS rather than the Common one. Now I am unable to edit the custom CSS page for some reason -- when I go there, the text appears but is not in an editing window, and there is no save button.
Help? NessBirdSupport (talk) 18:53, 23 September 2016 (UTC)
- Changed to a different skin. Would like Vector back :) NessBirdSupport (talk) 18:56, 23 September 2016 (UTC)
- Easiest solution: In your user preferences, change the skin, which your user account uses, to Monobook or so, essentially to anything that is not Vector. Then fix the page, e.g. by going back to an older revision and switch the skin back to Vector.
- Some way more difficult solutions would be this: If you have direct access to the database, you could fix it by manipulating the conents of the Vector.css page inside the database. Apart from that it will be hard to guess what you have changed (and so what you would have to change back, e.g. using Firebug) in order to make the editing field and the button visible again. 87.123.2.204 (talk) 19:13, 23 September 2016 (UTC)
- I'm sorry, I can't figure out how to "go back to an older revision". There is no link or button for this...? When I try to "change visibility of selected revisions" I get:
- Revision visibility could not be updated:
- Error hiding the item dated 18:30, 23 September 2016: This is the current revision.
- It cannot be hidden.
- There is no delete button. Thanks for your help! NessBirdSupport (talk) 21:14, 23 September 2016 (UTC)
- It is way easier: Just go to the revision history with action=history in the URL. Then check the different revisions and find one, which did not have the problem. Then hit "Edit" and save. This will effectively roll the page back to that revision.
- But you can also choose any other way to go to an older revision - the point only is that you again put content on the Vector.css page, which does not cause the problem. 87.123.2.204 (talk) 21:47, 23 September 2016 (UTC)
- Oh NOW I get it! Before I modified the code, I could just enter something in the text window. Once I saved it, it created an edit link in the top, but I never saw it. Duh. It just never occurred to me that this was a page like everything else.
- Thanks for your help ;=} NessBirdSupport (talk) 07:55, 24 September 2016 (UTC)
Login in issue
every time I try to save I get a error telling me to connect. I am logged in though so i dont know what to do. i have tried reinstalling roblox and it still happens Strangeweegee105 (talk) 22:13, 23 September 2016 (UTC)
Include javascript file on every page
I have a file, "all.js", that I want to include in every page. I'm wondering:
1. Where is the best place to do this?
2. How do I make sure that the mediawiki object (mw) is available?
Cheers! 2620:15C:281:FD0F:6491:1019:3193:855E (talk) 02:44, 24 September 2016 (UTC)
- It depends:
- If your file depends on other things, e.g. on jQuery, then you should integrate it using a ResourceLoader module. This should especially be done, if the file is used inside a skin or an extension. It might then be possible to use a hook to integrate the file.
- If the file does not depend on anything, then you can just put its contents into one of the CSS pages. See Manual:Interface/Stylesheets for more information! 87.123.43.195 (talk) 11:50, 24 September 2016 (UTC)
- See Snippets/Load an additional JavaScript or stylesheet file on all pages. If you use this or MediaWiki:Common.js, etc, mw and jQuery should be available. Ciencia Al Poder (talk) 12:43, 24 September 2016 (UTC)
Timezone UTC?
Server Setting
LocalSettings.php
$wgLocaltimezone = "Asia/Tokyo";
date_default_timezone_set( $wgLocaltimezone );
PHP Setting
date.timezone = Asia/Tokyo
Wiki
Kiwkius (talk) 03:08, 24 September 2016 (UTC)
- Yes, the server time is UTC Ciencia Al Poder (talk) 10:43, 24 September 2016 (UTC)
- How To change that? 222.100.125.42 (talk) 04:53, 25 September 2016 (UTC)
- You can't change how server time is expressed in preferences, it will always be expressed in UTC. You can change the default timezone of the wiki for your users and unregistered users with $wgLocalTZoffset that will be used in page history, recent changes, etc, but not for signatures. Ciencia Al Poder (talk) 10:58, 25 September 2016 (UTC)
Logs/Recent Changes aren't logging.
Anyway.. logs and recent changes aren't logging. The issue was apparent right after I upgraded from 1.26.2 to 1.27. I checked the database and the recent changes table is stuck in history, i.e before the upgrade. 194.150.65.138 (talk) 21:04, 24 September 2016 (UTC)
- Did you Run the update script? Also check if you have any sort of error log if there's any error happening, and consider Manual:How to debug enabling the display of errors (temporarily):
- error_reporting( -1 );
- ini_set( 'display_errors', 1 );
- After that, do an edit and see if any error appear on the page Ciencia Al Poder (talk) 13:31, 25 September 2016 (UTC)
My LocalSettings.php file got deleted accidentally
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.
My LocalSettings.php file got accidentally deleted! What do I do now?
Do I have to start everything -- hours of work -- all over again?
Could someone give me the code of a default LocalSettings.php file or something? --Joona ● Talk ● Contribs 22:13, 24 September 2016 (UTC)
- Nevermind, I created a new database. --Joona ● Talk ● Contribs 22:43, 24 September 2016 (UTC)
HTTPS 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.
Mixed Content: The page at 'https://wiki.shiftstudios.net/wiki/%EB%8C%80%EB%AC%B8' was loaded over HTTPS, but requested an insecure stylesheet 'http://fonts.googleapis.com/earlyaccess/nanumgothic.css'. This request has been blocked; the content must be served over HTTPS.
I Changed Server, And Make HTTP to HTTPS.
And Get That Error. How To Fix That? Gochiusa (talk) 04:54, 25 September 2016 (UTC)
User blocking - Spammer
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.
Please block @Shastri devrajji - another spammer on Talk:Reading/Web/Projects/Related pages. Thanks with best wishes from VINCENZO1492 06:35, 25 September 2016 (UTC)
- Done. Az1568 (talk) 06:43, 25 September 2016 (UTC)
How to use LanguageConverter?
In the page : Writing systems/Syntax, there are some example, I chose some and test in sandbox of MW, but it didn't work.
some example such as:
test1:
-{zh-hans:computer; zh-hant:ELECTRONICBRAIN;}-
test2:
-{H|zh-cn:blog; zh-hk:WEBJOURNAL; zh-tw:WEBLOG;}-
Test 1: -{zh;zh-hans;zh-hant|blog, WEBJOURNAL, WEBLOG}-
Test 2: -{zh;zh-cn;zh-hk|blog, WEBJOURNAL, WEBLOG}-
testN:
...
In all tests, the final pages are the source code, it means the delimiter '-{}-' did't be parse.
By search the source code in MW, I found some codes with '-{' and '}-', and I think the most important file is languages\LanguageConverter.php, and LanguageConverter.php hasn't page, only has a page LanguageConverter redirect to Writing systems/Syntax finally.
Thought it is a system based function, but some text I'm not sure:
LanguageConverter is a system based on language variants that automatically converts the content of a page into a different variant. A variant is mostly the same language in a different script. To use the LanguageConverter, go to your Internationalisation preferences. If you are on a wiki that supports conversion, you'll see an extra option for choosing the script.
How to enable the LanguageConverter function? Redlz250 (talk) 01:53, 26 September 2016 (UTC)
- I think your wiki needs to be in one of the languages that support language conversion, like Chinese. Ciencia Al Poder (talk) 09:22, 26 September 2016 (UTC)
- Tks.
- But how?
- In localsettings.php I have set
- $wgLanguageCode = "zh-hans"; Redlz250 (talk) 08:20, 13 October 2016 (UTC)
Is Crypto++ AES-256 GCM supports Windows XP?
Crypto++ AES-256 CBC mode supports Windows XP, but I want to know whether GCM ciphor mode also supports Windows XP? Sudhirkumarsharma (talk) 10:00, 26 September 2016 (UTC)
- Your question doesn't seem related to MediaWiki. Maybe you're asking on the wrong site? Ciencia Al Poder (talk) 09:16, 27 September 2016 (UTC)
- It might be related to Manual:$wgSessionInsecureSecrets. I have added information on the different encryption mechanisms to that page some time ago.
- The important thing is the PHP version I guess. If you are running a rather new version of PHP, chances are that the necessary algorithms will be in as well. 87.123.36.240 (talk) 10:25, 27 September 2016 (UTC)
- On Windows XP, the last version of PHP, which you can run, is PHP 5.4. This version allows you to run any version of MediaWiki up to MediaWiki 1.26, but not MW 1.27.
- With other words: MediaWiki 1.27, in which $wgSessionInsecureSecrets has been introduced as a new option, will not work on Windows XP. So basically, if you are running on Windows XP, $wgSessionInsecureSecrets and its possible values are irrelevant for you. 87.123.36.240 (talk) 11:10, 27 September 2016 (UTC)
MediaWiki & Oracle database
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 would like to setup MediaWiki with an Oracle database. As I understand the latest MediaWiki versions is unsupported due to open blocking bugs. My question is, will this problem be addressed at short notice, and would it be possible to migrate MediaWiki from MariaDB to an Oracle database, when it is supported?
Thanks,
-Rene 217.123.200.224 (talk) 11:58, 26 September 2016 (UTC)
- I'd not recommend that: Oracle has been unsupported for long, there's no active maintainer for this database engine. If it's made compatible again, it can very well be unmaintained again in next versions, so you won't be able to upgrade.
- Also, migrating from MariaDB to Oracle is not done by just exporting and importing databases, there's some structure differences AFAIK. Ciencia Al Poder (talk) 09:24, 27 September 2016 (UTC)
- That is right. In the past MediaWiki basically always was not compatible with Oracle. There have always only been certain points in time, when it worked, bu these were more single spots than periods of time. There also are no fixed plans as to which future version of MediaWiki should be working properly with Oracle.
- I would not recommend to use Oracle for MediaWiki. 87.123.36.240 (talk) 10:29, 27 September 2016 (UTC)
- Thank you. I will use the MariaDB database. 217.123.200.224 (talk) 09:03, 3 October 2016 (UTC)
Upgrading mediawiki version
Hey. I upgraded mediawiki from 1.25.2 to 1.27.1, on my testwiki, on xampp, using git. I used <nowiki>git clone -b REL1_27 https://gerrit.wikimedia.org/r/mediawiki/core</nowiki> and cloned it to htdocs in the xampp folder. Then I installed composer in the new mediawiki version. I must mention that I only managed to do the first step of the installation instructions for composer, as it gave an error at the second one 'corrupted installer'. I downloaded the composer.phar snapshot manually then managed to install it, after all, using the instruction provided on this wiki. Then I copied the extensions, images and localsettings from the old medawiki and ran both the web updater and update.php from the shell (just to be extra sure). The problem was that, every time I tried to log in, it would redirect me to the old version. After I moved the old version out of the folder, it gave me an error saying it can't find the site. So what I did was change the name of the new version to that of the old version. It worked, but I couldn't log in using the credentials that I had. It still let me log in on the wiki, though, because, after two failed tries, the option to 'skip' appeared. So I changed the password in the database, to both the root account and the personal account and now I got this error and I just can't get around to it:
Sorry! This site is experiencing technical difficulties.
Try waiting a few minutes and reloading.
(Cannot access the database)
You can try searching via Google in the meantime.
Note that their indexes of our content may be out of date.
I really don't know what else to do. I can't understand how to change the database to the new version, without having to change the name of the new version. Maybe I need to move the accounts or something? What am I doing wrong? Please reply as I would like to do the same thing on the real wiki. I must mention I used git clone instead of git checkout because the old version was downloaded and unzipped manually. I would appreciate any help. Thanks! 92.83.196.215 (talk) 16:40, 26 September 2016 (UTC)
- So to sum it up, you say that you have installed the new version, that you have successfully updated the database. Basically at this point your upgrade is finished. If there are no problems, this would be it. There is nothing needed to change names or to move an account. At this point, you realized that you are having a problem with login, that is that login did not work.
- The error message "Cannot access the database" points to wrong database credentials. I don't know, what you have changed in the steps where you say that you have changed the password in the database, but I think that what you did there was wrong.
- Make sure that in your LocalSettings.php file you are using the correct username and password for your MySQL database! Should you have changed the password of the MySQL user, which you are using to access this database, make sure that both, the password as stored in MySQL and in LocalSettings.php, are the same!
- Note that these credentials, of the MySQL user, which you also have in LocalSettings.php, are different from the credentials of MediaWiki users - even if you might have users inside MediaWiki, which have the same username as the MySQL user. 87.123.55.96 (talk) 17:20, 26 September 2016 (UTC)
- Hey. So, I followed your steps and made sure that both the MySQL password and the one in localsettings match. I, also, saw that there is the script path so I changed that, too. Now, I am not getting any database errors, but even though the passwords match, I am still getting this: "Incorrect password entered. Please try again." I swear I entered the exact same password and username. I really have no idea what to do from here on. Basically, when I changed the password in 'phpmyadmin', I went to user accounts -> chose the right account -> edit privileges -> change password. 92.83.196.215 (talk) 12:29, 27 September 2016 (UTC)
- Can you please specify, where the error message
"Incorrect password entered. Please try again."- is displayed?
- What you had before my answer was that MediaWiki was not working at all, because of wrong database credentials in LocalSettings.php: $wgDBuser and $wgDBpassword. Is it correct that error is solved? Is the wiki basically working now? 87.123.36.240 (talk) 14:21, 27 September 2016 (UTC)
- Yes, the wiki is working now, but I cannot log in using those credentials, even though they are the same '''both''' in phpmyadmin and localsettings.php. I am getting the error message on the login screen (http://prnt.sc/cn06vs). Even though I made extra sure that I was using the right credentials, I kept getting the same error. Then, I simply entered the old password and it gave me this (the old password was made out of 6 letters): http://prntscr.com/cn09b5 92.83.196.215 (talk) 15:51, 27 September 2016 (UTC)
- Well, I'll be damned. I changed the password on the wiki itself (on the second image) and it worked! It used to give a 'Fatal MWexception' or something like that, before, but it worked, thsi time. Anyway, thanks for helping me get through the issue! 92.83.196.215 (talk) 16:55, 27 September 2016 (UTC)
- Please note that you are speaking about two very different things:
- There is the password for the MySQL database. This password - and the according username - must be put inside LocalSettings.php. They belong inside the variables $wgDBuser and $wgDBpassword. With the error messages, which you are now getting, these two variables, $wgDBuser and $wgDBpassword, both are correct. Do not touch them, they are ok!
- The second thing is the login into MediaWiki - this is what your two screenshots are showing. This login is using a MediaWiki username and the associated password. Both are stored inside the database (in the user table most likely) and they don't have 'anything to do with the MySQL credentials, which you ave to put into LocalSettings.php. What you need to log in to MediaWiki just is your MediaWiki username and its password.
- The usernames inside MediaWiki and the usernames in MySQL (of which is used to access the database), are two completely different things! 87.123.36.240 (talk) 17:26, 27 September 2016 (UTC)
- Since it's a wiki used for testing, I am using the same credentials all over the places and I thought that was the problem. 92.83.196.215 (talk) 19:37, 27 September 2016 (UTC)
Allow wiki in iFrame?
Is there any way to configure the wiki to allow it to be embedded in an iframe? It is forbidden due to X-Frame-Options. I want to use the wiki as the help for my online system. It won't be editable by the public, so I'm not concerned with the security. I'm using a free hosting service where I can't make system-wide configuration changes.
Thanks for your help. NessBirdSupport (talk) 20:31, 26 September 2016 (UTC)
- As far as I know, viewing a page in an iframe should be possible with the default configuration, just the edit page is not allowed to be framed. Florianschmidtwelzow (talk) 06:48, 27 September 2016 (UTC)
- Hm. Strange. OK, thank you. NessBirdSupport (talk) 17:49, 27 September 2016 (UTC)
Resolved: Upgrade error, 1.25.2 -> 1.27.1
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hi All,
Trying to upgrade from 1.25.2 to 1.27.1 on a RHEL 6.8 system running php 5.5.29 with mysql 5.5.45 and receiving the below errors.
I downloaded the tar.gz mediawiki directly from mediawiki.org and uncompressed it to a new directory and then copied over all of the "other files" listed at Manual:Upgrading#Other files . I didn't have any extensions installed other than the ones that come as part of the tar.gz download.
I then ran the upgrade.php and then navigate to the site, at which point I get the below errors.
I have verified that the /tmp directory is writable:
ls -l | grep tmp
drwxrwxrwt. 6 root root 12288 Sep 26 20:01 tmp
Any help/suggestions appreciated,
[298bb9adbc1dbdac3e37308f] /mediawiki-1.27.1/ MWException from line 132 of /var/www/mediawiki-1.27.1/includes/cache/localisation/LCStoreCDB.php: Error writing to CDB file "/tmp/l10n_cache-en.cdb.tmp.206954764".
Backtrace:
#0 /var/www/mediawiki-1.27.1/includes/cache/localisation/LocalisationCache.php(1021): LCStoreCDB->set(string, boolean)
#1 /var/www/mediawiki-1.27.1/includes/cache/localisation/LocalisationCache.php(462): LocalisationCache->recache(string)
#2 /var/www/mediawiki-1.27.1/includes/cache/localisation/LocalisationCache.php(379): LocalisationCache->initLanguage(string)
#3 /var/www/mediawiki-1.27.1/includes/cache/localisation/LocalisationCache.php(294): LocalisationCache->loadSubitem(string, string, string)
#4 /var/www/mediawiki-1.27.1/languages/Language.php(2561): LocalisationCache->getSubitem(string, string, string)
#5 /var/www/mediawiki-1.27.1/includes/cache/MessageCache.php(869): Language->getMessage(string)
#6 /var/www/mediawiki-1.27.1/includes/cache/MessageCache.php(827): MessageCache->getMessageForLang(Language, string, boolean, array)
#7 /var/www/mediawiki-1.27.1/includes/cache/MessageCache.php(768): MessageCache->getMessageFromFallbackChain(Language, string, boolean)
#8 /var/www/mediawiki-1.27.1/includes/Message.php(1178): MessageCache->get(string, boolean, Language)
#9 /var/www/mediawiki-1.27.1/includes/Message.php(801): Message->fetchMessage()
#10 /var/www/mediawiki-1.27.1/includes/Message.php(892): Message->toString()
#11 /var/www/mediawiki-1.27.1/includes/title/MalformedTitleException.php(49): Message->text()
#12 /var/www/mediawiki-1.27.1/includes/title/MediaWikiTitleCodec.php(296): MalformedTitleException->__construct(string, string)
#13 /var/www/mediawiki-1.27.1/includes/Title.php(3343): MediaWikiTitleCodec->splitTitleString(string, integer)
#14 /var/www/mediawiki-1.27.1/includes/Title.php(367): Title->secureAndSplit()
#15 /var/www/mediawiki-1.27.1/includes/MediaWiki.php(79): Title::newFromURL(NULL)
#16 /var/www/mediawiki-1.27.1/includes/MediaWiki.php(135): MediaWiki->parseTitle()
#17 /var/www/mediawiki-1.27.1/includes/MediaWiki.php(661): MediaWiki->getTitle()
#18 /var/www/mediawiki-1.27.1/includes/MediaWiki.php(519): MediaWiki->main()
#19 /var/www/mediawiki-1.27.1/index.php(43): MediaWiki->run()
#20 {main} 70.162.99.246 (talk) 03:03, 27 September 2016 (UTC)
- From what I know this is caused because of incorrect ownership rules for the MW cache directory.
- Try this: Project:Support desk/Flow/2016/07#h-MWException_when_I_try_to_enable_extensions-2016-07-12T23:58:00.000Z AhmadF.Cheema (talk) 04:54, 27 September 2016 (UTC)
- All files in both directories are owned by the nginx user which is what both php-fpm and nginx run as.
- FYI, the 1.25.2 site, had no issues with permissions when nginx owned everything.
- Thanks 70.162.99.246 (talk) 05:51, 27 September 2016 (UTC)
- You can try creating a temp folder inside MediaWiki installation files, giving all permissions to all users, setting $wgTmpDirectory to it and see if that solves the problem or not, so you can discard a permission or SELinux issue. Ciencia Al Poder (talk) 09:38, 27 September 2016 (UTC)
- Hi All,
- Thanks for the help, it's always the easy things we miss.. Turns out the / partition was full. I cleared some space, tried again, but got an error about not being able to move the database to the new location.
- I then tried Ciencia's suggestion of using an alternative temp location and that fixed the issue.
- Thanks again! 70.162.99.246 (talk) 23:54, 27 September 2016 (UTC)
Signup Form Custom parameter
Hi,
I want's to add customer signup parameters such as Date of Birth, Address. Please suggest me solution for this.
Thanks
Jitender 182.74.178.178 (talk) 08:12, 27 September 2016 (UTC)
Using the &continue parameter
I am using the wikipedia API to query for a search word, for example by making a GET request to this URL:
This query returns a total of 51429 hits, but will only display the first 10 results. From reading the documentation on this topic, I gather that to get the next 10 results I should pass in the continue parameter.
The relevant parameters in the API response are here:
continue: {
sroffset: 10,
continue: "-||"
}
So I build my url in the following way:
https://en.wikipedia.org/w/api.php?action=query&format=json&list=search&utf8=1&srprop=snippet&continue=-||&srsearch=Slovenia
But the URL returns the same set of results.
What am I doing wrong? Shooshte (talk) 12:01, 27 September 2016 (UTC)
- You should be merging the content of the continue key into your request. You're only adding part of the content (the continue key within the continue key).
- https://en.wikipedia.org/w/api.php?action=query&format=json&list=search&utf8=1&srprop=snippet&srsearch=Slovenia&sroffset=10&continue=-|| 121.214.103.220 (talk) 07:23, 28 September 2016 (UTC)
How to customize article page, so that user contact to author/owner of article?
How to customize article page, so that user contact to author/owner of article? 182.74.178.178 (talk) 12:17, 27 September 2016 (UTC)
- Article pages do not have "owners". Initial authors can be found under "History", which is linked on top of every article page. Malyacko (talk) 12:50, 27 September 2016 (UTC)
Upgrading from MediaWiki 1.16.4
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 am upgrading from MediaWiki version 1.16.4 and would like to go to the latest stable release 1.27.
I was wondering if I can upgrade straight to 1.27 or if I need to upgrade through the other versions first?
The sever is running Ubuntu 11.04 which I plan to upgrade to 16.04.
It is running PHP 5.3.5 which I will be upgrading to 5.6
MySQL 5.1.63 Vjsuarez2002 (talk) 18:53, 27 September 2016 (UTC)
- Hi!
- You can upgrade to 1.27 directly, there are no versions, which you have to take in between.
- Note that MediaWiki 1.27 needs PHP 5.5 at least. On your old system with PHP 5.3, you only can use MediaWiki 1.26. So I would first upgrade PHP (which might make MW 1.16 non-functional at that point) and then upgrade MediaWiki to 1.27 in one go.
- A complete guide is at Upgrade! If you have further questions, don't hesitate to ask! 87.123.36.240 (talk) 21:43, 27 September 2016 (UTC)
- Thank you Very much! Vjsuarez2002 (talk) 21:55, 27 September 2016 (UTC)
Footer links don't change
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.
On LinuxPadawan Wiki, I've followed Manual:Footer and yet I cannot get the footer links or text to change, except for the copyright stuff. Using $wgRights* I've managed to change the copyright stuff. I did add the Termsofservice link to the array. Changing the right pages has no affect on the actual footer:
- LinuxPadawan_Wiki:Aboutsite does not change text
- LinuxPadawan_Wiki:Aboutpage does not get linked to
- LinuxPadawan_Wiki:Disclaimers does not disable disclaimers
- LinuxPadawan_Wiki:Privacy does not change text
- LinuxPadawan_Wiki:Privacypage does not get linked to
- LinuxPadawan_Wiki:Termsofservice does not even get added to the footer
- LinuxPadawan_Wiki:Termsofservicepage does not get linked to in the footer because the text isn't added
| Product | Version |
|---|---|
| MediaWiki | 1.26.2 |
| PHP | 5.5.9-1ubuntu4.17 (fpm-fcgi) |
| PostgreSQL | 9.5.1 |
- The different pages, which you can change, are not located inside the LinuxPadawan_Wiki namespace, but inside the MediaWiki namespace, e.g. MediaWiki:Aboutsite. 87.123.36.240 (talk) 21:46, 27 September 2016 (UTC)
How to call Jquery Ajax and get response from server in mediawiki?
I want to create a contact form and save data in tables by jquery in mediawiki. 182.74.178.178 (talk) 05:20, 28 September 2016 (UTC)
Create Custom Signup Parameters
I want to add more signup parameters such as date of birth, address etc. anybody please assists for the same so that i can make changes. I had tried to change "LoginSignupSpecialPage.php" page on different places. but no proper solution found. Jitender.ots (talk) 06:30, 28 September 2016 (UTC)
VisualEditor on a private ssl-only wiki exclusively on nginx
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 have a private mediawiki installed served via nginx (not as a reverse proxy to apache, configured to serve php files via php5-fpm) running on debian 8 latest (64bit) and want to setup VisualEditor, however I've been trying to make it work to no avail. The ssl certs are generated by certbot letsencrypt so they're accepted as non self signed. I did not download from git, i got the tar.gz version, installed parsoid from apt repo, I always get a 500 message error popup whenever i try to edit. Parsoid logs are empty, there's only info about worker threads starting, no connection no nothing. Only thing i get is in php5-fpm's logs that give this error :
*23 FastCGI sent in stderr: "PHP message: PHP Fatal error: Call to undefined function curl_multi_init() in /var/www/html/mediawiki-1.27.1/includes/libs/MultiHttpClient.php on line 418" while reading response header from upstream, client: MY_IP, server: MY_SERVER, request: "GET /api.php?action=visualeditor&format=json&paction=parse&page=User%3AME&uselang=en HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "MY_SERVER", referrer: "https://MY_SERVER/index.php?title=User:ME&veaction=edit"
Is this thing a pain to serve via nginx ? Do I really need apache for mediawiki to just work ? I can setup apache and use nginx as a reverse proxy and I can leave mediawiki running on apache without ssl, nginx will do the ssl part in front, but that's just bloating it. Please help :) 79.112.39.203 (talk) 07:39, 28 September 2016 (UTC)
- apt-get install php5-curl
- -- fixed for debian systems. 79.112.39.203 (talk) 08:12, 28 September 2016 (UTC)
translation to English
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 translated an article from Russian to French and published it with no problem. After that I have translated it to English, but when I try to publish it, I have this warning:
An error occurred while publishing the translation. Please try to publish the page again. Error: Hit AbuseFilter: Content Translation Edits
| An automated filter has identified this edit as potentially unconstructive, and it has been disallowed. If this edit is constructive, please report this error. |
- No, I do not see that it would say you would have to wait a month. I would guess that, if you waited one month, the message would still be the same.
- Honestly, don't know, what the problem is with a Content Translation Edit. It might be (but I am only guessing) that the guys in the English Wikpedia want the article history to be there before you start translating? However, such imprts can also be done ''after'' an article has been created, so: I don't know what the problem is, but I oubt that it will go away by itself, just because of time passing. 87.123.19.142 (talk) 17:34, 28 September 2016 (UTC)
- Thank you for your answer. Tenerifeyeah (talk) 10:21, 29 September 2016 (UTC)
Issues upgrading from MW 1.25.1 to 1.27.1
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.
Hey, everyone. I tried upgrading from 1.25.1 to 1.27.1. The first version was downloaded manually from mediawiki, thus I cloned the second one through git, so I can use 'checkout' for upgrading to future versions. I used </nowiki>git clone -b REL1_27 https://gerrit.wikimedia.org/r/mediawiki/core temp</nowiki> to clone the new version into a folder called 'temp', then I installed composer using the instructions here. Then I copied the images, extensions and skins folders from the old mw folder to the new one using cp -r ../dml-wiki/(name of folder, i.e. images, extensions or skins)/* (same name of folder)/. Lastly, I copied localsettings.pnp, favico and the logos. Then I ran php update.php and got this error [6c3190bdbe6ec58d15994cb1] 2016-09-28 11:46:09: Fatal exception of type MWException. I ran the webupdater, too, just in case, but same thing. Then I remembered to set $wgShowExceptionDetails to true and I got these lines:
[8c06da68ab42fa4f454f93f8] /Special:RecentChanges MWException from line 108 of /srv/dml-wiki/includes/cache/localisation/LCStoreCDB.php: Unable to open CDB file for write "/srv/dml-wiki/cache/l10n_cache-en.cdb"
Backtrace:
- 0 /srv/dml-wiki/includes/cache/localisation/LocalisationCache.php(1014): LCStoreCDB->startWrite(string)
- 1 /srv/dml-wiki/includes/cache/localisation/LocalisationCache.php(462): LocalisationCache->recache(string)
- 2 /srv/dml-wiki/includes/cache/localisation/LocalisationCache.php(336): LocalisationCache->initLanguage(string)
- 3 /srv/dml-wiki/includes/cache/localisation/LocalisationCache.php(273): LocalisationCache->loadItem(string, string)
- 4 /srv/dml-wiki/languages/Language.php(464): LocalisationCache->getItem(string, string)
- 5 /srv/dml-wiki/includes/search/SearchEngineConfig.php(42): Language->getNamespaces()
- 6 /srv/dml-wiki/includes/user/User.php(1530): SearchEngineConfig->searchableNamespaces()
- 7 /srv/dml-wiki/includes/user/User.php(5049): User::getDefaultOptions()
- 8 /srv/dml-wiki/includes/user/User.php(528): User->loadOptions()
- 9 /srv/dml-wiki/includes/user/User.php(444): User->saveToCache()
- 10 /srv/dml-wiki/includes/user/User.php(405): User->loadFromId(integer)
- 11 /srv/dml-wiki/includes/session/UserInfo.php(88): User->load()
- 12 /srv/dml-wiki/includes/session/CookieSessionProvider.php(119): MediaWiki\Session\UserInfo::newFromId(string)
- 13 /srv/dml-wiki/includes/session/SessionManager.php(479): MediaWiki\Session\CookieSessionProvider->provideSessionInfo(WebRequest)
- 14 /srv/dml-wiki/includes/session/SessionManager.php(182): MediaWiki\Session\SessionManager->getSessionInfoForRequest(WebRequest)
- 15 /srv/dml-wiki/includes/WebRequest.php(700): MediaWiki\Session\SessionManager->getSessionForRequest(WebRequest)
- 16 /srv/dml-wiki/includes/session/SessionManager.php(121): WebRequest->getSession()
- 17 /srv/dml-wiki/includes/Setup.php(747): MediaWiki\Session\SessionManager::getGlobalSession()
- 18 /srv/dml-wiki/includes/WebStart.php(137): require_once(string)
- 19 /srv/dml-wiki/index.php(40): require(string)
- 20 {main}
I have absolutely no idea how to fix them. Please advise me as to what I should do. │Star-Warden│ 12:17, 28 September 2016 (UTC)
- This might be a permission problem. Define a cache folder in Manual:$wgCacheDirectory and make sure that the webserver user is allowed to read and write files inside the cache folder! 87.123.19.142 (talk) 17:40, 28 September 2016 (UTC)
- I will try that.
- I forgot to mention that there is a phpmyadmin folder shortcut in the old mw version. The actual folder is in /usr/share/phpmyadmin. Should I make a shortcut of it in the new version, as well or does it have nothing to do with it? │Star-Warden│ 18:11, 28 September 2016 (UTC)
- This shortcut does not come from MediaWiki. It has nothing to do with it and it is not needed.
- (And I would not even be sure, that it would be safe to have such a redirect there. I would leave it away.) 87.123.19.142 (talk) 19:18, 28 September 2016 (UTC)
- So, I used
chown -R www-data:www-datato make the entire folder writable and now the wiki loaded! But, there is a very odd issue. The wiki can be navigated as long as you're not logged in. If you're logged in or if you try to log in, you'll get this error: http://prnt.sc/cni24y. And there's no way you can log out if you were already logged in before the issue occured, thus forcing you to browse on incognito. Also, once you attempted to log in, even on incognito, you would have to restart the browser, otherwise the issue persisted. Oddly enough, when I tried to log in, it wouldn't let me, saying the password doesn't match and it would take me to a screen where I had to change my password or that I could 'skip'. I chose skip, then the issue occured. I asked another user to do the same thing, but they didn't get the 'password doesn't match screen', but, instead, the page loaded, but they were hit by the issue. I am not sure if it's because my account has bureaucrat powers and they have a regular account. Regardless of that, the wiki cannot be navigated if you're logged in or you attempt to log in and 'succeed'. Also, setting $wgShowExceptionDetails to true didn't help either (I didn't get anything displayed). I even ran update.php and rebuildFileCache.php and still no luck. │Star-Warden│ 19:48, 28 September 2016 (UTC) - You are getting a server error 500. Look into the server error log to get more information about what is going wrong! 87.123.19.142 (talk) 19:53, 28 September 2016 (UTC)
- I forgot to say that, when I ran rebuildFileCache in the shell, I got this: http://prnt.sc/cnicpx
- Not sure if it's something that helps or even matters. │Star-Warden│ 20:01, 28 September 2016 (UTC)
- All right, I have no idea if I am doing something wrong, but I accessed (downloaded) the error log from /var/log/nginx/error.log and the last logged entry was four hours ago. But I got the error two hours ago. Then I ran
tail /var/log/nginx/error.logandtail /var/log/nginx/error.log.1, thinking it would pull something more recent, and both show the same entry in the shell. Or, maybe, I am not accessing the right server log? In which case I don't know where to find it and google isn't very helpful, either. │Star-Warden│ 21:16, 28 September 2016 (UTC) - Anyone, anything? │Star-Warden│ 09:02, 30 September 2016 (UTC)
- Nice to hear that you could get this matter settled! Jörgi123 (talk) 19:31, 5 November 2016 (UTC)
Wikibase: Exception after installation
Hi there,
I just installed Wikibase in my Mediawiki and after following all the steps on the installation page (Wikibase/Installation) and adding to my LocalSettings.php those:
$wgEnableWikibaseRepo = false; $wgEnableWikibaseClient = true; require_once "$IP/extensions/Wikibase/client/WikibaseClient.php"; require_once "$IP/extensions/Wikibase/client/ExampleSettings.php";
...my Mediawiki shows an Exception on all content pages with this message:
MediaWiki internal error.
Original exception: [b70e77d988e23887200ed7f5] /wiki/Vorlage:Infobox_Software MWException from line 56 of /var/www/wiki/extensions/Wikibase/lib/includes/Store/Sql/SiteLinkTable.php: $wiki must be a string or false.
Backtrace:
#0 /var/www/wiki/extensions/Wikibase/client/includes/Store/Sql/DirectSqlStore.php(276): Wikibase\Lib\Store\SiteLinkTable->__construct(string, boolean, NULL)
#1 /var/www/wiki/extensions/Wikibase/client/includes/WikibaseClient.php(820): Wikibase\DirectSqlStore->getSiteLinkLookup()
#2 /var/www/wiki/extensions/Wikibase/client/includes/Hooks/ParserOutputUpdateHookHandlers.php(66): Wikibase\Client\WikibaseClient->getLangLinkHandler()
#3 /var/www/wiki/extensions/Wikibase/client/includes/Hooks/ParserOutputUpdateHookHandlers.php(87): Wikibase\Client\Hooks\ParserOutputUpdateHookHandlers::newFromGlobalState()
#4 /var/www/wiki/includes/Hooks.php(195): Wikibase\Client\Hooks\ParserOutputUpdateHookHandlers::onContentAlterParserOutput(WikitextContent, Title, ParserOutput)
#5 /var/www/wiki/includes/content/AbstractContent.php(501): Hooks::run(string, array)
#6 /var/www/wiki/includes/poolcounter/PoolWorkArticleView.php(139): AbstractContent->getParserOutput(Title, integer, ParserOptions)
#7 /var/www/wiki/includes/poolcounter/PoolCounterWork.php(123): PoolWorkArticleView->doWork()
#8 /var/www/wiki/includes/page/Article.php(666): PoolCounterWork->execute()
#9 /var/www/wiki/includes/actions/ViewAction.php(44): Article->view()
#10 /var/www/wiki/includes/MediaWiki.php(503): ViewAction->show()
#11 /var/www/wiki/includes/MediaWiki.php(288): MediaWiki->performAction(Article, Title)
#12 /var/www/wiki/includes/MediaWiki.php(745): MediaWiki->performRequest()
#13 /var/www/wiki/includes/MediaWiki.php(519): MediaWiki->main()
#14 /var/www/wiki/index.php(43): MediaWiki->run()
#15 {main}
145.253.79.74 (talk) 12:25, 28 September 2016 (UTC)
- Does there no one have any clue to this problem? 145.253.79.74 (talk) 07:14, 29 September 2016 (UTC)
- Which version of MediaWiki and which version of the Wikibase extension are you using?
- I have now checked the source code at https://github.com/wikimedia/mediawiki-extensions-Wikibase/blob/master/lib/includes/Store/Sql/SiteLinkTable.php#L48 (this most likely is not the version you are using, as the files, which are mentioned in your backtrace do not exist there).
- Anyway, the error happens, when $wiki is not either a string or false. In your case $wiki was NULL, which then leads to this error. 87.123.0.195 (talk) 12:01, 29 September 2016 (UTC)
- I am facing exact the same problem in my MediaWiki 1.31.0 wiki InkluPedia. Where must I set $wiki and how should it look like? I tried $wiki = "{$wgDBname}"; in LocalSettings.php but it will not help. InkluPedia (talk) 14:16, 5 August 2018 (UTC)
How to get Original user name or user id of article page??
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 show Original User name or User ID, who create the article first time.??? Jainuddin786 (talk) 12:29, 28 September 2016 (UTC)
- To view the original author of an article, simply click 'history' (on monobook) or 'view history' (vector) at the top of any article (monobook)/in the left of the search bar (vector) and you should see a sorting option 'newest/oldest'. Choose 'oldest' then scroll at the very bottom of the page. The first edit that you see is the original author of the article. If no such sorting option is available (meaning there is only one page detailing the history of edits of the page), simply scroll at the very bottom. I hope I understood your question right and what I suggested helps. │Star-Warden│ 14:01, 28 September 2016 (UTC)
- And to give you an example, I sorted by oldest the history of this article and scrolled at very bottom of it where I can see that, on the 14th of September 2011, Jack Phoenix created the article. │Star-Warden│ 14:03, 28 September 2016 (UTC)
- Thanks, 182.74.178.178 (talk) 07:13, 30 September 2016 (UTC)
I took a picture and it ended up on this site with someone else name as the photographer? How do I go about fixing this?
I took a picture and it ended up on this site with someone else name as the photographer? How do I go about fixing this? 66.255.245.106 (talk) 13:59, 28 September 2016 (UTC)
- You have not said, which image you are talking about.
- However, providing wrong author information on an image might be a copyright violation.
- Either you agree to this photo being used here and you ''only'' fix the author information by editing the image description page.
- Or you request deletion of the image and as reason for the deletion request you say hat this in fact is your work and that you have not granted anyone the right to use this image on this site. 87.123.19.142 (talk) 17:30, 28 September 2016 (UTC)
The name of my institution changed, how can I change the title of may page?
The name of my institution changed, how can I change the title of may page? Teresalanca (talk) 14:51, 28 September 2016 (UTC)
html2wiki creates empty pages
Dear everybody,<br>May I direct your attention to my question on<br>[[Extension_talk:Html2Wiki#Html2Wiki_creates_empty_pages]]?<br>My problem is, that html2wiki runs somehow, but it delivers empty pages (wikipages with empty source code).<br>By the way, no single question on [[Extension_talk:Html2Wiki]] has been answered since the very first edit one and a halve years ago.<br>Thank you in advance.<br>Yours, Ciciban (talk) 15:31, 28 September 2016 (UTC)
- And: How can I work with wiki syntax here? — ~ Ciciban (talk) 15:33, 28 September 2016 (UTC)
Upgrading from 1.16 to 1.27 - update.php does nothing
Hello,
I'm upgrading wiki from 1.16 to 1.27 following Upgrade instructions.
I've done so far:
- unpacked mediawiki-1.27.1.tar.gz to new folder
- copied images from old wiki
- copied LocalSetting.php
- copied imageplus folde to extensions
- got to maintenance and run php update.php from ssh
- got this communicate: MediaWiki 1.27.1 Updater Your composer.lock file is up to date with current dependencies! Set $wgShowExceptionDetails = true; in LocalSettings.php to show detailed debugging information.
- I've tried to set to true but got no any further logs.
What i'm doing wrong? Where can i find some logs what's going on?
Please Help :) 46.170.162.201 (talk) 18:00, 28 September 2016 (UTC)
pdf creation always fails
Hello,
Attempting to create PDF of the Data Structures WIKI book, but the process always fails. It's been doing it for days so I'm guessing it's not setting off any alarms.
Can anyone fix that process?
Thanks!!
Clif 2601:646:C300:2D9F:6DFF:4D46:68C3:BAD2 (talk) 22:23, 28 September 2016 (UTC)
kowikinews
In kowikinews, there are 2,854↑ pages. But in content pages, there are only 113 pages, because of wikinews:ko:special:deadendPages. How can we solve this problem? — 밝은소년 12:12, 29 September 2016 (UTC)
favicon
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.
Is favicon feature supported in 1.23.5 version of media wiki? Ashni rai (talk) 12:20, 29 September 2016 (UTC)
- Yes, by setting $wgFavicon to the relative path or absolute URL of your favicon. See Manual:$wgFavicon for more information! 87.123.0.195 (talk) 13:11, 29 September 2016 (UTC)
- And - unrelated to your question - please note that MediaWiki 1.23.5 is an old and insecure version. You should not use it! Instead, do an upgrade to a supported version.
- The current version from the 1.23 branch is MediaWiki 1.23.15! 87.123.0.195 (talk) 13:13, 29 September 2016 (UTC)
- introduced version of favicon is 1.6.0..But we are using 1.23.5 Ashni rai (talk) 13:29, 29 September 2016 (UTC)
- That means it's working!
- In fact, you should upgrade to version 1.23.15! 87.123.0.195 (talk) 14:13, 29 September 2016 (UTC)
- It is working fine in chrome but not in ie.How to make it work in ie? Ashni rai (talk) 09:27, 4 October 2016 (UTC)
- i got this code from some forum
- <link rel="shortcut icon" href="favicon.ico" type="image/x-icon"/>
- But not sure where to add it to make it work in ie? Ashni rai (talk) 10:10, 4 October 2016 (UTC)
- Some versions of IE require favicons of certain sizes to be displayed, like 16x16 & 32x32. If your icon is not that size, it may not work. Also, it should be a real ICO file and not a PNG or BMP renamed to .ico Ciencia Al Poder (talk) 10:01, 5 October 2016 (UTC)
- The image is 16*16 and it is a ico file..but still not displaying Ashni rai (talk) 11:40, 5 October 2016 (UTC)
- Possibly the browser cached an old version of the file (or no file at all). Try with Internet Explorer, but from a different computer, to see, what you get! 87.123.5.1 (talk) 13:13, 5 October 2016 (UTC)
- I tried.but no luck.. Ashni rai (talk) 08:42, 6 October 2016 (UTC)
- Is your wiki public? That would help us help you. ☠MarkAHershberger☢(talk)☣ 14:51, 6 October 2016 (UTC)
- Yes it is public to only people in our organization.we have authorization for it. Ashni rai (talk) 06:45, 7 October 2016 (UTC)
- Did you set variable as mentioned on begining of this topic or only added the code? wargo (talk) 08:39, 7 October 2016 (UTC)
- i have set the variable Ashni rai (talk) 10:58, 11 October 2016 (UTC)
- Use view source feature in your browser and find all "favicon" phrases. wargo (talk) 11:13, 11 October 2016 (UTC)
- thanks..issue is resolved Ashni rai (talk) 06:30, 17 October 2016 (UTC)
WYSIWYG
we have wysiwyg as a default editor .How to make wiki editor as default as we have both the editors. Ashni rai (talk) 12:47, 29 September 2016 (UTC)
- Shouldn't this practically work for your purposes: Extension:WYSIWYG#Disable for some namespaces AhmadF.Cheema (talk) 07:15, 30 September 2016 (UTC)
- We have 2 editors(wysiwyg and rich text editor).when i click on edit button i get wysiwyg editor by default for every page i want to edit.However i want to disable wysiwyg editor by default and make wiki editor enable by default at page level.On click of rich text editor wysiwyg should be editable.(Basically i want wiki editor to load first). Ashni rai (talk) 09:43, 30 September 2016 (UTC)
- Sorry, I misunderstood.
- Regarding "wiki editor" by any chance do you mean Extension:WikiEditor? In which case, "WikiEditor" can possibly be made default by Configuration. See if this works. AhmadF.Cheema (talk) 17:39, 30 September 2016 (UTC)
unc links
how to enable unc links in media wiki 1.23.5.After enabling how to verify whether it is working fine? Ashni rai (talk) 12:50, 29 September 2016 (UTC)
- There is a manual on UNC links at UNC links! 87.123.0.195 (talk) 13:10, 29 September 2016 (UTC)
- does unc links work in 1.23.5 Ashni rai (talk) 13:43, 29 September 2016 (UTC)
- It should. 87.123.0.195 (talk) 14:14, 29 September 2016 (UTC)
- Can you please send an example script for adding unc link?A Ashni rai (talk) 06:21, 4 October 2016 (UTC)
- It is not onl adding a script. There are a number of steps, which you have to do. They are all listed here:
- UNC links#How to link 87.123.18.64 (talk) 07:36, 4 October 2016 (UTC)
- i have done the above.but how to verify if it is working fine? Ashni rai (talk) 09:25, 4 October 2016 (UTC)
- Add an UNC link to any page and see if it works... Ciencia Al Poder (talk) 09:46, 7 October 2016 (UTC)
- unc with file extension is working fine in chrome by adding extension local links..but ie is not supporting file extension..can u please help me with this.. Ashni rai (talk) 11:53, 10 October 2016 (UTC)
- This is a specific problem with Internet Explorer. You may have better assistance asking on a Microsoft products forum or stackoverflow, or just search for it! Ciencia Al Poder (talk) 19:13, 10 October 2016 (UTC)
mediawiki and StatCounter
MW:1.23.5 PHP 5.5.37 DB 10-0-20 MAriaDB URL:alevel-computing.x10.mx/mw
I would like to install the StatCounter extension but I have read the installation instructions and I don't understand what to do when it says
"Fill in [[MediaWiki:Statcounter-project-id]] and [[MediaWiki:Statcounter-security]] with the values of the JavaScript variables sc_project and sc_security, respectively, as provided to you by StatCounter.com"
Suppose my statcounter project id (sc-project) was 123456 - what do I type and where? HappyLarry (talk) 16:04, 29 September 2016 (UTC)
- The value from sc_project, in your case 123456, belongs into the wiki page MediaWiki:Statcounter-project-id in your wiki and the value of sc_security (whatever that is) belongs into the page MediaWiki:Statcounter-security. 87.123.0.195 (talk) 16:55, 29 September 2016 (UTC)
- Thanks for replying so soon.
- I don't have a page Mediawiki:Statcounter-project-id. Is this created automatically when the extension is installed or do I need to create it?
- When you say 'belongs to' does that mean I just write the number on the page or is it part of some mediawiki instruction - it says it is a javascript variable. HappyLarry (talk) 09:06, 30 September 2016 (UTC)
- I tried installing the Statcounter extension anyway on Mediawiki 1.23.5 but it didn't install.The instructions given result in the error
- "Warning: require_once(extensions/StatCounter/StatCounter.php): failed to open stream:"
- I checked and there is no StatCounter.php file in the folder. According to the instructions it should work with 1.23.5 however. HappyLarry (talk) 09:17, 30 September 2016 (UTC)
- It should work, but only if you download the extension for MediaWiki 1.23 and not the latest one. And yes, you should create/edit those pages adding those values Ciencia Al Poder (talk) 09:41, 30 September 2016 (UTC)
- Thanks
- When you click on the download link on the StatCounter extension page, there are options to download the extension for 1.27 and 1.26 but not for 1.23. It also says that if you have an earlier version that 1.26 then you should download the latest version and it will work. [5]
- So on the page (if I can get the extension installed) I would just write a single number - 123456 - (it's not embedded in a line of code?) HappyLarry (talk) 12:03, 30 September 2016 (UTC)
- 1. Ok, then use the version for MediaWiki 1.26. The error "failed to open stream" can be avoided, if you use this line:
require_once "$IP/extensions/StatCounter/StatCounter.php";- 2. The page should only contain the value of the JavaScript variable, that is: The number, that is all. 87.123.57.115 (talk) 13:28, 30 September 2016 (UTC)
- StatCounter does not support 1.23, you'll have to update MW. 121.220.43.201 (talk) 05:29, 1 October 2016 (UTC)
- The extension does not have this file. Instead, it only has an extension.json file. This will only work with MediaWiki 1.25 or newer. In so far my advice to require the extension ith that line of code in my last post is wrong. Sorry for that!
- So if you want to use the extension, you have to upgrade MediaWiki first - preferably to MW 1.27! The extension page says, the extension would only be compatible with that version and not with older ones. 87.123.11.131 (talk) 08:22, 1 October 2016 (UTC)
- Thanks to all for this information.
- Summary: The StatCounter extension only works on Mediawiki 1.25 or later.
- NB: The StatCounter page should make this clear - at present it indicates it can work for earlier versions. HappyLarry (talk) 09:22, 1 October 2016 (UTC)
- That is not correct:
- The extension registration mechanism, which this extension is using, only works with MW 1.25 and newer. The extension itself however only is compatible with MW 1.27. This also is what the extension page says:
MediaWiki 1.27+87.123.11.131 (talk) 10:59, 1 October 2016 (UTC)
Update error
I run this:
/usr/local/php/p56/bin/php composer.phar update
Loading composer repositories with package information
Updating dependencies (including require-dev)
- Removing composer/semver (1.4.2)
- Removing wikimedia/composer-merge-plugin (v1.3.1)
- Removing param-processor/param-processor (1.3.1)
- Installing symfony/polyfill-mbstring (v1.2.0)
Downloading: 100%
- Installing symfony/console (v2.8.11)
Downloading: 100%
- Installing symfony/yaml (v3.1.4)
Downloading: 100%
- Installing sebastian/version (2.0.0)
Downloading: 100%
- Installing sebastian/resource-operations (1.0.0)
Downloading: 100%
- Installing sebastian/recursion-context (1.0.2)
Downloading: 100%
- Installing sebastian/object-enumerator (1.0.0)
Downloading: 100%
- Installing sebastian/global-state (1.1.1)
Downloading: 100%
- Installing sebastian/exporter (1.2.2)
Downloading: 100%
- Installing sebastian/environment (1.3.8)
Downloading: 100%
- Installing sebastian/diff (1.4.1)
Downloading: 100%
- Installing sebastian/comparator (1.2.0)
Downloading: 100%
- Installing doctrine/instantiator (1.0.5)
Downloading: 100%
- Installing phpunit/php-text-template (1.2.1)
Loading from cache
- Installing phpunit/phpunit-mock-objects (3.2.7)
Downloading: 100%
- Installing phpunit/php-timer (1.0.8)
Loading from cache
- Installing phpunit/php-file-iterator (1.4.1)
Loading from cache
- Installing sebastian/code-unit-reverse-lookup (1.0.0)
Downloading: 100%
- Installing phpunit/php-token-stream (1.4.8)
Downloading: 100%
- Installing phpunit/php-code-coverage (4.0.1)
Downloading: 100%
- Installing webmozart/assert (1.1.0)
Downloading: 100%
- Installing phpdocumentor/reflection-common (1.0)
Downloading: 100%
- Installing phpdocumentor/type-resolver (0.2)
Downloading: 100%
- Installing phpdocumentor/reflection-docblock (3.1.0)
Downloading: 100%
- Installing phpspec/prophecy (v1.6.1)
Downloading: 100%
- Installing myclabs/deep-copy (1.5.4)
Downloading: 100%
- Installing phpunit/phpunit (5.5.5)
Downloading: 100%
- Installing ockcyp/covers-validator (v0.4.0)
Downloading: 100%
- Installing squizlabs/php_codesniffer (2.7.0)
Downloading: 100%
- Installing symfony/filesystem (v3.1.4)
Downloading: 100%
- Installing symfony/dependency-injection (v3.1.4)
Downloading: 100%
- Installing symfony/config (v3.1.4)
Downloading: 100%
- Installing pdepend/pdepend (2.2.4)
Downloading: 100%
- Installing phpmd/phpmd (2.4.3)
Downloading: 100%
symfony/console suggests installing symfony/event-dispatcher ()
symfony/console suggests installing symfony/process ()
symfony/console suggests installing psr/log (For using the console logger)
sebastian/global-state suggests installing ext-uopz (*)
phpunit/php-code-coverage suggests installing ext-xdebug (>=2.4.0)
phpunit/phpunit suggests installing phpunit/php-invoker (~1.1)
phpunit/phpunit suggests installing ext-xdebug (*)
symfony/dependency-injection suggests installing symfony/expression-language (For using expressions in service container configuration)
symfony/dependency-injection suggests installing symfony/proxy-manager-bridge (Generate service proxies to lazy load them)
Writing lock file
Generating autoload files
But now I get some error:
[budrysl2@s53:: ~/domains/westeros.com.pl/public_html/maintenance ]:$ php update.php
MediaWiki 1.26.3 Updater
symfony/finder: 3.1.1 installed, ^3.1 required.
param-processor/param-processor: not installed, ~1.0 required.
Error: your composer.lock file is not up to date, run "composer update" to install newer dependencies TraaBBIT (talk) 16:05, 29 September 2016 (UTC)
- Now I get this on my page:
- Fatal error: Interface 'Psr\Log\LoggerAwareInterface' not found in /home/budrysl2/domains/westeros.com.pl/public_html/includes/libs/objectcache/BagOStuff.php on line 45 TraaBBIT (talk) 16:12, 29 September 2016 (UTC)
Categories are not created.
Category are not created when added to a page, rows are not added to the category database.
I've set $wgJobRunRate = 1;
$wgRunJobsAsync = false;
But still the same thing.
I am unable to generate categories on my wiki ... 46.165.101.153 (talk) 19:12, 29 September 2016 (UTC)
- See Manual:$wgRunJobsAsync!
- It is recommended to set $wgJobRunRate to something higher than 1 - and depending on how your wiki is used, it may still take some time until all jobs got done, especially if you don't use the runJobs.php script. 87.123.0.195 (talk) 21:02, 29 September 2016 (UTC)
- Yeah but i said i 've already put that to false but still nothing goes into category. And i cannot launch maintenance script :( 46.165.101.153 (talk) 21:19, 29 September 2016 (UTC)
- Set
$wgJobRunRate = 2;87.123.0.195 (talk) 21:44, 29 September 2016 (UTC)- I finally tried a rebuildAll.php and got that :
- Refreshing links tables.
- Starting from page_id 1 of 606.
- Une erreur de requête de base de données s’est produite.
- Requête : INSERT INTO `wiki_job` (job_cmd,job_namespace,job_title,job_params,job_id,job_timestamp,job_sha1,job_random) VALUES ('refreshLinks','6','Affiche-film-avengers-ere-ultron.jpg','a:6:{s:5:\"table\";s:10:\"imagelinks\";s:9:\"recursive\";b:1;s:13:\"rootJobIsSelf\";b:1;s:16:\"rootJobSignature\";s:40:\"4a22e2e8e64e9fee8cd62ff97bee0a4403f6f140\";s:16:\"rootJobTimestamp\";s:14:\"20160930113140\";s:9:\"requestId\";s:24:\"a2875439b3b26dc757610d12\";}',NULL,'20160930113140','s1xl8sj4m8jipt34u190snclc3dvzcm','2051415256')
- Fonction : JobQueueDB::doBatchPush
- Erreur : 1048 Column 'job_id' cannot be null (10.0.*.*) 46.165.101.153 (talk) 11:32, 30 September 2016 (UTC)
- Oki so if i put 'job_id' as not null in MySQL i have an exception when editing the page but the category is created. Someone has a idea ? 46.165.101.153 (talk) 12:04, 30 September 2016 (UTC)
- Please make sure that your database columns have the correct format!
- E.g. for the column job_id of the job table, this is
- 87.123.57.115 (talk) 13:46, 30 September 2016 (UTC)
+---------------------+------------------+------+-----+---------+----------------+ | Field | Type | Null | Key | Default | Extra | +---------------------+------------------+------+-----+---------+----------------+ | job_id | int(10) unsigned | NO | PRI | NULL | auto_increment |
- My database was different i have made the changes not it is working !
- I am gonna quote V for Vendetta as a thanks ! You have saved my projeft !!!
- "I don't know who you are. Or whether you're a man or a woman. I may never see you or cry with you or get drunk with you. But I love you. I hope that you escape this place. I hope that the world turns and that things get better, and that one day people have roses again. I wish I could kiss you." 46.165.101.153 (talk) 15:05, 30 September 2016 (UTC)
Navigational templates
Need “navigational templates” installed, such as Navbox or InfoBox?
To display top toolbar & left navigation path.How to implement this? Ashni rai (talk) 04:34, 30 September 2016 (UTC)
- See: Manual:Importing Wikipedia infoboxes tutorial AhmadF.Cheema (talk) 07:10, 30 September 2016 (UTC)
- how to automatically import infoboxes in media wiki and implement tool bar? Ashni rai (talk) 10:14, 30 September 2016 (UTC)
- The steps in the manual, I believe, is as "automatic" as is possible right now. Are their any particular steps you are having a problem with? AhmadF.Cheema (talk) 17:41, 30 September 2016 (UTC)
How to use Hook (UserCreateForm), $wgHooks['UserCreateForm'][] = 'customUserCreateForm';
I want to Add Date of Birth field on user signup form, how can i add by hooks $wgHooks['UserCreateForm'][] = 'customUserCreateForm';
Please somebody explain me.
Thanks
Zain 182.74.178.178 (talk) 10:11, 30 September 2016 (UTC)
CSS/JS Not updating for 1-3 days.
Hi, I'm having an issue were any css or js put into Common.js/css is not showing for 1-3 for any user. I've done a Hard Reset even used a live cd of linux so there is defiantly nothing cached and when I goto load.php?debug=false&lang=en&modules=site&only=styles&skin=vector&* it is showing the old code if I change the url by adding anything to the end example: load.php?debug=false&lang=en&modules=site&only=styles&skin=vector&version=(random#here) it will show my latest changes but that doesn't help me.
Using MW: 1.24.1 & PHP: 5.6.2 2601:6C4:C100:53D0:A871:8FA4:30A5:4E9B (talk) 10:15, 30 September 2016 (UTC)
"Internal error"?
Why am I getting the following message? How can I fix it? I just installed MediaWiki again after some time, this has never happened to me before.
Warning: rename(/tmp/l10n_cache-en.cdb.tmp.1541950862,/tmp/l10n_cache-en.cdb): Operation not permitted in /home/u849803034/public_html/vendor/wikimedia/cdb/src/Writer/DBA.php on line 59
[V@7fWB@qpBAAAE@ii8sAAADH] 2016-09-30 21:55:37: Fatal exception of type MWException
Warning: dba_close(): 167 is not a valid DBA identifier resource in /home/u849803034/public_html/vendor/wikimedia/cdb/src/Writer/DBA.php on line 54
Warning: rename(/tmp/l10n_cache-en.cdb.tmp.1541950862,/tmp/l10n_cache-en.cdb): Operation not permitted in /home/u849803034/public_html/vendor/wikimedia/cdb/src/Writer/DBA.php on line 59
Fatal error: Uncaught exception 'Cdb\Exception' with message 'Unable to move the new CDB file into place.' in /home/u849803034/public_html/vendor/wikimedia/cdb/src/Writer/DBA.php:60 Stack trace: #0 /home/u849803034/public_html/vendor/wikimedia/cdb/src/Writer.php(88): Cdb\Writer\DBA->close() #1 [internal function]: Cdb\Writer->__destruct() #2 {main} thrown in /home/u849803034/public_html/vendor/wikimedia/cdb/src/Writer/DBA.php on line 60 --Joona ● Talk ● Contribs 22:00, 30 September 2016 (UTC)
- The error
rename(/tmp/l10n_cache-en.cdb.tmp.1541950862,/tmp/l10n_cache-en.cdb): Operation not permitted- most likely points to wrong permissions. Make sure that permissions on your cache folder allow to read from and to write to it. If you cannot change permissions of folder /tmp/, then set $wgCacheDirectory to a folder, which fits your needs and set the correct permissions for that folder. 87.123.11.131 (talk) 08:25, 1 October 2016 (UTC)
- /tmp/ doesn't exist..? --Joona ● Talk ● Contribs 19:08, 1 October 2016 (UTC)
- Then create it! 87.123.11.131 (talk) 19:31, 1 October 2016 (UTC)
- Warning: failed to mkdir "http://(my address, which I do not want to show here)/cache" mode 0777 [Called from wfMkdirParents in /home/u849803034/public_html/includes/GlobalFunctions.php at line 2200] in /home/u849803034/public_html/includes/debug/MWDebug.php on line 300
[V-AUtB@qpBAAAAfegSUAAADN] 2016-10-01 19:55:33: Fatal exception of type MWException
Now I keep getting that message. --Joona ● Talk ● Contribs 20:02, 1 October 2016 (UTC)- Does the error message really contain a URL, starting with http://? Or does it contain a local folder path? It should be a folder path! 87.123.11.131 (talk) 21:17, 1 October 2016 (UTC)
- It contains the URL starting with http://. --Joona ● Talk ● Contribs 11:27, 2 October 2016 (UTC)
- That should not be. Please provide a stack trace, so that we can see, why there is the URL in there! 87.123.54.185 (talk) 01:58, 3 October 2016 (UTC)
- That's most likely Pjoona11 putting an URL for $wgTmpDirectory instead of using a local path Ciencia Al Poder (talk) 09:53, 3 October 2016 (UTC)