Project:Support desk/Flow/2018/07
| 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. |
1.31 API Not Returning Data to Template
This code returns correct value in MW 1.30
{{#get_web_data:
url=https://gunretort.xyz/api.php?format=json&action=parse&page=Portal:TagDescriptions&prop=sections
|format=JSON
|data=SecID=index
|filters=line=CivilRights
}}
{{#external_value:SecID}}
Now (on MW 1.31) returning: Error: no local variable "SecID" was set.
But exact same query works with a static json file containing same json as returned by API:
{{#get_web_data:
url=https://gunretort.xyz/sections.json
|format=JSON
|data=SecID=index
|filters=line=CivilRights
}}
{{#external_value:SecID}}
The url alone returns correct json: https://gunretort.xyz/api.php?format=json&action=parse&page=Portal:TagDescriptions&prop=sections returns
{"parse":{"title":"Portal:TagDescriptions","pageid":433,"sections":[{"toclevel":1,"level":"2","line":"Terrorism","number":"1","index":"1","fromtitle":"Portal:TagDescriptions","byteoffset":0,"anchor":"Terrorism"},{"toclevel":1,"level":"2","line":"SecondAmendment","number":"2","index":"2","fromtitle":"Portal:TagDescriptions","byteoffset":747,"anchor":"SecondAmendment"},{"toclevel":1,"level":"2","line":"Timeliness","number":"3","index":"3","fromtitle":"Portal:TagDescriptions","byteoffset":1275,"anchor":"Timeliness"},{"toclevel":1,"level":"2","line":"Money","number":"4","index":"4","fromtitle":"Portal:TagDescriptions","byteoffset":2317,"anchor":"Money"},{"toclevel":1,"level":"2","line":"CivilRights","number":"5","index":"5","fromtitle":"Portal:TagDescriptions","byteoffset":3038,"anchor":"CivilRights"},{"toclevel":1,"level":"2","line":"CommonGround","number":"6","index":"6","fromtitle":"Portal:TagDescriptions","byteoffset":3800,"anchor":"CommonGround"}]}}
Something about the way the API returns data has changed. Johnywhy (talk) 15:20, 1 July 2018 (UTC)
- Accessing that URL I get
{ "error": { "code": "readapidenied", "info": "You need read permission to use this module." } }- I doubt #get_web_data would log-in to the page. That's the content it probably gets, and the error is correct. Ciencia Al Poder (talk) 08:40, 2 July 2018 (UTC)
- Further testing suggests the issue is related to
$wgGroupPermissions['*']['read'] = false;
- and may be due to a new behavior of the API, which, according to Yaron Koren, is to require user to be logged-in for read-queries. This is happening for me when logged in as admin, so the API might be failing.
- https://phabricator.wikimedia.org/T198577#4391293
- However, I get json data from this API, in a browser, even if i'm not logged in:
- https://gunretort.xyz/api.php?format=json&action=parse&page=Portal:TagDescriptions&prop=sections
- Can you share the url that gave you that error?
- After browser refresh, I get json data from both these urls, even if i'm not logged into the wiki:
- https://gunretort.xyz/api.php?format=json&action=parse&page=Portal:TagDescriptions&prop=sections
- https://gunretort.xyz/sections.json Johnywhy (talk) 16:21, 2 July 2018 (UTC)
- You are logged in on the wiki, but the wiki is doing a HTTP request to the api without passing *your* cookies, so the request to the api is not with your user. If anonymous can't read the api, the wiki itself can't neither through this method. Ciencia Al Poder (talk) 18:44, 2 July 2018 (UTC)
- ok, so i think my code needs to 'login' first, according to these steps, correct?
- https://www.mediawiki.org/wiki/API:Login Johnywhy (talk) 19:12, 2 July 2018 (UTC)
- Yes, although I doubt get_web_data provide such functionality. Ciencia Al Poder (talk) 09:37, 3 July 2018 (UTC)
- get_web_data doesn't provide any login functionality. I expect to do it in javascript. Johnywhy (talk) 17:22, 3 July 2018 (UTC)
- unclear. You wrote 'api access should be anonymous', but you noted that i need to login. Confused-- if i need to login, then it's not anonymous. Johnywhy (talk) 18:56, 4 July 2018 (UTC)
- Your api need to be publicly accessible without requiring login (which means anonymous access should work just fine) Ciencia Al Poder (talk) 08:57, 5 July 2018 (UTC)
- but we need to block anonymous edits on our wiki.
- And doc says bots must use authentication on wiki's which disable anonymous edits.
"On private wikis, logging in is required to use any API functionality."API:Login#Whether to log inJohnywhy (talk) 10:23, 5 July 2018 (UTC)- you need to restrict the "edit" right to users not logged-in. But apparently you're also restricting the read right, which is what the get_web_data needs to read while not logged-in Ciencia Al Poder (talk) 10:45, 5 July 2018 (UTC)
- Since MW doesn't have native ability to restrict groups to namespaces, my only option is to apply a global read-restriction.
- Then, i create exceptions to that restriction with $wgWhitelistReadRegexp
- Since the API falls into the restricted space, my bot will have to login to use the API.
- Correct? Any reason the bot can't or shouldn't login? Any reason logging-in will fail for the bot? Johnywhy (talk) 18:44, 5 July 2018 (UTC)
Color of the sorting arrows in a sortable wikitable
When I create a table by using the class "wikitable sortable" and I change the font and background color of the headings with a style command, the sorting arrows are displayed black regardless of the color set by the style command. Is there a way to change the color of the sorting arrows, too? Many thanks for an answer in advance! --Wgkderdicke (talk) 17:07, 1 July 2018 (UTC)
- Apparently, the sorting arrows is actually a .PNG image (.../resources/src/jquery/images/sort_both.png). Probably new image files will be needed to change their colour. AhmadF.Cheema (talk) 07:09, 2 July 2018 (UTC)
API: user editcount
Hi! I need the editcount of users at a particular point in time? Does anybody know if that's possible?
/w/api.php?action=query&format=xml&list=users&usprop=editcount
I hope this is an appropriate place to ask such questions! Cscurtu (talk) 19:04, 1 July 2018 (UTC)
- There's no api for contributions in a particular point in time. That count could be expensive to have. Current count comes directly from the user_editcount field. A point-in-time editcount would require traversing all contributions until a particular time. Ciencia Al Poder (talk) 08:37, 2 July 2018 (UTC)
- Could anybody explain what is the difference between 'Live Edits' and 'Global Edit Counts', in the link below?
- https://xtools.wmflabs.org/ec/en.wikipedia.org/AleUst
- Thank you in advance! Cscurtu (talk) 09:19, 3 July 2018 (UTC)
- Since there are "Live Edits" and "Deleted Edits", I assume Live Edits are the count of edits in Special:Contributions. If an edit was done on a deleted page, it won't be counted there.
- Global Edit Counts seems to be the count on each wiki, but I'm not sure if the counts are for live edits or total edits (including deleted edits) Ciencia Al Poder (talk) 09:40, 3 July 2018 (UTC)
Two table side by side
Hello MediaWiki Team :)
I would like to create side by side table on my home page like www.mediawiki.org home page
How do I get these two tables to sit side-by-side?
Exemple of table:
{| class="wikitable"
!colspan="6"|Liste des courses
|-
|rowspan="2"|Pain et beurre
|Tarte
|brioches
|Danois
|colspan="2"|Croissant
|-
|Fromage
|colspan="2"|Crème glacée
|Beurre
|Yaourt
|} 198.184.231.254 (talk) 16:54, 2 July 2018 (UTC)
- Create a table with 2 cells, on each cell put one of those 2 tables. Ciencia Al Poder (talk) 12:34, 4 July 2018 (UTC)
wiki family, interwiki language
Dear Ciencia Al Poder,
I need a little help for implementing the "other language"-link at the side bar.
MediaWiki 1.31.0
PHP 7.0
MySQL 5.5.60
I can give you the URL by email, if requested (please email to holgerd[at]tops.net). When I post it here, everyone can register and change the content at this wiki. Although it is a dev server, this is not intended.
The code [[en:special-page]] does not work, whereas the code [[:en:special-page]] works to insert a link within the article.
I've got a wiki family based on different directories. At htdocs/en the englisch wiki is located, at htdocs/de the german wiki is located, the shared wiki with extension, images etc. is located at the document root as well as the central LocalSettings.php. The shared directories beyond the en- or de-directory has been symlinked one level up. For each wiki a corresponding database has been created: database_en, database_de and database.
In my LocalSettings I used the language selection by $wikiId:
## BEGIN MULTIPLE WIKI, WIKIFARM ##
if ( defined( 'MW_DB' ) ) {
$wikiId = MW_DB;
} elseif (isset($_SERVER['SERVER_NAME']) && $_SERVER['SERVER_NAME'] == 'mediawiki-wichmann.topskunden.de' && substr($_SERVER['REQUEST_URI'], 0, 3) == '/en') {
$wikiId = 'en';
} elseif (isset($_SERVER['SERVER_NAME']) && $_SERVER['SERVER_NAME'] == 'mediawiki-wichmann.topskunden.de' && substr($_SERVER['REQUEST_URI'], 0, 3) == '/de') {
$wikiId = 'de';
} elseif (isset($_SERVER['SERVER_NAME']) && $_SERVER['SERVER_NAME'] == 'mediawiki-wichmann.topskunden.de') {
$wikiId = '';
} else {
die( 'It was not possible to determine the wiki ID.' );
}
$wgServer = "http://www.domain.tld";
$wgScriptPath = "/".$wikiId;
$wgLanguageCode = $wikiId;
if ($wikiId == ''){
$wgDBname = 'database';
$wgCacheDirectory = "/tmp/mediawiki_cache";
$wgLanguageCode = "de";
$wgScriptPath = "";
} else {
$wgDBname = 'database_'.$wikiId;
$wgCacheDirectory = "/tmp/mediawiki_".$wikiId."_cache";
}
## END MULTIPLE WIKI, WIKIFARM ##
$wgEnableUploads = true;
$wgUploadNavigationUrl = "../index.php/Special:Upload";
$wgUseSharedUploads = true;
$wgSharedUploadPath = '../images';
$wgSharedUploadDirectory = '../images/';
$wgHashedSharedUploadDirectory = true;
$wgFetchCommonsDescriptions = true;
$wgSharedUploadDBname = 'database'; # DB-Name of PoolWiki
$wgSharedUploadDBprefix = ''; # Table name prefix for PoolWiki
$wgRepositoryBaseUrl = "http://www.domain.tld/index.php/Image:";
[...]
$wgSharedDB = 'database';
$wgSharedTables = array();
$wgSharedTables[] = 'extensions';
$wgSharedTables[] = 'images';
$wgSharedTables[] = 'interwiki';
$wgSharedTables[] = 'ipblocks';
$wgSharedTables[] = 'site_stats';
In the interwiki table I inserted
Interlanguage prefixes
These prefixes match defined language codes, and will be used to create the "In other languages" listing when added to a page.
| Prefix | URL | Forward | Transclude |
|---|---|---|---|
| de | http://domain.tld/de/index.php?title=$1 | no | no |
| en | http://domain.tld/en/index.php?title=$1 | no | no |
Topsnet-holgerd (talk) 11:32, 3 July 2018 (UTC)
Lua error 24 on some infoboxes
In my mediawiki, latest version running in Ubuntu 16.04, I currently get a Lua Error with the following:
Lua error: Internal error: The interpreter has terminated with signal "24".
This currently occurs on Template:Infobox and Template:Infobox officerholder
Any suggestions?
MediaWiki: 1.31.0
PHP: 7.0.30-0ubuntu0.16.04.1
MySQL: 5.7.22-0ubuntu0.16.04.1
ICU: 55.1
Lua: 5.1.5 Balag12 (talk) 14:05, 3 July 2018 (UTC)
- See Extension talk:Scribunto/2015#c-Collabcollex-2015-01-15T19:16:00.000Z-Lua_error:_Internal_error:_The_interpreter_has_terminated_with_signal_"24". AhmadF.Cheema (talk) 15:21, 3 July 2018 (UTC)
- I have attempted that, but it does not fix the issue - how high should the value be set? Balag12 (talk) 15:43, 3 July 2018 (UTC)
- Could someone answer my question? Balag12 (talk) 18:55, 6 August 2018 (UTC)
- I'm getting same problem on Infobox, seems to be a problem with the call to the documentation template. I commented it out.
- /doc templates don't seem to be working for me either. 76.168.183.10 (talk) 02:38, 20 December 2019 (UTC)
Media Viewer not working on one page...
On my page (https://americanarmigers.us/registry/Kasparek,_Rick_Edward) you can click on the images and none of them work in media viewer except the last one. Toward the bottom of the page, you can "scroll" to the next page, and all of those seem to work. How can I fix this??
Thanks in advance! Rkasparek (talk) 16:21, 3 July 2018 (UTC)
- All seem to be working on my end. AhmadF.Cheema (talk) 17:31, 3 July 2018 (UTC)
Bug? Wikieditor Fails To Include Leading Colon For Category-links
A page source contains:
can be found [[Category:Rebuttal Deep-Dives|here]].
it previews as:
can be found .
after submitting the edit, the link is lost, and the wikitext source looks like:
can be found .
I disabled common.js with the following, but that didn't fix it:
$wgUseSiteJs = false;
I ran with verbose error-reporting with the following, and did not get any errors:
error_reporting( E_ALL ); ini_set( 'display_errors', 1 ); $wgShowExceptionDetails = true; $wgShowDBErrorBacktrace = true; $wgShowSQLErrors = true;
Johnywhy (talk) 18:24, 3 July 2018 (UTC)
- PEBCAK, see syntax for categories Wikitext. 197.218.88.186 (talk) 18:44, 3 July 2018 (UTC)
- The page you linked does not mention syntax for categories, mr pebcak.
- However, this other page (which would have been better for you to link to) shows the need for a leading colon:i'm creating the link using the WikiEditor toolbar-- the syntax should be correct, but it's not. Therefor, this appears to be a bug with the WikiEditor toolbar. It fails to include the leading colon when linking to a category. It should.
[[:Category:Rebuttal Deep-Dives|here]]
- Reported https://phabricator.wikimedia.org/T198746
- Whether it makes sense for MW to ERASE bad-links, instead of just leaving them alone, is a separate question. I think MW should just leave them alone, not erase them as it currently does. Johnywhy (talk) 18:55, 3 July 2018 (UTC)
- Given how long it has behaved like that it might as well be a feature.
- Anyway, it has been reported before (https://phabricator.wikimedia.org/T38227). 197.218.88.186 (talk) 19:09, 3 July 2018 (UTC)
> Whether it makes sense for MW to ERASE bad-links, instead of just leaving them alone, is a separate question. I think MW should just leave them alone, not erase them as it currently does.
- It is not a bad link, anymore than typing or doing the same with
[[en:boo]]. 197.218.88.186 (talk) 19:17, 3 July 2018 (UTC) - > not a bad link
- What i'm seeing is: MW erases the brackets and everything between them, when leading colon is missing on a Category link.
- Are you seeing something different?
- > might as well be a feature
- A bug is a bug, even if 197.218.88.186 is used to it. Johnywhy (talk) 19:25, 3 July 2018 (UTC)
- Yes, because that's also the syntax for categorizing a page. Strictly speaking it DOES create a link. It just doesn't appear where you expect it to be (see bottom of the page). The markup in my previous post does a similar thing. You can also do something similar with :
[[fooo|<span style="display:none"]]
- Even that can be done with the wikieditor. 197.218.88.186 (talk) 19:42, 3 July 2018 (UTC)
- no closing angle-bracket needed for the span?Johnywhy (talk) 00:48, 4 July 2018 (UTC)
[[fooo|<span style="display:none"]]
- You were correct: originally, i misunderstood the bug due to a bit of pebcak :D Johnywhy (talk) 05:13, 5 July 2018 (UTC)
- no closing angle-bracket needed for the span?
- Yep, you're right. My intended link-text parameter is treated as a sort-key by MW."here" puts the page under "H" in the category page-list.
[[Category:Rebuttal Deep-Dives|here]]
- Help:Categories#Sort key Johnywhy (talk) 21:27, 3 July 2018 (UTC)
Move to New Server
I am trying to move to a new server 2016 box with MySQL 8 and I am getting the following error.
DB connection error: The server requested authentication method unknown to the client (localhost) 206.74.172.172 (talk) 18:37, 3 July 2018 (UTC)
- add default authentication plugin to laradock/mysql/my.cnf
[mysqld]default_authentication_plugin= mysql_native_password- update content file mysql/docker-entrypoint-initdb.d/createdb.sql like:
CREATE USER 'admin'@'localhost' IDENTIFIED WITH mysql_native_password BY 'yourpass';GRANT ALL PRIVILEGES ON *.* TO 'admin'@'localhost' WITH GRANT OPTION;CREATE USER 'admin'@'%' IDENTIFIED WITH mysql_native_password BY 'yourpass';GRANT ALL PRIVILEGES ON *.* TO 'admin'@'%' WITH GRANT OPTION;#CREATE DATABASE IF NOT EXISTS `yourdb` COLLATE 'utf8_general_ci' ;GRANT ALL ON `yourdb`.* TO 'admin'@'%' ;206.74.172.172 (talk) 20:40, 3 July 2018 (UTC)FLUSH PRIVILEGES ;
Way to Disable All Extensions?
Is there a simple way to disable all extensions, without uninstalling them?
I looked into <code>?SafeMode=1</code>, but that does not seem to do it.
Help:Locating broken scripts Johnywhy (talk) 18:42, 3 July 2018 (UTC)
Moving Wiki to New OS
Hello,
I currently have an issue where the server we intend to host the wiki on will not be available for some time. My hope is that I can install MediaWiki on a windows server and build the wiki there, then move the entire wiki over to a linux server.
My intention is to write a script to parse the file paths and sub in the new sever location. However, I can't seem to find any documentation as to whether the folder structure is built differently depending on the OS. Does anyone know? Thanks in advance. 108.178.131.194 (talk) 01:25, 4 July 2018 (UTC)
- Folder structure will be the same. Only absolute paths must be changed in your LocalSettings.php file. Ciencia Al Poder (talk) 12:30, 4 July 2018 (UTC)
How big is this security risk?
I frequent a smaller wiki and noticed somebody in the last few hours made a few edits and uploads that are quite suspicious. I haven't viewed these pages myself because of that. Some other people have told me they're attempting to script across domains. The software version is 1.23.4 (released about 5 years ago now) so we all think this may be a legitimate threat. Pinsplash (talk) 02:59, 4 July 2018 (UTC)
- Okay actually, people are confirming/have confirmed that no xss execution occurs. Whoever tried attacking us did terrible. Pinsplash (talk) 05:23, 4 July 2018 (UTC)
- MediaWiki 1.23 is old and insecure. Even if this attack did not succeed, you're at risk. Please upgrade to a supported MediaWiki version. Ciencia Al Poder (talk) 12:28, 4 July 2018 (UTC)
User making bad edits
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.
A user named ChrisJr4Eva87 (talk · contribs) has been making unconstructive edits at MediaWiki.org, yet I don't know which venue to report this. George Ho (talk) 04:21, 4 July 2018 (UTC)
Done. We don't really have a central reporting place. Project:Requests is used sometimes. —Mainframe98 talk 07:41, 4 July 2018 (UTC)
Should Bots Use OATHAuth or Oauth?
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 doc says bots should use OAuth to login.
But this doc says OATHAuth (and not Oauth), is bundled with MW.
Therefor, what should bots use? Johnywhy (talk) 05:58, 4 July 2018 (UTC)
- this doc does not even mention OAuth anywhere at all. Malyacko (talk) 12:47, 4 July 2018 (UTC)
- it links to this page, which says "Bots and other non-interactive applications should generally use owner-only OAuth consumers", which in turn links to this page, which says "To use it, the target wiki must have version 1.27 or higher of the OAuth extension installed." Johnywhy (talk) 18:58, 4 July 2018 (UTC)
- Bots should use OAuth, as you already wrote. I do not understand the "But" in "But this doc says OATHAuth is bundled with MW". How is that related? Malyacko (talk) 20:40, 4 July 2018 (UTC)
- it appears that OAuth and OathAuth have overlapping or duplicate functionality. Why need both?
- If bots are supposed to use OAuth, and bots are a common or standard part of MediaWiki, then why not bundle OAuth with MW, instead of OATHAuth?
- Update: because they don't do the same thing?
- Oauth does not have a gui, correct? For application processes only.
- OATHAuth does have a user-gui. For user-login only.
- (still wondering why OAuth isn't bundled) Johnywhy (talk) 21:40, 4 July 2018 (UTC)
- > it appears that OAuth and OathAuth have overlapping or duplicate functionality.
- They don't. OAuth is a method for authorization, OATHAuth is an extension that provides 2nd factor authentication using TOTP (OATH is an industry standard). Their naming indeed is quite confusing. —TheDJ (Not WMF) (talk • contribs) 07:44, 6 July 2018 (UTC)
((blocked))
Hi, there has been placed a blocked series of IP addresses by NinjaRobotPirate. Can this be released please. Kind regards Cath Just beachfront (talk) 06:46, 4 July 2018 (UTC)
Unable to query $wgDBname after 1.31 upgrade
I just upgraded a functional Mediawiki site from 1.30 to 1.31. It seems like MediaWiki is now ignoring the value of $wgDBname. I can’t run update.php to finish the 1.31 upgrade, it’s saying the table no longer exists - it most definitely does, in the $wgDBname database, not the default of mediawiki. I didn’t touch anything related to MySQL, databases, users or LocalSettings.php for the 1.31 upgrade.
The output of update.php:
MediaWiki 1.31.0 Updater
Your composer.lock file is up to date with current dependencies!
Going to run database updates for scores
Depending on the size of your database this may take a while!
Turning off Content Handler DB fields for this part of upgrade.
Adding ipb_id field to table ipblocks ...[bd90b77cbedf28248d6e5c43] [no req] Wikimedia\Rdbms\DBQueryError from line 1457 of /var/www/scores/w/includes/libs/rdbms/database/Database.php: A database query error has occurred. Did you forget to run your application's database schema updater after upgrading?
Query: ALTER TABLE `mediawiki`.`ipblocks`
ADD ipb_auto tinyint NOT NULL default '0',
ADD ipb_id int NOT NULL auto_increment,
ADD PRIMARY KEY (ipb_id)
Function: Wikimedia\Rdbms\Database::sourceFile( /var/www/scores/w/maintenance/archives/patch-ipblocks.sql )
Error: 1146 Table 'mediawiki.ipblocks' doesn't exist (localhost)
Backtrace:
#0 /var/www/scores/w/includes/libs/rdbms/database/Database.php(1427): Wikimedia\Rdbms\Database->makeQueryException(string, integer, string, string)
#1 /var/www/scores/w/includes/libs/rdbms/database/Database.php(1200): Wikimedia\Rdbms\Database->reportQueryError(string, integer, string, string, boolean)
#2 /var/www/scores/w/includes/libs/rdbms/database/Database.php(4194): Wikimedia\Rdbms\Database->query(string, string)
#3 /var/www/scores/w/includes/libs/rdbms/database/Database.php(4129): Wikimedia\Rdbms\Database->sourceStream(unknown type, NULL, NULL, string, NULL)
#4 /var/www/scores/w/includes/installer/DatabaseUpdater.php(683): Wikimedia\Rdbms\Database->sourceFile(string)
#5 /var/www/scores/w/includes/installer/DatabaseUpdater.php(751): DatabaseUpdater->applyPatch(string, boolean, string)
#6 /var/www/scores/w/includes/installer/DatabaseUpdater.php(482): DatabaseUpdater->addField(string, string, string)
#7 /var/www/scores/w/includes/installer/DatabaseUpdater.php(446): DatabaseUpdater->runUpdates(array, boolean)
#8 /var/www/scores/w/maintenance/update.php(200): DatabaseUpdater->doUpdates(array)
#9 /var/www/scores/w/maintenance/doMaintenance.php(94): UpdateMediaWiki->execute()
#10 /var/www/scores/w/maintenance/update.php(245): require_once(string)
#11 {main}
Trying to load the front page:
MediaWiki internal error.
Original exception: [cdc90f2b6d6badca80c5f360] /wiki/Main_Page Wikimedia\Rdbms\DBQueryError from line 1457 of /var/www/scores/w/includes/libs/rdbms/database/Database.php: A database query error has occurred. Did you forget to run your application's database schema updater after upgrading?
Query: SELECT 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 `mediawiki`.`page` WHERE page_namespace = '0' AND page_title = 'Main_Page' LIMIT 1
Function: WikiPage::pageData
Error: 1146 Table 'mediawiki.page' doesn't exist (localhost)
Backtrace:
#0 /var/www/scores/w/includes/libs/rdbms/database/Database.php(1427): Wikimedia\Rdbms\Database->makeQueryException(string, integer, string, string)
#1 /var/www/scores/w/includes/libs/rdbms/database/Database.php(1200): Wikimedia\Rdbms\Database->reportQueryError(string, integer, string, string, boolean)
#2 /var/www/scores/w/includes/libs/rdbms/database/Database.php(1653): Wikimedia\Rdbms\Database->query(string, string)
#3 /var/www/scores/w/includes/libs/rdbms/database/Database.php(1730): Wikimedia\Rdbms\Database->select(array, array, array, string, array, array)
#4 /var/www/scores/w/includes/page/WikiPage.php(380): Wikimedia\Rdbms\Database->selectRow(array, array, array, string, array, array)
#5 /var/www/scores/w/includes/page/WikiPage.php(400): WikiPage->pageData(Wikimedia\Rdbms\DatabaseMysqli, array, array)
#6 /var/www/scores/w/includes/page/WikiPage.php(438): WikiPage->pageDataFromTitle(Wikimedia\Rdbms\DatabaseMysqli, Title, array)
#7 /var/www/scores/w/includes/page/WikiPage.php(522): WikiPage->loadPageData()
#8 /var/www/scores/w/includes/page/WikiPage.php(563): WikiPage->exists()
#9 /var/www/scores/w/includes/page/WikiPage.php(229): WikiPage->getContentModel()
#10 /var/www/scores/w/includes/page/WikiPage.php(216): WikiPage->getContentHandler()
#11 /var/www/scores/w/includes/actions/Action.php(96): WikiPage->getActionOverrides()
#12 /var/www/scores/w/includes/actions/Action.php(154): Action::factory(string, WikiPage, RequestContext)
#13 /var/www/scores/w/includes/MediaWiki.php(156): Action::getActionName(RequestContext)
#14 /var/www/scores/w/includes/MediaWiki.php(778): MediaWiki->getAction()
#15 /var/www/scores/w/includes/MediaWiki.php(524): MediaWiki->main()
#16 /var/www/scores/w/index.php(42): MediaWiki->run()
#17 {main}
The MySQL user and its grants were not changed and appear to be valid:
MariaDB [scores]> show grants for 'scores'@'localhost'; +----------------------------------------------------------------------------------------------------------------------+ | Grants for scores@localhost | +----------------------------------------------------------------------------------------------------------------------+ | GRANT USAGE ON *.* TO 'scores'@'localhost' IDENTIFIED BY PASSWORD 'deleted' | | GRANT ALL PRIVILEGES ON `scores`.* TO 'scores'@'localhost' | +----------------------------------------------------------------------------------------------------------------------+ 2 rows in set (0.00 sec)
The table is there:
MariaDB [scores]> DESC scores.page; +--------------------+---------------------+------+-----+---------+----------------+ | Field | Type | Null | Key | Default | Extra | +--------------------+---------------------+------+-----+---------+----------------+ | page_id | int(8) unsigned | NO | PRI | NULL | auto_increment | | page_namespace | int(11) | NO | MUL | NULL | | | page_title | varchar(255) | NO | | NULL | | | page_restrictions | tinyblob | NO | | NULL | | | page_is_redirect | tinyint(1) unsigned | NO | MUL | 0 | | | page_is_new | tinyint(1) unsigned | NO | | 0 | | | page_random | double unsigned | NO | MUL | NULL | | | page_touched | char(14) | NO | | | | | page_latest | int(8) unsigned | NO | | NULL | | | page_len | int(8) unsigned | NO | MUL | NULL | | | page_content_model | varbinary(32) | YES | | NULL | | | page_links_updated | varbinary(14) | YES | | NULL | | | page_lang | varbinary(35) | YES | | NULL | | +--------------------+---------------------+------+-----+---------+----------------+
75.181.32.126 (talk) 21:52, 4 July 2018 (UTC)
- I figured this out: $wgDBmwschema was defined in my LocalSettings.php. Normally this is only used for Postgresql and I've never been on Postgresql so I'm not sure how this got in there. It is a very old wiki, maybe it was a default some time ago. By deleting $wgDBmwschema I was able to get the site to come up right away. 75.181.32.126 (talk) 22:34, 4 July 2018 (UTC)
- "$wgDBmwschema was defined in my LocalSettings.php ... used for Postgresql"
- this postgres config still screws the upgrades of mysql installs at debian stretch-buster dist-upgrades :)
- Thanks for sharing, Greenwood Village! 37.234.98.61 (talk) 11:35, 17 November 2022 (UTC)
Adding disclaimer text on footer by category
There is a requirement to add disclaimer text on the footer by category. is there a way to do this.
Here is the version details:
Version
MediaWiki 1.29.2
PHP 7.1.16 (fpm-fcgi)
MariaDB 10.2.14-MariaDB
ICU 57.1
appreciate your help.
-Thanks Ahsan96 (talk) 13:00, 5 July 2018 (UTC)
cannot backup or restore
Hi
I am trying to move my wiki to a new laptop. I have loaded MAMP 4.5 and midiawiki 1.31. I have configured in the same way as I have always done in the past and I have the default page showing.
used php dumpBackup.php --full > filename to dump my old pages.. All OK
however when I try to import on my new system I get this
phil@M-C02VD1YAG8WN: php importDump.php wikidump
[1e5b569077b3bdcc708accfd] [no req] Wikimedia\Rdbms\DBConnectionError from line 1004 of /Users/phil/philbwiki/includes/libs/rdbms/database/Database.php: Cannot access the database: No such file or directory (localhost)
Backtrace:
#0 /Users/phil/philbwiki/includes/libs/rdbms/loadbalancer/LoadBalancer.php(1134): Wikimedia\Rdbms\Database->reportConnectionError(string)
#1 /Users/phil/philbwiki/includes/libs/rdbms/loadbalancer/LoadBalancer.php(749): Wikimedia\Rdbms\LoadBalancer->reportConnectionError()
#2 /Users/phil/philbwiki/includes/GlobalFunctions.php(2801): Wikimedia\Rdbms\LoadBalancer->getConnection(integer, array, boolean)
#3 /Users/phil/philbwiki/includes/cache/localisation/LCStoreDB.php(45): wfGetDB(integer)
#4 /Users/phil/philbwiki/includes/cache/localisation/LocalisationCache.php(412): LCStoreDB->get(string, string)
#5 /Users/phil/philbwiki/includes/cache/localisation/LocalisationCache.php(458): LocalisationCache->isExpired(string)
#6 /Users/phil/philbwiki/includes/cache/localisation/LocalisationCache.php(334): LocalisationCache->initLanguage(string)
#7 /Users/phil/philbwiki/includes/cache/localisation/LocalisationCache.php(271): LocalisationCache->loadItem(string, string)
#8 /Users/phil/philbwiki/languages/Language.php(600): LocalisationCache->getItem(string, string)
#9 /Users/phil/philbwiki/includes/title/MediaWikiTitleCodec.php(85): Language->needsGenderDistinction()
#10 /Users/phil/philbwiki/includes/title/MediaWikiTitleCodec.php(214): MediaWikiTitleCodec->getNamespaceName(integer, string)
#11 /Users/phil/philbwiki/includes/cache/LinkCache.php(234): MediaWikiTitleCodec->getPrefixedDBkey(Title)
#12 /Users/phil/philbwiki/includes/Title.php(3449): LinkCache->addLinkObj(Title)
#13 /Users/phil/philbwiki/includes/Title.php(3229): Title->getArticleID()
#14 /Users/phil/philbwiki/includes/Title.php(3093): Title->loadRestrictions()
#15 /Users/phil/philbwiki/includes/Title.php(2389): Title->getRestrictions(string)
#16 /Users/phil/philbwiki/includes/Title.php(2737): Title->checkPageRestrictions(string, User, array, string, boolean)
#17 /Users/phil/philbwiki/includes/Title.php(2114): Title->getUserPermissionsErrorsInternal(string, User, string, boolean)
#18 /Users/phil/philbwiki/includes/import/WikiImporter.php(1108): Title->userCan(string)
#19 /Users/phil/philbwiki/includes/import/WikiImporter.php(787): WikiImporter->processTitle(string, string)
#20 /Users/phil/philbwiki/includes/import/WikiImporter.php(608): WikiImporter->handlePage()
#21 /Users/phil/philbwiki/maintenance/importDump.php(345): WikiImporter->doImport()
#22 /Users/phil/philbwiki/maintenance/importDump.php(278): BackupReader->importFromHandle(resource)
#23 /Users/phil/philbwiki/maintenance/importDump.php(114): BackupReader->importFromFile(string)
#24 /Users/phil/philbwiki/maintenance/doMaintenance.php(94): BackupReader->execute()
#25 /Users/phil/philbwiki/maintenance/importDump.php(350): require_once(string)
#26 {main}
I get the same sort of message if I try to dump from my new installation.
phil@M-C02VD1YAG8WN: php dumpBackup.php --full > pp
[a626cc63c3c486b8a1715410] [no req] Wikimedia\Rdbms\DBConnectionError from line 1004 of /Users/phil/philbwiki/includes/libs/rdbms/database/Database.php: Cannot access the database: No such file or directory (localhost)
Backtrace:
#0 /Users/phil/philbwiki/includes/libs/rdbms/loadbalancer/LoadBalancer.php(1134): Wikimedia\Rdbms\Database->reportConnectionError(string)
#1 /Users/phil/philbwiki/includes/libs/rdbms/loadbalancer/LoadBalancer.php(749): Wikimedia\Rdbms\LoadBalancer->reportConnectionError()
#2 /Users/phil/philbwiki/includes/GlobalFunctions.php(2801): Wikimedia\Rdbms\LoadBalancer->getConnection(integer, array, boolean)
#3 /Users/phil/philbwiki/maintenance/backup.inc(308): wfGetDB(integer)
#4 /Users/phil/philbwiki/maintenance/backup.inc(255): BackupDumper->initProgress(integer)
#5 /Users/phil/philbwiki/maintenance/dumpBackup.php(80): BackupDumper->dump(integer, integer)
#6 /Users/phil/philbwiki/maintenance/doMaintenance.php(94): DumpBackup->execute()
#7 /Users/phil/philbwiki/maintenance/dumpBackup.php(137): require_once(string)
#8 {main}
as far as I can tell the LocalSettings.php is set up OK the database name and logins are all OK I have reset the password on the login and tried again but I cannot get past this error
Please do you have any suggestions
Thanks
Phil 195.162.12.14 (talk) 13:30, 5 July 2018 (UTC)
- for clarity the old version was using MAMP 3.4 and Media wiki 1.26.
- I have set up the new versions exactly the same but cannot connect to the database. Philbgt4 (talk) 13:54, 5 July 2018 (UTC)
- I think I may have solved this changed
- #$wgDBserver = "localhost";
- to
- $wgDBserver = "localhost:/Applications/MAMP/tmp/mysql/mysql.sock";
- in LocalSettings.php Philbgt4 (talk) 14:47, 5 July 2018 (UTC)
Add a "new" symbol
Hi -
I periodically add content to a page (usually the main page of our wiki), and I would like to add some sort of symbol in front of new contents, so it would look something like:
*NEW* Link added to the super-helpful do-dah page...
Blah Blah Blah
Other old stuff
In Twiki, I use the markup %N%, and it renders as the text "new" in a nice font, in a little box. Does MediaWiki have something similar? Or is there an HTML tag for this?
Thanks.
p.s. I've tried lots of wiki (and Google) searching. But crafting a question along the lines of "how do I add a 'new' symbol" is remarkably difficult. :) RichardPrestage (talk) 18:44, 5 July 2018 (UTC)
- Does a Template not work for your purpose? AhmadF.Cheema (talk) 19:07, 5 July 2018 (UTC)
- It is the icon / tag I am after. Something like:
- https://www.iconfinder.com/icons/170007/badge_new_icon
- Again, in Twiki the markup is just %N%. I have to think MediaWiki has something similar, but I have searched quite hard, and I cannot find it. RichardPrestage (talk) 19:17, 5 July 2018 (UTC)
- I don't think there is any native support for that. TikiWiki does include more out-of-the box features than MediaWiki.
- The template can quite easily be created in just a couple of minutes, using free (might require attribution) icons such as from Category:New_(word), New Icon, Store New Badges, label_black_new etc.
- Examples: <figure-inline>
</figure-inline><figure-inline>
</figure-inline><figure-inline>
</figure-inline> AhmadF.Cheema (talk) 19:47, 5 July 2018 (UTC) - Thanks! I am surprised it does not exist already, seems like something many people would want. But I'll proceed as you suggest. And thanks for the examples (the flashing one is incredibly annoying...) RichardPrestage (talk) 20:02, 5 July 2018 (UTC)
- Wouldn't it be cooler if "new" was automatically applied to new content, and automatically removed when it's old?
- Js or php could do it:
- on edit, auto add new-tag to new content. Use dif feature to identify the new content. https://m.mediawiki.org/wiki/API:Compare
- could include rules like, "only if new paragraph, new link, or new image"
- on page load
- is last edit-date within newness-window?
- if yes, do nothing (new-tag was already added on edit)
- if no, remove all new tags. Johnywhy (talk) 21:07, 5 July 2018 (UTC)
- on edit, auto add new-tag to new content. Use dif feature to identify the new content. https://m.mediawiki.org/wiki/API:Compare
Html script tag: adding a "nonce" attribute
Compare the MediaWiki home page (lines 6, 7, 302 in the source file): MediaWiki and the Wikipedia home page (lines 6,7, 444 in the source file) [1]. The MediaWiki page has added the "nonce" attribute to the script tags so that, I presume, they can enforce a Content Security Policy on their site. I would like to do the same.
Which files do I need to edit to add a nonce attribute to precisely the same script tags as the MediaWiki admins have done? I have tried to grep for the script tags in my installation directory (MediaWiki 1.30.0) but blindly changing some of the script tag matches that I found did not make their way onto my site's home page.
Secondly, how have they added those nonce attributes? Primarily I would like to know where to edit the files, but it would be helpful to also know what to do. But I can always learn this myself; just to know where to make the edits is my primary concern.
Any help would be appreciated. I have tried searching for this information, but have found nothing. Thanks. VOIstri (talk) 20:02, 5 July 2018 (UTC)
- There is no way to successfully use this feature in MediaWiki 1.30, sorry. It's currently experimental and being worked on for Wikimedia production, and may get working well enough to recommend for third party use with MediaWiki 1.32. You can follow progress on T28508 if you wish. Jdforrester (WMF) (talk) 21:42, 5 July 2018 (UTC)
- Wait. Can I really not hack this into MediaWiki 1.30? If there is a php file that sets the script tags on the main page, then I could insert a nonce manually (using apache's UNIQUE_ID). Why wouldn't this work?
- Consider: I am not looking for a solution as the software devs would understand it because their code would need to account for all scenarios. I simply want a solution for my specific scenario, which is a nonce added to 3 specific script tags run at a particular place.
- Edit: My question is not about CSP. I simply want to know where those three script tags for the MediaWiki home page are added and how to change them manually (i.e., do I need to do anything else special). VOIstri (talk) 22:48, 5 July 2018 (UTC)
- You can try, but we have a strong policy against encouraging that: Do not hack MediaWiki core. It's very likely you'll break things, especially in security-sensitive code. Jdforrester (WMF) (talk) 22:58, 5 July 2018 (UTC)
- Thanks for the reply.
- Sure, I can understand it is not a recommended solution. But I think in this case I can live with the risks (from my perspective only, of course). Depending on how complicated the hack would be, naturally. I'm envisioning amending a few lines to add an attribute, not changing core behaviour. If it turns out to be not so trivial I will simply wait for 1.32.
- I will read the docs on where those script tags are added and how. If I get stuck I will post another question.
- Thanks again. VOIstri (talk) 23:04, 5 July 2018 (UTC)
- Ah, I see. That's annoying. I downloaded the latest 1.32 snapshot just to poke around and there was a file includes/ContentSecurityPolicy.php. There also seem to be references in other files too. Hopefully this will mean the MediaWiki 1.32 release will have something I can use.
- Thank you very much. VOIstri (talk) 22:21, 5 July 2018 (UTC)
- I am the author of the CSP stuff, and I am super pumped that there's interest from other people in this.
- We're still very much in the testing stags, but at the very least I intend to try and get CSP in enforce mode on https://test.wikipedia.org by the end of the week.
- None of the code is particularly version dependent (And in fact the original version of the patch was for a much older version of MW [2]), so you could potentially try and backport the patches to your version, however doing so is not officially supported and you won't get any support if running a customized version of MW source.
- That said, if you have any feedback I'd love to hear it. Bawolff (talk) 16:20, 9 July 2018 (UTC)
- Hi Bawolff
- I am very much interested in this CSP stuff, and so it is great to get a response from the author of these additions; thanks a lot for replying!
- So to give some idea of what I tried, as a start I simply did a grep for the script tags in question and tried to locate the code that was setting them. Finding a few functions and using the 1.32 code as a guide I could add the nonce attribute to these functions directly just to see if I could get something working. This did indeed work, although it was ugly.
- The problem was there was another script that was being called and since I really have no idea how MediaWiki operates I would have to have dug a lot deeper into the source files and figure out what was going on behind the scenes. I decided at this point to maybe wait for 1.32+ instead, seeing as I planned a server upgrade in 6 months time anyway :)
- But, with the commit you linked to I can see exactly what functions need to be patched. Thanks!
- I will attempt to patch the version I have at some point before the weekend and see how it goes. If I get it working then I may have feedback (prob nothing of any import since you will know far more than me on how it all works; much more likely is that something will go wrong and I will need help!).
- But I will report back how it goes in any case. I think this functionality really should be available to MediaWiki operators in some way, so good for you for having done this.
- Thanks again! VOIstri (talk) 18:23, 10 July 2018 (UTC)
Why can not I download the git?
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 acted in the direction of Download from Git, but it does not clone at all.
I used the git clone code https://github.com/wikimedia/mediawiki.git --branch REL1_31 and I clone it, but the following command did not run:
cd mediawiki
git submodule update --nit
It does not work and gives the following error
fatal: unable to connect Could not connect to server
please guide me
Thankful Sokote zaman (talk) 18:53, 7 July 2018 (UTC)
- hi
- Can not help me? 2.178.211.104 (talk) 11:03, 8 July 2018 (UTC)
- hi
- can help me? Sokote zaman (talk) 11:04, 8 July 2018 (UTC)
- Appears to only be a temporary connection issue between the servers. Have you tried again?
- By-the-way, it's
git submodule update --init(missed onei). AhmadF.Cheema (talk) 12:17, 8 July 2018 (UTC) - are you sure? Sokote zaman (talk) 15:04, 8 July 2018 (UTC)
- We cannot fix your internet connection, sorry... Malyacko (talk) 20:51, 8 July 2018 (UTC)
- ok
- Tanks Sokote zaman (talk) 20:56, 8 July 2018 (UTC)
How do you change your username?
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Can you please tell me how to change a username? The article Wikipedia:Changing usernamedoesn't actually explain the procedure. If I go to Preferences, the field "username" is the only one that is not editable and I can't find any option that would allow me to change it. Am I missing something? Galilean-moons (talk) 09:25, 8 July 2018 (UTC)
- Take a look at the Venues section one more time. AhmadF.Cheema (talk) 11:06, 8 July 2018 (UTC)
<i> tag around the whole page
Some of my pages have the <i> tag around the whole page and are displayed Italic. I couldn't fix it using built-in editor or WYSIWYG editor. Just the <i> tag before the first line of code and it looks horribly((( IchZerowan (talk) 22:23, 8 July 2018 (UTC)
- Which website are you referring to? Is it MediaWiki related? AhmadF.Cheema (talk) 07:51, 9 July 2018 (UTC)
- It is a wiki based on MediaWiki 1.30.0
- Extensions: Nuke 1.3.0, SyntaxHighlight 2.0, ConfirmEdit 1.5.0, ReCaptchaNoCaptcha, WikiEditor 0.5.1, WYSIWYG editor 1.5.6 IchZerowan (talk) 16:10, 9 July 2018 (UTC)
- A link to the page with the problem would help. Ciencia Al Poder (talk) 08:55, 14 July 2018 (UTC)
Consultation on the creation of a separate user group for editing sitewide CSS/JS
(Please help translate to your language)
Hi all,
I'm preparing a change in who can edit sitewide CSS/JS pages. (These are pages like MediaWiki:Common.css and MediaWiki:Vector.js which are executed in the browser of all readers and editors.) Currently all administrators are able to edit these pages, which poses a serious and unnecessary security risk. Soon, a dedicated, smaller user group will take over this task. Your community will be able to decide who belongs in this group, so this should mean very little change for you. You can find out more and provide feedback at the consultation page on Meta. If you are involved in maintaining CSS/JS code, or policymaking around adminship requests, please give it a look!
Thanks!
Tgr (talk) 10:50, 9 July 2018 (UTC) (via global message delivery)
MediaWiki message delivery (talk) 10:50, 9 July 2018 (UTC)
Not all programs showing up after update
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 just downloaded the most recent version of LibreOfice, a very good program.
When I clicl on the bottom left of the screen, there is the windows logo.
Then i get the programs and I type L and eventually LibreOffice DESKTOP APP shows up and 3 programs, Calc, Writer and Impress
The other programs do not show up, before the update everything was just fine
I think there is a bug, system is intel 3, Windows 10.
Please help
Greetings
Aspie The One And Only Aspie The One And Only (talk) 12:29, 9 July 2018 (UTC)
- Hi and welcome to the support desk for the MediaWiki software. MediaWiki is not LibreOffice so this posting is in the wrong place. Feel free to ask in a LibreOffice forum instead. Malyacko (talk) 13:44, 9 July 2018 (UTC)
<figure-inline> and </figure-inline> tags showing
In MediaWiki we try to edit wiki articles with Visual Editor. But whenever there is an image in the article the image is has <figure-inline> and </figure-inline> tags around it. For every editing step there is another pair of <figure-inline> and </figure-inline> tags added. Can we somehow disable this? 83.243.48.52 (talk) 13:15, 9 July 2018 (UTC)
migrating to a new version of wiki on a new server
Hi,
We currently have a wiki 1.19 running on wamp 2.2,we wan to migrate the current wiki to a new server wamp 3.0 with wiki 1.31.
Can we jist install it on a new server and restore the db from the current server and wiki ? 149.151.180.71 (talk) 13:44, 9 July 2018 (UTC)
- Generally you can just copy over the LocalSettings.php file and the db, and it will just work (Also the images/ directory if you have uploads, and any extensions you use)
- You may have to adjust $wgServer if your domain changes and $wgScriptPath/$wgArticlePath if the other part of the url changes. Along with anything else that changes (e.g. if your db server/password/user changes, change that)
- Be sure to run the update.php to update the db once you changed to the new version of MediaWiki. Bawolff (talk) 16:11, 9 July 2018 (UTC)
GEDcom
Is this the right page for help? 2602:306:834D:D630:A901:FE76:E06F:C5FD (talk) 14:12, 9 July 2018 (UTC)
- With GEDCOM, no. AhmadF.Cheema (talk) 15:28, 9 July 2018 (UTC)
Migrating an Archive from Wiki Spaces
I have an old archive file that was downloaded from a Wiki Spaces account. Couple years old....
I'd like to migrate it here, and start using it again as an active Wiki. I don't know how to do that.
Do you offer a Migration Tool or other support for that? Radhika1226 (talk) 23:37, 9 July 2018 (UTC)
- Perhaps see Manual talk:FAQ/Flow export#h-Import_from_WikiSpaces-2018-02-27T02:33:00.000Z. AhmadF.Cheema (talk) 06:03, 10 July 2018 (UTC)
#forminput doesn't show existing forms in MediaWiki
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hi,
We recently upgraded wiki with following product versions. Also I have installed all SMW extensions as well as extensions : Page Forms using composer.
| MediaWiki | 1.30.0 |
| PHP | 7.1.8 (apache2handler) |
| MySQL | 5.6.40 |
| ICU | 50.1.2 |
But still we face issue/error on page like Error: No form was found on page "carbonate seismic atlas query" and the "Edit with Form" tab is not visible on page.
Also the following #forminput parser function does not list the all existing form in the required form drop-down list. Please some one quick help in regards will highly appreciated.
{{#forminput:form=|popup|no autofocus|size=|default value=|button text=|query string=query string parameters|autocomplete on category=|autocomplete on namespace=|placeholder=}}
Thanks in Adv, Sanjay (talk) 13:50, 10 July 2018 (UTC)
- I got fixed for the issue by restructuring/editing field value in MySql DB schema. Sanjay (talk) 16:20, 15 July 2018 (UTC)
How to make separate specialpages for one extension with the same name
Hi, we have an extension called ManageWiki (Extension:ManageWiki) and the issue is we have way too much information on one page, which is too tiresome to scroll down every time, therefore how is it possible to make pages such as Special:ManageWiki/Extensions, Special:ManageWiki/Settings, etc? Or even better https://phabricator.miraheze.org/T3091 Reception123 (talk) 05:18, 11 July 2018 (UTC)
- Nevermind, found how to do the first one, but I'd still prefer if I could do what T3091 says, as it would be nicer Reception123 (talk) 05:20, 11 July 2018 (UTC)
Count articles in certain category
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 it possible to have results on the page of Count articles in certain category? Fokebox (talk) 09:27, 11 July 2018 (UTC)
- Maybe through Semantic MediaWiki? [semantic-mw:Thread:Semantic-mediawiki.org:Community_portal/How_do_I_build_a_query_that_counts_pages_by_category_or_subcategory? How do I build a query that counts pages by category or subcategory?] AhmadF.Cheema (talk) 14:04, 11 July 2018 (UTC)
- There's also <code>{{PAGESINCATEGORY: category name }}</code>. See Help:Magic_words#Statistics Ciencia Al Poder (talk) 08:49, 14 July 2018 (UTC)
- Thx, I try Fokebox (talk) 10:43, 15 July 2018 (UTC)
WikiEd Instalieren
Guten Tag,
Ich stelle die Frage bewusst auf Deutsch, weil ich mit der Englischen anleitung nichts anfangen kann.
Ich würde gerne wissen wie ich die Erweiterung WikiED instaliere. Tobiaspry (talk) 17:46, 11 July 2018 (UTC)
- Das ist ein Forum fur Mediawiki nicht fur WikiEd. So du muss WikiEd website schauen wie man es installiert kann Fokebox (talk) 10:45, 12 July 2018 (UTC)
- I think OP meant the MediaWiki Extension:WikEd. AhmadF.Cheema (talk) 12:06, 12 July 2018 (UTC)
Modifying login page
Dear support desk users,
Visitors are required to login in order to be able to read my wiki. Now I would like to change the layout of the login page - without the sidebar, with just two input fields and two simple links. Something like this. I know enough CSS and HTML to do so, but I can't find the source page and the original form.
Second question: I would like to change "Category:" at the bottom of an article into something else, something like "City:". How do I get this?
Thanks in advance.
RVR 84.28.247.111 (talk) 18:22, 11 July 2018 (UTC)
- The "Category:" can probably be changed from your Wiki's version of the MediaWiki:Pagecategories page.
- For the login page, you will need to add overriding CSS changes to the MediaWiki:Common.css page. Directly editing MediaWiki source files is highly discouraged.
- Also remember to see Manual:CSS#Styles not working on Special:UserLogin or Special:Preferences. AhmadF.Cheema (talk) 19:06, 11 July 2018 (UTC)
Is there a way to delete my account
Does anyone know of a way to delete or deactivate an account? 起承结轉 (talk) 02:45, 12 July 2018 (UTC)
Captcha missing error message
I am trying to create an account, but each attempt complains that the "Captcha" is missing or incorrect, I have tried several times and made sure that the captcha answer is correct and filled in. 41.13.140.113 (talk) 12:08, 12 July 2018 (UTC)
- Does your browser accept cookies? Ciencia Al Poder (talk) 08:45, 14 July 2018 (UTC)
Tables in #info tooltips text
We use tooltips with the fields in the MediaWiki forms using #info tooltips. Now we want to use tables in the tooltip text. Manual page says it's not possible ("There is limited support for wikitext formatting such as bold, italics and internal links. No paragraphs, tables, lists or any other block elements are allowed"). Is there another way to do this? Waanders (talk) 13:35, 12 July 2018 (UTC)
- I think you can use straight HTML such as
<table><tr><td>ColA</td><td>ColB</td></tr></table>Revansx (talk) 00:26, 1 September 2020 (UTC)
Logging on LDAP-authentication as well as LDAPRequiredGroups not working
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hi all,
I managed to get Mediawiki 1.31 to work without any problems with LDAP-authentication, but only if I comment out the line with $wgLDAPRequiredGroups. I don't want all users to be able to log on to our mediawiki, and furthermore, nothing that has to do with LDAP-authentication ever gets logged, what have I done wrong?
require_once( "$IP/extensions/LdapAuthentication/LdapAuthentication.php" );
$wgAuth = new LdapAuthenticationPlugin();
$wgLDAPDomainNames = array( 'internal.mycompany.se');
$wgLDAPServerNames = array( 'internal.mycompany.se' => 'dc1.internal.mycompany.se');
$wgLDAPPort = array( 'internal.mycompany.se' => 389, );
$wgLDAPProxyAgent = array( 'internal.mycompany.se' => 'CN=LDAP Read-only,CN=Users,DC=INTERNAL,DC=mycompany,dc=com',);
$wgLDAPProxyAgentPassword = array( 'internal.mycompany.se' => 'secret',);
$wgLDAPSearchAttributes = array( 'internal.mycompany.se' => 'sAMAccountName');
$wgLDAPEncryptionType = array( 'internal.mycompany.se' => 'start_tls');
$wgLDAPGroupObjectclass = array( 'internal.mycompany.se'=>'group' );
$wgLDAPGroupAttribute = array( 'internal.mycompany.se'=>'member' );
$wgLDAPBaseDNs = array( 'internal.mycompany.se' => 'CN=Users,DC=internal,DC=mycompany,dc=com');
$wgLDAPRetrievePrefs = array( "internal.mycompany.se" => "true" );
$wgLDAPGroupBaseDNs = array(
'internal.mycompany.se' => 'ou=groups,dc=internal,dc=mycompany,dc=com'
);
$wgLDAPGroupAttribute = array(
'internal.mycompany.se' => 'memberUid'
);
$wgLDAPGroupObjectclass = array(
'internal.mycompany.se' => 'posixGroup'
);
$wgLDAPGroupNameAttribute = array(
'internal.mycompany.se' => 'cn'
);
$wgLDAPRequiredGroups = array(
'internal.mycompany.se' => array(
'cn=employees,ou=groups,dc=internal,dc=mycompany,dc=com',
'cn=consultants,ou=groups,dc=internal,dc=mycompany,dc=com'
)
);
$wgLDAPGroupSearchNestedGroups = array("ad" => true);
$wgLDAPActiveDirectory = array( "ad" => true);
$wgLDAPDebug = 3;
$wgDebugLogGroups['ldap'] = "/tmp/mediawiki.log";
$wgShowExceptionDetails = true;
I used a similiar configuration to log on to a non-AD (openLDAP) server, and that worked. Any suggestions are welcome, I've been struggling with this for days..
Thanks! Oleg.blecher (talk) 07:14, 13 July 2018 (UTC)
Building structures in articles
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.
Are there any extension that can build structures, tables like this: https://hkar.ru/UMfs Fokebox (talk) 13:25, 13 July 2018 (UTC)
- Those are called flow charts/diagrams. See Extension:DrawioEditor. AhmadF.Cheema (talk) 16:37, 13 July 2018 (UTC)
My mediawiki not visible on my laptop ?
I am bureaucrat of my portal www.citypedia.net.in and have been visiting my portal too frequently on my laptop... All of sudden, since yesterday the portal has stopped getting connected with on my laptop... Nothing changed, no network change, no IP change, no system change... Elsewhere, everything working, even on my mobile... What can be reason ?? 114.142.139.121 (talk) 16:08, 13 July 2018 (UTC)
- Your laptop may be using a proxy which is banning the access to that website. Ciencia Al Poder (talk) 08:44, 14 July 2018 (UTC)
How to reset 2FA enforced on account from shell ?
Hi , i read this into Help page of OAUTH , but i wasn't able to find what shell commands are needed... Anyone can help ? (phone lost, no token, no secret available. He has chached credentians so he can access to wiki with his profile.)
Many Thanks !!
- What do I do if I lose my phone/token/secret?
- A user with shell access can remove your account from the two-factor configuration, which will allow you to login and re-enable two-factor authentication with a new device. The person doing this work will need to verify your identity, preferably by signing your request with a PGP signature that the user can verify, revealing a committed identity, or verifying the request through another non-email source (most users can reset their wiki password via email, so we want to ensure a malicious person with access to your email account cannot get your second authentication factor reset also). 95.226.135.244 (talk) 13:49, 14 July 2018 (UTC)
- Do you have scratch codes as per https://meta.wikimedia.org/wiki/Help:Two-factor_authentication ? Ciencia Al Poder (talk) 18:02, 14 July 2018 (UTC)
Draft
Hi,
Can you please help to understand how are articles created as draft? I did not find Draft namespace by default in media wiki.
Thanks! Sneha.1812 (talk) 15:59, 16 July 2018 (UTC)
- You can create your own namespace just naming a page like Draft:My_Page Fokebox (talk) 09:21, 17 July 2018 (UTC)
- This won't create a page in that namespace, if the namespace is not defined in MediaWiki. Which means those pages will appear as content namespaces, will be eligible for appearing in Special:Random, etc.
- See Manual:Using custom namespaces for instructions about creating a new namespace. Ciencia Al Poder (talk) 11:09, 17 July 2018 (UTC)
Fehlerhaftes Datumsformat?
In meinem Wiki Bereich Diskussionen wird das Datumsformat fehlerhaft dargestellt
https://www.radiomuseum-bocket.de/wiki/index.php?title=Diskussion:Philips_Philetta_213_B2D13A
Wir können leider nicht erkennen wo man diesen Fehler beheben könnte.
Wer kann oder könnte uns Hinweise geben?
Im Voraus besten Dank
Hans 2A00:6020:15F2:CD01:185B:1B1C:ACE4:8455 (talk) 17:11, 16 July 2018 (UTC)
- Maybe some problem with the time set on your hosting provider's server? AhmadF.Cheema (talk) 18:21, 16 July 2018 (UTC)
- Check the locale php is using. Might be set to german, which is incorrect and might cause problems with parsing numbers —TheDJ (Not WMF) (talk • contribs) 18:50, 17 July 2018 (UTC)
MediaWiki Hooks fatal 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.
Going to any page on Wikizilla.org — https://wikizilla.org/wiki/Special:Random — gives you this message.
A database query error has occurred. This may indicate a bug in the software.
Errors turned on in LocalSettings.php. What was there previously has been taken care of. Checked the error_log file, this type of error pops up repeatedly.
[16-Jul-2018 16:34:49 UTC] PHP Warning: Parameter 1 to AntiSpoofHooks::onAPIGetAllowedParams() expected to be a reference, value given in MW_ROOT/wiki/includes/Hooks.php on line 201
[16-Jul-2018 16:34:49 UTC] PHP Warning: Parameter 1 to ConfirmEditHooks::APIGetAllowedParams() expected to be a reference, value given in /MW_ROOTwiki/includes/Hooks.php on line 201
PHP version is set to 7.0. - MW version is 1.26.4. (Yes it's super outdated. I don't know how to manually upgrade it and Installatron won't allow me to even clone it at this point.)
PECULIARLY, the clone I made of the wiki a month ago which is sitting at MW 1.30.0 (and has a metric ton of broken extensions and pages, including the main page) — https://wikizilla.org/site/Biollante — WORKS, so this is absolutely a problem tied to the /wiki/ Wikizilla and isn't a wider problem with the server.
Please help, it's absolutely crucial here. 493Titanollante (talk) 17:31, 16 July 2018 (UTC)
- To obtain more relevant error information, set the following in your LocalSettings.php:See Manual:How to debug for more details. AhmadF.Cheema (talk) 18:18, 16 July 2018 (UTC)
$wgShowExceptionDetails = true; $wgDevelopmentWarnings = true; error_reporting( -1 ); ini_set( 'display_errors', 1); error_reporting(E_ALL);
- I turned on SQL Errors and this appeared for regular pages:
- Query: SELECT 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 `mw_page` WHERE page_namespace = '0' AND page_title = '[PAGENAME it's any page]' LIMIT 1
- Function:
WikiPage::pageData - Error: 144 Table './i2607325_mw1/mw_page' is marked as crashed and last (automatic?) repair failed (localhost)
- and this appeared for special pages:
- Query: SELECT page_title FROM `mw_page` WHERE page_is_redirect = '0' AND page_namespace = '8' AND (page_title NOT LIKE '%/%' ) AND (page_len > 10000)
- Function:
MessageCache::loadFromDB(en)-big - Error: 144 Table './i2607325_mw1/mw_page' is marked as crashed and last (automatic?) repair failed (localhost)
- I checked the status of the wiki's MySQL database thingie (cPanel) and sure enough it gives these errors...
- [i2607325_mw1.mw_page] warning: Table is marked as crashed and last repair failed
- [i2607325_mw1.mw_page] warning: 1 client is using or hasn't closed the table properly
- [i2607325_mw1.mw_page] warning: Size of indexfile is: 3833856 Should be: 2048
- [i2607325_mw1.mw_page] error: Record-count is not ok; is 43589 Should be: 0
- [i2607325_mw1.mw_page] warning: Found 43615 key parts. Should be: 0 493Titanollante (talk) 18:39, 16 July 2018 (UTC)
- Fixed due to repairing MySQL databases. 493Titanollante (talk) 21:11, 16 July 2018 (UTC)
Clear php cache
How can I delete my php cache? Is it possible to do that? 91.96.186.163 (talk) 21:30, 16 July 2018 (UTC)
- Wiki_page?action=purge Fokebox (talk) 09:20, 17 July 2018 (UTC)
Problem running creation kit for skyrim.
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
When I click the button to run the Skyrim creation kit this always pops up.
The code execution cannot proceed because steam_api64.dll was not found. Reinstalling the program may fix this problem.
So do I need to uninstall steam and then reinstall it? 38.93.166.40 (talk) 22:05, 16 July 2018 (UTC)
- Wrong support forum, probably see Skyrim Creation Kit and Modders (The Nexus Forums) or Skyrim Creation Kit (Steam Community). AhmadF.Cheema (talk) 03:16, 17 July 2018 (UTC)
high availability
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 successfully installed mediawiki in one server just to test (mediawiki 1.30 , php 7, mysql 5.7, ubuntu0.16.04, apache). Among others I installed (I'm interested in) this extension: VisualEditor (parsoid server, restbase server).
Now, I would like to install mediawiki in a high availability environment but I have no experience on that. I think I could start by trying to use two servers for the application server and other two servers for mysql database, but I do not know which cluster software should I use for each.
In Mediawiki documentation I only find this documentation (to be configured in LocalSettings.php): Manual:$wgDBservers
I need a starting point, thanks in advance
Juanjo Scejja (talk) 13:35, 17 July 2018 (UTC)
- That sounds like you want to do something that Wikimedia is doing with Wikipedia as well. They e.g. are using a master and several slave databases. 85.16.10.75 (talk) 21:02, 17 July 2018 (UTC)
- Yes it can be a good solution (as stated here Manual:MediaWiki architecture). The real goal for me is that if a node fail, the application may continue to work until that node has been "repaired".
- So which software may I use for mysql cluster?, and for apache server?
- Any guide related to Mediawiki?
- Thanks! Scejja (talk) 22:24, 17 July 2018 (UTC)
- I found halamp, I will start here. thanks a lot Scejja (talk) 13:19, 18 July 2018 (UTC)
After upgrade, can't edit 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.
Migrated to new server and upgraded from 1.21 to 1.31 and PHP to the latest. Now when anyone click Edit on any page, we get: Fatal exception of type "Error"
Hope this is an easy fix. Thanks! 38.72.131.175 (talk) 21:30, 17 July 2018 (UTC)
- See Manual:How to debug for how to get a stacktrace. AKlapper (WMF) (talk) 06:40, 18 July 2018 (UTC)
- I followed the instructions to display PHP errors, display startup errors, and display SQL errors, but it still just throws this error (with a different prefix string and date) when you click Edit on any page:
- =Internal error=
- [b4eb2ce02cd149d8c2da49cd] 2018-07-18 16:41:47: Fatal exception of type "Error"
- [b4eb2ce02cd149d8c2da49cd] 2018-07-18 16:41:47: Fatal exception of type "Error" 38.72.131.175 (talk) 16:44, 18 July 2018 (UTC)
- I also added the $wgShowExceptionDetails = True to the LocalSettings.php file but it still shows now more info in the error, even after rebooting.
- This is on a Windows 2016 server, running the same version of XAMPP as our current server, 1.8.3-0, then manually upgrading PHP to 7.2.7 and upgrading MediaWiki from 1.21 to 1.31 and running the config page to upgrade the db. Prior to upgrading, clicking Edit works on this new 2016 server. 38.72.131.175 (talk) 17:30, 18 July 2018 (UTC)
- The documentation asks you to set $wgShowExceptionDetails to "true", not to "True". Malyacko (talk) 06:40, 19 July 2018 (UTC)
- meant to say it still shows no more info on the error page. 38.72.131.175 (talk) 17:31, 18 July 2018 (UTC)
- Last thing to add, I did follow this: Manual:Installing MediaWiki on Windows Server 2016#PHP 38.72.131.175 (talk) 17:53, 18 July 2018 (UTC)
- It made no difference setting it to true versus True. The error still only shows "Fatal exception of type "Error"" 38.72.131.175 (talk) 17:07, 19 July 2018 (UTC)
- Are you set
$wgShowExceptionDetails = true;- not
$wgShowExceptionDetails = "true";星耀晨曦 (talk) 17:31, 19 July 2018 (UTC)- Yes, this is the exact line copied: $wgShowExceptionsDetails = true;
- It is just below the "End of automatically generated settings. Add more configuration options below" line. 38.72.131.175 (talk) 18:16, 19 July 2018 (UTC)
- "Exception" not "Exceptions". AhmadF.Cheema (talk) 18:59, 19 July 2018 (UTC)
- Are you set
error_reporting( -1 );ini_set( 'display_errors', 1 );- ? 星耀晨曦 (talk) 18:50, 19 July 2018 (UTC)
- Ah thanks! removing the s worked. Now I get this more informational error:
- [12a75be5c5d96b9b7a2aba26] /index.php?title=The_Brandes_Wiki&action=edit Error from line 41 of C:\inetpub\wwwroot\wiki\extensions\TitleBlacklist\TitleBlacklist.list.php: Call to undefined function wfProfileIn()
- Backtrace:
- #0 C:\inetpub\wwwroot\wiki\extensions\TitleBlacklist\TitleBlacklist.list.php(216): TitleBlacklist->load()
- #1 C:\inetpub\wwwroot\wiki\extensions\TitleBlacklist\TitleBlacklist.list.php(176): TitleBlacklist->getBlacklist()
- #2 C:\inetpub\wwwroot\wiki\extensions\TitleBlacklist\TitleBlacklist.list.php(159): TitleBlacklist->isBlacklisted(Title, string)
- #3 C:\inetpub\wwwroot\wiki\extensions\TitleBlacklist\TitleBlacklist.hooks.php(33): TitleBlacklist->userCannot(Title, User, string)
- #4 C:\inetpub\wwwroot\wiki\includes\Hooks.php(177): TitleBlacklistHooks::userCan(Title, User, string, string)
- #5 C:\inetpub\wwwroot\wiki\includes\Hooks.php(205): Hooks::callHook(string, array, array, NULL)
- #6 C:\inetpub\wwwroot\wiki\includes\Title.php(2282): Hooks::run(string, array)
- #7 C:\inetpub\wwwroot\wiki\includes\Title.php(2737): Title->checkPermissionHooks(string, User, array, string, boolean)
- #8 C:\inetpub\wwwroot\wiki\includes\Title.php(2135): Title->getUserPermissionsErrorsInternal(string, User, string)
- #9 C:\inetpub\wwwroot\wiki\includes\EditPage.php(683): Title->getUserPermissionsErrors(string, User, string)
- #10 C:\inetpub\wwwroot\wiki\includes\EditPage.php(597): EditPage->getEditPermissionErrors(string)
- #11 C:\inetpub\wwwroot\wiki\includes\actions\EditAction.php(60): EditPage->edit()
- #12 C:\inetpub\wwwroot\wiki\includes\MediaWiki.php(500): EditAction->show()
- #13 C:\inetpub\wwwroot\wiki\includes\MediaWiki.php(294): MediaWiki->performAction(Article, Title)
- #14 C:\inetpub\wwwroot\wiki\includes\MediaWiki.php(861): MediaWiki->performRequest()
- #15 C:\inetpub\wwwroot\wiki\includes\MediaWiki.php(524): MediaWiki->main()
- #16 C:\inetpub\wwwroot\wiki\index.php(42): MediaWiki->run()
- #17 {main} 38.72.131.175 (talk) 19:05, 19 July 2018 (UTC)
- Any idea what it means? 38.72.131.175 (talk) 19:05, 19 July 2018 (UTC)
- You should upgrade your all extensions/skins while upgrade MediaWiki core. 星耀晨曦 (talk) 19:10, 19 July 2018 (UTC)
- Thanks so much for the help. How do I upgrade extensions/skins? I didn't install our mediawiki, that person is no longer working here. These are the extensions listed in our LocalSettings.php file:
- # Enabled Extensions. Most extensions are enabled by including the base extension file here
- # but check specific extension documentation for more details
- # The following extensions were automatically enabled:
- require_once( "$IP/extensions/Cite/Cite.php" );
- require_once( "$IP/extensions/ConfirmEdit/ConfirmEdit.php" );
- require_once( "$IP/extensions/Gadgets/Gadgets.php" );
- require_once( "$IP/extensions/ImageMap/ImageMap.php" );
- require_once( "$IP/extensions/InputBox/InputBox.php" );
- require_once( "$IP/extensions/Interwiki/Interwiki.php" );
- require_once( "$IP/extensions/LocalisationUpdate/LocalisationUpdate.php" );
- require_once( "$IP/extensions/Nuke/Nuke.php" );
- require_once( "$IP/extensions/ParserFunctions/ParserFunctions.php" );
- require_once( "$IP/extensions/PdfHandler/PdfHandler.php" );
- require_once( "$IP/extensions/Poem/Poem.php" );
- require_once( "$IP/extensions/Renameuser/Renameuser.php" );
- require_once( "$IP/extensions/SpamBlacklist/SpamBlacklist.php" );
- require_once( "$IP/extensions/SyntaxHighlight_GeSHi/SyntaxHighlight_GeSHi.php" );
- require_once( "$IP/extensions/TitleBlacklist/TitleBlacklist.php" );
- require_once( "$IP/extensions/Vector/Vector.php" );
- require_once( "$IP/extensions/WikiEditor/WikiEditor.php" ); 38.72.131.175 (talk) 19:22, 19 July 2018 (UTC)
- Using MwExtUpgrader to batch upgrade them. 星耀晨曦 (talk) 19:25, 19 July 2018 (UTC)
- I think I found it, downloading now. Hopefully this will do the trick, thanks! Special:ExtensionDistributor 38.72.131.175 (talk) 19:27, 19 July 2018 (UTC)
- That fixed it, thanks a million! 38.72.131.175 (talk) 20:48, 19 July 2018 (UTC)
Why cookies token change?
Hi,
We are using $wgCookieDomain = '.example.org'; & $wgCookiePrefix = "exampleSSO"; to share cookies among wiki family sites. All sessions for same wiki family were stored in same redis instance.
However, for each time users visit a different sites under different sub-domain. The session token changed. (e.g. exampleSSOToken=00d1884ecdb6e615da9b2bf9b85web8c; to 31d18sfecdb6e615da9b26y9b85web6w)
Such change result in every first edit submission showing red alert of "session lost, have you enable cookies, etc...". Users have to re-submit the page.
What might cause the session token change, and what can I do to solve this problem?
MW 1.30.0
Thank you Deletedaccount4567435 (talk) 05:10, 18 July 2018 (UTC)
Problem with Slideshare display
| MediaWiki | 1.30.0 (3e317bb) |
| PHP | 7.1.19 (fpm-fcgi) |
| MariaDB | 10.0.35-MariaDB-0+deb8u1 |
| ICU | 52.1 |
Impossible to display a slideshare document in my mediawiki page : https://wikiagile.cesi.fr/index.php?title=Lean_Primer with Extension:SlideShare2012. However, when I display source code of the page, I can click on the link and access to the slideshare page :
| <div style="width:425px" id="TFz20JkmrSLsT"><iframe src="http://www.slideshare.net/slideshow/embed_code/key/TFz20JkmrSLsT" width="668" height="714" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe></div> |
Faimetti (talk) 08:38, 18 July 2018 (UTC)
Problem with local file link
Hi, I've a problem with local file link.
I've installed MediaWiki on my PC with XAMPP.
I have some file stored on a shared NAS server ("\\server_example\file.xls").
I created a link that can point to this NAS server and I read about all the referred browser problems for accessing file system.
But I want that when I click on the link, the site don't try to open the file on the browser but it must download the file.
I tried to create the link in HTML with <a href=""></a> in a simple test blank page on my PC:
<html><a href="\\server_example\file.xls">TEST</a></html>
And the browser automatically donwload the file, and so why in MediaWiki this method don't do nothing?
Thanks. 193.178.246.121 (talk) 09:39, 18 July 2018 (UTC)
Site CSS, can't find header h1 element
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, inspecting the header, h1, title of a page it has the following css loading...
h1, h2, h3, h4, h5, h6 {
color: #000;
background: none;
font-weight: normal;
margin: 0;
overflow: hidden;
padding-top: 0.5em;
padding-bottom: 0.17em;
border-bottom: 1px solid #a2a9b1;
}
I can't find this css anywhere.
It says it loads in at...
But I don't know where to find this to edit it. I do not wish to overide it, but find where it's already stated.
Thanks Noxiousnoxy (talk) 16:37, 18 July 2018 (UTC)
- You can use the URL parameter "debug=true" to find the exact file. Malyacko (talk) 06:38, 19 July 2018 (UTC)
- changing the parameter didn't work at all.
- But I found where all the css is hiding. For future reference;
- w/resources/src/mediawiki.skinning/ Noxiousnoxy (talk) 06:32, 21 July 2018 (UTC)
Installing and upgrading old wiki
We have received a ftp dump of all the files from a Wiki running version 1.24.2, and are trying to get it running on a new server. However, we haven’t had much luck getting it to work if we move the files into a modern version of MediaWiki. Do we need to get these files running on an old version of MediaWiki before upgrading, or is it possible to upgrade these files to make them functional on a current MediaWiki release without installing 1.24.2 first? 49.178.37.57 (talk) 08:33, 19 July 2018 (UTC)
- By "we move the files into a modern version of MediaWiki", do you mean all the files and directories or just the images/uploads directory and LocalSettings.php file?
- See Manual:Upgrading#Using a tarball package.
- You shouldn't "need to get these files running on an old version of MediaWiki before upgrading". Also did you receive the database backup too, because that is the most significant part of the old Wiki, comprising of almost all of the Wiki content. AhmadF.Cheema (talk) 08:54, 19 July 2018 (UTC)
Dear Team, What is the skillset we we need to upgrade the existing wikipedia version to the latest?
Dear Team, What is the skillset we we need to upgrade the existing wikipedia version to the latest? 160.62.4.100 (talk) 10:01, 19 July 2018 (UTC)
- *existing MediaWiki version
- Following instructions and documentation and being able to search on Google should be enough.
- See Manual:Upgrading for details. AhmadF.Cheema (talk) 13:07, 19 July 2018 (UTC)
Modification on a Wikimonde article
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hello,
I would like to know how to edit an article on the encyclopedia wikimonde because the information contained in it are wrong.
Thank you for your help! InesBouza (talk) 10:15, 19 July 2018 (UTC)
- Wikimonde is not associated with the Wikimedia foundation, therefore this would be the wrong forum to ask.
- Probably make your query at Wikimonde:Bistro. AhmadF.Cheema (talk) 13:14, 19 July 2018 (UTC)
How to create a Clickable Button in MediaWiki?
Hello, I'm trying to create a site using mediawiki and ineed to have a clickable button at one page. I've tried to include a text provided here https://commons.wikimedia.org/w/index.php?title=Template:Clickable_button/doc&action=submit
and it resulted in the text Template:Clickable button on the page. Apparently, my mediawiki doesn't contain a template for clickable buttons. The question is: where can I take the code for this template so that my clickable button works? Thank you 142.157.25.184 (talk) 13:42, 19 July 2018 (UTC)
- Sorry, the correct link is https://commons.wikimedia.org/wiki/Template:Clickable_button/doc 142.157.25.184 (talk) 13:45, 19 July 2018 (UTC)
- A template may include several other templates and modules which would also need to be imported into your Wiki.
- Go to Special:Export.
- In the "Add pages manually:" textbox, add "Template:Clickable button".
- Check "Include templates" and click the blue "Export" button. A file will be downloaded to your computer.
- Then go to your Wiki's version of the Special:Import page and then import this exported file. AhmadF.Cheema (talk) 14:28, 19 July 2018 (UTC)
- Thank you. I did everything till step 4. If I just select the .xml file I get an error "Import failed: No interwiki prefix was supplied" What should be an interwiki prefix? If I use or anything else, I get an error "Import failed: No pages to import." Can you navigate me through the option on this (Special:Import) page? Thank you 142.157.25.184 (talk) 23:15, 19 July 2018 (UTC)
- I have pretty much no idea regarding the Interwiki prefix. This is the first time I'm seeing this, probably added in the latest MediaWiki 1.31 version. For all I know, just adding the prefix "meta" should work, but I cannot be sure. Better wait for someone else to chime in.
- $wgImportSources and this appear to be related. AhmadF.Cheema (talk) 02:03, 20 July 2018 (UTC)
- Update at Project:Support desk/Flow/2018/07#h-Import_fehlgeschlagen:_Es_wurde_kein_Interwiki-Präfix_angegeben-2018-07-23T14:38:00.000Z. AhmadF.Cheema (talk) 20:45, 24 July 2018 (UTC)
Page Previews
Until recently, my wiki was working mostly fine with page previews -- a few links didn't get a preview, but most did. After some recent work that including editing the LocalSettings, however, all page previews just return a message that no preview is available. There seems to be a great lack of information on just how page previews work -- where are the preview texts stored, if they are stored at all? Is there a maintenance script one can run to get new previews generated? Balerion300 (talk) 17:06, 19 July 2018 (UTC)
- The message is "no preview is available"? 星耀晨曦 (talk) 17:34, 19 July 2018 (UTC)
- "Looks like there isn't a preview for this page" is the message. Balerion300 (talk) 21:52, 19 July 2018 (UTC)
- This message appears to be from a extension. You can try disabling the extensions you recently added. 星耀晨曦 (talk) 04:04, 20 July 2018 (UTC)
- I hadn't actually added a new extension, so far as I recall -- the tweaks I made was simply removing a hook we no longer needed. Balerion300 (talk) 12:22, 20 July 2018 (UTC)
- But our code repo does not have the message. 星耀晨曦 (talk) 12:24, 20 July 2018 (UTC)
- The message is probably related to Extension:Popups (Page Previews). AhmadF.Cheema (talk) 12:34, 20 July 2018 (UTC)
New Page access
- Hi... I have published a page Praana: the other day. I dont see it it. also would like to edit the page, but dont know how to access it. Srajprosadm (talk) 19:04, 19 July 2018 (UTC)
- Looks like you were on en.wikipedia.org: https://en.wikipedia.org/wiki/Draft:Praana Malyacko (talk) 14:22, 20 July 2018 (UTC)
- Visit Special:Contributions/<username>. There is your edit log. 星耀晨曦 (talk) 19:08, 19 July 2018 (UTC)
Fetching Double Redirects via API
I've noticed that the FTB Wiki (a 3rd party Wiki) is capable of returning detailed double redirect information via the API (in the databaseResult object). WMF Wikis don't seem to be capable of doing this (ex: [3]). Is this a special extension or is it a feature WMF wikis haven't been enabled? If so, why don't we have this? (IMO it'd be an incredibly useful feature) Fastily 19:35, 19 July 2018 (UTC)
- For anyone following this thread: I've created a task on Phabricator. Fastily 05:46, 29 July 2018 (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.
... ReblFleur (talk) 21:23, 19 July 2018 (UTC)
Error in the shared mathtex.cgi URL
In the page https://www.mediawiki.org/wiki/LaTeX_on_a_shared_host>
if you don't have CGI support on your host do the code changes described below, then set the server running the mathtex or mimetex
cgi script by setting in LocalSettings.php:
$wgTrustedMathMimetexUrl = 'http://www.forkosh.com/mathtex.cgi';
but the ip will auto jump to another page which just has an image. X0615036 (talk) 00:25, 20 July 2018 (UTC)
Infinite IP address autoblock
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 set up infinite (not expiring) autoblock? PlavorSeol (talk) 05:11, 21 July 2018 (UTC)
- Maybe set a really large value for $wgAutoblockExpiry? AhmadF.Cheema (talk) 09:49, 21 July 2018 (UTC)
- Is there a way to set $wgAutoblockExpiry to infinite? PlavorSeol (talk) 11:14, 21 July 2018 (UTC)
- I highly doubt it, since:
| Allowed values: | integer >= 0 |
- The maximum value probably depends on PHP_INT_MAX. If the usual value is two billion, then (if my calculation is correct) it should mean an expiry of ~63 years. AhmadF.Cheema (talk) 12:49, 21 July 2018 (UTC)
Migration from SQLite to Postgres
What I have: MediaWiki 1.30.0; PHP 7.2.7; SQLite 3.24.0
What I need: MediaWiki 1.31.0; PHP 7.2.7; PostgreSQL 10.4
Should I first migrate the database and then upgrade to MediaWiki 1.31 or upgrade Mediawiki first and then migrate the database?
And what is most important: I couldn't find a how-to for migrating a Mediawiki database from SQLite.
Any hints appreciated. 217.86.18.92 (talk) 15:02, 21 July 2018 (UTC)
- I don't know, if it is easier or more difficult to switch MediaWiki 1.30 or MediaWiki 1.31 from SQLite to Postgres.
- Actually, I would first do, what I know is working - that is: An upgrade from MediaWiki 1.30 to 1.31.
- Afterwards I would address the switch of the DBMS.
- I don't know of a way to switch from SQLite to Postgres directly. https://www.quora.com/What-is-the-best-way-to-copy-my-SQLite-database-to-PostgreSQL-so-I-can-deploy-it-to-Heroku sounds like there basically is a way to convert your stuff. However, note that at least the "lazy" way will almost certainly lead to problems at some later point. That is what the author calls "lost productivity". This is what will happen.
- An idea might also be to set up a new MediaWiki installation and to have MediaWiki create an empty Postgres database. Afterwards you can compare the database structure of what you got after your conversion with what the MediaWiki installer creates. I think comparing these two is what I would do. This will most likely show you some differences,which you need to adjust so that your converted Postgres DB looks as MediaWiki expects it to look like... 2001:16B8:10C0:700:B1EA:5AED:F674:BFDA (talk) 21:03, 21 July 2018 (UTC)
"Cannot log in when using MediaWiki\Session\BotPasswordSessionProvider sessions."
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 am trying to configure a Wikipedia bot to log in using oAuth on the new MediaWiki 1.27 framework.
I can obtain a token, but when I try to log in am met with the error
login->result: "Aborted"
login->reason: "Cannot log in when using MediaWiki\Session\BotPasswordSessionProvider sessions." Smith609 (talk) 16:03, 21 July 2018 (UTC)
Sitemaps
How to view Sitemaps? Eduardoaddad (talk) 23:04, 21 July 2018 (UTC)
Automatically change display language for non-logged in users
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 there an extension to automatically change display language(interface, menu, etc.) for non-logged in users, depends on browser's language settings? PlavorSeol (talk) 05:27, 22 July 2018 (UTC)
- Does the way language is selected in Wikimedia Wikis not work for your purposes? See, Universal Language Selector/FAQ and Extension:UniversalLanguageSelector for details. AhmadF.Cheema (talk) 07:46, 22 July 2018 (UTC)
Similar projects?
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.
What is the difference between Extension:LiquidThreads and Extension:StructuredDiscussions? Janezdrilc (talk) 10:33, 22 July 2018 (UTC)
- StructuredDiscussions was based on the work on the third version of LiquidThreads. Jdforrester (WMF) (talk) 11:22, 22 July 2018 (UTC)
- That means LiquidThreads are outdated and will sooner or later be replaced with StructuredDiscussions?
- (Asking for the sake of translating.) Janezdrilc (talk) 12:27, 22 July 2018 (UTC)
- Extension:LiquidThreads answers this already? It says "unmaintained", it says "cancelled".
- "later be replaced" depends on each wiki's admins; cannot generalize. :) AKlapper (WMF) (talk) 18:08, 22 July 2018 (UTC)
- Ups, yes. I missed the notice. Thanks. Janezdrilc (talk) 19:22, 22 July 2018 (UTC)
E-mailing to registered users
Hi there! Could you please let me know if there is an extension that allows to make e-mail the message to all registered users? Fokebox (talk) 20:36, 22 July 2018 (UTC)
Infobox or Scribunto Error Help
My website at www.ti.mysweetweb.com is running MediaWiki 1.31.0, PHP 7.2.5, MySQL 5.6.36-82.1, Lua 5.1.5, and Scribunto (106fbf4}. I imported several infoboxes and templates which all seemed to work correctly. The most common is template:infobox video game. Although pages with that infobox appear correctly, when I enable php error logging, I get the error: "Undefined offset: 1 in /home/mysweetw/public_html/ti/extensions/Scribunto/includes/engines/LuaStandalone/LuaStandaloneEngine.php on line 426." I looked at line 426 of LuaStandaloneEngine.php which says "return $result[1];" but that didn't help me discover the issue. The error doesn't seem to affect any pages, but if possible, would like to figure out a way to resolve the error. Any thoughts on how to discover the source of the error? Amycjgrace (talk) 04:01, 23 July 2018 (UTC)
User not receiving email to confirm email address.
i'm new to mediawiki. i'm using $wgEmailConfirmToEdit = true;
how to fixed this? when i wan't to confirm email address but there's no incoming email confirmation.
Please explain step by step. thankyou Alberteranio (talk) 10:34, 23 July 2018 (UTC)
- Make sure you have set up email function correctly. 星耀晨曦 (talk) 19:58, 23 July 2018 (UTC)
- yaa, i follow the instruction.. but the problem is sometimes i received the confirmation email and i try it on the other time i didn't got any incoming confirmation email.
- when i got the email and i click the confirmation link the wiki said that the link was expired.
- i don't know how to fixed it. pls i need help.
- thankyou. Alberteranio (talk) 07:17, 24 July 2018 (UTC)
- Which MediaWiki version are you using? Ciencia Al Poder (talk) 08:58, 24 July 2018 (UTC)
- i'm using Mediawiki 1.30.0.
- what's the problem?
- thank you Alberteranio (talk) 15:33, 24 July 2018 (UTC)
- You said that sometimes you get the email and sometimes you don't. Did you check your spam folder when you didn't get it? ☠MarkAHershberger☢(talk)☣ 16:21, 24 July 2018 (UTC)
- i always check the spam folder but still no incoming confirmation email. Alberteranio (talk) 17:43, 24 July 2018 (UTC)
- How is your wiki configured to send email? What operating system is it running on? ☠MarkAHershberger☢(talk)☣ 18:06, 24 July 2018 (UTC)
- Change from "LocalSettings.php" setting
- $wgEnableUserEmail
- $wgPasswordSender
- Then you will receive a confirmation message رامي 4554 (talk) 15:54, 30 December 2020 (UTC)
How to remove/disable page information in search results
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hi! I'm not really good with coding and are having problems with removing/disabling page information in my search results. I use the standard search engine. In the attached picture I have marked in red which information I want to remove/disable; I would like to just have list of page titles as search results.
https://olfred.org/nydansk/sojeksempel.jpg
The page in question is https://olfred.org/nydansk/orbaaw 94.126.6.22 (talk) 14:05, 23 July 2018 (UTC)
- Try setting the following in your Wiki's MediaWiki:Common.css,For future reference, you can make use of browser developer tools (F12) to select and edit the CSS of a web page's elements. AhmadF.Cheema (talk) 14:33, 23 July 2018 (UTC)
#mw-content-text > div > ul > li > div.searchresult { display: none } #mw-content-text > div > ul > li > div.mw-search-result-data { display: none } - It worked, thank you so much! 94.126.6.22 (talk) 08:58, 24 July 2018 (UTC)
Import fehlgeschlagen: Es wurde kein Interwiki-Präfix angegeben
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.
Ich wollte eine xml Datei importieren und bekomme diese Fehlermeldung.
Hat jemand einen Tip wie man das beseitigen kann ? Shadowslight 14:38, 23 July 2018 (UTC)
- Which kind of XML file? Which MediaWiki version? What are exact steps to reproduce? Malyacko (talk) 14:48, 24 July 2018 (UTC)
- Probably related: Project:Support desk/Flow/2018/07#h-How_to_create_a_Clickable_Button_in_MediaWiki?-2018-07-19T13:42:00.000Z. AhmadF.Cheema (talk) 15:42, 24 July 2018 (UTC)
- You need to add an interwiki prefix to the respective field on special page "Import", e.g. if the xml file is from English wikipedia use "en" as prefix, if you are importing from a wiki called "foo.bar.com" and you are not sure about its prefix invent one. In this case "foo" appears to be a reasonable prefix. Remember to always use the same prefix for xml files coming from the same wiki. Moreover always used different prefixes for different wiki, so imports from "foo.baz.com" need e.g. "foo2" or so as prefix. [[kgh]] (talk) 18:17, 24 July 2018 (UTC)
- Don't understand why this is necessary, but it is mentioned in the manual, and specifying "en" for pages exported from the English Wikipedia, for example, does avoid the error message.
- Ich verstehe nicht, warum dies benötigt ist, aber es ist eigentlich in der Dokumentation bewähnt. Wenn man «en» als Interwiki-Präfix eingibt, für Seiten die z.B. von der englischen Wikipedia exportiert wurde, so kann man diese Fehlermeldung vermeiden. Ernstkm (talk) 15:42, 16 April 2020 (UTC)
- This is to assure that content from a foreign wiki that is being imported is actually credited and assigned to the foreign wiki and it's editors. [[kgh]] (talk) 16:36, 16 April 2020 (UTC)
- Ah, okay, that seems legit. It's just a bit suprising that, on private MediaWiki installations, it's non-optional and it's not immediately obvious what to do with it. There is of course the manual, so it's all good. Ernstkm (talk) 01:18, 28 April 2020 (UTC)
URL transcoded/double-encoded when search for term with & or '
I'm not sure how to fix this. Hopefully someone can help.
Out of nowhere, when a term is searched that has an ampersand (&) or an apostrophe ('), the URL returns the article double-encoded. i.e. a term with an "&" is selected from the search box drop-down and instead of the standard %26, it returns as %2526, thus producing a "Bad title" error. With apostrophes in the term, it transcodes to %2527.
I'm using MediaWiki version 1.31. Stillhouse (talk) 18:08, 23 July 2018 (UTC)
- Does "Out of nowhere" means "after a server upgrade"? :)
- What server software are you using? apache on linux? Ciencia Al Poder (talk) 08:59, 24 July 2018 (UTC)
- Haha, I'm not certain to be honest. It wasn't something I had tested, so I really don't have a way of knowing when it exactly happened. And yes, Apache 2.2.34 on Linux. Stillhouse (talk) 18:33, 24 July 2018 (UTC)
- This seems to have been resolved by removing the ParserFunctions extension line of code from LocalSettings.php and re-adding it. Not sure why this worked, but it worked regardless. Stillhouse (talk) 21:56, 30 July 2018 (UTC)
Uploading problems after migrating from 1.26 to 1.31
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 recently updated our wiki from 1.26 to 1.31. I also updated the OS from Ubuntu 14.04 to Ubuntu 16.04 and from PHP 5 to PHP 7 in the process.
I am now unable to upload any file. I get the following message:
Could not open lock file for "mwstore://local-backend/local-public/b/b7/Images.jpg". Make sure your upload directory is configured correctly and your web server has permission to write to that directory. See https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:$wgUploadDirectory for more information.
I have double checked the upload folder permissions (set for www-data with 755), checked the new PHP7 php.ini file to be sure it was set for file uploads to be allowed, and have the $wgUploadDirectory set for my images folder.
What else am I missing?
Thanks! Serrkind (talk) 22:10, 23 July 2018 (UTC)
- Check if you have SELinux enabled, since it can restrict some operations even if permissions look right.
- Also check if PHP is running as the www-data user or it now uses a different user since the upgrade. Ciencia Al Poder (talk) 09:00, 24 July 2018 (UTC)
- I do not have SELinux enabled and as far as I can tell, PHP is running as the www-data user through Apache. Serrkind (talk) 13:50, 24 July 2018 (UTC)
- I was able to get the image upload fixed. I ended up changing the path for the $wgUploadDirectory to "./images" and that seemed to work.
- But now I cannot see any image I upload. All I see is the file name and some info about it, recreated below.
- File:Testimages.jpg
- No higher resolution available.
- Testimages.jpg (190x222 pixels, file size: 8 KB, MIME type: image/jpeg)
- Everything seems to work, but I cannot see the image or the thumbnail for the image. When I click on the link for the image I get a page saying there is currently now text in this page instead of seeing an image. Serrkind (talk) 15:10, 24 July 2018 (UTC)
- Since you've set the upload directory to ./images have you confirmed that images are actually being uploaded to the directory? Can you see new files in it?
- It sounds like they may be uploaded to somewhere else. ☠MarkAHershberger☢(talk)☣ 16:19, 24 July 2018 (UTC)
- Yes, I can confirm they are in the images folder. The weird thing is it looks like the link for the image is going to a wrong folder.
- If I click on a newly uploaded image, it give me the following URL:
- https://wiki.iac.isu.edu/index.php/Images/b/b7/Images.jpg which give me a blank page.
- But my folder should be images, not Images.
- If I take out the index.php, and just go to https://wiki.iac.isu.edu/images/b/b7/Images.jpg, I can see the image file.
- Could the capitalization be causing the issue? and where would I fix that? Anything referring to the images folder in my LocalSettings.php is lower case like the folder itself. Serrkind (talk) 16:59, 24 July 2018 (UTC)
- It looks like you've got $wgUploadPath set wrong. The upload path is where MediaWiki tells the browser to find the images and the directory is their location on disk.
- Does uploading work if you change $wgUploadDirectory back to the default of "${IP}/images"? ☠MarkAHershberger☢(talk)☣ 17:33, 24 July 2018 (UTC)
- (Also, your cert expired five years ago. Check out LetsEncrypt for a free way to keep your SSL cert up to date.) ☠MarkAHershberger☢(talk)☣ 17:39, 24 July 2018 (UTC)
- Both my $wgUploadDirectory and $wgUploadPath are set for "$IP/images". Uploading works with this setting, but the uploaded images are still not visible. Serrkind (talk) 19:39, 24 July 2018 (UTC)
- $wgUploadPath should be set to "{$wgScriptPath}/images" ☠MarkAHershberger☢(talk)☣ 20:15, 24 July 2018 (UTC)
- Your upload directory was configured outside of the MediaWiki directory before? If yes, then the problem is with open_basedir restriction. Ciencia Al Poder (talk) 20:34, 24 July 2018 (UTC)
- I changed the $wgUploadPath to "$wgScriptPath/images" and left $wgUploadDirectory as "$IP/images" and got the error that it couldn't create a thumbnail.
- I then reset my $wgTmpDirectory from "$wgUploadDirectory/temp" to "$IP/images/temp" and the thumbnail issue was resolved. The temp directory was present with the correct permissions the entire time, FYI.
- Thanks for the help. This ended up being more convoluted than I had anticipated. Serrkind (talk) 21:24, 24 July 2018 (UTC)
Class 'Net_SMTP' not found
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 can't send email, because Class 'Net_SMTP' not found. I run find vendor -type f -name "*.php" | xargs grep "class Net_SMTP", but nothing. I also composer update --no-dev.
Then I checked release tarball, I found Net_SMTP class in vendor/pear/net_smtp/Net/SMTP.php. But I can't find this file in my git installation. Perhaps I missing something?
My MW version: 1.31.0 星耀晨曦 (talk) 09:46, 24 July 2018 (UTC)
- Add
{ "require": { "pear/net_smtp": "*" } }
- to your composer.local.json and re-run composer update. ☠MarkAHershberger☢(talk)☣ 15:54, 24 July 2018 (UTC)
- Yes, I know this is a solution. But composer.json in repo doesn't have this depende. 星耀晨曦 (talk) 17:58, 24 July 2018 (UTC)
- Good thing I also submitted a patch to fix this. ;) ☠MarkAHershberger☢(talk)☣ 18:05, 24 July 2018 (UTC)
LDAP Authentication
Hi,
I have media wiki version 1.30. I have read that LDAP Authentiation extension has not been updated fully for version 1.27+.
Wanted to know if only LdapAutoAuthentication does not work in version 1.30 i.e user will always need to enter their credentials while logging.
Can you please confirm if my understanding is correct and this is the only thing which is missing?
Also, another question : LDAP Authentication is fully supported by media wiki versions before 1.27?
Thanks! Sneha.1812 (talk) 10:31, 24 July 2018 (UTC)
- If you need LDAP, check out the work we've been doing.
- I've created a demonstration on github and would love to get feedback on it. ☠MarkAHershberger☢(talk)☣ 16:16, 24 July 2018 (UTC)
- Thanks for the update. However, I needed more information pertaining to LDP Authetication in Media wiki 1.30 version. Wanted to know if only LdapAutoAuthentication does not work in version 1.30 i.e user will always need to enter their credentials while logging.
- Can you please confirm if my understanding is correct and this is the only thing which is missing? Sneha.1812 (talk) 09:15, 7 August 2018 (UTC)
- I don't know if it works or not. I suspect that LdapAutoAuthentication does not work, though, for supported versions of MediaWiki. I doubt that is the only thing missing. ☠MarkAHershberger☢(talk)☣ 18:16, 9 August 2018 (UTC)
Attribution when using API
On my website which will use your API to link to Wikipedia and Wiktionary content what do I need to put on my site for attribution, trademark, and such to be in compliance with your license? Lyleholc (talk) 16:03, 24 July 2018 (UTC)
- See w:Wikipedia:Attribution Ciencia Al Poder (talk) 09:17, 25 July 2018 (UTC)
- Actually, w:en:Wikipedia:Reusing_Wikipedia_content is probably a better source for this information. —TheDJ (Not WMF) (talk • contribs) 08:39, 26 July 2018 (UTC)
visualEditor can`t work in Mediawiki
I work Mediawiki 1.27.4 on Ubuntu16.04 , it work`s good and i want to try visualEditor recently ,but after i configure all the settings over , i found wiki is not work ,there is nothing show me.
--------------------------------
require_once "$IP/extensions/VisualEditor/VisualEditor.php";
wfLoadExtension( 'VisualEditor' );
// Enable by default for everybody
$wgDefaultUserOptions['visualeditor-enable'] = 1;
// Optional: Set VisualEditor as the default for anonymous users
// otherwise they will have to switch to VE
// $wgDefaultUserOptions['visualeditor-editor'] = "visualeditor";
// Don't allow users to disable it
$wgHiddenPrefs[] = 'visualeditor-enable';
// OPTIONAL: Enable VisualEditor's experimental code features
#$wgDefaultUserOptions['visualeditor-enable-experimental'] = 1;
$wgVirtualRestConfig['modules']['parsoid'] = array(
// URL to the Parsoid instance
// Use port 8142 if you use the Debian package
'url' => 'http://192.168.1.200/wiki/:8000',
// Parsoid "domain", see below (optional)
'domain' => 'localhost',
);
-----------------------
mwApis:
- # This is the only required parameter,
# the URL of you MediaWiki API endpoint.
uri: 'http://192.168.1.200/wiki/api.php'
# The "domain" is used for communication with Visual Editor
# and RESTBase. It defaults to the hostname portion of
# the `uri` property below, but you can manually set it
# to an arbitrary string.
domain: '192.168.1.200' # optional 118.187.53.37 (talk) 08:54, 25 July 2018 (UTC)
- Please describe the errors.
- Have you installed Parsoid and RESTBase? Are they running? Have you checked your firewall isn't blocking connections to the ports they're using? Ciencia Al Poder (talk) 09:12, 25 July 2018 (UTC)
- Both of them need installed ? i`ve just installed Parsoid. 118.187.53.37 (talk) 09:51, 25 July 2018 (UTC)
- Both of them need installed ? i`ve just installed Parsoid. 118.187.53.37 (talk) 09:50, 25 July 2018 (UTC)
- Yes, you need both Ciencia Al Poder (talk) 19:03, 25 July 2018 (UTC)
Using alternate alphabetical order in Special:AllPages
Hi, I'm new to coding and MediaWiki and hope I'm not asking a stupid question.
I have set up a MediaWiki at https://olfred.org/nydansk/orbaaw to use a dictionary for a new written language for spoken Danish. I use Special:AllPages to list all the word-entries in the dictionary alphabetically. This written language uses an altered alphabet with 31 letters: a á b d ð e é f g h i j k l m n ñ o ó p r s t u v w y æ ø å œ
The problem is that the standard alphabetical order (incl. the Danish) sorts e.g. words starting with "á" after "z", instead of between "a" and "b".
My question is: Is there any way that I can change the alphabetical order Special:AllPages follows? Or can I create some other sort-mechanism that follows the special alphabet? 94.126.6.22 (talk) 09:35, 25 July 2018 (UTC)
- This is process is called 'collation'. We consider Special:AllPages not to be content and thus it doesn't have options to configure how it should be presented to end users.
- Likely it follows some sort of technical order (which exactly i'm not sure, unicode?).
- I suspect this is ticket phab:T32753. —TheDJ (Not WMF) (talk • contribs) 14:58, 25 July 2018 (UTC)
Upgrade issues from 1.18 -> 1.31 and Postgresql
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 been working to upgrade from an older install of MediaWiki, version 1.15 or 1.18, to 1.31. The server is running RHEL 6 with PHP 7.1 and is using a PostgreSQL 8.4 database server on a separate host. I have been able to connect using the psql utility from the web server to the database server using the credentials supplied in the LocalSettings.php file with no issues.
When I try to run the update script (php update.php from the maintenance directory) I receive the following error (with debugging turned on)
# php maintenance/update.php
PHP Notice: Undefined index: SERVER_NAME in /web/www/wiki/includes/GlobalFunctions.php on line 1432
PHP Notice: Undefined index: SERVER_NAME in /web/www/wiki/includes/GlobalFunctions.php on line 1432
MediaWiki 1.31.0 Updater
Your composer.lock file is up to date with current dependencies!
PHP Notice: Undefined index: SERVER_NAME in /web/www/wiki/includes/GlobalFunctions.php on line 1432
[d49237ccf4ac539e18de8426] [no req] Wikimedia\Rdbms\DBQueryError from line 1457 of /web/www/wiki/includes/libs/rdbms/database/Database.php: A database query error has occurred. Did you forget to run your application's database schema updater after upgrading?
Query: SET bytea_output = 'escape'
Function: Wikimedia\Rdbms\DatabasePostgres::open
Error: 42704 ERROR: unrecognized configuration parameter "bytea_output"
Backtrace:
#0 /web/www/wiki/includes/libs/rdbms/database/Database.php(1427): Wikimedia\Rdbms\Database->makeQueryException(string, string, string, string)
#1 /web/www/wiki/includes/libs/rdbms/database/Database.php(1200): Wikimedia\Rdbms\Database->reportQueryError(string, string, string, string, boolean)
#2 /web/www/wiki/includes/libs/rdbms/database/DatabasePostgres.php(161): Wikimedia\Rdbms\Database->query(string, string)
#3 /web/www/wiki/includes/libs/rdbms/database/Database.php(371): Wikimedia\Rdbms\DatabasePostgres->open(string, string, string, string)
#4 /web/www/wiki/includes/libs/rdbms/database/Database.php(350): Wikimedia\Rdbms\Database->doInitConnection()
#5 /web/www/wiki/includes/libs/rdbms/database/Database.php(463): Wikimedia\Rdbms\Database->initConnection()
#6 /web/www/wiki/includes/libs/rdbms/loadbalancer/LoadBalancer.php(1090): Wikimedia\Rdbms\Database::factory(string, array)
#7 /web/www/wiki/includes/libs/rdbms/loadbalancer/LoadBalancer.php(885): Wikimedia\Rdbms\LoadBalancer->reallyOpenConnection(array, Wikimedia\Rdbms\DatabaseDomain)
#8 /web/www/wiki/includes/libs/rdbms/loadbalancer/LoadBalancer.php(746): Wikimedia\Rdbms\LoadBalancer->openConnection(integer, boolean, integer)
#9 /web/www/wiki/includes/GlobalFunctions.php(2801): Wikimedia\Rdbms\LoadBalancer->getConnection(integer, array, boolean)
#10 /web/www/wiki/maintenance/Maintenance.php(1311): wfGetDB(integer, array, boolean)
#11 /web/www/wiki/maintenance/update.php(144): Maintenance->getDB(integer)
#12 /web/www/wiki/maintenance/doMaintenance.php(94): UpdateMediaWiki->execute()
#13 /web/www/wiki/maintenance/update.php(245): require_once(string)
#14 {main}
I also tried to rename LocalSettings.php to LocalSettings.php.BAK and go through the setup process to generate a new LocalSettings.php file and had the same results after entering the database information on the setup page.
Since this error appeared to be related to PostgreSQL 9.x I even tried commenting the specific line out in includes/libes/rdbms/database/DatabasePostgres.php. When I did that I received a different error
# php maintenance/update.php
PHP Notice: Undefined index: SERVER_NAME in /web/www/wiki/includes/GlobalFunctions.php on line 1432
PHP Notice: Undefined index: SERVER_NAME in /web/www/wiki/includes/GlobalFunctions.php on line 1432
MediaWiki 1.31.0 Updater
Your composer.lock file is up to date with current dependencies!
â§¼config-postgres-oldâ§½
Any help would be greatly appreciated.
Thanks. ECS-Sark (talk) 22:30, 25 July 2018 (UTC)
- ***UPDATE
- After some additional digging I have found that the version of PostgreSQL that I am using (PostgreSQL 8.4) is no longer supported for MediaWiki 1.31 and (most likely) 1.30. I am unable to update the database at this time given other users for this specific database and I don't want to create a separate database just for MW for now.
- According to https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/core/+/1.31.0/RELEASE-NOTES-1.31 and https://www.mediawiki.org/wiki/Release_notes/1.31 PostgreSQL 9.2 is required. I had been relying on pages that still showed 8.3+ was supported. These pages (and likely others) should be updated to reflect the change:
- I would also recommend an update to https://www.mediawiki.org/wiki/MediaWiki_1.31 to specifically call out the requirement for PostgreSQL 9.2+
- I was able to get 1.30 installed and working by manually adding a datatype into the SQL database as described by @Anomie on March 27, 2018 in his post at https://phabricator.wikimedia.org/T190539. This involved manually connecting to the database and updating the uploadstash table.
- Good luck to others that might find themselves in this situation. ECS-Sark (talk) 03:38, 26 July 2018 (UTC)
Installed MediaWiki 1.31, changed default skin, now MWException
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.
Dear Co-Users & Developers,
I am fairly new to MediaWiki and only did a few private installation.
Here is my current specs:
- Windows Server 2012 R2
- XAMPP 7.2.6-0
- MediaWiki 1.31
- PHP 7.2.6 (cli) (built: May 23 2018 20:51:04)
- MySQL Ver 15.1 Distrib 10.1.33-MariaDB, for Win32 (AMD64)
I change the default skin in LocalSettings.php to DuskToDawn. When I now try to change my personal skin to something else, like vector the system will give me the following exeption (however a preview works):
[db0de67a67cca661801ed4cf] /index.php/Special:Preferences MWException from line 193 of C:\bin\server\XAMPP\htdocs\includes\preferences\DefaultPreferencesFactory.php: Global default '' is invalid for field theme
Backtrace:
#0 C:\bin\server\XAMPP\htdocs\includes\preferences\DefaultPreferencesFactory.php(143): MediaWiki\Preferences\DefaultPreferencesFactory->loadPreferenceValues(User, RequestContext, array)
#1 C:\bin\server\XAMPP\htdocs\includes\preferences\DefaultPreferencesFactory.php(1419): MediaWiki\Preferences\DefaultPreferencesFactory->getFormDescriptor(User, RequestContext)
#2 C:\bin\server\XAMPP\htdocs\includes\specials\SpecialPreferences.php(129): MediaWiki\Preferences\DefaultPreferencesFactory->getForm(User, RequestContext)
#3 C:\bin\server\XAMPP\htdocs\includes\specials\SpecialPreferences.php(86): SpecialPreferences->getFormObject(User, RequestContext)
#4 C:\bin\server\XAMPP\htdocs\includes\specialpage\SpecialPage.php(522): SpecialPreferences->execute(NULL)
#5 C:\bin\server\XAMPP\htdocs\includes\specialpage\SpecialPageFactory.php(568): SpecialPage->run(NULL)
#6 C:\bin\server\XAMPP\htdocs\includes\MediaWiki.php(288): SpecialPageFactory::executePath(Title, RequestContext)
#7 C:\bin\server\XAMPP\htdocs\includes\MediaWiki.php(861): MediaWiki->performRequest()
#8 C:\bin\server\XAMPP\htdocs\includes\MediaWiki.php(524): MediaWiki->main()
#9 C:\bin\server\XAMPP\htdocs\index.php(42): MediaWiki->run()
#10 {main}
I am an embedded C and some python programmer however php is not really my expertise. I think it says that the value which is being save to the DB is not correct.
If I try the same with the DefaultSkin change in the LocalSettings.php, I get something similar however since the wiki is currently live I can not take an outage to send the Exception trace.
Looking forward to your suggestions.
Best regards,
Jan Jaehnsen (talk) 02:09, 26 July 2018 (UTC)
- So DuckToDawn works when it's set as default? And you do get the same "global default invalid" error when the default is something different, and you're trying to switch to DuskToDawn (or any skin)?
- Have you changed $wgDefaultUserOptions? Sam Wilson 05:30, 26 July 2018 (UTC)
- After reading T181898, I guess that you can solve this by setting $wgDefaultTheme to a fitting value. 2001:16B8:10CA:5600:3DBE:A355:A02A:67B0 (talk) 07:12, 26 July 2018 (UTC)
- Hi there, me again.
- I got it - thanks. It was a bit confusing to follow the conversation from the link but after several tries, I did this and it works. Thanks a lot User:2001:16B8:10CA:5600:3DBE:A355:A02A:67B0
- Solution:
- Just add something like
$wgDefaultTheme = "dark";- or
$wgDefaultTheme = "default";- In my LocalSettings.php, I have
$wgDefaultSkin = "DuskToDawn";- to your LocalSettings.php and it works. Jaehnsen (talk) 02:44, 27 July 2018 (UTC)
get_db_data description?
Is there any detailed manual/ description of how to use the parser get_db_data?
I am currently using this piece of code
{{#get_db_data:
db=mydb
|from=tabledata
|data=ts=ts,obs=observer,des=description
}}
But I cannot go any furhter because I do not know which options get_db_data supports
For example I am facing the problem of how to obtain the same effect of the sql command SELECT DISTINCT
Thank you 130.237.166.111 (talk) 09:46, 26 July 2018 (UTC)
- I'm pinging @Yaron Koren since #get_db_data is part of External Data.
- Have you looked at the #get_db_data's usage information? I don't see any mention of
DISTINCTon the page, nor do I see any in the source of the extension. - If you need to use
SELECT DISTINCT, you'll probably need to file a phabricator task. ☠MarkAHershberger☢(talk)☣ 20:41, 26 July 2018 (UTC) - I found in some wikimedia page that is possible to use DISTINCT in such a way
|data=ts= DISTINCT ts- How ever I have the same problem now with
group_concat - Basically I need to obtain the same results of the sql command
SELECT Tab1.col1, GROUP_CONCAT(DISTINCT Tab2.col4)FROM Tab1INNER JOIN Tab2 ON Tab1.col1 = Tab2.col3GROUP BY Tab1.col1- I wonder if this can be really done with #get_db_data parser... 130.237.166.111 (talk) 08:45, 27 July 2018 (UTC)
LDAP Authentication in Mediawiki 1.31 - Login failed
LDAP Authentication in Mediawiki 1.31 - Login failed
We have setup mediawiki in mac os 10.11.7. But ldap login is not possible . Below are the entries in my LocalSettings.php file:
require_once ("$IP/extensions/LdapAuthentication/LdapAuthentication.php");
$wgAuth = new LdapAuthenticationPlugin();
$wgLDAPDomainNames = array(
"ldap.robosoftin.com"
);
$wgLDAPServerNames = array(
"ldap.robosoftin.com" => "ldap.robosoftin.com"
);
$wgLDAPSearchStrings = array(
"ldap.robosoftin.com" => "USER-NAME@robosoftin.com"
);
$wgLDAPDebug = 1;
$wgDebugLogGroups['ldap'] = '/tmp/debug.log';
$wgLDAPEncryptionType = array(
"ldap.roboosftin.com" => "tls"
);
$wgLDAPBaseDNs = array(
"ldap.robosoftin.com" => "CN=Users,dc=RoboServer"
);
$wgLDAPSearchAttributes = array(
"ldap.robosoftin.com" => "mail" );
$wgLDAPPort = array(
"ldap.robosoftin.com" => "389"
);
$wgLDAPPreferences = array(
'ldap.robosoftin.com' => array( 'email' => 'mail')
); 111.93.214.250 (talk) 11:27, 26 July 2018 (UTC)
- Please see the new suite of LDAP extensions. For information on configuring it, see this demonstration. ☠MarkAHershberger☢(talk)☣ 20:44, 26 July 2018 (UTC)
Deleted LocalSettings.php
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,
- by some accident my colleague deleted the LocalSettings.php. What would be the best way to restore this?
- I already copied another LocalSetting.php in there and tried changing everything obvious like:
- - $wgSitename
- - $wgMetaNamespace
- - $wgServer
- - $wgEmergencyContact
- - $wgPasswordSender
- - and all the Database Settings
- Still it doesn't work. I also tried setting up a new wiki and connecting it with my existing database and nothing. Is there anything i'm missing? Do I have to look in other places as well? 212.201.7.58 (talk) 11:50, 26 July 2018 (UTC)
- May be the hosting company can help you to provide a copy of the files? Usual hosting does copies several times a month Fokebox (talk) 14:38, 27 July 2018 (UTC)
- Yes but they want a bunch of Money, so i was hopping i could fix it myself. 109.90.185.111 (talk) 14:59, 27 July 2018 (UTC)
- IMO, you can see your error log to help restore your wiki. 星耀晨曦 (talk) 15:13, 26 July 2018 (UTC)
- Were would I find my error log because my site has nothing in the console and I can't find it in my server data 109.90.185.111 (talk) 15:40, 26 July 2018 (UTC)
- The location depends on your operating system, web server and installation method. If you using apache, usually located
/var/log/httpd. You can also runhttpd -t -D DUMP_RUN_CFGto get config file path. If you have custom configurations for the web server, you should mainly use your configuration. 星耀晨曦 (talk) 15:55, 26 July 2018 (UTC) - Heres the Error Message (Replaced the actual URL with "URL"):
- Got error 'PHP message: PHP Fatal error: Uncaught Exception: /var/www/vhosts/URL/extensions/MultimediaViewer/extension.json does not exist! in /var/www/vhosts/URL/includes/registration/ExtensionRegistry.php:99\nStack trace:\n#0 /var/www/vhosts/URL/includes/GlobalFunctions.php(120): ExtensionRegistry->queue('/var/www/vhosts...')\n#1 /var/www/vhosts/URL/LocalSettings.php(142): wfLoadExtension('MultimediaViewe...')\n#2 /var/www/vhosts/URL/includes/WebStart.php(102): require_once('/var/www/vhosts...')\n#3 /var/www/vhosts/URL/index.php(40): require('/var/www/vhosts...')\n#4 {main}\n thrown in /var/www/vhosts/URL/includes/registration/ExtensionRegistry.php on line 99\n' 109.90.185.111 (talk) 14:58, 27 July 2018 (UTC)
- This is easy to fix:
- You cannot load the MultimediaViewer extension with wfLoadExtension. Instead, you need to use require_once();. 2001:16B8:101B:FD00:514D:647:1579:82F9 (talk) 15:12, 27 July 2018 (UTC)
- I have now got the backup from the provider but still get this error message:
- Got error 'PHP message: PHP Fatal error: Uncaught Error: Call to a member function getCode() on null in /var/www/vhosts/URL/includes/user/User.php:1594\nStack trace:\n#0 /var/www/vhosts/URL/includes/user/User.php(5272): User::getDefaultOptions()\n#1 /var/www/vhosts/URL/includes/user/User.php(2884): User->loadOptions()\n#2 /var/www/vhosts/URL/includes/context/RequestContext.php(364): User->getOption('language')\n#3 /var/www/vhosts/URL/includes/Message.php(380): RequestContext->getLanguage()\n#4 /var/www/vhosts/URL/includes/Message.php(1275): Message->getLanguage()\n#5 /var/www/vhosts/URL/includes/Message.php(842): Message->fetchMessage()\n#6 /var/www/vhosts/URL...\n' 212.201.7.58 (talk) 14:44, 31 July 2018 (UTC)
- Ok i'm stupid i forgot that i changed the DB password. 212.201.7.58 (talk) 14:47, 31 July 2018 (UTC)
Installation using percona cluster
I've tried to install Mediawiki 1.31 in Ubuntu 16.04 with apache 2.4.18, php 7.0.30, using a 3 machine percona mysql cluster (5.7.22). The cluster is working ok, but when installation wizard is about to finish, this error appears.
Incluyendo extensiones… hecho
Configurando la base de datos… hecho
Creando tablas… hecho
Creando el usuario de la base de datos… hecho
Llenando la tabla interwiki predeterminada… hecho
Iniciando las estadísticas… hecho
Generando claves secretas… hecho
Evitar ejecutar actualizaciones innecesarias… hecho
Creando la cuenta de usuario del administrador… hecho
Creando página principal con contenido predeterminado… falló
Información
No se pudo insertar la página principal: A database query error has occurred. Did you forget to run your application's database schema updater after upgrading? Query: SELECT GET_LOCK('695f25141b5213ec078ceed7dbde8264bc651753', 30) AS lockstatus Function: ApiStashEdit::checkCache Error: 1105 Percona-XtraDB-Cluster prohibits use of GET_LOCK with pxc_strict_mode = ENFORCING (10.0.2.80)
Percona cluster runs using pxc_strict_mode=ENFORCING, and one of its limitations is explicit table locking, which seems to be what installation is trying to use here.
https://www.percona.com/doc/percona-xtradb-cluster/LATEST/features/pxc-strict-mode.html
If I change pxc_strict_mode to permissive, will the installation be consistent over the cluster?
Maybe there are other situations when get lock or other Percona limitation is needed.
Is Mediawiki installation compatible with Percona xtradb cluster?
Any help please!! thanks in advance
Juanjo Scejja (talk) 12:54, 26 July 2018 (UTC)
- I do not know the answer to your question, but it is an important question to answer. I've filed a task for it. ☠MarkAHershberger☢(talk)☣ 20:58, 26 July 2018 (UTC)
- Also, since you seem to want answers to Percona-specific question, you might ask in the Percona forums. ☠MarkAHershberger☢(talk)☣ 21:03, 26 July 2018 (UTC)
- The lock is acquired for application level locking, so its not actually used for DB stuff. Thus it should be perfectly consistent even in a replicated setup (At least for that particular usage of GET_LOCK in ApiStashEdit).
- See includes/api/ApiStashEdit.php line 184. Bawolff (talk) 22:18, 26 July 2018 (UTC)
- If I put pxc-strict-mode=PERMISSIVE for the last part of the installation finish ok.
- If I shutdown the master cluster node, main website page is still shown, so seems to be ok. I will do some more tests.
- But following database recommendations I put it back to ENFORCING. Basically they say that this mode was "specifically implemented to catch issues like tables without PRIMARY KEYS", I will see if I can install other extensions I need.
- Just in case someone use Mediawiki with this cluster, I put it on Percona forums too.
- Thanks a lot!! Scejja (talk) 12:45, 27 July 2018 (UTC)
- Also in ApiStashEdit, there is another GET_LOCK when saving a simple page (see error below). It seems to be the same situation as before, but I do not really know the source code.
- If I put the database in PERMISSIVE mode, it seems to be working, every node says that is synced when runing clustercheck, or in variable wsrep_local_state_comment. If I start only one database node the page content is always the last edited content. Doing this for each node is the same.
- [6b3b7a3854c3c202b3f9b747] /index.php?title=Mi_p%C3%A1gina&action=submit Wikimedia\Rdbms\DBQueryError from line 1457 of /var/www/mediawiki/includes/libs/rdbms/database/Database.php: A database query error has occurred. Did you forget to run your application's database schema updater after upgrading?
- Query: SELECT GET_LOCK('d5a201ea6c014b0b414bbf94a7854d8b738e73a8', 30) AS lockstatus
- Function: ApiStashEdit::checkCache
- Error: 1105 Percona-XtraDB-Cluster prohibits use of GET_LOCK with pxc_strict_mode = ENFORCING (10.0.2.90)
- Backtrace:
- #0 /var/www/mediawiki/includes/libs/rdbms/database/Database.php(1427): Wikimedia\Rdbms\Database->makeQueryException(string, integer, string, string)
- #1 /var/www/mediawiki/includes/libs/rdbms/database/Database.php(1200): Wikimedia\Rdbms\Database->reportQueryError(string, integer, string, string, boolean)
- #2 /var/www/mediawiki/includes/libs/rdbms/database/DatabaseMysqlBase.php(1222): Wikimedia\Rdbms\Database->query(string, string)
- #3 /var/www/mediawiki/includes/api/ApiStashEdit.php(288): Wikimedia\Rdbms\DatabaseMysqlBase->lock(string, string, integer)
- #4 /var/www/mediawiki/includes/page/WikiPage.php(2070): ApiStashEdit::checkCache(Title, WikitextContent, User)
- #5 /var/www/mediawiki/includes/page/WikiPage.php(1655): WikiPage->prepareContentForEdit(WikitextContent, NULL, User, string, boolean)
- #6 /var/www/mediawiki/includes/EditPage.php(2214): WikiPage->doEditContent(WikitextContent, string, integer, boolean, User, string, array, integer)
- #7 /var/www/mediawiki/includes/EditPage.php(1506): EditPage->internalAttemptSave(array, boolean)
- #8 /var/www/mediawiki/includes/EditPage.php(652): EditPage->attemptSave(array)
- #9 /var/www/mediawiki/includes/actions/EditAction.php(60): EditPage->edit()
- #10 /var/www/mediawiki/includes/actions/SubmitAction.php(38): EditAction->show()
- #11 /var/www/mediawiki/includes/MediaWiki.php(500): SubmitAction->show()
- #12 /var/www/mediawiki/includes/MediaWiki.php(294): MediaWiki->performAction(Article, Title)
- #13 /var/www/mediawiki/includes/MediaWiki.php(861): MediaWiki->performRequest()
- #14 /var/www/mediawiki/includes/MediaWiki.php(524): MediaWiki->main()
- #15 /var/www/mediawiki/index.php(42): MediaWiki->run()
- #16 {main}
- These are the log warnigns:
- 2018-07-30T08:51:05.171655Z 95 [Warning] WSREP: Percona-XtraDB-Cluster doesn't recommend use of GET_LOCK with pxc_strict_mode = PERMISSIVE
- 2018-07-30T08:51:05.343432Z 94 [Warning] WSREP: Percona-XtraDB-Cluster doesn't recommend use of GET_LOCK with pxc_strict_mode = PERMISSIVE
- 2018-07-30T08:51:05.343699Z 94 [Note] WSREP: MDL conflict db= table=e478d062c6a2125d8427745eebdb33097053f507 ticket=MDL_EXCLUSIVE solved by abort
- 2018-07-30T08:51:05.560095Z 95 [Warning] WSREP: Percona-XtraDB-Cluster doesn't recommend use of RELEASE_LOCK with pxc_strict_mode = PERMISSIVE
- 2018-07-30T08:51:05.562135Z 94 [Warning] WSREP: Percona-XtraDB-Cluster doesn't recommend use of RELEASE_LOCK with pxc_strict_mode = PERMISSIVE
- 2018-07-30T08:51:05.753378Z 94 [Warning] WSREP: Percona-XtraDB-Cluster doesn't recommend use of DML command on a table (webane.searchindex) that resides in non-transactional storage engine with pxc_strict_mode = PERMISSIVE
- 2018-07-30T08:51:05.848151Z 94 [Warning] WSREP: Percona-XtraDB-Cluster doesn't recommend use of GET_LOCK with pxc_strict_mode = PERMISSIVE
- 2018-07-30T08:51:05.857637Z 94 [Warning] WSREP: Percona-XtraDB-Cluster doesn't recommend use of RELEASE_LOCK with pxc_strict_mode = PERMISSIVE
- 2018-07-30T08:51:07.108108Z 98 [Warning] WSREP: Percona-XtraDB-Cluster doesn't recommend use of GET_LOCK with pxc_strict_mode = PERMISSIVE
- 2018-07-30T08:51:07.231709Z 98 [Warning] WSREP: Percona-XtraDB-Cluster doesn't recommend use of GET_LOCK with pxc_strict_mode = PERMISSIVE
- 2018-07-30T08:51:07.455051Z 98 [Warning] WSREP: Percona-XtraDB-Cluster doesn't recommend use of RELEASE_LOCK with pxc_strict_mode = PERMISSIVE
- 2018-07-30T08:51:07.456148Z 98 [Warning] WSREP: Percona-XtraDB-Cluster doesn't recommend use of RELEASE_LOCK with pxc_strict_mode = PERMISSIVE
- Selected engine was InnoDB on installation.
- Is safe to use this cluster with this warnigns?
- Thanks
- Juanjo 46.222.178.216 (talk) 00:17, 30 July 2018 (UTC)
- I hit this problem on a Percona cluster too with a migrated system - I couldn't edit an article.
- Since our wiki is lightly used, I hacked /includes/libs/rdbms/database/DatabaseMysqlBase.php and changed some methods - lockIsFree (to return true), lock (to return false) and unlock (to return false).
- This let me edit articles. 89.250.45.11 (talk) 12:19, 8 October 2018 (UTC)
How to move whole content from wiki 1.18 to new serwer with 1.31 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.
- Hi, I have problem how to move content (pages, categories, files, etc,) from one server with wiki 1.18 to other server with wiki 1.31.
- I coudln't make standard upgrade cause of php upgrade errors so I made new serwer?
- Mario 217.153.177.52 (talk) 14:34, 26 July 2018 (UTC)
- What sort of errors are you running into? ☠MarkAHershberger☢(talk)☣ 21:04, 26 July 2018 (UTC)
- There are currently two solutions:
- Fix bug to update database schema
- Using dumpBackup.php to creates an XML dump for export 星耀晨曦 (talk) 14:57, 26 July 2018 (UTC)
- I have create new serwer, than solution 2 (dumpBackup.php) and copy images. That's works. 217.153.177.52 (talk) 08:51, 4 September 2018 (UTC)
Installation Issue
I'm getting an error when trying to simply install Mediawiki on a server of mine. I've dumped all code on the server as per installation instructions and when I visit the "mw-config/index.php" all I get is:
MWException from line 1339 of /var/www/html/mediawiki-1.30.0/includes/parser/Preprocessor_DOM.php: PPFrame_DOM::expand: Invalid parameter type
Backtrace:
#0 /var/www/html/mediawiki-1.30.0/includes/parser/Parser.php(2921): PPFrame_DOM->expand(NULL, integer)
Not really sure what this means and I seem to be the first person to have ever come across this, going by Google search results. Any help on this would be appreciated 197.89.37.97 (talk) 15:07, 26 July 2018 (UTC)
- What version of php are you using? ☠MarkAHershberger☢(talk)☣ 21:06, 26 July 2018 (UTC)
Please tell me about measures to display GoogleMaps.
I am using mediawiki (Ver1.18.2) at Localhost at XAMPP.
Since last month, the display of GoogleMap says, "This page did not load Google Maps correctly. ] Is displayed and it is troubled.
The map display is described as follows.
{{# widget: Google Maps
| output = embed
| lat = 43.0682756
| lng = 141.3524456
| zoom = 10
| centermarker = yes
</ span>
I a ecause Extension "Googlemap" folder and "Map" related folder are not created, it is assumed that Extension is not used.
(WEB amateur, please forgive me)
I did the following two things, but I still failed to display the map.
Action 1...)localsetting.php
Write the following in [localsetting.php].
- GoogleMapsAPIKey,
$wgGoogleMapsKeys = array( "localhost/mediawiki/index.php" => "API Key");
Action2...)Write APIKey directly to page editing screen
{{# widget: Google Maps
|key=AIPIKeyu
tput = embed
| lat = 43.0682756
| lng = 141.3524456
| zoom = 10
| centermarker = yes
</ span>
Please tell me what to do. 122.208.181.218 (talk) 04:13, 27 July 2018 (UTC)
- Off-topic, but please first upgrade to a secure version. Version 1.18.x has been unsupported since 2012. After that, see Category:Google Maps extensions Malyacko (talk) 07:13, 27 July 2018 (UTC)
我安装好VisualEditor后不能保存数据,报个“Http 400”错误
1.我安装好VisualEditor后不能保存数据,报个“Http 400”错误,----第一个错误
2,第二个是visualeditor与Wikieditor两者切换报错:
从服务器加载数据时出错:apierror-visualeditor-docserver-http。
我的配置信息:centos7,wiki1.30,VisualEditor1.30,parsoid为0.8 ,可以单独使用,restbase可以单独使用端口(只有一个页面为搜索的框),另外可视化编辑器可以显示效果
求解决方案!!!
谢谢!
1.LocalSettings配置信息
wfLoadExtension( 'WikiEditor' );
wfLoadExtension( 'VisualEditor' );
// Enable by default for everybody
$wgDefaultUserOptions['visualeditor-enable'] = 1;
// Optional: Set VisualEditor as the default for anonymous users
// otherwise they will have to switch to VE
// $wgDefaultUserOptions['visualeditor-editor'] = "visualeditor";
// Don't allow users to disable it
$wgHiddenPrefs[] = 'visualeditor-enable';
// OPTIONAL: Enable VisualEditor's experimental code features
#$wgDefaultUserOptions['visualeditor-enable-experimental'] = 1;
$wgVirtualRestConfig['modules']['parsoid'] = array(
// URL to the Parsoid instance
// Use port 8142 if you use the Debian package
'url' => 'http://192.168.131.164:8000',
// Parsoid "domain", see below (optional)
'domain' => '192.168.131.164',
// Parsoid "prefix", see below (optional)
'prefix' => '192.168.131.164'
);
$wgVirtualRestConfig['modules']['restbase'] = array(
'url' => 'http://192.168.131.164:7231',
'domain' => '192.168.131.164', # matches the "domain" used above
'forwardCookies' => false,
'parsoidCompat' => false
);
$wgVisualEditorFullRestbaseURL = 'http://192.168.131.164:7231/{domain}/';
2,parsoid配置信息
services:
- module: lib/index.js
entrypoint: apiServiceWorker
conf:
# For backwards compatibility, and to continue to support non-static
# configs for the time being, optionally provide a path to a
# localsettings.js file. See localsettings.example.js
#localsettings: ./localsettings.js
# Set your own user-agent string
# Otherwise, defaults to:
# 'Parsoid/<current-version-defined-in-package.json>'
#userAgent: 'My-User-Agent-String'
strictAcceptCheck: false
# Configure Parsoid to point to your MediaWiki instances.
mwApis:
- # This is the only required parameter,
# the URL of you MediaWiki API endpoint.
uri: 'http://192.168.131.164/mediawiki/api.php'
# The "domain" is used for communication with Visual Editor
# and RESTBase. It defaults to the hostname portion of
# the `uri` property above, but you can manually set it
# to an arbitrary string. It must match the "domain" set
# in $wgVirtualRestConfig.
domain: '192.168.131.164' # optional
# To specify a proxy (or proxy headers) specific to this prefix
# (which overrides defaultAPIProxyURI). Alternatively, set `proxy`
# to `null` to override and force no proxying when a default proxy
# has been set.
#proxy:
# uri: 'http://my.proxy:1234/'
# headers: # optional
# 'X-Forwarded-Proto': 'https'
# We pre-define wikipedias as 'enwiki', 'dewiki' etc. Similarly
# for other projects: 'enwiktionary', 'enwikiquote', 'enwikibooks',
# 'enwikivoyage' etc.
# The default for this is false. Uncomment the line below if you want
# to load WMF's config for wikipedias, etc.
#loadWMF: true
# A default proxy to connect to the API endpoints.
# Default: undefined (no proxying).
# Overridden by per-wiki proxy config in setMwApi.
#defaultAPIProxyURI: 'http://proxy.example.org:8080'
# Enable debug mode (prints extra debugging messages)
#debug: true
# Use the PHP preprocessor to expand templates via the MW API (default true)
#usePHPPreProcessor: false
# Use selective serialization (default false)
#useSelser: true
# Use the PHP preprocessor to expand templates via the MW API (default true)
#usePHPPreProcessor: false
# Use selective serialization (default false)
#useSelser: true
# Allow cross-domain requests to the API (default '*')
# Sets Access-Control-Allow-Origin header
# disable:
#allowCORS: false
# restrict:
#allowCORS: 'some.domain.org'
# Allow override of port/interface:
#serverPort: 8000
#serverInterface: '127.0.0.1'
# Enable linting of some wikitext errors to the log
#linting: true
#linter:
# sendAPI: false # Send lint errors to MW API instead of to the log
# apiSampling: 10 # Sampling rate (1 / 10)
# Require SSL certificates to be valid (default true)
# Set to false when using self-signed SSL certificates
#strictSSL: false
# Use a different server for CSS style modules.
# Leaving it undefined (the default) will use the same URI as the MW API,
# changing api.php for load.php.
#modulesLoadURI: 'http://example.org/load.php'
3.restbase配置信息
services:
- name: restbase
module: hyperswitch
conf:
port: 7231
salt: secret
default_page_size: 125
user_agent: RESTBase
ui_name: RESTBase
ui_url: https://www.mediawiki.org/wiki/RESTBase
ui_title: RESTBase docs
spec:
x-request-filters:
- path: lib/security_response_header_filter.js
x-sub-request-filters:
- type: default
name: http
options:
allow:
- pattern: http://192.168.131.164/mediawiki/api.php
forward_headers: true
- pattern: http://192.168.131.164:8000
forward_headers: true
- pattern: /^https?:\/\//
paths:
/{domain:192.168.131.164}:
x-modules:
- path: projects/example.yaml
options:
action:
# XXX Check API URL!
apiUriTemplate: http://192.168.131.164/mediawiki/api.php
# XXX Check the base RESTBase URI
baseUriTemplate: "{{'http://192.168.131.164:7231/{domain}/v1'}}"
parsoid:
# XXX Check Parsoid URL!
host: http://192.168.131.164:8000
table:
backend: sqlite
dbname: db.sqlite3
pool_idle_timeout: 20000
retry_delay: 250
retry_limit: 10
show_sql: false
mobileapps:
host: https://appservice.wmflabs.org
purged_cache_control: s-maxage=0, max-age=86400
purged_cache_control_client_cache: s-maxage=0, max-age=300 211.141.83.125 (talk) 09:28, 27 July 2018 (UTC)
phabricator
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 phabricator account is deactivated. I request help Emperador312 (talk) 11:00, 28 July 2018 (UTC)
- See Talk:Phabricator/Help/2018#h-phabricator-2018-07-28T10:59:00.000Z AKlapper (WMF) (talk) 16:50, 28 July 2018 (UTC)
Restoring specific-Revisions Problem (consecutive MW Updates).
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.
MediaWiki: 1.31.0
PHP: 7.0.30-0+deb9u1 (fpm-fcgi)
MariaDB: 10.1.26-MariaDB-0+deb9u1
(http://ringofbrodgar.com) (just in case: +Show bots)
Hi.
I'm an Admin on some wiki, that was recently updated to MW 1.31.0.
And it seem that this triggered a problem with restore revisions older than a particular date.
The related date in question seem to point an other WM update installation. MW 1.21.1.
Is this making any sense ?
Any known solutions for this, that I can pass on to the sysop of the wiki ?
Anything I can do as Admin here. (probably not, better ask anyway)
(owner/sysop is kindly hosting the wiki, but/and relaying on its users/admins to pass on any core problems)
(there where of course also other things updated/changed while the core-MW-version was updated ... but I have no reliable data on those)
The error messages I collected while trying to restore effected pages(full restore)/revisions(selective restore):
Error undeleting page Some or all of the undeletion failed: Invalid or missing revision. You may have a bad link, or the revision may have been restored or removed from the archive.
The revision #0 of the page named "<pagename>" does not exist. This is usually caused by following an outdated history link to a page that has been deleted. Details can be found in the deletion log.
Internal error
[df5b7d69e1520c3751ee7415] /w/index.php?title=Special:Undelete&action=submit MediaWiki\Storage\IncompleteRevisionException from line 308 of /<...>/w/includes/Storage/RevisionStore.php: sha1 field must not be !
Backtrace:
#0 /<...>/w/includes/Storage/RevisionStore.php(352): MediaWiki\Storage\RevisionStore->failOnEmpty(string, string)
#1 /<...>/w/includes/Revision.php(1123): MediaWiki\Storage\RevisionStore->insertRevisionOn(MediaWiki\Storage\RevisionArchiveRecord, Wikimedia\Rdbms\DatabaseMysqli)
#2 /<...>/w/includes/page/PageArchive.php(678): Revision->insertOn(Wikimedia\Rdbms\DatabaseMysqli)
#3 /<...>/w/includes/page/PageArchive.php(419): PageArchive->undeleteRevisions(array, boolean, string)
#4 /<...>/w/includes/specials/SpecialUndelete.php(1146): PageArchive->undelete(array, string, array, boolean, User)
#5 /<...>/w/includes/specials/SpecialUndelete.php(201): SpecialUndelete->undelete()
#6 /<...>/w/includes/specialpage/SpecialPage.php(522): SpecialUndelete->execute(NULL)
#7 /<...>/w/includes/specialpage/SpecialPageFactory.php(568): SpecialPage->run(NULL)
#8 /<...>/w/includes/MediaWiki.php(288): SpecialPageFactory::executePath(Title, RequestContext)
#9 /<...>/w/includes/MediaWiki.php(861): MediaWiki->performRequest()
#10 /<...>/w/includes/MediaWiki.php(524): MediaWiki->main()
#11 /<...>/w/index.php(42): MediaWiki->run()
#12 {main}
MW Update data:
- - 1.31.0 - 14 July 2018
- - 1.25.x - (unknown)
- - (unknown, probably none)
- - 1.21.1 - [11 July 2013 <- 25 June 2013] <= raw date-range(newer<-older) boundary for this particular revision restore failure problem.
- - (unknown) MvGulik (talk) 20:06, 29 July 2018 (UTC)
- I can't help you right now, but I've reported a bug here for your problem. Please subscribe to it. ☠MarkAHershberger☢(talk)☣ 20:42, 29 July 2018 (UTC)
- I have not seen this error before, so I am just guessing currently:
- The error message "sha1 field must not be !" seems to point to the fact that the sha1 fields of (some) revisions is empty. Can you check, if this is the case?
- If this is the problem, then the maintenance script populateRevisionSha1.php might help you! 2001:16B8:10DE:BD00:1C06:EE07:4CD1:97F (talk) 21:46, 29 July 2018 (UTC)
- >Please subscribe to it.
- In progress (Patiently Waiting for Approval)
- >The error message "sha1 field must not be !" seems to point to the fact that the sha1 fields of (some) revisions is empty. Can you check, if this is the case?
- I have not found an example page that has deletedrevisions that cross the target date-range, but here is one where the active revisions do start to show empty sha1 data on older revisions.
- API query: http://ringofbrodgar.com/w/api.php?action=query&prop=revisions&titles=Haven_and_Hearth_Wiki&rvprop=timestamp%7Ccomment%7Csha1&rvstart=2013-07-16T08:42:14Z MvGulik (talk) 01:08, 30 July 2018 (UTC)
- Are you try populateRevisionSha1.php? 星耀晨曦 (talk) 17:10, 30 July 2018 (UTC)
- I would now try running the maintenance script populateRevisionSha1.php. Afterwards your API call should show hashes also for those revisions, which currently do not have one. 2001:16B8:100A:F500:EC3F:FDD2:42F2:21A4 (talk) 19:44, 30 July 2018 (UTC)
- Roger.
- As general wiki-Admin(Administrator level) I can't, but I will definitely pass is along to the wiki owner/sysop.
- But I also like to wait a bit before I do, to see if some other options might pop-up.
- (Probably contact wiki-sysop on Friday, hoping he has some free time in the weekend to run that fix.) MvGulik (talk) 21:30, 30 July 2018 (UTC)
- Update: The maintenance script "populateRevisionSha1.php" was run. But ... it did not resulted in the empty sha1 fields being filled.
- Any additional ideas on potential reasons or solutions appreciated. MvGulik (talk) 09:40, 3 August 2018 (UTC)
- I think it might be possible that all sha1 fields must be empty for the script to actually do anything. So it might help to first empty the whole DB column, which this script would fill and to then run it again. However, although I think this once helped me, I am not 100% sure this helps. Be sure to have a backup! 2001:16B8:1046:8C00:BD29:2B3E:4B90:FB21 (talk) 12:58, 3 August 2018 (UTC)
- I was kinda sceptical about this potential reason why it did not work. And the suggested possible workaround was a bit to iffy for my taste to pass it on.
- But, as it turns out:
- 1) That stated reason was correct.
- But ...
- 2) The easier, and more palatable, solution turned out to be to run the populateRevisionSha1 maintenance script with a "--force" option. (Somehow, ie: That's all I know) MvGulik (talk) 18:49, 13 August 2018 (UTC)
- Marking as Resolved. MvGulik (talk) 18:51, 13 August 2018 (UTC)
Different article counts
Sometimes, there's a difference between updateArticleCount.php and {{NUMBEROFARTICLES}} (API shows this number too). This happens in around 1:100 articles(all are real articles with internal links). Where does this come from? 37.251.227.76 (talk) 11:42, 30 July 2018 (UTC)
- I'm guessing it is reflecting the setting of $wgContentNamespaces. Have you read Article count? ☠MarkAHershberger☢(talk)☣ 03:03, 31 July 2018 (UTC)
- Yes, i saw both articles. But I've never changed any variables or installed extensions, that could manipulate the article counter. This problem exists since I installed Mediawiki (first was 1.24 or 1.25, actually 1.31). Asking the DB directly, it gives the same result as updateArticleCount.php. 37.251.229.174 (talk) 14:51, 31 July 2018 (UTC)
- So the point is that {{NUMBEROFARTICLES}} only shows the number of pages in the namespaces that are listed in $wgContentNamespaces. I believe the other measures you're seeing count the total number of pages across the wiki. ☠MarkAHershberger☢(talk)☣ 16:29, 31 July 2018 (UTC)
Adding the website triggers spam alert
Please "cex (DOT) io" as Official website to https://www.wikidata.org/wiki/Q22907145. When I try to do it, it says spam alert. Germartin1 (talk) 20:58, 30 July 2018 (UTC)
- Please ask folks on wikidata.org. This website is mediawiki.org and not wikidata.org. Malyacko (talk) 07:14, 31 July 2018 (UTC)
Clickable button
Hi,
I'm trying to add a clickable button to my wiki (1.31). I successfully imported the template and added a Scribunto extension. In more details, I
- downloaded the archive and extracted it in the extensions/Scribunto folder and
- added in the LocalSettings:
wfLoadExtension( 'Scribunto' ); $wgScribuntoDefaultEngine = 'luastandalone';
I see Scribunto in Special:Version. However, when I try to add a clickable button as described here
I get text:
{{#if:
| [FAQ {{#if:
|
}} Frequently asked questions<nowiki>{{#if:
|
}}]
| [https://canadasimple.com/index.php?title=FAQ&action=edit&redlink=1 {{#if:
|
}}Frequently asked questions {{#if:
|
}}]
}}
instead of an actual button. Please, advise what else should I do? Should I "Set execute permissions for the Lua binaries bundled with this extension" ? If yes, how to do so?
Thank you 142.157.25.184 (talk) 21:09, 30 July 2018 (UTC)
- It looks like you're missing the ParserFunctions extension. Do you have it installed? ☠MarkAHershberger☢(talk)☣ 03:10, 31 July 2018 (UTC)
- Thank you. I installed ParserFunctions, now I see instead of that text a simple link "Frequently asked questions". Not a button anyway. What could I do to make it a button?
- So far, I didn't add neither configuration lines for ParserFunctions, nor set execute permissions for the Lua binaries (for Scribunto). Could any of these be the reason?
- Thank you. 142.157.25.184 (talk) 20:48, 1 August 2018 (UTC)
- The border is supplied with CSS. Only the Vector skin provides the necessary CSS via $wgResourceModuleSkinStyles Which skin are you using? ☠MarkAHershberger☢(talk)☣ 01:15, 2 August 2018 (UTC)
- Vector, a default one. Should I add something to LocalSettings? 142.157.25.184 (talk) 12:37, 2 August 2018 (UTC)
- Could you post the relevant bits of your LocalSettings.php or even the whole thing (with passwords removed)? ☠MarkAHershberger☢(talk)☣ 13:21, 2 August 2018 (UTC)
- I haven't added much to it. Basically, only
- wfLoadExtension( 'Scribunto' );
- $wgScribuntoDefaultEngine = 'luastandalone';
- wfLoadExtension( 'ParserFunctions' ); 142.157.25.184 (talk) 15:01, 2 August 2018 (UTC)
- I went and looked at your wiki and noticed that the buttons were showing up on this page. After some experimentation, it looks like they'll show up if you add
{{TemplateBox}}to the page. That should not be necessary. ☠MarkAHershberger☢(talk)☣ 17:52, 2 August 2018 (UTC) - Thanks. Any ideas why Template:TemplateBox might be needed?
- Also, when adding it I get an error "Lua error: expandTemplate: invalid title "Template:TemplateBox/i18n/Template:Fallback". What could it be? 142.157.25.184 (talk) 21:59, 3 August 2018 (UTC)
- I wish I understood why TemplateBox template was needed. I think its a bug, though.
- You're missing the fallback template. ☠MarkAHershberger☢(talk)☣ 23:59, 3 August 2018 (UTC)
- Thank you. I added the Fallback Template. Now I don't see an error when I use {{TemplateBox}} on the page, but I see a template, which I don't want to see there.
- If I remove a {{TemplateBox}}, the buttons are not working again. 142.157.25.184 (talk) 21:14, 6 August 2018 (UTC)
CAPTCHA not working
I have been trying to register to use the forum on freesangha.com which lead me here tor technical support. The CAPTCHA version is not working on the registration page. Can someone either notify the admin of the site or correct the problem PLEASE? The message it displays is reCAPTCHA V1 IS SHUTDOWN Direct site owners to g.co/recaptcha/upgrade. 1Buddhist (talk) 22:34, 30 July 2018 (UTC)
- The message you mention points to this page on Google, not to this forum.
- I'm not sure how you ended up here after using the forum software on freesangha.com, but we have no influence over that site. ☠MarkAHershberger☢(talk)☣ 03:17, 31 July 2018 (UTC)
Blocking
who controls the blocking software other than EN - wikipedia. 50.254.21.213 (talk) 01:22, 31 July 2018 (UTC)
- It is largely each wiki's community who control it. ☠MarkAHershberger☢(talk)☣ 03:11, 31 July 2018 (UTC)
- i see foundation contractor employees in Wikitech-l] https://phabricator.wikimedia.org/T199917
- send out messages to the community, is this just for the EN edition ? 50.254.21.213 (talk) 12:41, 31 July 2018 (UTC)
- The only thing I know about this initiative is what I've read in the past five minutes, but it looks like it is designed to give wiki administrators (not just one enwiki, but on all wikis: see this description of the project on meta).
- Most on-wiki administrators are not Foundation contractors or employees. ☠MarkAHershberger☢(talk)☣ 13:53, 31 July 2018 (UTC)
- i tryed to ask this ? on the Phabricator page but is blocked from IP. 50.254.21.213 (talk) 12:59, 31 July 2018 (UTC)
- Have you tried creating an account and using that? ☠MarkAHershberger☢(talk)☣ 13:54, 31 July 2018 (UTC)
- i have found that if you go to an administrator for help, and they do not like the exchange down the road on there talk page, to end the conversion they just block you, and if they keep open my talk page and you dare them they shut that down too. and no one cares, even they have abused there powers.
- to avoid edit wars (other opinoins) just block. 50.254.21.213 (talk) 14:11, 31 July 2018 (UTC)
- and this is going to the tea room, in trying to get edit help. 50.254.21.213 (talk) 14:42, 31 July 2018 (UTC)
- I'm sorry to hear that. I think it would help if you used an account instead of just an ip address, but since I haven't seen the situation, I cannot say more. ☠MarkAHershberger☢(talk)☣ 16:31, 31 July 2018 (UTC)
内部エラー
日本語&英語版では出ないエラーが発生しました。インストール方法は各言語同一の方法(mw-config)
mysql>innodb>utf8
言語:zh(中文)
mediawiki 1.30
Backtrace:
#0 [internal function]: AutoLoader::autoload(string)
#1 C:\xampp\htdocs\local.ssl\zh\w\languages\classes\LanguageZh.php(64): spl_autoload_call(string)
#2 C:\xampp\htdocs\local.ssl\zh\w\languages\LanguageConverter.php(929): ZhConverter->loadDefaultTables()
#3 C:\xampp\htdocs\local.ssl\zh\w\languages\LanguageConverter.php(515): LanguageConverter->loadTables()
#4 C:\xampp\htdocs\local.ssl\zh\w\languages\LanguageConverter.php(840): LanguageConverter->autoConvertToAllVariants(string)
#5 C:\xampp\htdocs\local.ssl\zh\w\languages\Language.php(4175): LanguageConverter->findVariantLink(string, Title, boolean)
#6 C:\xampp\htdocs\local.ssl\zh\w\includes\MediaWiki.php(95): Language->findVariantLink(string, Title)
#7 C:\xampp\htdocs\local.ssl\zh\w\includes\MediaWiki.php(140): MediaWiki->parseTitle()
#8 C:\xampp\htdocs\local.ssl\zh\w\includes\MediaWiki.php(767): MediaWiki->getTitle()
#9 C:\xampp\htdocs\ysmwiki.dip.jp.ssl\zh\w\includes\MediaWiki.php(523): MediaWiki->main()
#10 C:\xampp\htdocs\local.ssl\zh\w\index.php(43): MediaWiki->run()
#11 {main} 240F:67:3B8D:1:4A:6F26:AA68:5393 (talk) 03:17, 31 July 2018 (UTC)
Cannot access the database: Server sent charset unknown to the client. Please, report to the developers (localhost)
Im trying to install 1.31.0 on MySQL 8.0.12 and im receiving the error 'Cannot access the database: Server sent charset unknown to the client. Please, report to the developers (localhost)' when running through the Wiki Installation, can anyone help? 86.17.13.109 (talk) 08:47, 31 July 2018 (UTC)
- I assume this error indicates it is actually connecting to the database? and that the issue is something else? 86.17.13.109 (talk) 08:51, 31 July 2018 (UTC)
- I believe I have fixed this error by adding:
[client]default-character-set=utf8[mysql]default-character-set=utf8[mysqld]collation-server = utf8_unicode_cicharacter-set-server = utf8- into my.ini (im running windows)
- But now I get error: The server requested authentication method unknown to the client (localhost) 86.17.13.109 (talk) 08:58, 31 July 2018 (UTC)
- Hey, I have the same error (The server requested authentication method unknown), could you resolve the issue? IkonAlex (talk) 16:36, 16 November 2018 (UTC)
- You can try googling "The server requested authentication method unknown", it gives some information about the error and how to fix that. Ciencia Al Poder (talk) 10:21, 19 November 2018 (UTC)
Math extension and database issues
I'm attempting to add the math extension to my Mediawiki site. I've added the folder math to my extensions folder, i've added wfLoadExtension( 'Math' ); to my localsettings.php, i've run in the web updater mw-config and on the pages where I'm using <math> I'm getting the following error:
Original exception: [W2AkgTJXkHsACT8HjVAAAACJ] 2018-07-31 08:57:38: Fatal exception of type "Wikimedia\Rdbms\DBQueryError"
Has anyone run into this? It is a database creation issue? Keep in mind that I'm not very familiar with much coding. Any info is greatly appreciated! 37.117.110.222 (talk) 08:59, 31 July 2018 (UTC)
- Set the following in your LocalSettings.php to get a more detailed error message:For details see, Manual:How to debug. AhmadF.Cheema (talk) 09:35, 31 July 2018 (UTC)
$wgShowExceptionDetails = true; $wgDevelopmentWarnings = true; error_reporting( -1 ); ini_set( 'display_errors', 1); error_reporting(E_ALL); $wgShowDBErrorBacktrace = true; $wgShowSQLErrors = true;
- When I place that code in my localsettings.php, i just get a blank page on wikipedia without any text. 37.117.110.222 (talk) 09:50, 31 July 2018 (UTC)
- I've also added :
ini_set( 'display_errors', 1 );- But I'm still seeing a blank screen. 37.117.110.222 (talk) 09:58, 31 July 2018 (UTC)
- Let's start from the beginning. As a first principle, you should always test changes with a copy that is separate from your "live" wiki.
- I maintain a test copy on my desktop PC ("localhost"). I expect the software to break and have full access to all of the tools I need to fix the problem.
- A first approach is to install a clean copy (new install) of the latest MediaWiki (1.31.0). Does this new install work? Yes, keep going. No, there is something wrong with your OS or server configuration.
- With your new install, compare the configuration file LocalSettings.php with the one that is broken. Do you see anything different? Perhaps not immediately, so install the math extension into the new install. It should work.
- Important: Extensions should be added to the end of LocalSettings.php - it makes a difference.
- Also important: The extension version must match your release. For the math extension, you should use the stable version 1.31.0 with MediaWiki 1.31.0. Newer extensions (like the "master" version) are not for production.
- Next, gradually copy over the settings from your "broken" LocalSettings.php. I expect that you will discover the problem at this step - one of your settings not related to the math extension is causing a problem.
- This is the general approach. I'm going to this level of detail because you may have encountered the same problem I had. See Project:Support desk/Flow/2018/06#h-Upgrade_from_1.27.4_to_1.31.0_fails_during_database_update-2018-06-16T18:10:00.000Z (Upgrade from 1.27.4 to 1.31.0 fails during database update).
- The solution was to remove $wgDBmwschema from LocalSettings.php. If this doesn't work, the above approach will help you find the problem. Lady G2016 (talk) 00:51, 1 August 2018 (UTC)
- The original problem occurred when the database was updated. The wiki was working before the extension was installed.
- Here is an alternative approach that will help debug a wiki update (this is how I found my problem in Project:Support desk/Flow/2018/06#h-Upgrade_from_1.27.4_to_1.31.0_fails_during_database_update-2018-06-16T18:10:00.000Z ).
- Create a clean installation as I described before and install the math extension. Update the new database. You now have a clean copy of LocalSettings.php.
- Next, modify the "clean" copy of LocalSettings.php to use your "broken" database.
- Change only the database settings ( $wgDBtype, $wgDBserver, $wgDBname, $wgDBuser, $wgDBpassword). LocalSettings.php will now act on your "broken" database.
- Run the update script. The update should run with no errors. If you have errors, the problem is in the database.
- As before, add settings from your "broken" LocalSettings.php configuration until the problem occurs. You must restore the "broken" database every time, as the upgrade process will modify the database. Lady G2016 (talk) 21:19, 1 August 2018 (UTC)
Error: Cannot find module 'service-runner'
when i install restbase over ,i want to test wheanther it`s work , i use "node server.js " ,and it show me like this , what should i do?
root@yao:/var/www/html/w/extensions/restbase# node server.js
internal/modules/cjs/loader.js:583
throw err;
^
Error: Cannot find module 'service-runner'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:581:15)
at Function.Module._load (internal/modules/cjs/loader.js:507:25)
at Module.require (internal/modules/cjs/loader.js:637:17)
at require (internal/modules/cjs/helpers.js:20:18)
at Object.<anonymous> (/var/www/html/w/extensions/restbase/server.js:6:21)
at Module._compile (internal/modules/cjs/loader.js:689:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
at Module.load (internal/modules/cjs/loader.js:599:32)
at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
at Function.Module._load (internal/modules/cjs/loader.js:530:3) 吾乃天谴 (talk) 11:29, 31 July 2018 (UTC)
- Did you run npm install from the restbase directory? Ciencia Al Poder (talk) 09:28, 1 August 2018 (UTC)
- Hi!I installed Viusaleditor alredy !But i got a new problem ,when i use Ubuntu`s firefox,i want to make a test,i insert a picture ,it always show me "Internal error: server failed to save temporary files."
- And when i test in windows Chrome it show me "Error storage file to hiding place" 吾乃天谴 (talk) 08:17, 7 August 2018 (UTC)
How to create a list of recent changes of all subpages of a page?
I am looking to have a list of recent changes but for all the subpages of a page. Currently I can only list changes to a specific page like this:
Nischayn22 (talk) 11:40, 31 July 2018 (UTC)
- There's currently no way to do that.
- A possibility is to transclude {{Special:PrefixIndex/Basepagename}} on a page, and use Special:RecentChangesLinked for that page. However, if a new subpage is added, you may need to manually purge or do a null edit on the page that transcludes the Special:PrefixIndex. Ciencia Al Poder (talk) 09:26, 1 August 2018 (UTC)
LDAP authentication stopped working
I have small team wiki running MW 1.30.0 with LDAP Authentication Plugin 2.10.0. Today I noticed that it doesn't authenticate me against company Active Directory any more. So I started digging:
- the AD is responding fine, checked with both Apache LDAP module and ldapsearch utility
- LDAP log doesn't show anything (which is odd)
- tcpdump shows that no AD authentication server is ever sent
I am at a loss as to how can I troubleshoot this.
require_once "$IP/extensions/LdapAuthentication/LdapAuthentication.php";
$wgAuth = new LdapAuthenticationPlugin();
$wgLDAPDomainNames = [ 'vf-root' ];
$wgLDAPServerNames = [ 'vf-root' => 'oskarmobil.cz' ];
$wgLDAPEncryptionType = [ 'vf-root' => 'clear' ];
$wgLDAPPort = [ 'vf-root' => 389 ];
$wgLDAPProxyAgent = [ 'vf-root' => 'CN=Ldapsearch,OU=Service Accounts,OU=Resources,DC=oskarmobil,DC=cz' ];
$wgLDAPProxyAgentPassword = [ 'vf-root' => '***' ];
$wgLDAPBaseDNs = [ 'vf-root' => "OU=vf_sync,DC=oskarmobil,DC=cz" ];
$wgLDAPSearchAttributes = [ 'vf-root' => "sAMAccountName" ];
$wgLDAPRetrievePrefs = [ 'vf-root' => "true" ];
$wgLDAPPreferences = [ 'vf-root' => [ 'email' => 'mail','realname' => 'displayname' ] ];
One observation. I am sure the login screen used to show text field for selecting the AD domain -- that one isn't showing anymore. 89.102.227.236 (talk) 12:17, 31 July 2018 (UTC)
- Did you update the wiki or did nothing change and this suddenly happened? ☠MarkAHershberger☢(talk)☣ 01:18, 2 August 2018 (UTC)
- I am not aware of any change and 'find -mtime' in the wiki install directory doesn't reveal any changes. 89.102.227.236 (talk) 08:20, 2 August 2018 (UTC)
- There was a major authentication rewrite and I'm not sure that extension has been updated. There are a few of us, though, who have been working on replacements. I have a demonstration cookbook available if you want to try (feedback welcome).
- As far as your current setup, I don't think I can really help with a setup that looks like it is supposed to work and now it doesn't. It sounds like a problem that would happen when you upgraded, though. ☠MarkAHershberger☢(talk)☣ 13:15, 2 August 2018 (UTC)
Cannot list transcluded templates
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I'm currently not able to:
- View pages that transcluding a template via Special:WhatLinksHere
- View list of used templates when editing
Also, cascading protections doesn't work at all.
Maybe there is a problem for listing transcluded templates? PlavorSeol (talk) 13:13, 31 July 2018 (UTC)
- Describe what's blocking you from seeing that information (an error, information is not displayed, ???) Ciencia Al Poder (talk) 09:24, 1 August 2018 (UTC)
- I don't know what blocks me from seeing that.
- It just not showing that information without any error message or additional information. PlavorSeol (talk) 19:03, 1 August 2018 (UTC)
- Maybe you're looking at the wrong place? Have you tried Special:WhatLinksHere? Ciencia Al Poder (talk) 19:54, 1 August 2018 (UTC)
- Of course, but Special:WhatLinksHere does not show any transclusions. PlavorSeol (talk) 02:33, 2 August 2018 (UTC)
- Sure it does Ciencia Al Poder (talk) 09:09, 2 August 2018 (UTC)
- Assuming you're talking about your own wiki, maybe there's a problem with the Manual:Job queue. Of course, that's only a guess. Ciencia Al Poder (talk) 09:26, 2 August 2018 (UTC)
Wikibase: Exception after installation
Hi,
after installing Wikibase in my Mediawiki following installation manual (Wikibase/Installation) an exception occurs:
Version: MediaWiki 1.31.0
Wikibase: Wikibase-REL1_31-8178d16.tar.gz
adding
$wgEnableWikibaseClient = true; require_once "$IP/extensions/Wikibase/client/WikibaseClient.php"; require_once "$IP/extensions/Wikibase/client/ExampleSettings.php";
to LocalSettings.php Mediawiki shows an Exception on all content pages with this message (I replaced install-path and db_user):
Cannot access the database: Access denied for user '*db_user*'@'localhost' to database 'repo' (localhost))
Backtrace:
- 0 /*path*/includes/libs/rdbms/loadbalancer/LoadBalancer.php(1134): Wikimedia\Rdbms\Database->reportConnectionError('Access denied f...')
- 1 /*path*/includes/libs/rdbms/loadbalancer/LoadBalancer.php(749): Wikimedia\Rdbms\LoadBalancer->reportConnectionError()
- 2 /*path*/includes/dao/DBAccessBase.php(64): Wikimedia\Rdbms\LoadBalancer->getConnection(0, Array, 'repo')
- 3 /*path*/extensions/Wikibase/lib/includes/Store/Sql/SiteLinkTable.php(221): DBAccessBase->getConnection(-1)
- 4 /*path*/extensions/Wikibase/lib/includes/Store/CachingSiteLinkLookup.php(147): Wikibase\Lib\Store\Sql\SiteLinkTable->getItemIdForLink('dbregiowiki_tes...', 'Hauptseite')
- 5 /*path*/extensions/Wikibase/lib/includes/Store/CachingSiteLinkLookup.php(75): Wikibase\Lib\Store\CachingSiteLinkLookup->getAndCacheItemIdForLink('dbregiowiki_tes...', 'Hauptseite')
- 6 /*path*/extensions/Wikibase/client/includes/LangLinkHandler.php(101): Wikibase\Lib\Store\CachingSiteLinkLookup->getItemIdForLink('dbregiowiki_tes...', 'Hauptseite')
- 7 /*path*/extensions/Wikibase/client/includes/LangLinkHandler.php(331): Wikibase\Client\LangLinkHandler->getEntityLinks(Object(Title))
- 8 /*path*/extensions/Wikibase/client/includes/LangLinkHandler.php(352): Wikibase\Client\LangLinkHandler->getEffectiveRepoLinks(Object(Title), Object(ParserOutput))
- 9 /*path*/extensions/Wikibase/client/includes/Hooks/ParserOutputUpdateHookHandlers.php(97): Wikibase\Client\LangLinkHandler->addLinksFromRepository(Object(Title), Object(ParserOutput))
- 10 /*path*/extensions/Wikibase/client/includes/Hooks/ParserOutputUpdateHookHandlers.php(65): Wikibase\Client\Hooks\ParserOutputUpdateHookHandlers->doContentAlterParserOutput(Object(Title), Object(ParserOutput))
- 11 /*path*/includes/Hooks.php(177): Wikibase\Client\Hooks\ParserOutputUpdateHookHandlers::onContentAlterParserOutput(Object(WikitextContent), Object(Title), Object(ParserOutput))
- 12 /*path*/includes/Hooks.php(205): Hooks::callHook('ContentAlterPar...', Array, Array, NULL)
- 13 /*path*/includes/content/AbstractContent.php(520): Hooks::run('ContentAlterPar...', Array)
- 14 /*path*/includes/poolcounter/PoolWorkArticleView.php(144): AbstractContent->getParserOutput(Object(Title), 201587, Object(ParserOptions))
- 15 /*path*/includes/poolcounter/PoolCounterWork.php(123): PoolWorkArticleView->doWork()
- 16 /*path*/includes/page/Article.php(604): PoolCounterWork->execute()
- 17 /*path*/includes/actions/ViewAction.php(68): Article->view()
- 18 /*path*/includes/MediaWiki.php(500): ViewAction->show()
- 19 /*path*/includes/MediaWiki.php(294): MediaWiki->performAction(Object(Article), Object(Title))
- 20 /*path*/includes/MediaWiki.php(861): MediaWiki->performRequest()
- 21 /*path*/includes/MediaWiki.php(524): MediaWiki->main()
- 22 /*path*/index.php(42): MediaWiki->run()
- 23 {main} Joe4738 (talk) 17:44, 31 July 2018 (UTC)
- Did everything work in this very MediaWiki version as expected before you installed Wikibase? This looks like an issue with connecting to the database in general... Malyacko (talk) 10:09, 1 August 2018 (UTC)
- everything works fine there, I can connect to db ...
- But ... I cant find anything like database 'repo' , which new tables should be there now?
- How can I test this issue?
- Adding
- ----
- $wgEnableWikibaseClient = true;
- require_once "$IP/extensions/Wikibase/client/WikibaseClient.php";
- #require_once "$IP/extensions/Wikibase/client/ExampleSettings.php";
- ----
- i get:
- MediaWiki internal error.
- Original exception: [46cb639b0d5d9773beebc35f] /wiki/Hauptseite MWException from line 52 of /*path*/extensions/Wikibase/lib/includes/Store/Sql/SiteLinkTable.php: $wiki must be a string or false.
- Backtrace:
- #0 /*path*/extensions/Wikibase/client/includes/Store/Sql/DirectSqlStore.php(316): Wikibase\Lib\Store\Sql\SiteLinkTable->__construct(string, boolean, NULL)
- #1 /*path*/extensions/Wikibase/client/includes/WikibaseClient.php(890): Wikibase\Client\Store\Sql\DirectSqlStore->getSiteLinkLookup()
- #2 /*path*/extensions/Wikibase/client/includes/Hooks/ParserOutputUpdateHookHandlers.php(45): Wikibase\Client\WikibaseClient->getLangLinkHandler()
- #3 /*path*/extensions/Wikibase/client/includes/Hooks/ParserOutputUpdateHookHandlers.php(64): Wikibase\Client\Hooks\ParserOutputUpdateHookHandlers::newFromGlobalState()
- #4 /*path*/includes/Hooks.php(177): Wikibase\Client\Hooks\ParserOutputUpdateHookHandlers::onContentAlterParserOutput(WikitextContent, Title, ParserOutput)
- #5 /*path*/includes/Hooks.php(205): Hooks::callHook(string, array, array, NULL)
- #6 /*path*/includes/content/AbstractContent.php(520): Hooks::run(string, array)
- #7 /*path*/includes/poolcounter/PoolWorkArticleView.php(144): AbstractContent->getParserOutput(Title, integer, ParserOptions)
- #8 /*path*/includes/poolcounter/PoolCounterWork.php(123): PoolWorkArticleView->doWork()
- #9 /*path*/includes/page/Article.php(604): PoolCounterWork->execute()
- #10 /*path*/includes/actions/ViewAction.php(68): Article->view()
- #11 /*path*/includes/MediaWiki.php(500): ViewAction->show()
- #12 /*path*/includes/MediaWiki.php(294): MediaWiki->performAction(Article, Title)
- #13 /*path*/includes/MediaWiki.php(861): MediaWiki->performRequest()
- #14 /*path*/includes/MediaWiki.php(524): MediaWiki->main()
- #15 /*path*/index.php(42): MediaWiki->run()
- #16 {main}
- Exception caught inside exception handler: [46cb639b0d5d9773beebc35f] /wiki/Hauptseite MWException from line 52 of /*path*/extensions/Wikibase/lib/includes/Store/Sql/SiteLinkTable.php: $wiki must be a string or false.
- Backtrace:
- #0 /*path*/extensions/Wikibase/client/includes/Store/Sql/DirectSqlStore.php(316): Wikibase\Lib\Store\Sql\SiteLinkTable->__construct(string, boolean, NULL)
- #1 /*path*/extensions/Wikibase/client/includes/WikibaseClient.php(1047): Wikibase\Client\Store\Sql\DirectSqlStore->getSiteLinkLookup()
- #2 /*path*/extensions/Wikibase/client/includes/Hooks/SidebarHookHandlers.php(62): Wikibase\Client\WikibaseClient->getOtherProjectsSidebarGeneratorFactory()
- #3 /*path*/extensions/Wikibase/client/includes/Hooks/SidebarHookHandlers.php(48): Wikibase\Client\Hooks\SidebarHookHandlers::newFromGlobalState()
- #4 /*path*/extensions/Wikibase/client/includes/Hooks/SidebarHookHandlers.php(114): Wikibase\Client\Hooks\SidebarHookHandlers::getInstance()
- #5 /*path*/includes/Hooks.php(177): Wikibase\Client\Hooks\SidebarHookHandlers::onSidebarBeforeOutput(SkinVector, array)
- #6 /*path*/includes/Hooks.php(205): Hooks::callHook(string, array, array, NULL)
- #7 /*path*/includes/skins/Skin.php(1290): Hooks::run(string, array)
- #8 /*path*/includes/skins/SkinTemplate.php(481): Skin->buildSidebar()
- #9 /*path*/includes/skins/SkinTemplate.php(249): SkinTemplate->prepareQuickTemplate()
- #10 /*path*/includes/OutputPage.php(2388): SkinTemplate->outputPage()
- #11 /*path*/includes/exception/MWException.php(160): OutputPage->output()
- #12 /*path*/includes/exception/MWException.php(201): MWException->reportHTML()
- #13 /*path*/includes/exception/MWExceptionHandler.php(73): MWException->report()
- #14 /*path*/includes/exception/MWExceptionHandler.php(149): MWExceptionHandler::report(MWException)
- #15 /*path*/includes/MediaWiki.php(551): MWExceptionHandler::handleException(MWException)
- #16 /*path*/index.php(42): MediaWiki->run()
- #17 {main} Joe4738 (talk) 14:37, 1 August 2018 (UTC)
- I am facing exact the same problem with my wiki InkluPedia (MediaWiki 1.31.0). Problem is described in Project:Support desk/Flow/2016/09#h-Wikibase:_Exception_after_installation-2016-09-28T12:25:00.000Z too, but solution is for experts only I guess. I assume that $wgConf must be set, see https://www.mediawiki.org/wiki/Manual:$wgConf , but this is for experts only too I think. I assume that $wgConf is already set in all Wikipedias so problem will occur only in non-Wikipedia wikis. InkluPedia (talk) 09:44, 5 August 2018 (UTC)