Project:Support desk/Flow/2017/05
| 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. |
How to change dumpBackup.php version number?
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 trying to get a dump of a mediawiki site to import into another, non-mediawiki site.
This site runs 1.28.2 but export seems to generate old xml data. The import on the other site does not like how old it is (0.1 versus 0.3-0.5).
<mediawiki xmlns="http://www.mediawiki.org/xml/export-0.10/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.mediawiki.org/xml/export-0.10/ http://www.mediawiki.org/xml/export-0.10.xsd" version="0.10" xml:lang="en">
See version="0.10"?
how do I get the dump program to generate a dump based on a later version DTD?
What am I missing?
Thanks 216.106.102.12 (talk) 06:24, 1 May 2017 (UTC)
- vi ./includes/export/WikiExporter.php
- Search for "SchemaVersion":
- public static function schemaVersion() {
- return "0.30";
- }
- Change the return value to whatever you need. Keep an eye that you pick a number that reflects the XSD files in the ./doc directory. 216.106.102.12 (talk) 05:26, 2 May 2017 (UTC)
404 Error with Visual Editor/Parsoid
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I recently migrated my MediaWiki instance to a new server and while I believe I've set up everything almost identically to the old server, I can't get Visual Editor/Parsoid to work. The one major change I made was HTTP to HTTPS redirection. I'm running on Ubuntu 16.04 LTS.
I believe the issue is with getting Visual Editor to talk to my Parsoid instance, but I can't see what I'm doing wrong here. I was getting a 500 error before, but after messing with things a bit, it's now a 404 error, so my fear is there might be 2 different things wrong with it now.
Here's what my configuration files look like:
-----
/etc/mediawiki/parsoid/config.yaml
worker_heartbeat_timeout: 300000
logging:
level: info
services:
- module: ../src/lib/index.js
entrypoint: apiServiceWorker
conf:
mwApis:
uri: 'https://wiki.mydomain.com/api.php'
# domain: 'localhost'
-----
LocalSettings.php
wfLoadExtension( 'VisualEditor' );
$wgDefaultUserOptions['visualeditor-enable'] = 1;
$wgDefaultUserOptoins['visualeditor-editor'] = "visualeditor";
$wgVirtualRestConfig['modules']['parsoid'] = array(
// URL to the Parsoid instance
// Use port 8142 if you use the Debian package
'url' => 'http://wiki.mydomainrpg.com:8142',
// Parsoid "domain", see below (optional)
# 'domain' => 'localhost',
// Parsoid "prefix", see below (optional)
# 'prefix' => 'localhost'
);
require_once("$IP/extensions/VisualEditor/VisualEditor.php");
-----------------------------
Any help would be greatly appreciated. Cypherz3r0 (talk) 07:15, 1 May 2017 (UTC)
- Try uncommenting the domain parameter in config.yaml . Set it to your domain. 67.244.49.134 (talk) 10:12, 1 May 2017 (UTC)
- Also what error messages do you see in /var/log/parsoid/parsoid.log 2002:43F4:3186:1234:B1AA:AF06:5925:3678 (talk) 11:13, 1 May 2017 (UTC)
- One more thing is that you can remove the require_once line as VisualEditor can be called using that or wfLoadExtension and you have both currently and it's recommended just to use wfLoadExtension to call an extension. 67.244.49.134 (talk) 11:25, 1 May 2017 (UTC)
- (In LocalSettings.php). 67.244.49.134 (talk) 11:26, 1 May 2017 (UTC)
- Ok, I've commented out the require_once line in LocalSettings.php, uncommented the domain line in config.yaml, and set the domain to 'wiki.mydomainrpg.com'. I'm still getting 404 errors...
- ----
- Here's the last 10 lines of /var/log/parsoid/parsoid.log:
- {"name":"../src/lib/index.js","hostname":"wiki.mydomainrpg.com","pid":23345,"level":30,"levelPath":"info","msg":"loading ...","time":"2017-05-01T23:38:47.391Z","v":0}
- {"name":"../src/lib/index.js","hostname":"wiki.mydomainrpg.com","pid":23345,"level":30,"levelPath":"info","msg":"ready on :8142","time":"2017-05-01T23:38:47.426Z","v":0}
- {"name":"parsoid","hostname":"wiki.mydomainrpg.com","pid":23336,"level":40,"levelPath":"warn/service-runner","msg":"Startup finished","time":"2017-05-01T23:38:47.428Z","v":0}
- {"name":"parsoid","hostname":"wiki.mydomainrpg.com","pid":23345,"level":60,"err":{"message":"Invalid domain: wiki.mydomainrpg.com","name":"../src/lib/index.js","stack":"../src/lib/index.js: Invalid domain: wiki.mydomainrpg.com\n at errOut (/usr/lib/parsoid/src/lib/api/routes.js:30:13)\n at routes.v3Middle (/usr/lib/parsoid/src/lib/api/routes.js:94:11)\n at Layer.handle [as handle_request] (/usr/lib/parsoid/node_modules/express/lib/router/layer.js:95:5)\n at next (/usr/lib/parsoid/node_modules/express/lib/router/route.js:131:13)\n at Route.dispatch (/usr/lib/parsoid/node_modules/express/lib/router/route.js:112:3)\n at Layer.handle [as handle_request] (/usr/lib/parsoid/node_modules/express/lib/router/layer.js:95:5)\n at /usr/lib/parsoid/node_modules/express/lib/router/index.js:277:22\n at param (/usr/lib/parsoid/node_modules/express/lib/router/index.js:349:14)\n at param (/usr/lib/parsoid/node_modules/express/lib/router/index.js:365:14)\n at param (/usr/lib/parsoid/node_modules/express/lib/router/index.js:365:14)\n at param (/usr/lib/parsoid/node_modules/express/lib/router/index.js:365:14)\n at param (/usr/lib/parsoid/node_modules/express/lib/router/index.js:365:14)\n at Function.process_params (/usr/lib/parsoid/node_modules/express/lib/router/index.js:410:3)\n at next (/usr/lib/parsoid/node_modules/express/lib/router/index.js:271:10)\n at /usr/lib/parsoid/src/lib/api/ParsoidService.js:159:3\n at Layer.handle [as handle_request] (/usr/lib/parsoid/node_modules/express/lib/router/layer.js:95:5)","httpStatus":404,"suppressLoggingStack":true,"levelPath":"fatal/request"},"msg":"Invalid domain: wiki.mydomainrpg.com","time":"2017-05-01T23:39:14.643Z","v":0}
- Killed
- {"name":"parsoid","hostname":"wiki.mydomainrpg.com","pid":23456,"level":30,"levelPath":"info/service-runner","msg":"master(23456) initializing 1 workers","time":"2017-05-01T23:40:38.682Z","v":0}
- {"name":"../src/lib/index.js","hostname":"wiki.mydomainrpg.com","pid":23465,"level":30,"levelPath":"info","msg":"loading ...","time":"2017-05-01T23:40:40.094Z","v":0}
- {"name":"../src/lib/index.js","hostname":"wiki.mydomainrpg.com","pid":23465,"level":30,"levelPath":"info","msg":"ready on :8142","time":"2017-05-01T23:40:40.129Z","v":0}
- {"name":"parsoid","hostname":"wiki.mydomainrpg.com","pid":23456,"level":40,"levelPath":"warn/service-runner","msg":"Startup finished","time":"2017-05-01T23:40:40.132Z","v":0}
- {"name":"parsoid","hostname":"wiki.mydomainrpg.com","pid":23465,"level":60,"err":{"message":"Invalid domain: wiki.mydomainrpg.com","name":"../src/lib/index.js","stack":"../src/lib/index.js: Invalid domain: wiki.mydomainrpg.com\n at errOut (/usr/lib/parsoid/src/lib/api/routes.js:30:13)\n at routes.v3Middle (/usr/lib/parsoid/src/lib/api/routes.js:94:11)\n at Layer.handle [as handle_request] (/usr/lib/parsoid/node_modules/express/lib/router/layer.js:95:5)\n at next (/usr/lib/parsoid/node_modules/express/lib/router/route.js:131:13)\n at Route.dispatch (/usr/lib/parsoid/node_modules/express/lib/router/route.js:112:3)\n at Layer.handle [as handle_request] (/usr/lib/parsoid/node_modules/express/lib/router/layer.js:95:5)\n at /usr/lib/parsoid/node_modules/express/lib/router/index.js:277:22\n at param (/usr/lib/parsoid/node_modules/express/lib/router/index.js:349:14)\n at param (/usr/lib/parsoid/node_modules/express/lib/router/index.js:365:14)\n at param (/usr/lib/parsoid/node_modules/express/lib/router/index.js:365:14)\n at param (/usr/lib/parsoid/node_modules/express/lib/router/index.js:365:14)\n at param (/usr/lib/parsoid/node_modules/express/lib/router/index.js:365:14)\n at Function.process_params (/usr/lib/parsoid/node_modules/express/lib/router/index.js:410:3)\n at next (/usr/lib/parsoid/node_modules/express/lib/router/index.js:271:10)\n at /usr/lib/parsoid/src/lib/api/ParsoidService.js:159:3\n at Layer.handle [as handle_request] (/usr/lib/parsoid/node_modules/express/lib/router/layer.js:95:5)","httpStatus":404,"suppressLoggingStack":true,"levelPath":"fatal/request"},"msg":"Invalid domain: wiki.mydomainrpg.com","time":"2017-05-01T23:41:40.792Z","v":0}
- ----
- Looks like the "Invalid domain" messages are the underlying issue, but I'm not sure how to resolve...
- "Killed" should be where I restarted the parsoid service after modifying the config.yaml.
- ----
- Thanks for the help thus far. Cypherz3r0 (talk) 23:44, 1 May 2017 (UTC)
- Well, looks like I figured it out. the "Invalid domain" thing got me on the right path. A quick search got me to here: Parsoid/Troubleshooting#Invalid Domain Error
- Turns out that I had mistakenly deleted the dash ( - ) before the first comment under the mwApis section. Apparently that dash is needed. That plus the other recommended changes (setting the domain properly, etc.) fixed it. Cypherz3r0 (talk) 23:52, 1 May 2017 (UTC)
Default slideshow px
Hi. What value would I need to add in these files: resources/src/mediawiki/page/gallery.css or/and resources/src/mediawiki/page/gallery-slideshow.js in order to make the slideshow mode of the gallery (added in mw 1.28) 200px by default? 188.24.90.65 (talk) 09:54, 1 May 2017 (UTC)
- Nothing? 188.24.56.115 (talk) 09:46, 5 May 2017 (UTC)
- bump 79.119.124.0 (talk) 13:39, 19 May 2017 (UTC)
why am I blocked globally from changing my password
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
why am I blocked globally from changing my password? 2601:2C3:1:E1F8:6536:710C:611E:1DAB (talk) 06:08, 2 May 2017 (UTC)
- Because of this bug T109909 Ciencia Al Poder (talk) 09:29, 2 May 2017 (UTC)
Mapa Google Maps
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.
Alguien me podría indicar como insertar un mapa Google Maps en mi wiki? Muchas gracias. Mmtorou (talk) 06:57, 2 May 2017 (UTC)
- No se pueden insertar mapas directamente en el wiki en una instalación estándar, normalmente has de instalar una extensión que permita hacerlo. ¿Has probado a instalar Extension:Maps? Ciencia Al Poder (talk) 09:27, 2 May 2017 (UTC)
Mediawiki as business support
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.
- Good day. I am trying to use Mediawiki to create a page where our clients can login and get information like brochures, pictures, description of products ect. I am a new Mediawiki user and apparently I did something wrong and my account SGS2013 was deleted by Anthony Bradbury. Could someone please help me in the correct direction of how to setup the page correctly SGS2013 (talk) 11:12, 2 May 2017 (UTC)
- Your account was not deleted. Your user page on English Wikipedia was though. Please see https://en.wikipedia.org/wiki/User_talk:SGS2013 and carefully read the links provided, especially to understand what English Wikipedia is not. :) You could use the MediaWiki software (not: the mediawiki.org website) on your own server for hosting services for your clients. Malyacko (talk) 12:36, 2 May 2017 (UTC)
- MediaWiki is a web application that you can use to host, on your own, a Wiki (like Wikipedia) where you can upload "brochures, pictures, description of products ect." and where your "clients can login".
- Where exactly did you try to create a page?
- It appears that you tried to create your company's page on wikipedia.org (or mediawiki.org), in which case as a first step take a look at https://en.wikipedia.org/wiki/Wikipedia:FAQ/Organizations. AhmadF.Cheema (talk) 11:36, 2 May 2017 (UTC)
Hello, I want to have a private wiki, but i can't download the Mediawiki software. Is it possible that someone else can make a wiki for me?
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.
- Need help Europeanfret (talk) 13:49, 2 May 2017 (UTC)
- ^ Europeanfret (talk) 16:20, 2 May 2017 (UTC)
- I would recommend considering https://miraheze.org 2002:43F4:3186:1234:9DC2:A372:128F:2C2F (talk) 20:53, 2 May 2017 (UTC)
- Why you cannot download MediaWiki? Gochiusa (talk) 19:12, 3 May 2017 (UTC)
MsCalendar
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 download Extension: MsCalendar and i did the instructions:
- Download and place the file(s) in a directory called
MsCalendarin yourextensions/folder. - Add the following code at the bottom of your LocalSettings.php: wfLoadExtension( 'MsCalendar' );
but i dont how to insert a calendar into my wiki page,
thanks for the support 148.213.4.52 (talk) 14:33, 2 May 2017 (UTC)
- Read the documentation page. 2002:43F4:3186:1234:9DC2:A372:128F:2C2F (talk) 20:54, 2 May 2017 (UTC)
- Have a look at Extension:MsCalendar#Wikitext Osnard (talk) 05:44, 3 May 2017 (UTC)
- thanks
- but where can i insert this, which part ?, sorry but i dont understand the instructions
- To insert a calendar into a wiki page, the minimal wikitext is:
<MsCalendar>Name of the calendar</MsCalendar>- By default, all entries are listed alphabetically. If you want to sort them by id (the date at which they were added), do:
<MsCalendar sort="id">Name of the calendar</MsCalendar>148.213.4.52 (talk) 14:31, 3 May 2017 (UTC)
*Some* thumbnail URLs incorrect (broken image links) after migration
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 migrated my wiki to a new server following the instructions (mysqldump & restore, wwwroot recursive copy). I didn't run any additional php scripts or anything, because I thought if I did a full copy of both the DB and the file structure, I'd be good to go.
However...
Some images do still work, while others show broken links. Upon investigating the broken ones, it looks like the wiki page is looking for the image in the entirely wrong spot.
For instance, the image is located in \images/thumb/2/25/Zabriskie_Point.jpg/1000px-Zabriskie_Point.jpg, and the img href on the old server correctly matches this (no broken link). However, on the new server, the href is /images/thumb/6/6d/DeathValley.jpg/1000px-DeathValley.jpg.
Like I said, though, many images do still work. For instance, images/thumb/f/f1/Lodging101.jpg/160px-Lodging101.jpg.
I can't be certain, but I think it may have something to do with sizing, as the smaller images all seem to work and the bigger ones do not.
What would cause this, and how do I fix it? And for that matter, why do some images still work while others do not if this is all driven by the database?
Also, I don't believe it's related, but this was a migration from a WAMP setup on Windows Server 2008 to a WIMP setup on Windows Server 2012. Impostal22 (talk) 20:38, 2 May 2017 (UTC)
I want to offer editing access to premium pages to subscribed members
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 creating an ancestry wiki which will be free. There will also be premium services for which I will charge a monthly subscription.
I can't find any extensions to do this, so i was thinking that the solution would be to run a subscription service like Magneto and have a #get_db data call in my wiki to validate membership and assign these members to a special user group.
Can anyone suggest a simpler way?
Thanks Ron Woodward 04:42, 3 May 2017 (UTC)
Unable to get csrf token
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 getting the login token using a POST API calling this URL "http://localhost:81/mediawiki/api.php?action=query&meta=tokens&type=login&format=json" with the below post object
my post object is { lgname: test123, lgpassword: test@123 }.
Once I got the logintoken and session created, I am again doing a POST call to this URL"http://localhost:81/mediawiki/api.php?action=query&meta=tokens&type=csrf&format=json" with the below cookie information
bitnami_mediawiki_session: e6ggc1bi6jt2qck5rubgpddi6bq0jc9s; bitnami_mediawikiUserID:1;bitnami_mediawikiUserName: test123
Even after doing the above steps, I am still receiving anon token (+). Is there anything I am doing wrong or missing? Any assistance would be of great help. ZakirH (talk) 06:12, 3 May 2017 (UTC)
- I am having the same issue. Has anyone been able to figure out how to do this. Margarethkearney (talk) 20:12, 7 August 2017 (UTC)
- function requestCSRFtoken($wiki)
- {
- $parameters = array(
- 'action' => 'query',
- 'format'=>'json',
- 'maxlag'=>'10',
- 'smaxage'=>'0',
- 'maxage'=>'0',
- 'assert'=>'user',
- 'assertuser'=>'Admin2',
- 'requestid'=>'1',
- 'servedby'=>'true',
- 'curtimestamp'=>'true',
- 'responselanginfo'=>'1',
- 'origin'=>'*',
- 'uselang'=>'user',
- 'centralauthtoken'=>'123',
- 'meta'=>'tokens',
- 'type'=>'csrf'
- );
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_URL, $wiki);
- curl_setopt($ch, CURLOPT_USERAGENT,$_SERVER['HTTP_USER_AGENT']);
- curl_setopt($ch, CURLOPT_POST, true);
- curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($parameters));
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
- curl_setopt($ch, CURLOPT_COOKIESESSION, true);
- curl_setopt($ch, CURLOPT_COOKIEJAR, 'cookie-name');
- curl_setopt($ch, CURLOPT_COOKIEFILE, '/var/www/ip4.x/file/tmp');
- $answer = curl_exec($ch);
- return $answer;
- }
- $wiki = "https://breakofdaymhg.com/staff/wiki/api.php";
- //ebsh7p6e6q 2604:6000:84C1:A900:4959:984E:73CD:B115 (talk) 10:54, 24 February 2018 (UTC)
Prebid.js in header
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hello,
I'm trying to integrate the Prebid.js header wrapper into the wiki I run, using the BeforePageDisplay function (I already have other scripts in place through this method). I'm certain the script code is correct -- I've run it through JSLint to make sure, and I run nearly the same script in the header of my CMS -- but as soon as LocalSettings.php is uploaded with the script in place, I get a 500 error saying the wiki can't handle this request.
Does anyone know what could be causing this? My only thought is that the Prebid.js code might invoke functions that Mediawiki tries to prevent, or that I've some error in the code that I don't recognize. Balerion300 (talk) 09:03, 3 May 2017 (UTC)
- MediaWiki doesn't "prevent" things like this. You probably made a typo in the code added to LocalSettings.php. You should set this in php.ini so you get a descriptive error message of what causes the error:
error_reporting = E_ALLdisplay_errors = On- or just look at the error logs of the webserver. That will give you a hint of the error. Ciencia Al Poder (talk) 09:24, 3 May 2017 (UTC)
Using AAD Authentication to fetch token
Hi,
I am using AAD authentication (extension - Auth_remoteuser) to authenticate my site. As a part of a new requirement I need to fetch the token that is achieved as a part of this authentication to make another API call.
If not that I need to find a way to make a AAD call from javascript without redirection to fetch the token. Any help on this will be appreciated. 2404:F801:8028:1:0:0:0:1B2 (talk) 10:40, 3 May 2017 (UTC)
Getting 404 on Main_Page
Hello there,
Spent 3 days and still can’t figure this out, so asking here after so much trials.
I have godaddy hosting where I have put my Mediawiki folder.
Softwares are like this:
| Product | Version |
| MediaWiki | 1.28.0 |
| PHP | 5.6.30 (cgi-fcgi) |
| MySQL | 5.6.35-cll-lve |
Folder structure there looks like this:
Root/public_html/Mediawiki/<all mediawiki files like localsettings.php stays here.
I have .htaccess written like this and placed this file on root folder, public_html folder, within Mediawiki folder.
# Enable the rewrite engine
RewriteEngine On
# Short url for wiki pages
RewriteRule ^/?wiki(/.*)?$ %{DOCUMENT_ROOT}/Mediawiki/index.php [L]
# Redirect / to Main Page
RewriteRule ^/*$ %{DOCUMENT_ROOT}/Mediawiki/index.php [L]
Localsettings.php has these settings for rewrite.
$wgScriptPath = "/Mediawiki";
$wgArticlePath = "/wiki/$1"; # Virtual path (left part of first rewrite rule). MUST be DIFFERENT from the path above!
$wgUsePathInfo = true;
When I access domain.org/Mediawiki/index.php?title=Main_Page, it sends the page down. But when I give domain.org/wiki/Main_Page it gives 404.
When I access domain.org/Mediawiki/index.php, it redirects to domain.org/wiki/Main_Page and returns 404 as above.
What’s wrong with the rewrite rules. Please help. I couldn’t figure it out.
Thanks,
Vikas Vikasnd (talk) 15:28, 3 May 2017 (UTC)
- Try putting the .htaccess file in public_html but not in the mediawiki folder. 24.39.1.139 (talk) 15:58, 3 May 2017 (UTC)
- I left .htaccess only on public_html and removed from one level up and from Mediawiki folder. But still gives 404 error. Vikasnd (talk) 16:43, 3 May 2017 (UTC)
- Also don't redirect / to the main page as this is done automatically. When you to yourdomain.com/ it redirects you to yourdomain.com/wiki/Main_Page by deafault. 2002:43F4:3186:1234:B806:1C11:588B:6072 (talk) 20:16, 3 May 2017 (UTC)
- Commenting the redirect to / Page doesn't help. Still getting 404.
- Please help.
- thanks. Vikasnd (talk) 17:05, 4 May 2017 (UTC)
- What happens when you try to visit other pages? 2002:43F4:3186:1234:A935:899A:B0F4:E3E5 (talk) 09:54, 5 May 2017 (UTC)
- Other pages were also giving 404.
- Since I couldn't get it working, so I thought to remove all redirecting and just use it as it is. So I commented these 3 lines:
- #$wgScriptPath = "/Mediawiki";
- #$wgArticlePath = "/wiki/$1"; # Virtual path (left part of first rewrite rule). MUST be DIFFERENT from the path above!
- #$wgUsePathInfo = true;
- And removed .htaccess file from all places on hosting place.
- Tried to visit IP/~vikasnd/Mediawiki/index.php.
- Still doesn't work and redirects like this:
- https://IP/wiki/index.php?title=Main_Page
- Why does it redirect like this? I am unable to host it now at all. Where is this getting redirection instructions from?
- Can you please help?
- Thanks
- Vikas Vikasnd (talk) 08:58, 8 May 2017 (UTC)
- If this helps in debugging this problem, this is what noticed:
- When I give https://IP/~vikasnd/Mediawiki/index.php?title=Special:Version , it brings the page at it is. But when I try https://IP/~vikasnd/Mediawiki/index.php?title=test, it redirects to https://IP/wiki/index.php?title=Test and gives 404.
- At this point, I have commented above 3 lines as I said in previous post and don't have any .htaccess file.
- How can this issue be resolved? Vikasnd (talk) 09:31, 8 May 2017 (UTC)
- Did you ever resolve this? I am just now setting up mediawiki and getting this error 199.36.245.201 (talk) 20:23, 1 March 2022 (UTC)
- following up here too ... how did y'all solve this Mapmaker345 (talk) 14:48, 14 October 2022 (UTC)
- Any resolutions on this ? 77.101.168.28 (talk) 16:50, 17 October 2022 (UTC)
- Please file a new support thread including all version info (see sidebar), configuration info, and what the webserver error log says. Thanks! Malyacko (talk) 17:01, 17 October 2022 (UTC)
ConfirmEdit ReCaptcha NoCaptcha createaccount API
Hello, I tried make custom Account Create Form. but i cannot set recaptcha response. so i saw API Help, and module 'edit' have 'g-recaptcha-response' but 'createaccount' dosen't.
https://librewiki.net/api.php?action=help&modules=edit
https://librewiki.net/api.php?action=help&modules=createaccount
so i get errors.
https://puu.sh/vEmpH/ae3f3de0fa.png
how to do this? Gochiusa (talk) 16:07, 3 May 2017 (UTC)
- I don't get any errors when going to https://librewiki.net/wiki/특수:계정만들기 . 2002:43F4:3186:1234:B806:1C11:588B:6072 (talk) 20:20, 3 May 2017 (UTC)
- I tring make own form. not mediawiki default CreateAccount Special Page. Gochiusa (talk) 05:44, 4 May 2017 (UTC)
MKV Tags
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 wrote a tagging program, and I'm trying to get it to work with MediaMonkey. I looked at http://www.mediamonkey.com/wiki/index.php/WebHelp:About_Track_Properties/4.0 and wrote the tags appropriately (they are all SimpleTags inside one Tags atom). But I can't seem to set the Type (using the CONTENT_TYPE tag), Series (using COLLECTION.TITLE), Series or Episode numbers (SEASON.PART_NUMBER and EPISODE.PART_NUMBER), Screenwriter (SCREENPLAY_BY), Grouping (COLLECTION.COMMENT). Can you tell me if these are the correct tag names? DanHi (talk) 22:43, 3 May 2017 (UTC)
- Welcome to the support desk of MediaWiki. MediaWiki is the software running behind numerous third-party websites; mediamonkey.com is one of them. So for questions about MediaMonkey you need to contact MediaMonkey instead. Malyacko (talk) 08:22, 4 May 2017 (UTC)
linking userpage to other languages
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 don't know if this is the right place to ask, feel free to move it to the right section if I'm not right.
I tried to link my dutch wp account to different sites like wikivoyage, species and commons. But for some reasons other pages than wikipedia didn't work. I used the code: [[commons:User:QZanden]] and [[v:nl:Gebruiker:QZanden]] but the links didn't work. Why is it possible to link to wikipedia userpages, but not to the other projects? QZanden (talk) 22:52, 3 May 2017 (UTC)
- What does "didn't work" mean? Which markup made you end up where exactly? Also see https://en.wikipedia.org/wiki/Help:Interwiki_linking#Prefixes for syntax. Malyacko (talk) 08:21, 4 May 2017 (UTC)
- Normally, suchs interlinks are supposed to appear in the leftside of the screen, where also the links to Wikidata appear. As Wikidata does not provide Userpages because they are not notable, I tried to add these interlanguage links as wikitext in my userpage. I ended up with this: [1]. I hoped it would be possible to add all my userpages via these interlanguagelinks. QZanden (talk) 12:28, 4 May 2017 (UTC)
Document List with Most Comments
Hi all...
Is there a better way to find out which documents have the most comments associated with them? I would like to action this list to see if certain documents on our Wiki need to be reworked, etc.
Thank you! PaleoIsh (talk) 03:17, 4 May 2017 (UTC)
- When you write "documents", what exactly do you mean? Wiki pages (for Talk/Discussion)? Something else? Malyacko (talk) 08:17, 4 May 2017 (UTC)
- Yes, I mean Wiki pages.... apologies for the incorrect terms. PaleoIsh (talk) 03:21, 9 May 2017 (UTC)
add a new topic
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hello,
I was looking at the topics under browse for snpedia and I noticed there is no topic on anaylsis. 23andme used to publish this and I was wondering whether you could explore it more. 172.114.163.2 (talk) 07:02, 4 May 2017 (UTC)
- Welcome to the support desk of the MediaWiki software. For **content** on third party websites (like Snpedia) which are running the MediaWiki software in the back, you need to contact the third party website (Snpedia) instead. Malyacko (talk) 08:15, 4 May 2017 (UTC)
RESTBase fail to process a subpage when using reverse proxy?
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.
Like https://www.mediawiki.org/api/rest_v1/page/html/Content_translation/cxserver/Setup ,althrough Content_translation/cxserver/Setup is there. Ken Ookami Horo (talk) 09:11, 4 May 2017 (UTC)
prevent unauthenticated user login
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
how do i prevent user who is not registered to change pages. 194.36.160.2 (talk) 15:08, 4 May 2017 (UTC)
Job refreshLinksPrioritized ask for authentication
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 trying to figure out this issue, but I can't understand.
| Product | Version |
|---|---|
| MediaWiki | 1.28.1 |
| PHP | 7.0.15-0ubuntu0.16.04.4 (apache2handler) |
| MariaDB | 10.1.22-MariaDB-1~xenial |
| SimpleSamlAuth | GIT-master (2e0e7b7) 15:06, 1 December 2016 |
I'm calling maintenance/runJobs.php from CLI (crontab) like:
php -e /var/www/wiki_core/html/maintenance/runJobs.php --maxjobs=1
The output is:
2017-05-04 19:28:47 refreshLinksPrioritized Template:Twzn_vers_log rootJobTimestamp=20170504154530 useRecursiveLinksUpdate=1 triggeringUser={"userId":2,"userName":"xxxxxxxxx"} triggeringRevisionId=79464 requestId=aa06a3dddf2c3611021c9f34 (id=18,timestamp=20170504154530) STARTING
PHP Notice: Undefined index: REQUEST_URI in /var/www/wiki_core/html/simplesamlphp/lib/SimpleSAML/Utils/HTTP.php on line 659
PHP Notice: Undefined index: REQUEST_URI in /var/www/wiki_core/html/simplesamlphp/lib/SimpleSAML/Utils/HTTP.php on line 684
PHP Notice: Undefined index: REQUEST_METHOD in /var/www/wiki_core/html/simplesamlphp/lib/SimpleSAML/Auth/Simple.php on line 120
PHP Notice: Undefined index: REQUEST_URI in /var/www/wiki_core/html/simplesamlphp/lib/SimpleSAML/Utils/HTTP.php on line 659
PHP Notice: Undefined index: REQUEST_URI in /var/www/wiki_core/html/simplesamlphp/lib/SimpleSAML/Utils/HTTP.php on line 684
2017-05-04 19:28:48 refreshLinksPrioritized Template:Twzn_vers_log rootJobTimestamp=20170504154530 useRecursiveLinksUpdate=1 triggeringUser={"userId":2,"userName":"xxxxxxxxx"} triggeringRevisionId=79464 requestId=aa06a3dddf2c3611021c9f34 (id=18,timestamp=20170504154530) t=268 error=SimpleSAML_Error_UnserializableException: Unable to parse base url: http://localhost
So seems that the command refreshLinksPrioritized (includes/jobqueue/jobs/RefreshLinksJob.php i suppose) asks for authentication, we use SimpleSAMLphp. As the runJobs.php is called by CLI it fails, because SimpleSAMLphp require some Apache variable such as REQUEST_URI and REQUEST_METHOD.
How can I exclude this authentication request, to allow running these jobs from crontab? Nikuzz (talk) 19:48, 4 May 2017 (UTC)
- You may try adding the extension inside a conditional to check if it's not being run from a maintenance script:
- if (!defined('RUN_MAINTENANCE_IF_MAIN')) {
/* load extension SimpleSamlAuth */- }
- Even if this works for you, I'd suggest reporting a bug against the extension, which should check itself if it's being run from a command line script. Ciencia Al Poder (talk) 09:51, 5 May 2017 (UTC)
Infobox Table As First Element of #mw-content-text
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 a way to have the Infobox table be the first element within the #mw-content-text div, instead of the last element? MediaWiki puts all content before the infobox, whereas Wikipedia has the infobox table as the very first element before all body text/content. My plan is to scour the PHP files of MediaWiki and just manually override its methodology there, but I'd prefer just a checkbox or something if it exists. Thank you!
Version 1.28.0 Brian denton (talk) 21:44, 4 May 2017 (UTC)
- Mediawiki doesn't normally reorder the page content---if you put the infobox in a page first it should be first.
- I've seen reordering issues when the html is malformed, such as by not properly closing the table that forms an infobox. Clump (talk) 23:21, 4 May 2017 (UTC)
I need help
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 enter ocr button for Proofread page then show this error . can you help me to solve this problem ? ShahadatHossain (talk) 07:17, 5 May 2017 (UTC)
- Where exactly to find an "OCR button for Proofread page"? (Also see all the other threads you started about this topic.) Malyacko (talk) 17:36, 5 May 2017 (UTC)
Problem displaying infobox (Resolved)
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hello, I have to export and import the "Modèle:Infobox Personnage (fiction)"[2], I followed the documentation to the letter, but as soon as I save my page, the infobox does not display correctly, or even not at all. It puts me HTML code
Here is a glimpse of what it puts me
"<th scope=row >Nom original </th> <td >Joshua "Josh" Jordan </td> </tr> <tr> <th scope=row >Alias </th> <td >Element </td> </tr> <tr> <th scope=row >Naissance </th> <td >Metz, France </td> </tr> <tr> <th scope=row >Origine </th> <td >Américain </td> </tr> <tr>
<th scope=row >Sexe </th> <td >Masculin </td> </tr> <tr>"
How to fix this problem ?
Thank you
My wiki is a french, i am french 2A01:CB11:2E4:9100:8CAC:E0C8:E75:B13C (talk) 09:55, 5 May 2017 (UTC)
- Did you install Scribunto? 24.39.1.139 (talk) 13:04, 5 May 2017 (UTC)
- Yes, Scribunto is install
- Can my problem come from the Template, which is in Infobox: Version 2 2A01:CB11:2E4:9100:8CAC:E0C8:E75:B13C (talk) 13:11, 5 May 2017 (UTC)
- Yes, Scribunto is install
- Can my problem come from the Template, which is in Infobox: Version 2
- I have other infobox on my wiki, but there is only that which does not display correctly 2A01:CB11:2E4:9100:8CAC:E0C8:E75:B13C (talk) 13:16, 5 May 2017 (UTC)
- Sorry for the triple post
- But, I have to find the solution.
- After long research, I discovered that the Infobox V2 needed, "tidy".
- And in Mediawiki, "tidy", does not activate and it needs to be enabled for infobox to work (first check that "Tidy" is in your mediawiki folder of your wiki). To activate, you must add to the Localsettings.php file of your wiki, these lines
- $wgTidyConfig = [
- 'driver' => 'RaggettInternalPHP',
- 'tidyConfigFile' => "$IP/includes/tidy/tidy.conf",
- PS : This works for local wikis 2A01:CB11:2E4:9100:D046:4D23:B3BD:13EE (talk) 22:04, 5 May 2017 (UTC)
- Sorry about the quadruple post
- But I made a typing error in the lines to be added in localsettings.php
- Here's what to do
- $wgTidyConfig = [
- 'driver' => 'RaggettInternalPHP',
- 'tidyConfigFile' => "$IP/includes/tidy/tidy.conf",
- ];
- Excuse me again of this quadruple post, I would have well edit my post but it is impossible to me 2A01:CB11:2E4:9100:D046:4D23:B3BD:13EE (talk) 22:12, 5 May 2017 (UTC)
Problem with Logging in
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 got a Problem with logging into my wiki. Its a closed wiki, so you have to log in.
Everytime I try to Login it says:
There is a Problem with your user Dates. Reload the page and try again.
But that doesnt work for me...
Maybe someone got an Idea..?
Thanks a lot Knixmaster (talk) 11:26, 5 May 2017 (UTC)
- What is the exact error message (untranslated)? Which MediaWiki version is this about? Which guide did you follow to configure your wiki as a "closed wiki"? Malyacko (talk) 17:35, 5 May 2017 (UTC)
Unable to add user to a group
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 created a user group called Members. When I log in as administrator and go to "User rights management" in order to add a autoconfirmed user the "Members" group appears in a column with the heading "Groups you cannot change"
In LocalSettings I have given the Members group all the relevant settings and the Members Group appears with those rights on the Special:UserGroupRights page.
I guess the question is "WHy does Members appear under the column "Groups you cannot changa"? Ron Woodward 15:21, 5 May 2017 (UTC)
- This means that you dont have the "userrights" permission. Try adding it to a usergroup that you are currently in. 24.39.1.139 (talk) 16:18, 5 May 2017 (UTC)
- Thanks for your help. I resolved the problem by adding myself to the Bureaucrats group via "CreateandPromote.php". Ron Woodward 10:22, 6 May 2017 (UTC)
Upload File button doesn't work
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.
Our Upload File button does not work, and I cannot figure out why.
When I click it, I get a page that says "The website cannot display the page", with the title of the tab in the browser saying "HTTP 500 Internal Server Error".
When I Iwento tothe list of uploaded fil,eI can I actually see an entry for the file, but the thumbnail is blank. When I click on the thumbnail, I get "HTTP Error 404.0 - Not found".
I browsed in Windows Explorer to the images directory and I can see that the Upload File button appeared to create the path for the uploaded file, but then fails to put the actual file there. Why? I've been using a workaround where I actually manually paste the file to the path using Windows Explorer, but I'd really prefer not to keep doing this. Andygreten (talk) 17:33, 5 May 2017 (UTC)
- Sorry, forgot to include my versions:
- MediaWiki: 1.23.0
- PHP: 5.5.13 (cgi-fcgi)
- MySQL: 5.6.19-log Andygreten (talk) 18:06, 5 May 2017 (UTC)
- If you really still run 1.23.0 then you have way bigger problems: Dozens of security vulnerabilities. Please upgrade to support software versions. See https://www.mediawiki.org/wiki/Download and https://www.mediawiki.org/wiki/Manual:Upgrading Malyacko (talk) 10:22, 7 May 2017 (UTC)
- The wiki is on a closed network, so I'm not really that concerned about the vulnerabilities; plus, our administrators are less than enthusiastic about supporting the wiki, so getting help from them is difficult. I will request an upgrade, but the turnaround could be a while.
- In the interim, the Upload File button problem I'm having -- what can I do to collect more information on this? Andygreten (talk) 17:43, 10 May 2017 (UTC)
- If you get a 500 error, check your webserver log for more info. Also see Manual:How to debug
- If thumbnails are not generated, see Manual:Errors and symptoms#Image Thumbnails not working and.2For appearing and tell us which settings you have. Malyacko (talk) 18:39, 10 May 2017 (UTC)
- The reason the thumbnails aren't generated is because the image file does not exist at the location it's looking for it.
- The upload file button is creating the path (e.g., images/3/3c), but then it doesn't put the file there. Do you know what could cause this to happen? Andygreten (talk) 20:04, 11 May 2017 (UTC)
- Again: What does your webserver log say when you try to upload such a file and it is not created? Malyacko (talk) 08:40, 12 May 2017 (UTC)
- The webserver log gave no indication of an error. The only event listed in the log at the time of the upload was a "Process Creation" event for cmd.exe. Andygreten (talk) 14:56, 12 May 2017 (UTC)
- This problem is solved!
- IIS_IUSRS needed to be given Modify permissions to the images directory.
- Once that was done the uploads worked fine. Thanks for your help.w Andygreten (talk) 20:03, 15 May 2017 (UTC)
How to add Meta Theme Color?
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
How do I add a meta theme-color to a MediaWiki 1.26 installation? What I mean is, adding this <meta name="theme-color" content="#a70000"> so that the URL bar of my website looks that color on Android devices. 68.185.215.47 (talk) 19:50, 5 May 2017 (UTC)
- Okay, I figured out how to do it. You need to install the following extension: Extension:HeadScript
- After that you add your code to LocalSettings.php. 68.185.215.47 (talk) 07:00, 9 May 2017 (UTC)
Regain control of our internal MediaWiki installation?
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.
Our office has a MediaWiki that has been running for several years. There are only 3 accounts in the Bureaucrats and Administrators groups: Root and 2 former employees. The server is configured for LDAP authentication.
I have SSH access to the server itself and need to find out if we can add someone else to the Administrators group so we can delete old pages from the server. Is it possible? Steventhomas42 (talk) 21:31, 5 May 2017 (UTC)
- You need to create a privileged user through SSH through a maintenance script called createAndPromote.php. │Star-Warden│ 23:00, 5 May 2017 (UTC)
- Or create the account normally and give the rights via Special:UserRights 2002:43F4:3186:1234:918D:6407:AB9E:810D (talk) 23:13, 5 May 2017 (UTC)
- OP, what the person above said is easier, indeed, provided you have access to the root account (I assume the default setting of bureaucrats having the right to give other users special permission hasn't been changed). What I gave you is if you have no access whatsoever to the bureaucrat account. │Star-Warden│ 07:17, 6 May 2017 (UTC)
Pywikibot
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I installed pywikibot on my Mac running macOS 10.12.4. But when I run a script, I get the following errors:
WARNING: Http response status 302
WARNING: Non-JSON response received from server testwiki:en; the server may be down.
WARNING: Waiting 5 seconds before retrying.
WARNING: Http response status 302
WARNING: Non-JSON response received from server testwiki:en; the server may be down.
WARNING: Waiting 10 seconds before retrying.
(and so on and so on)
I am running Python version 2.7.13
any help would be great thanks. 2002:43F4:3186:1234:918D:6407:AB9E:810D (talk) 23:16, 5 May 2017 (UTC)
- my wiki is running MediaWiki 1.28.2 on Debian 8. https is forced. 67.244.49.134 (talk) 23:16, 5 May 2017 (UTC)
- I really need help 2002:43F4:3186:1234:6089:7C4D:BC05:8B44 (talk) 15:00, 7 May 2017 (UTC)
- Sounds like the API of your server is throwing errors. Have you checked the API is actually working ? Can you visit it's api.php endpoints ? —TheDJ (Not WMF) (talk • contribs) 09:42, 8 May 2017 (UTC)
- Yes. mydomain.com/api.php brings up the standard API help page. 24.39.1.139 (talk) 13:39, 8 May 2017 (UTC)
- I can alternately say that it works because Parsoid works, and if the API wasn't working than neither would VisualEditor. 24.39.1.139 (talk) 13:40, 8 May 2017 (UTC)
- I really would like to have this working ASAP. 2002:43F4:3186:1234:518C:9EC1:BD96:344C (talk) 11:20, 9 May 2017 (UTC)
- If it's a private wiki, check if the configuration is set correctly for it - family file, etc. Don't forget also about user-config.py XXN (talk) 12:40, 9 May 2017 (UTC)
- It's not private, it's public. 24.39.1.139 (talk) 13:28, 9 May 2017 (UTC)
- You might want to enable logging or verbose mode: Manual:Pywikibot/Global_Options
- The pywikibot community also runs mailinglists and an IRC channel that might be of use.
- Manual:Pywikibot/Communication —TheDJ (Not WMF) (talk • contribs) 15:06, 9 May 2017 (UTC)
Is there a patch file for 1.27.3?
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
The mail from Chad Horohoe didn't provide a patch file for updating from 1.27.2 to 1.27.3. Stefahn (talk) 20:00, 6 May 2017 (UTC)
- You can use the git pull command if you have SSH access (using putty, for example) to your mediawiki folder. More information can be found here. │Star-Warden│ 21:07, 6 May 2017 (UTC)
- I always use the complete tar archive and extract it over the old version. While this is not recommended for a major upgrade, this usually works just fine for minor upgrades like from 1.27.2 to 1.27.3. 83.135.231.173 (talk) 12:54, 7 May 2017 (UTC)
- Thanks for your suggestions!
- I always use the patch like I described here - this works well and is very fast too.
- In this case I downloaded both tar archives, extracted them, compared them with WinMerge and uploaded the changed files (only those). I didn't manage to create a patch file with WinMerge that would run without errors... Stefahn (talk) 14:44, 7 May 2017 (UTC)
[Bug] "bdi" element recursive encapsulation
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 accepts the HTML tag "bdi", but fails to parse it correctly when it contains another "bdi" element.
The following is perfectly valid in standard HTML :
Some outer text "<bdi> sub element in Arabic <bdi>English pagename</bdi> back to Arabic.</bdi>" return to outer text.
But in Mediawiki, the inner "bdi" element start and end tags become untranslated (the remaining HTML or MediaWiki syntax is still parsed correctly for their inner content) and the two start and end tags are themselves rendered as plain-text (including their attributes), as if their inclusion was no longer recognized as valid.
This is a bug (that affects various templates, notably those used generating autotranslated contents).
An alternative is to use a much more complex syntax, by replacing "bdi" by "span" with custom or mofied CSS attributes (to add the "unicode-bidi:isolate" style property): this is very lengthy, but the other problem is that older browsers still support the standard "bdi" but not these CSS attributes which have instead several browser-specific variants (with prefixes): tracing all the use cases where we unnecessarily need to add additional browser-specific styles is tedious.
In addition the interest of "bdi" is that it has a *mixed* content, meaning that it is suitable for including either inline elements (text, span, images, br, ref...) and block elements (div, p, lists, tables, references...), but this is not possible if we replace "bdi" by a "span" (it will not work to include block elements) or by a "div" (it will not work to include inline elements, causing line-breaks).
Please fix "bdi" support in MediaWiki to support correct recursive encapsulation of "bdi" elements (just like you accept recursive encapsulations of "span" or "div" or wikitables/HTML tables): it will greatly simplify internationalization and translation templates and will avoid quirks, notably those seen in the "Translate" extension which signals missing translations using an incorrect "div" with light-red background, instead of using a "bdi" as it should (where those missing translations cause severe layout problems and will block many translated pages that are partially translated or contain fuzzy translations).
See also
- VisualEditor/Design/Bidirectional text requirements
- VisualEditor/Design/Internationalization requirements
- Directionality support Verdy p (talk) 01:05, 7 May 2017 (UTC)
- Please report bugs on Phabricator. 2002:43F4:3186:1234:AC17:F0AD:B268:244D (talk) 01:25, 7 May 2017 (UTC)
- Posted link to this request on phab:T164658 Verdy p (talk) 01:35, 7 May 2017 (UTC)
How to start a new numbered (ordered list), but still continue the numbering?
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hi,
I have a numbered list and have to include images in each step. So I want to continure the numbering in the list. How can i do this? 192.71.175.30 (talk) 07:24, 7 May 2017 (UTC)
- If they're in a sequence, you can use the # sign at the beginning of each paragraph.
- Item
- Item 2 │Star-Warden│ 09:22, 7 May 2017 (UTC)
- There is no direct support for this with wikisyntax, but it can be done using basic html. There are some examples listed on the English Wikipedia on how to do it. —TheDJ (Not WMF) (talk • contribs) 09:46, 8 May 2017 (UTC)
- Thanks I used <ol start> each time to restart th
- numbering 125.17.76.43 (talk) 07:06, 12 May 2017 (UTC)
- This SO question has the answer of using "
<li value="42"></li>" on the first item after the break in the list, after the # to start the line and around the desired markup to display on that line. It works for me at whatever version of MW that Wikidata is currently using. Arlo Barnes (talk) 22:12, 25 May 2022 (UTC)
unable to open on 1.27.3
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. Because of my server denied to use APC, I updated one of my wiki and changed $wgMainCacheType into CACHE_DB();, but this error repeats. how to fix it?
Warning: fopen(/home2/ellifgkr/wiki/cache/l10n_cache-ko.cdb.tmp.88086729): failed to open stream: Permission denied in /home2/ellifgkr/wiki/vendor/wikimedia/cdb/src/Writer/PHP.php on line 50
[WQ9Otu@g4BMJVIu5exHfWgAAAZY] /wiki/%EB%8C%80%EB%AC%B8 MWException from line 108 of /home2/ellifgkr/wiki/includes/cache/localisation/LCStoreCDB.php: Unable to open CDB file "/home2/ellifgkr/wiki/cache/l10n_cache-ko.cdb.tmp.88086729" for write.
Backtrace:
#0 /home2/ellifgkr/wiki/includes/cache/localisation/LocalisationCache.php(1012): LCStoreCDB->startWrite(string)
#1 /home2/ellifgkr/wiki/includes/cache/localisation/LocalisationCache.php(460): LocalisationCache->recache(string)
#2 /home2/ellifgkr/wiki/includes/cache/localisation/LocalisationCache.php(334): LocalisationCache->initLanguage(string)
#3 /home2/ellifgkr/wiki/includes/cache/localisation/LocalisationCache.php(271): LocalisationCache->loadItem(string, string)
#4 /home2/ellifgkr/wiki/languages/Language.php(4330): LocalisationCache->getItem(string, string)
#5 /home2/ellifgkr/wiki/languages/Language.php(226): Language::getFallbacksFor(string)
#6 /home2/ellifgkr/wiki/languages/Language.php(189): Language::newFromCode(string)
#7 /home2/ellifgkr/wiki/includes/Setup.php(701): Language::factory(string)
#8 /home2/ellifgkr/wiki/includes/WebStart.php(137): require_once(string)
#9 /home2/ellifgkr/wiki/index.php(40): require(string)
#10 {main} Ellif (talk) 16:47, 7 May 2017 (UTC)
- Does your wiki work if you change it to CACHE_NONE? Have you considered using memcached? 67.244.49.134 (talk) 17:58, 7 May 2017 (UTC)
- You have a cache directory configured as /home2/ellifgkr/wiki/cache, but the system is not allowed to write to your cache directory. Either give it permission to do so, or choose another cache directory to cache to.
- Manual:File cache and Localisation#Caching —TheDJ (Not WMF) (talk • contribs) 09:38, 8 May 2017 (UTC)
- @TheDJ Yes! the problem was about the permission of cache directory! Thanks. Ellif (talk) 09:56, 8 May 2017 (UTC)
Error creating thumbnail: File missing
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.
During a migration to a new hosting service, I upgraded from 1.28.0 to 1.28.2. Everything appeared fine for a few minutes -- and then all the images got replaced with a grey box and the text: Error creating thumbnail: File missing
On my macbook, this happens with firefox and chrome -- safari is working normal.
On my Win10 box, Edge and Chrome work, firefox again fails.
Safari on my ipad works.
The image directory is a copy of the one for version 1.28.0. Sakshale (talk) 19:27, 7 May 2017 (UTC)
- Oops -- left off the web site URL -- gz.equoria.net Sakshale (talk) 19:28, 7 May 2017 (UTC)
- I looked at one particular file and it indeed fails:
- http://gz.equoria.net/File:Eq2-house-window-02.png
- "direct" file: http://gz.equoria.net/images/4/49/Eq2-house-window-02.png gives a 404 - Not Found error, so apparently the file does not exist on the filesystem, or the server maps the URL to the wrong path on the filesystem.
- Forcing a thumb generation: http://gz.equoria.net/thumb.php?f=Eq2-house-window-02.png&w=200: Gives Error creating thumbnail: File missing, so the wiki doesn't find it on the filesystem as well.
- Check the configured paths of the images in case the folder is misnamed or misplaced. Ciencia Al Poder (talk) 08:59, 8 May 2017 (UTC)
- Does uploading new images work? Maybe you tried uploading the file, but the file never actually got saved? Meaning: Maybe the file never actually was there?! Jörgi123 (talk) 10:37, 14 May 2017 (UTC)
A little problem about $wgMainCacheType and OPcache
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.
Now, I am using PHP OPcache in my wiki. But I saw this parameter that $wgMainCacheType,and the manual showed the following:"CACHE_ACCEL – APC, APCu, WinCache or XCache if available.." OPcache is an upgraded version of APCu. So, should I set CACHE_ACCEL? 星耀晨曦 (talk) 09:39, 8 May 2017 (UTC)
- You could try that. 24.39.1.139 (talk) 13:41, 8 May 2017 (UTC)
- Performance is not much change... 星耀晨曦 (talk) 15:09, 8 May 2017 (UTC)
- OPcache is for caching PHP code when it's executed, so PHP doesn't need to reparse every PHP file each time. This is not controlled by MediaWiki. The caching that MediaWiki controls is storing data into a cache, so when it needs to be retrieved, it can be retrieved from the cache and not from database or recomputed by doing expensive queries. You should check first if OPcache can actually store data, otherwise MediaWiki may be just ignoring this setting. Ciencia Al Poder (talk) 09:36, 9 May 2017 (UTC)
- I can be sure that the OPcache extension has been installed.
- How can I check OPcache can store data? 星耀晨曦 (talk) 15:21, 15 May 2017 (UTC)
- If you're using this OPCache, it can't store data in memory. It only saves the compiled PHP sources. This is not an upgraded version of APCu Ciencia Al Poder (talk) 21:02, 15 May 2017 (UTC)
- Alright, I got it. So, should I set
CACHE_NONEin the parameter? 星耀晨曦 (talk) 07:46, 18 May 2017 (UTC) - You may want to leave it as the default: CACHE_ANYTHING. It will try to use the database for caching, which should be better than no caching at all, unless the database is slow or you have space restrictions. Ciencia Al Poder (talk) 09:14, 18 May 2017 (UTC)
Missing ref icon on Macedonian Wikipedia
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.
Recently, many users complain about missing icon for references, which was quite convenient to add new references in the articles. I check MediaWiki tool https://mk.wikipedia.org/wiki/%D0%9C%D0%B5%D0%B4%D0%B8%D1%98%D0%B0%D0%92%D0%B8%D0%BA%D0%B8:Gadget-refToolbar.js, but I can not find anything strange, that is changed since last time. We are missing complete tool, and something complete icons for this kind of editing vanish when you start editing. Could you please help us with this problem, as my technical knowledge is very limited. Thank you Ehrlich91 (talk) 17:45, 8 May 2017 (UTC)
- Please provide steps to reproduce the problem, step by step, so someone else could see the same problem. You can use the "Developer Tools" of your web browser to check for potential reasons (e.g. something not loading in the "network" tab, or errors in the "console" tab). AKlapper (WMF) (talk) 08:28, 9 May 2017 (UTC)
- This is another case of scripts that have not been maintained and are now broken since last weeks update. Please use newer versions of this script, as maintained on English Wikipedia. —TheDJ (Not WMF) (talk • contribs) 15:39, 9 May 2017 (UTC)
- @TheDJ @AKlapper (WMF) Hello. I have updated what I thouight should solve the problem, that is, the pages mk:МедијаВики:RefToolbarLocal.js and mk:МедијаВики:RefToolbar.js. Nothing changed. We are therefore pretty sure that there is something else to be done somewhere, but we have no clue where and what. Could you help us on the wiki itself? Thanks a whole lot. B. Jankuloski (talk) 10:13, 10 May 2017 (UTC)
- Hi, can you please provide steps to reproduce the problem, and describe the actual problem? Which errors are shown in the Developer Tools of your browser? AKlapper (WMF) (talk) 10:43, 10 May 2017 (UTC)
- @Bjankuloski06, please blank the entire https://mk.wikipedia.org/wiki/МедијаВики:Common.js file and start building it from scratch. it's at least 3 years out of date with current english wikipedia conventions (from which most of it was copied). —TheDJ (Not WMF) (talk • contribs) 11:05, 10 May 2017 (UTC)
- @AKlapper (WMF) @TheDJ Done that, and the only thig that happened is that it reduced the number of buttons that remained. Unfortunately. B. Jankuloski (talk) 06:50, 11 May 2017 (UTC)
- See my previous comment... :) AKlapper (WMF) (talk) 10:11, 11 May 2017 (UTC)
HTTPS loads with no CSS
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I installed a secure certificate on my site, and created an .htaccess file to force pages to load securely, but now I have a problem with CSS not loading. Whatever's calling the CSS is trying to load it unsecurely (http), so it breaks. Loading the page in Chrome and right-click>"inspect page" yields the following error:
Mixed Content: The page at 'https://www.../index.php?title=Main_Page' was loaded over HTTPS, but requested an insecure stylesheet 'http://www.../load.php?debug=false&lang=en&modules=ext.r…i.legacy.commonPrint%2Cshared%7Cskins.monobook&only=styles&skin=monobook&*'. This request has been blocked; the content must be served over HTTPS.
This makes it sound like my problem is with an image loading script for the skin I'm using, but I cannot find any references to "http" in the script for index.php, load.php, or any of the files in the monobook folder. Yoshyahu3 (talk) 17:51, 8 May 2017 (UTC)
- Did you change $wgServer in LocalSettings.php 2002:43F4:3186:1234:71DE:8C4E:A96A:165C (talk) 19:09, 8 May 2017 (UTC)
- Wow... that was easy. =D
- Thank you! Yoshyahu3 (talk) 19:25, 8 May 2017 (UTC)
Cant login to new 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.
Whenever i click on login it gives me this error ErdbeerbaerLP (talk) 18:50, 8 May 2017 (UTC)
- "This error" is: includes/specialpage/AuthManagerSpecialPage.php: Class 'HTMLForm' not found. For anyone who wants to find this when searching.
- Which exact MediaWiki version is this about? Malyacko (talk) 08:21, 9 May 2017 (UTC)
- 1.28 i think ErdbeerbaerLP (talk) 12:28, 9 May 2017 (UTC)
- HTMLForm is a basic class being provided from the includes/htmlform/ directory. The only thing I can imagine is either a broken installation that is missing files or unable to read certain files. —TheDJ (Not WMF) (talk • contribs) 15:23, 9 May 2017 (UTC)
- Thx it works now... i dont know what i did wrong at uploading... (used filezilla) ErdbeerbaerLP (talk) 15:43, 9 May 2017 (UTC)
An error: Deprecated: Function mcrypt_create_iv() is deprecated
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 a Chinese, I'm very sorry for my bad English.)
Hello everyone.
I installed MediaWiki on localhost, but it displays an error at the top of the page: Deprecated: Function mcrypt_create_iv() is deprecated in /.../html/mediawiki/includes/libs/CryptRand.php on line 256
I want to know how to solve this error. I use PHP 7.1.3 with mcrypt and MediaWiki 1.28.2.
Thank you! Little Qiu (talk) 05:52, 9 May 2017 (UTC)
- Reported in T143788.
- Deprecation warnings can be safely ignored, they're for development.
- You can disable them by adding this to LocalSettings.php:
error_reporting(E_ERROR | E_WARNING | E_PARSE);Ciencia Al Poder (talk) 09:27, 9 May 2017 (UTC)
[Solved] Forbidden You don't have permission to access /index.php - Ask your provider to disable Mod_security
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 hope anybody can help me. I am running Mediawiki 1.28.2 with PHP 5.6 on www.kempedia.de.
Yesterday I recognized, that I get an error when I want to preview or save a page that contains a colon at the begin of a line to produce an indentation.
The error is
Forbidden
You don't have permission to access /index.php on this server.
Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.
And the administration-panel shows the error
Cannot allocate memory (client: 78.46.16.76:xxxxx) Couldn't create child process opt/suphp/sbin/suphp for home/web1807/public_html/api.php
After searchin in the www I thought it is something regarding mod_security(what is that?) or anything else regarding apache. But the technical support said that it comes from the actual version of mediawiki. "In der aktuellen Version vom Wiki werden Sonderzeichen transformiert übersendet, was bei bestimmten Sonderzeichenkombinationen einen 404 Fehler im Browser verursacht". In English: In the actual version ... special characters are sent after transformation. That causes with special character combination a 404-error in the browser"
Can you confirm it? What can I do that my wiki runs like before?
Thanks and best regards
Rainer Hamm Rainerhamm (talk) 13:19, 9 May 2017 (UTC)
- Chmod index.php to 755. 24.39.1.139 (talk) 13:27, 9 May 2017 (UTC)
- Generally al, the MediaWiki files should be readable, writable, and exicutable by the user readable, and executable, by the group and readable, and exicutable by the world. Chmod equivalent is 755. 24.39.1.139 (talk) 13:31, 9 May 2017 (UTC)
- As for the memory error, try increasing the memory limit in php.ini 24.39.1.139 (talk) 13:32, 9 May 2017 (UTC)
- Thank you!
- index.php was on 754, and it worked in normal use.
- Now I changed it ro 755. But that didn't change anything.
- The error still appears.
- I already had set the memory limit from 128 to 512M. No success.
- Any other idea? Rainerhamm (talk) 14:39, 9 May 2017 (UTC)
- What version of MediaWiki are you using? 24.39.1.139 (talk) 14:42, 9 May 2017 (UTC)
- Version 1.28.2 Rainerhamm (talk) 14:44, 9 May 2017 (UTC)
- Mod_security is an apache module that helps to protect your website from various attacks. It is used to block commonly known exploits by use of regular expressions and rule set 24.39.1.139 (talk) 14:48, 9 May 2017 (UTC)
- Add the following to a file called .htaccess in the domains root directory.
- <IfModule mod_security.c>
- SecFilterEngine Off
- SecFilterScanPOST Off
- </IfModule> 24.39.1.139 (talk) 14:51, 9 May 2017 (UTC)
- OK. But that seems not to be the reason. I askes the technical support of my provider.
- I think with mod_security for example words like Casino or Poker are forbidden. But I can write Casino into the script, and the preview works. If I set a colon at the begin of the line, I get the error message. Rainerhamm (talk) 14:53, 9 May 2017 (UTC)
- That will disable mod_security 24.39.1.139 (talk) 14:53, 9 May 2017 (UTC)
- Could you provide a link to your wiki. 24.39.1.139 (talk) 14:54, 9 May 2017 (UTC)
- .htaccess changed. No effect.
- I tried a similar entry already yesterday after reading half of the net. :-) Rainerhamm (talk) 14:57, 9 May 2017 (UTC)
- http://www.kempedia.de
- If you want I can create a user to change a file. Rainerhamm (talk) 14:58, 9 May 2017 (UTC)
- Then I will search for a simple test. Rainerhamm (talk) 14:58, 9 May 2017 (UTC)
- I can load your wiki just fine. 24.39.1.139 (talk) 15:00, 9 May 2017 (UTC)
- Please login with user "mediawiki" and the password "support".
- Then open any page, for example "Burgwall" in the middle of the page (a street in our town) and add a line
- ": Test" Normally that would create an indentation
- Then make a preview and you get the message.
- Try the same without the line and it works.
- Are you MacFan4000. How have you done it.
- Normally you must answer a question regarding our city to create a new account.
- You shouldn't know the answer. ??? Or do you have special possibilities? :-) Rainerhamm (talk) 15:10, 9 May 2017 (UTC)
- I am MacFan4000, no In did get a 403 when trying to do that. I simply googled for translations and questions 24.39.1.139 (talk) 15:14, 9 May 2017 (UTC)
- I have seen: You changed "Umstraße 22". This is a small page and a good object to test as well. Rainerhamm (talk) 15:14, 9 May 2017 (UTC)
- That was me. —TheDJ (Not WMF) (talk • contribs) 15:19, 9 May 2017 (UTC)
- Have you tried to add a line with a colon and save or preview? Rainerhamm (talk) 15:17, 9 May 2017 (UTC)
- Yes, also, you may want to check out Manual:Errors and symptoms 24.39.1.139 (talk) 15:17, 9 May 2017 (UTC)
- We've seen this before.. I think it's a problem with IIS being the server used...
- this might be relevant: https://forums.iis.net/t/1220559.aspx?IIS7+colon+in+URL —TheDJ (Not WMF) (talk • contribs) 15:19, 9 May 2017 (UTC)
- And have you got the error as well?
- What shall I search in Errors ans symtoms.
- It's a hard work for a non-specialist in IT and Mediawiki and a German with a bad English. :-) Rainerhamm (talk) 15:22, 9 May 2017 (UTC)
- But the colon is not in the URL. It is in the text at the begin of a line.
- I can try to read it in English. But I don't know whether I will find a solution there. Rainerhamm (talk) 15:24, 9 May 2017 (UTC)
- A colon in the URL doesn't make a problem.
- For example "index.php?title=Spezial:Spezialseiten" works with a colon. No problem. Rainerhamm (talk) 15:27, 9 May 2017 (UTC)
- Hello! Are you still busy with that issue?
- It is not solved. Or do you think so? Rainerhamm (talk) 07:28, 10 May 2017 (UTC)
- However - from today the mistake doesn't appear anymore. I don't know what is changed.
- I changed nothing - not in the wiki- and not in any other configuration.
- ???????????????????? Rainerhamm (talk) 11:13, 12 May 2017 (UTC)
- Full message I received future for internet searches:
- Forbidden
- You don't have permission to access /index.php on this server.
- Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request. Moscowdreams (talk) 11:43, 2 August 2018 (UTC)
- Change
- Mod_security with the administrator
- Mod_security is an apache module that helps to protect your website from various attacks. It is used to block commonly known exploits by use of regular expressions and rule set Moscowdreams (talk) 15:04, 25 February 2020 (UTC)
Problems with category and subcategories
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 there
im pretty new to mediawiki and im having some troubles with categories:
I was able to create subcategories right:
http://emaklabin.org.br.cp-23.webhostbox.net/wiki/index.php/Categoria:Autor
But for each subcategories in "autor", the parent category "autor" appears again as a subcategory of it.
I dont want this to happen.
What am i doing wrong? Hgodi (talk) 21:14, 9 May 2017 (UTC)
- It's doing exactly what you asked. You've added the subcategories as categories of the Autor category. Simply remove them and if you don't want that. 192.232.155.69 (talk) 03:04, 10 May 2017 (UTC)
- Thanks! Hgodi (talk) 13:23, 10 May 2017 (UTC)
How to change the description title in a text link?
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 there,
I need to change de description that appears when I do a hover on a link text. Normally it show's de pagetitle where the link goes, but I need to write a brief description of the section that it link.
(Pic of the day)--> I need that it shows a few comentary when I put on the link.
It's like de attribute Title= in the HTML code on the IMG link.
It's possible?
Thank's.
Guindelo. Guindelo (talk) 21:39, 9 May 2017 (UTC)
- AFAIK this is not possible. There is an extension that can provide a "preview" of the linked page when a user hovers a link. Maybe that can help you: Extension:Popups
- Alternatively you could try using a template like this:
{{Link|The page name|Alias|The description text}}- and have your template put out something like
[[{{{1}}}|{{{2}}}]]<span class="info" title="{{{3}}}"></span>Osnard (talk) 06:14, 10 May 2017 (UTC)[[{{{1}}}|<span title="{{{3}}}">{{{2}}}</span>]]- Will allow you to overwrite the title of the link. 192.232.155.69 (talk) 06:23, 10 May 2017 (UTC)
- It's magic¡¡¡
- Thanks for all.
- Guindelo. Guindelo (talk) 10:04, 10 May 2017 (UTC)
email confirmation button email 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.
attempting to confirm email assigned to account.
Methods from user
1) login
2) go to preferences
3) Scroll down to email settings
4) confirmed for correct email address registry
5) Clicked confirm email hyperlink
5) click button to sent email confirmation
The next page from then on will not load properly stopping the confirmation process by not being able to sent email to account. 68.204.162.242 (talk) 05:58, 10 May 2017 (UTC)
- Please link to your wiki. MacFan4000 (talk) 14:19, 10 May 2017 (UTC)
I can't log in
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 receive a message that my profile was created in 2015, but I can't log in.
Where do I go from here please?
Lexie
lexie.lord@icloud.com 101.191.203.116 (talk) 06:34, 10 May 2017 (UTC)
- How did you receive a message? About which "profile"? Why can't you log in, and what exactly happens when you try? On which website? Malyacko (talk) 09:15, 10 May 2017 (UTC)
Can I control what shows up in the preview in search?
When searching some content from the pages found shows up in the search listing. It doesn't necessarily seem to be the first line, and strange things happen when there are templates. Also, this content shows up even when searching a namespace that is otherwise invisible (not looking for a discussion of the '''''other''''' problems of using this :-) ). So, it would be nice to control what shows up. Can this be done? Tx! Tenbergen (talk) 16:06, 10 May 2017 (UTC)
- This is somewhat related to Project:Support_desk/Archives/System/003#.28OUTDATED.29_Disabling_Search_Preview, but there was no answer for that. Tenbergen (talk) 16:08, 10 May 2017 (UTC)
Magic Word
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 a magic word to get the number of installed extensions, and another one for skins? MacFan4000 (talk) 19:51, 10 May 2017 (UTC)
Can't log in over HTTP
I am able to log in over HTTPS, and then edit pages over HTTPS. However, my session appears to be HTTPS specific and I'm not logged in over HTTP. When I try to log in over HTTP I get the message:
There seems to be a problem with your login session; this action has been canceled as a precaution against session hijacking. Go back to the previous page, reload that page and then try again
I've tried various caching changes, but given the success of HTTPS login, I don't think that's the issue. I've tried setting
$wgServer = 'http://fellrnr.com';
and
$wgServer = '//fellrnr.com';
with the same results.
Versions:
| Product | Version |
|---|---|
| MediaWiki | 1.27.1 |
| PHP | 5.6.27-0+deb8u1 (apache2handler) |
| MySQL | 5.5.52-0+deb8u1 |
I have various extensions that only seem to work over HTTP, which might be related. These include facebook comments and a file upload utility. Fellrnr (talk) 23:22, 10 May 2017 (UTC)
New Installation DBQueryError
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 just installed MW 1.28.2 onto a Windows 2012 R2/IIS8 with Microsoft SQLServer 2012 and after progressing all the way through the installation process, saving the localsettings.php , I am greeted with the following DBQueryError. The table referenced (l10n_cache) exists and the SQL query works fine via the SQL Server Management Studio console. Can anyone please advise on steps to resolve this?
[ac1275199e622669756fee3c] /MediaWiki/index.php DBQueryError from line 1054 of C:\inetpub\wwwroot\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 TOP 1 lc_value FROM [l10n_cache] WHERE lc_lang = 'en' AND lc_key = 'deps' Function: LCStoreDB::get
Error: 208 [SQLSTATE 42S02][Error Code 208][Microsoft][ODBC Driver 13 for SQL Server][SQL Server]Invalid object name 'l10n_cache'.
[SQLSTATE 42000][Error Code 8180][Microsoft][ODBC Driver 13 for SQL Server][SQL Server]Statement(s) could not be prepared.
Backtrace:
#0 C:\inetpub\wwwroot\mediawiki\includes\libs\rdbms\database\Database.php(912): Database->reportQueryError(string, integer, string, string, boolean)
#1 C:\inetpub\wwwroot\mediawiki\includes\db\DatabaseMssql.php(407): Database->query(string, string)
#2 C:\inetpub\wwwroot\mediawiki\includes\libs\rdbms\database\Database.php(1074): DatabaseMssql->select(string, string, array, string, array)
#3 C:\inetpub\wwwroot\mediawiki\includes\cache\localisation\LCStoreDB.php(49): Database->selectField(string, string, array, string)
#4 C:\inetpub\wwwroot\mediawiki\includes\cache\localisation\LocalisationCache.php(414): LCStoreDB->get(string, string)
#5 C:\inetpub\wwwroot\mediawiki\includes\cache\localisation\LocalisationCache.php(460): LocalisationCache->isExpired(string)
#6 C:\inetpub\wwwroot\mediawiki\includes\cache\localisation\LocalisationCache.php(379): LocalisationCache->initLanguage(string)
#7 C:\inetpub\wwwroot\mediawiki\includes\cache\localisation\LocalisationCache.php(294): LocalisationCache->loadSubitem(string, string, string)
#8 C:\inetpub\wwwroot\mediawiki\languages\Language.php(2583): LocalisationCache->getSubitem(string, string, string)
#9 C:\inetpub\wwwroot\mediawiki\includes\cache\MessageCache.php(875): Language->getMessage(string)
#10 C:\inetpub\wwwroot\mediawiki\includes\cache\MessageCache.php(831): MessageCache->getMessageForLang(Language, string, boolean, array)
#11 C:\inetpub\wwwroot\mediawiki\includes\cache\MessageCache.php(771): MessageCache->getMessageFromFallbackChain(Language, string, boolean)
#12 C:\inetpub\wwwroot\mediawiki\includes\Message.php(1188): MessageCache->get(string, boolean, Language)
#13 C:\inetpub\wwwroot\mediawiki\includes\Message.php(802): Message->fetchMessage()
#14 C:\inetpub\wwwroot\mediawiki\includes\Message.php(902): Message->toString()
#15 C:\inetpub\wwwroot\mediawiki\includes\title\MalformedTitleException.php(49): Message->text()
#16 C:\inetpub\wwwroot\mediawiki\includes\title\MediaWikiTitleCodec.php(302): MalformedTitleException->__construct(string, string)
#17 C:\inetpub\wwwroot\mediawiki\includes\Title.php(3404): MediaWikiTitleCodec->splitTitleString(string, integer)
#18 C:\inetpub\wwwroot\mediawiki\includes\Title.php(352): Title->secureAndSplit()
#19 C:\inetpub\wwwroot\mediawiki\includes\MediaWiki.php(80): Title::newFromURL(NULL)
#20 C:\inetpub\wwwroot\mediawiki\includes\MediaWiki.php(136): MediaWiki->parseTitle()
#21 C:\inetpub\wwwroot\mediawiki\includes\MediaWiki.php(766): MediaWiki->getTitle()
#22 C:\inetpub\wwwroot\mediawiki\includes\MediaWiki.php(512): MediaWiki->main()
#23 C:\inetpub\wwwroot\mediawiki\index.php(43): MediaWiki->run()
#24 {main} Gorrie67 (talk) 00:38, 11 May 2017 (UTC)
- See Manual:Installation requirements#Database server 2002:43F4:3186:1234:D163:D9F7:59FC:AF2D (talk) 01:04, 11 May 2017 (UTC)
- Thanks! LTS Release works! Gorrie67 (talk) 01:56, 11 May 2017 (UTC)
Links and pages not updated when uploading files
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I have the following issue when trying to insert and upload images into pages since some time now (1.27+ update?) and was not able to find any solution:I insert a link to a not yet existing image into a page, i. e. [[Image:testfile.png]] and save the page. The file link is red now, since the file does not exist. After clicking on it, I can upload a file which works just fine, but after that the issues begin: The upload mask tells me that "There are no pages that link to this file.". And when reloading the modified page it still shows the red file link. Only after re-editing and saving the page the image is shown and the usage is reported correctly. Any hints?
My mediawiki version is 1.28.2 but the issue also appeared on 1.27.x. I am using MsUpload and MsLinks but disabling them does not change the behaviour.
Googling was not really helpful with this issue since it does not seem common and I only get results containing uploaded files with no links... Robenrb (talk) 10:29, 11 May 2017 (UTC)
- Update: I just noticed that a second wiki with identical configuration, extensions, versions and so on does not have this issue. The only difference was an extended .htaccess file for http authentication. After removing the authentication part, the issue was gone. Are there any internal http request going on when uploading? Robenrb (talk) 10:50, 11 May 2017 (UTC)
- Have you tried increasing the jobrate ? Or running a jobrunner to clear out the jobqueue ?
- Manual:Job_queue —TheDJ (Not WMF) (talk • contribs) 18:57, 11 May 2017 (UTC)
- I don't think that this could change anything related to http authentication. But we now just use user permissions for the cause skipping http auth completely which circumvents the issue Robenrb (talk) 11:33, 12 May 2017 (UTC)
- Like DJ my guess would as well be that the configuration of the job queue might be a problem. Yes, depending on configuration, MediaWiki may be creating requests to itself to get jobs run.
- So if I understand you correctly, you are basically trying to make MediaWiki run jobs with certain HTTP auth credentials. Sounds like a feature request to me, which you should report to Phabricator... 87.123.249.69 (talk) 13:00, 12 May 2017 (UTC)
- Set $wgRunJobsAsync to false (it's false by default in your version though) Ciencia Al Poder (talk) 16:35, 12 May 2017 (UTC)
Template:Infobox Import errors
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 the following Problem:
Upon Importing the Infobox Template from wikipedia, or just adding the script which is defined in the wikipedia template, it throws me the following errors:
Warning: proc_terminate(): supplied resource is not a valid process resource in /var/www/mediawiki-1.28.2/extensions/Scribunto/engines/LuaStandalone/LuaStandaloneEngine.php on line 320
Warning: proc_close(): supplied resource is not a valid process resource in /var/www/mediawiki-1.28.2/extensions/Scribunto/engines/LuaStandalone/LuaStandaloneEngine.php on line 321
The Module and Scribunto are both installed.
Anyone have any idea on how to fix this?
I can provide more info, no idea what to add here tho...
Just ask if you need more!
System Info:
| Software | Version |
|---|---|
| MediaWiki | 1.28.2 |
| PHP | 7.0.16-4+deb.sury.org~trusty+1 (apache2handler) |
| MySQL | 5.5.54-0ubuntu0.14.04.1 |
| Lua | 5.1.5 |
- Please link to your wiki. MacFan4000 (talk) 14:00, 11 May 2017 (UTC)
- Sure thing pal
- http://know.your.jawbon.es/Hauptseite 77.23.252.64 (talk) 14:06, 11 May 2017 (UTC)
- See also: Extension talk:Scribunto/2013#c-90.218.183.65-2013-08-06T14:03:00.000Z-Error_with_scribunto and Extension talk:Scribunto/2016#h-Enable_proc_open_in_the_php.ini_file-2016-05-17T18:15:00.000Z —TheDJ (Not WMF) (talk • contribs) 18:54, 11 May 2017 (UTC)
Help my entire Mediawiki data is missing
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I have a huge problem.
I have installed mediawiki on Qnap,recently I encountered a lot of bugs and I made the most crazy decision ever and reinstalled the entire mediawiki.
Now it looks like brand new installation and all my data is completly gone.
I have backed up the data and Imported to phpMyadmin database, still no luck.
I know I have messed up.Please Help! Bash shell (talk) 13:10, 11 May 2017 (UTC)
- Sounds like your wiki is not using the imported Database. MacFan4000 (talk) 13:59, 11 May 2017 (UTC)
- Do you have any idea how to make it run again.All my pages are gone. Bash shell (talk) 15:47, 11 May 2017 (UTC)
- When you reinstalled, did you create a second database? MacFan4000 (talk) 15:55, 11 May 2017 (UTC)
- Is there any possible method to extract the text from phpMyAdmin Databases? Bash shell (talk) 16:04, 11 May 2017 (UTC)
- Yes I did Bash shell (talk) 16:04, 11 May 2017 (UTC)
- In LocalSettings.php make sure the DataBase settings contain the name, username and password of the database where you imported the backup. 24.39.1.139 (talk) 16:35, 11 May 2017 (UTC)
- Yes I have them Bash shell (talk) 16:39, 11 May 2017 (UTC)
- I have tried all the possibilities,still no luck.Will reinstalling the entire Mediawiki on NAS help?
- Thanks in advance. Bash shell (talk) 09:24, 12 May 2017 (UTC)
- Reinstalling again most likely won't help. You are having a configurationproblem.
- Your data, all the pages and the page content must be inside a database. And you have to use the right database.
- In phpMyAdmin, make sure that in the database, which you want to use, the database table page contains rows for your pages and make sure that the table text contains rows with text in them.
- If such rows exist, then this is the right database. If such rows do not exist (apart from a few default rows, which are getting created during installation), then import your database from backup again.
- In your LocalSettings.php file, the configuration variables $wgDBname, $wgDBuser and $wgDBpassword have to point to that database. 87.123.249.69 (talk) 13:10, 12 May 2017 (UTC)
- Also, check prefix of tables and proper setting
$wgDBprefix. wargo (talk) 21:27, 12 May 2017 (UTC)- Made the changes everything works perfect.
- But all the images and pdf fies are missing.
- An error is generated "Error creating thumbnail: File missing" Bash shell (talk) 08:22, 15 May 2017 (UTC)
- Images are store in one of directories. If you reinstalled MediaWiki by deleting all files you lost them if you don't have backup. wargo (talk) 09:12, 15 May 2017 (UTC)
- I did not delete any files.But all the images are missing. Bash shell (talk) 09:48, 15 May 2017 (UTC)
- Can you view them in original size (by entering to file: page) or see what you have in upload directory? wargo (talk) 10:07, 15 May 2017 (UTC)
- I can see only the file name.No images are displayed.
- On clicking on these images I get "404 image not found error" Bash shell (talk) 10:18, 15 May 2017 (UTC)
- What is in filesystem? wargo (talk) 11:19, 15 May 2017 (UTC)
- Just the name of the file is present.When I click on that,then error 404 is displayed. Bash shell (talk) 11:23, 15 May 2017 (UTC)
- In case of a wrong or missing $wgDBprefix, I would expect a series of SQL errors, which obviously is not the case. However, it might be that he actually has multiple MediaWiki installations inside the one database: One with one prefix (or without any prefix) and one with another prefix. That would be a mess and the wrong content should actually be deleted to clean this up. 87.123.249.69 (talk) 07:49, 13 May 2017 (UTC)
- Made the changes everything works perfect.
- But all the images and pdf fies are missing.
- An error is generated "Error creating thumbnail: File missing" Bash shell (talk) 08:21, 15 May 2017 (UTC)
- Thankyou all for your help.Seems like the wiki is running but I lost all my images.I should now manually update all my images again. Bash shell (talk) 13:53, 15 May 2017 (UTC)
Failing installation - Need some help
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hello !
I've just finished my MediaWiki installation, but I've got two WARNING errors at the top of the page
https://www.associationaed.ch/w/
Warning: call_user_func() expects parameter 1 to be a valid callback, class 'ConfirmEditHooks' not found in /home/clients/0f0290719f8051266db89513dc22bbd6/web/w/includes/registration/ExtensionRegistry.php on line 285
Warning: call_user_func() expects parameter 1 to be a valid callback, class 'ConfirmEditHooks' not found in /home/clients/0f0290719f8051266db89513dc22bbd6/web/w/includes/Setup.php on line 850
Software Version :
MediaWiki 1.28.2
PHP 5.6
MySQL 5.6
I found nothing thereabout on the internet, do you have any suggestions?
Thanks ! :) Hiemis (talk) 13:33, 11 May 2017 (UTC)
- That is from an anti spam extension called ConfirmEdit. MacFan4000 (talk) 13:58, 11 May 2017 (UTC)
- Thanks, there was a conflict with the extensions installed. I've just solved the problem by editing the localsettings.php file. Hiemis (talk) 14:11, 11 May 2017 (UTC)
How do I auto-login mediawiki using API login or clientlogin?
Most guides I can find work on early than version1.27. Feeling so confuse about how to set cookies?How can I get sessionid? I also try to use clientlogin via postman, post request exactly like example on https://www.mediawiki.org/wiki/API:Login ,but result: "authmanager-authn-no-primary".
Here's my code,but didn't get login token properly. @Anomie
System Info:
Software Version
MediaWiki 1.28.2
PHP 5.6.30
MariaDB 10.1.21
<?php
namespace mediawiki;
// Start session
session_start();
/**
* How to log in mediawiki using PHP cURL?
* -------------------------------------------------
*/
//set login username password which already in your mediawiki database
$username = 'abc';
$password = '123';
//setup url
$Root = 'localhost/mediawiki';
$API_Location = "${Root}/api.php";
//setup cookie
$CookieFilePath = tempnam("/tmp", "TMP0");
$expire = 60*60*24*14 + time();
$CookiePrefix = 'theprefix';
$Domain = 'localhost';
// set variables to use in curl_setopts
$PostFields = "action=query&meta=tokens&type=login&format=json";
// first http post to sign in to MediaWiki
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "$API_Location");
curl_setopt($ch, CURLOPT_TIMEOUT, 500);
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
'Content-Type: application/x-www-form-urlencoded',
'Content-Length: ' .strlen($PostFields))
);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, "$PostFields");
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_COOKIEJAR, $CookieFilePath);
curl_setopt($ch, CURLOPT_COOKIEFILE, $CookieFilePath);
$Result = curl_exec($ch);
if(curl_exec($ch) === false) echo '<br>Curl error: ' . curl_error($ch).'<br>';
curl_close($ch); // curl closed
$ResultSerialized = json_decode($Result,true);
$Token = $ResultSerialized["query"]["tokens"]["logintoken"];
// cookie must be set using session id from first response
$_SESSION["logintoken"]=$Token;
//How can I get sessionid?
$sessionid=session_id();
$_SESSION["sessionid"] =$sessionid;
setcookie("${CookiePrefix}_Session",$sessionid , $expire, '/', $Domain);
setcookie("${CookiePrefix}UserName",$username,$expire,'/',$Domain);
setcookie("${CookiePrefix}Token", $_SESSION["logintoken"], $expire, '/', $Domain);
// second http post to finish sign in
$ch = curl_init();
$PostFields="action=login&lgname=${username}&lgpassword=${password}&lgtoken=${Token}&format=json";
curl_setopt($ch, CURLOPT_URL, "$API_Location");
curl_setopt($ch, CURLOPT_TIMEOUT, 500);
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
'Content-Type: application/x-www-form-urlencoded',
'Content-Length: ' .strlen($PostFields))
);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, "$PostFields");
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_COOKIE, "${CookiePrefix}_session=$sessionid");
curl_setopt($ch, CURLOPT_COOKIEJAR, $CookieFilePath);
curl_setopt($ch, CURLOPT_COOKIEFILE, $CookieFilePath);
$Result = curl_exec($ch);
if(curl_exec($ch) === false) echo '<br>Curl error: ' . curl_error($ch).'<br>';
curl_close($ch); // curl closed
$ResultSerialized = json_decode($Result,true);
// set persistent cookies
//$LgToken = $ResultSerialized["query"]["tokens"]["logintoken"];
$LgUserID = $ResultSerialized["login"]["lguserid"];
$LgUserName = $ResultSerialized["login"]["lgusername"];
$lgstatus=$ResultSerialized["login"]["result"];
var_dump($lgstatus);
setcookie("${CookiePrefix}UserName", $LgUserName, $expire, '/', $Domain);
setcookie("${CookiePrefix}UserID", $LgUserID, $expire, '/', $Domain);
//setcookie("${CookiePrefix}Token", $Token, $expire, '/', $Domain);
// Delete cURL cookie
unlink($CookieFilePath);
?>
Reference:
http://stackoverflow.com/questions/14107523/how-do-i-log-into-mediawiki-using-php-curl
https://www.mediawiki.org/wiki/User:Krinkle/API_PHP_cURL_example
https://www.mediawiki.org/wiki/API:Login/de/1_Beispiel
https://www.mediawiki.org/wiki/API:Login
https://www.mediawiki.org/wiki/API:Tokens Lsherwinforone (talk) 13:54, 11 May 2017 (UTC)
CreateAccount makes it look like user is logged in, but they aren't
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hi there,
Our wiki at https://wiki.healthylondon.org using
| Product | Version |
|---|---|
| MediaWiki | 1.28.1 |
| PHP | 5.6.30 (fpm-fcgi) |
| MySQL | 5.6.35 |
| ICU | 52.1 |
has an oddness, that when a user creates an account it shows them as logged in, but then when they navigate away from the created account page, it turns out they are not logged in and they have to log in again. This is confusing for users.
Is this a standard setup? An existing bug? Or something we've inadvertently introduced?
Many thanks in advance Tansaku (talk) 16:51, 11 May 2017 (UTC)
- definitively it's not something I can reproduce on a local instance
- On your wiki, after creating account, I see those cookies being set:
- cpPosTime, UseDC, UseCDNCache
- On next page I'm logged out, and when logging in again, those cookies are being set:
- bitnami_mediawiki_session, bitnami_mediawikiUserID, bitnami_mediawikiUserName
- However, on a local 1.28, I get all cookies set after creating the account. the _session cookie is set when loading the createaccount page, but then replaced with another after the account gets created. However it doesn't get replaced on your wiki on creating an account, and I have no idea why Ciencia Al Poder (talk) 21:47, 11 May 2017 (UTC)
- Thanks Ciencia - with your help I think I've tracked this down to an issue with the moderation extension we are using - I've opened a ticket for the issue:
- https://github.com/edwardspec/mediawiki-moderation/issues/11 Tansaku (talk) 10:27, 15 May 2017 (UTC)
replace username with email ...?
I've noticed some users being unable to log in to our mediawiki as they type their email in instead of their username - is there any way to adjust mediawiki so that emails replace usernames? Tansaku (talk) 16:56, 11 May 2017 (UTC)
- Also my problem and question! Mshastchi (talk) 06:53, 30 November 2024 (UTC)
- Overwrite MediaWiki's string
userlogin-yournameby creating the wiki pageMediaWiki:userlogin-yournamewith the contentEmail addressso it does not sayUsername? :D Malyacko (talk) 13:33, 30 November 2024 (UTC)
Setting up VisualEditor issues (Illegal offset type)
I'm setting up MW 1.28.2 and trying to get VE to work. However, it keeps getting me back to the old editor. This is from the log:
Illegal offset type in isset or empty in /var/www/extensions/VisualEditor/VisualEditor.hooks.php on line 20
Not sure if it has anything to do with this, but I did actually set $wgVisualEditorAvailableNamespaces and included NS_MAIN in it but still! CalNation (talk) 17:17, 11 May 2017 (UTC)
- Please link to your wiki. 24.39.1.139 (talk) 17:35, 11 May 2017 (UTC)
- Are you following this format ?? —TheDJ (Not WMF) (talk • contribs) 18:48, 11 May 2017 (UTC)
- I'm 100% following that format TheDJ. And sadly, I can't link to the wiki since it's local on my computer!
- I thought it had to do with VE (and its settings) being required in my LocalSettings.php file before my custom namespaces. However, I just moved VE to the bottom of the file and still no change. CalNation (talk) 02:58, 12 May 2017 (UTC)
Transclusion help
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 there!
I want to make a transclusion of only a part of the page, the problem is that the page was created with Extension:Data Transfer with a template page: Predefinição:Acervo
http://emaklabin.org.br.cp-23.webhostbox.net/wiki/index.php/M-0001
what i want is to transclude just the table of the page
i tried the Extension:Labeled Section Transclusion but it only works when i transclude the template and not the page that use the template.
http://emaklabin.org.br.cp-23.webhostbox.net/wiki/index.php/Sandbox
How can i do that parcial transclusion of page generated whit a template?
thanks! Hgodi (talk) 17:46, 11 May 2017 (UTC)
- Hmm, strange. Transcluding a section heading seems to work, though. For example, the leading section of the page:
- {{#lsth:M-0001}} Ciencia Al Poder (talk) 19:43, 11 May 2017 (UTC)
- Yes, but i want just the table with the basic infos. I want to make something like "Piece of Art of the week" in the main page using the table Hgodi (talk) 20:42, 11 May 2017 (UTC)
- Looks like a limitation of Labeled Section Transclusion, which can't propagate the markers of section transclusion inside other transclusions, only page sections (created by normal headings) are usable from another template.
- The only thing I can think of, is to substitute the template on all pages so the section tag is directly on the page and not added through the template. Ciencia Al Poder (talk) 15:47, 12 May 2017 (UTC)
Fresh Installation. Warning on every page
Hi,
just finished a clean installation locally on macosx. Latest XAMPP + mediawiki 1.28.2 + semantic media wiki 2.5.1 (all downloaded today).
Everything seems working fine, but I have a warning showing up multiple times on each page.
"""
Warning: Parameter 1 to SMW\MediaWiki\Hooks\HookRegistry::SMW\MediaWiki\Hooks\{closure}() expected to be a reference, value given in /Applications/XAMPP/xamppfiles/htdocs/mediawiki-1.28.2/includes/Hooks.php on line 195
"""
Thanks for any help. SereAbi (talk) 21:19, 11 May 2017 (UTC)
Extension outputting UNIQ QINU text
Hello guys,
I have a self written Multilanguage extension for MediaWiki using <country> tag for selective text display depending from user language settings. It interacts with the LanguageSelector which I installed in the version for my MediaWiki 1.23.
The extension is working fine, but I get some weird output like..
UNIQ64ea7d5fb1d3858c-country-00000000-QINU
The main function..
function wfArticleSectionCheck() {
global $wgParser;
$wgParser->setHook("country","wfRenderArticleSectionCheck");
}
function wfRenderArticleSectionCheck($input, $args, $parser) {
global $wgLanguageCode, $wgLang;
$lan = $wgLang->getCode();
if(strpos($args['lan'], $lan) !== false) {
$output = $parser->recursiveTagParse($input);
return $output;
}
}
Here is my setup..
MediaWiki 1.23
PHP 5.3.3
MySQL 5.1.67
Thank you. 83.231.214.186 (talk) 08:30, 12 May 2017 (UTC)
Multiplication of values in columns in template
Hi, I want to multiplicate values from column1*0.01*column2 in template. I have tried following:
{{#expr: and it does not works
in case of simple numbers lijke following, formula works fine
9
How to multiplicate value from template in the correct eay. Pls help. 87.236.196.115 (talk) 09:21, 12 May 2017 (UTC)
Permissions Issue
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I'm trying to set permissions to where only the Admin and Bureaucrat groups can make edits/create pages, but every time I turn off user permissions to do that, the other two groups also lose those permissions as well even though they haven't changed. What am I doing wrong? 75.139.141.68 (talk) 10:21, 12 May 2017 (UTC)
- See Manual:User rights 67.244.49.134 (talk) 11:14, 12 May 2017 (UTC)
- That doesn't explain a thing. The manual is wrong. If I turn off the permissions for the group users, it turns off all permissions for all groups. 75.139.141.68 (talk) 11:52, 12 May 2017 (UTC)
- Are you sure you're following the example given? It sounds to me it's exactly what you need. Have you tried adding these:
- $wgGroupPermissions['*']['edit'] = false;
- $wgGroupPermissions['sysop']['edit'] = true;
- $wgGroupPermissions['bureaucrat']['edit'] = true;
- to your localsettings.php? Unless you're asking something else, then those lines will only allow users in the sysop (administrators) and bureaucrat group to edit pages. Simply duplicate those lines and replace edit with createpage for the other right. │Star-Warden│ 12:38, 12 May 2017 (UTC)
- That doesn't work. All that does is turn off the guest permissions. Users can still create, post and edit. It's as if all permissions are tied to users and no other group matters. 75.139.141.68 (talk) 12:46, 12 May 2017 (UTC)
- Nevermind. I figured it out. You have to manually assign your admin account to the admin group even though you're already listed as admin of the site after install. 75.139.141.68 (talk) 12:48, 12 May 2017 (UTC)
- Manual:User rights explains things very nicely. Furthermore Manual:$wgGroupPermissions explains how different groups play together. You are welcome to improve this page, should you have any suggestions!
- Also Special:ListUsers is showing users right from the database. If your account is listed in the admin group, then it is inside there. You have changed something different to fix your issue. 87.123.249.69 (talk) 12:56, 12 May 2017 (UTC)
Template CURRENTDAY
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 need to do a dynamic article in my Main Page, that shows the information about the currentday,
I create a lot of articles with the name of the day, then when it's 12 may, the main page show an article in a div with the name 12 may, but, tomorrow I need tht this article in the main page change to 13 may, It's possible to do? With a template? with the magicword CURRENTDAY?
Thank's .
G. Guindelo (talk) 11:15, 12 May 2017 (UTC)
Recent changes API for a specific page title
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I just want to ask if there is any method to use Wikipedia recent changes API for a specific page title?
The recent change API returns all recent changes for all pages or for a specific category, I need to get recent changes per page ID or per page title. Any help? 37.8.122.71 (talk) 12:00, 12 May 2017 (UTC)
- This is called page or revision history. Use the prop=revisions module of the api, to get the revisions of a given page Ciencia Al Poder (talk) 16:36, 12 May 2017 (UTC)
MediaWiki Multi Level Navigation
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 Every body
is it possible to create multi level navigation in mediawiki?
e.g:
Parent
Child
Child
Sub-Child
Thanks in advance 194.88.196.208 (talk) 15:05, 12 May 2017 (UTC)
- Hi,
- Not out of the box. But there are a bunch of extensions that may help you. Unfortunately I can not recommend a particular one, but those two look promising: Extension:CustomSidebar, Extension:TreeAndMenu#Adding_a_tree_to_the_sidebar. Maybe someone else can?
- --
- Robert Osnard (talk) 07:11, 15 May 2017 (UTC)
Adding an extra tab in specific articles
Hello! We have a tricky question in the Basque Wikipedia. We're currently developping an education project in with there will be a bunch of articles with different quality levels so different audiences can understand it. Is to say, beside of the "highest" quality article, there'll be a more secondary school oriented pedagogic article, and a link to Vikidia (for students of ages 9-13) with information they need.
Would it be possible to add, via a template, a new tab to those articles in the top, like portuguese Wikipedia uses the language conversion tool? If yes... is there someone here aiming to help with that?
Thanks! Theklan (talk) 16:43, 12 May 2017 (UTC)
Installation problem w mediawiki-1.28.2
when accessing the index.php file: http://www.myserver.com/w/mediawiki-1.28.2/index.php
Getting the following error: although i have upgraded php to version 5.5.9
MediaWiki 1.28.2
Database: 5.7.18 MySQL Community Server (GPL)
I see the installation guide reference to the configuration script and Local_settings.php files and don't see
these under the installed mediawiki folder:w/mediawiki-1.28.2/
MediaWiki 1.28 internal error
MediaWiki 1.28 requires at least PHP version 5.5.9, you are using PHP 5.4.16.
Thanks in Advance! Aa2018 (talk) 19:18, 12 May 2017 (UTC)
- Your PHP version is too old. Update it. 2002:43F4:3186:1234:BD8B:6C1:649E:6DD4 (talk) 20:03, 12 May 2017 (UTC)
- i have already upgraded php to 5.5.9 but it is still giving the error.
- where is the location of the config script mentioned in the install document ?
- thanks! Aa2018 (talk) 21:43, 12 May 2017 (UTC)
- /mw-config 67.244.49.134 (talk) 22:11, 12 May 2017 (UTC)
- i see 3 config files:
- [root@client7-227 mw-config]# pwd
- /root/mediawiki-1.28.2/mw-config
- [root@client7-227 mw-config]# ls
- config-cc.css config.css config.js images index.php overrides
- [root@client7-227 mw-config]#
- are we supposed to run the script manually: ./config.js ?
- thanks! Aa2018 (talk) 22:29, 12 May 2017 (UTC)
- You visit it in the web browser. I.E. yourdomain.com/mw-config 2002:43F4:3186:1234:BD8B:6C1:649E:6DD4 (talk) 23:33, 12 May 2017 (UTC)
- Tried that from firefox it seems like it displays content of config.js:
- http://mydomain-name.com/w/mediawiki-1.28.2/mw-config/config.js
- ( function ( $ ) {
- $( function () {
- var $label, labelText;
- function syncText() {
- var value = $( this ).val()
- .replace( /[\[\]\{\}|#<>%+? ]/g, '_' )
- .replace( /&/, '&' )
- .replace( /__+/g, '_' )
- i guess something is not quite right!
- Thanks! Aa2018 (talk) 00:14, 13 May 2017 (UTC)
- Try http://mydomain-name.com<nowiki/>/w/mediawiki-1.28.2/mw-config/index.php MacFan4000 (talk) 00:27, 13 May 2017 (UTC)
- tried that and it prompts me with a dialog box to open index.php
- http://mydomain-name.com/w/mediawiki-1.28.2/mw-config/index.php Aa2018 (talk) 01:21, 13 May 2017 (UTC)
- Not sure what the problem is, tried index.php and config.js and all i get is the content of these file
- from firefox/chrome browsers:
- http://mydomain-name.com/w/mediawiki-1.28.2/mw-config/config.js or
- http://mydomain-name.com/w/mediawiki-1.28.2/mw-config/index.php
- Any ideas ?
- thank you. Aa2018 (talk) 17:49, 15 May 2017 (UTC)
- PHP files currently obviously are not linked to the PHP executable. And when your domain is accessed using the web browser, PHP files should be linked to PHP 5.5 or newer. They were linked to PHP 5.4 when you created this thread. 83.135.231.155 (talk) 18:37, 15 May 2017 (UTC)
- how do i link the php files to php5.5.9 executable ?
- thanks. Aa2018 (talk) 22:25, 15 May 2017 (UTC)
- you may have installed php-cli, but not enabled php on the webserver. Try installing libapache2-mod-php5 (or whatever is called in your distribution) Ciencia Al Poder (talk) 09:27, 16 May 2017 (UTC)
- this does not exist:
- yum search all libapache2*
- Loaded plugins: fastestmirror
- Loading mirror speeds from cached hostfile
- * base: mirror.compevo.com
- * extras: mirror.lax.hugeserver.com
- * updates: repos-lax.psychz.net
- Warning: No matches found for: libapache2*
- No matches found Aa2018 (talk) 00:23, 17 May 2017 (UTC)
- Search in google "how to enable PHP in apache in (distro)", replacing (distro) by your linux distribution. Ciencia Al Poder (talk) 20:37, 17 May 2017 (UTC)
- went through this document here: php installation on tutrorialpoint .com
- now, we are getting permission errors, although /w/mediawiki-1.28.2 permission is wide open.
- You don't have permission to access /w/mediawiki-1.28.2/mw-config/config.js on this server. Aa2018 (talk) 22:02, 18 May 2017 (UTC)
- Go to the root of the mw-config folder. MacFan4000 (talk) 22:25, 18 May 2017 (UTC)
- not sure what you mean by go to the root of mw-config folder???? Aa2018 (talk) 22:52, 18 May 2017 (UTC)
- mydomain.com/mw-config MacFan4000 (talk) 00:13, 19 May 2017 (UTC)
- we are getting the same result: mydomain.com/mw-config/config.js
- Forbidden
- You don't have permission to access /mw-config/config.js on this server.
- thanks/ Aa2018 (talk) 01:09, 19 May 2017 (UTC)
- Don't go to config.js, go to index.php MacFan4000 (talk) 01:20, 19 May 2017 (UTC)
- same results: with mw-config/index.php
- You don't have permission to access /mw-config/index.php on this server. Aa2018 (talk) 01:27, 19 May 2017 (UTC)
- This looks like a misconfiguration on the apache itself (if you can discard that permissions on the filesystem are not the issue). You may try an apache forum, where you can post the entire configuration files so someone can take a look. Or try to understand how it works by reading the manual, something I'd recommend if you plan to maintain that server and the wiki is public. Ciencia Al Poder (talk) 11:02, 21 May 2017 (UTC)
- We follow the steps in the media-wiki installation guide .
- Is this php install & configuration not covered in the media-wiki installation guide ?
- thanks! Aa2018 (talk) 18:36, 22 May 2017 (UTC)
- webserver (apache, nginx...) and php are general software that have their own installation/configuration guides that are not covered here. Ciencia Al Poder (talk) 19:51, 22 May 2017 (UTC)
- @Ciencia Al Poder, have you done this install ?
- can you share the urls for this apache, ngnix and php install and configuration which have worked for you ?
- thanks. Aa2018 (talk) 19:47, 24 May 2017 (UTC)
- ???? Aa2018 (talk) 21:59, 2 June 2017 (UTC)
Set content on cookieless domain
How I set content on a cookieless domain? CSS and JS go to s.example.com, and images to i.example.com. GXXFT·C 21:51, 12 May 2017 (UTC)
Parse function?
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 need some help please...
I want to do an article (actualday) that change in fact the day advance...
I create a var with the parameter {{#vardefine:diavar|19 de May}} {{#var:diavar}} where the date is defined by the variable currentday and currentmonth.
{{#var:diavar}}
well, I need that the article actualday today show the content of the article "13 de May", and tomorrow show the content of the article called "14 de May".. ... ...
anyone knows how can I do this trick?
Thanks¡
G. Guindelo (talk) 01:06, 13 May 2017 (UTC)
- Resolved,
- only is need to transclude like a template....
- 19 de May
- G. Guindelo (talk) 18:02, 14 May 2017 (UTC)
We have a problem with local links (file://)
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!
We have installed the current version 1.28 from MediaWiki.
Unfortunately the previously used local links ([:File://server/ordner/ file://///server/ordner/]...) can’t be open anymore.
Previously used version from MediaWiki: 1.13.
After the add of links from „$wgUrlProtocols[] = "file://";“ in the LocalSettings.php shows now the links as link.
But when you click on the link, nothing happens.
Source of the information: https://www.mediawiki.org/wiki/Manual:$wgUrlProtocols
The browser (IE, Edge, FF) are customized to open local files.
Thanks. :) 62.214.158.82 (talk) 08:36, 13 May 2017 (UTC)
- Hi,
- AFAIK modern web browsers do not open file protocol links by default. IE may be an exception if you configure your site to be recognized as local intranet and maybe change security settings.
- Firefox will need some AddOn like LocalLink. Maybe this will help you too: http://kb.mozillazine.org/Links_to_local_pages_do_not_work
- --
- Robert Osnard (talk) 07:05, 15 May 2017 (UTC)
- Hi,
- the browser (IE, Edge, FF) are customized to open local files. :) 62.214.158.82 (talk) 09:27, 15 May 2017 (UTC)
- Valid code:
[file://server/ordner/ link]. If not work, what url shows after hovering a mouse on it? wargo (talk) 10:10, 15 May 2017 (UTC) - Hi!
- The five slashes are only implemented because of FF, otherwise he can not handle the File-Link (see below).
- On Wiki Version 1.13 everything works, on Wiki Version 1.28 not.
- The link gets recognized but nothing happens on klick.
- Mouse-Over...
- - Code: [file://///server/ordner/ link]
- IE/Edge = file://server/ordner/ ... FF = file://///server/ordner/
- -Code: [file://server/ordner/ link]
- IE/Edge = file://server/ordner/ ... FF = file:///ordner/ 62.214.158.82 (talk) 12:09, 15 May 2017 (UTC)
- Hi!
- As is usually the case … the failure was really on my side.
- Since the new Wiki works on a test environment, we had to take the test server in the security settings of the IE.
- You always think tricky, but you don’t think obvious.
- Thank you for your effort. :) 62.214.158.82 (talk) 14:01, 17 May 2017 (UTC)
Sorry! We could not process your edit due to a loss of session data. Please try again. If it still doesn't work, try logging out and logging back in.
Hi.
I have a fresh install of MediaWiki 1.28.2 on a basic shared server hosted at Online.net. The install goes smoothly, but once it's done, every time I try to edit an article while logged in, I get this message : "Sorry! We could not process your edit due to a loss of session data. Please try again. If it still doesn't work, try logging out and logging back in."
Then the user is disconnected. I enabled debugging and here's the output when this happens :
https://www.dropbox.com/s/vmj55f71i8rsh6i/debug-db337823_rationnel.log?dl=0
I don't know how to interpret this log.
I noticed an entry for this message on the MediaWiki Manual page, but it refers to server elements that I don't have access to, being on a shared server.
Thank you. 2A01:CB06:23A:9400:2A:1864:B7BE:5348 (talk) 12:07, 13 May 2017 (UTC)
List
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.
Is there a way to get a list of all pages that have tables? 89.123.244.199 (talk) 14:43, 13 May 2017 (UTC)
- Please? 188.24.84.13 (talk) 13:24, 17 May 2017 (UTC)
- There's no easy way of doing that.
- You could use pywikibot and use the listpages.py script using the -grep option to find table syntax, for example -grep:"\{\|" (in regular expression notation) to detect the open table syntax. Ciencia Al Poder (talk) 09:29, 18 May 2017 (UTC)
Headline formatting
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 want that headlines with four "=" (like ==== headline ====) are italic and not bold. How do I configure this? ℜepress (talk) 18:19, 13 May 2017 (UTC)
- You can configure the design of MediaWiki on the wiki page MediaWiki:Common.css in your wiki.
- E.g.
#mw-content-text h4 { font-weight: normal; font-style: italic; }- I have no tested these rules; maybe #mw-content-text h4 is not specific enough to kick in, but you should get the idea. 87.123.249.106 (talk) 19:51, 13 May 2017 (UTC)
Editing toolbar not appearing in Catalan Wikinews
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 discussed the editing toolbar not appearing in Meta-wiki initially: https://meta.wikimedia.org/w/index.php?title=Meta:Babel&oldid=16755858#Toolbox_not_appearing
Somehow, the toolbar is working again in most wikis, including meta-wiki. However, Catalan Wikinews (https://ca.wikinews.org/wiki/Viquinot%C3%ADcies:La_cantina) still has issues with the toolbar not appearing there. Click "Modifica" and see why.
Unsure about some other wikis. George Ho (talk) 19:56, 13 May 2017 (UTC)
- Going to https://ca.wikinews.org/w/index.php?title=Viquinot%C3%ADcies:La_cantina&action=edit&debug=true (note the debug=true) and opening the web browser's developer tools you see the line "ReferenceError: getElementsByClassName is not defined". That is the line "var icones = getElementsByClassName( "icona_de_titol", document, "div" );" in the file https://ca.wikinews.org/wiki/MediaWiki:Common.js. Please try adding a "document." prefix to that function call. Also see https://phabricator.wikimedia.org/T163540
- or more information.f AKlapper (WMF) (talk) 12:03, 15 May 2017 (UTC)
- To make it clear: "var icones = getElementsByClassName( "icona_de_titol", document, "div" );" must become "var icones = document.getElementsByClassName( "icona_de_titol", document, "div" );" AKlapper (WMF) (talk) 11:42, 18 May 2017 (UTC)
- We need someone with enough technical skills to fix our js page. Syum90 (talk) 11:21, 18 May 2017 (UTC)
- Please start with the recommendation I already gave. If you get specific other errors, please list them here. See above for using "debug=true" and the browser's developer tools. If you have any specific questions about specific errors, please ask them - happy to help! AKlapper (WMF) (talk) 11:39, 18 May 2017 (UTC)
- Hi, I've implemented the change proposed by you, but unfortunately we have a lot of problems at ca.wikinews with almost all our gadgets and scripts since two weeks ago. Per example at the main page I see:
JavaScript parse error: Parse error: Unterminated string literal in file 'MediaWiki:Common.js' on line 1005- and
TypeError: mw.util.$content is null- Thank you very much for your help. Syum90 (talk) 19:32, 18 May 2017 (UTC)
- The first error is because "("Look what I found on Wikinews:mw.config.get('wgArticleId'))" is missing a " (quotation marks) to close that string.
- For the second one, please mention the line and the file (or steps to reproduce the problem). AKlapper (WMF) (talk) 23:24, 18 May 2017 (UTC)
- Hi, I'm added the quotation marks as you said, thanks.
- Now when I go to the main page I find these errors:
ReferenceError: addLoadEvent is not defined load.php:978:2 <anónimo> https://ca.wikinews.org/w/load.php:978:2- and
TypeError: mw.util.$content is null index.php:87:7 main https://meta.wikimedia.org/w/index.php:87:7 init https://meta.wikimedia.org/w/index.php:316:4 fire https://ca.wikinews.org/w/load.php:3148:10 fireWith https://ca.wikinews.org/w/load.php:3260:7 ready https://ca.wikinews.org/w/load.php:3472:3 completed https://ca.wikinews.org/w/load.php:3503:3- One gadget that is not working since two weeks ago is our ticker. When I look for errors on that page I can see:
ReferenceError: addLoadEvent is not defined load.php:978:2 <anónimo> https://ca.wikinews.org/w/load.php:978:2- and
TypeError: mw.util.$content is null index.php:87:7 main https://meta.wikimedia.org/w/index.php:87:7 init https://meta.wikimedia.org/w/index.php:316:4 fire https://ca.wikinews.org/w/load.php:3148:10 fireWith https://ca.wikinews.org/w/load.php:3260:7 ready https://ca.wikinews.org/w/load.php:3472:3 completed https://ca.wikinews.org/w/load.php:3503:3- Again, thank you very much for your help. Syum90 (talk) 19:02, 20 May 2017 (UTC)
- For the "addLoadEvent" error on https://ca.wikinews.org/wiki/Portada?debug=true , click the line "load.php:978:2", scroll up, and see that the problem is in the file https://ca.wikinews.org/wiki/MediaWiki:Common.js. Wherever that code was copied from (it says that Bawolff once wrote that), check that original code and whether it has been adapted. In general it is a bad idea to copy code and then not maintaining that code - see ResourceLoader/Migration guide (users)#Keep gadgets central.
- For
mw.util.$content, see https://phabricator.wikimedia.org/T164242 for how to fix those. AKlapper (WMF) (talk) 19:41, 20 May 2017 (UTC) - Hi, for the "addLoadEvent", it's the exact same code as in the French Wikinews, except for one thing: we replaced the
importScript("MediaWiki:ticker2.js")formw.loader.load('//fr.wikinews.org/w/index.php?title=MediaWiki:ticker2.js&action=raw&ctype=text/javascript')in order to load their "MediaWiki:ticker2.js" page. As a result their ticker works perfectly and ours one doesn't work at all. - By the way, our toolbar now seems to work perfectly as most of our gadgets; the ticker is one of the few gadgets which don't work yet. Syum90 (talk) 10:41, 21 May 2017 (UTC)
- Well, in fact we've been using the English Wikinews version (ticker) until now, but as I can see the en.wn ticker is not working at this moment and I've replaced it for the fr.wn version, which is working perfectly now. As I've said you the code we have in our common.js is exactly the same as the code used in the fr.wn except for the part indicated, and we're now using their ticker (their "MediaWiki:ticker2.js" page). Syum90 (talk) 10:57, 21 May 2017 (UTC)
- Replace "addLoadEvent" with "$" (without the quotes), which is equivalent. The problem isn't on the ticker itself, but the code that loads the ticker :) Ciencia Al Poder (talk) 11:07, 21 May 2017 (UTC)
- @Ciencia Al Poder thank you very much, I've done exactly as you said and our ticker is now working perfectly.
- @Ciencia Al Poder@AKlapper (WMF) At this moment it seems that all problems have been resolved at the Catalan Wikinews, if I see any other issue in the future or another user reports any problem I will inform you. Thank you very much for your help :-) Syum90 (talk) 14:27, 21 May 2017 (UTC)
Extension:CheckUser
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 Extension:Check User, has operating with defect, as make for she labour in form correct? ************************************************
[18ab9fa25d42547a206d2357] /wiki/mediawiki-1.28.0/index.php/Especial:Verificar_usu%C3%A1rio DBQueryError from line 1054 of /var/www/html/wiki/mediawiki-1.28.0/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 cuc_namespace,cuc_title,cuc_user,cuc_user_text,cuc_comment,cuc_actiontext,cuc_timestamp,cuc_minor,cuc_page_id,cuc_type,cuc_this_oldid,cuc_last_oldid,cuc_ip,cuc_xff,cuc_agent FROM `wpocu_changes` FORCE INDEX (cuc_ip_hex_time) WHERE (cuc_ip_hex = 'BACFC078') AND (1 = 1) ORDER BY cuc_timestamp DESC LIMIT 5001
Function: CheckUser::doIPEditsRequest
Error: 1146 Table 'my_wiki.wpocu_changes' doesn't exist (localhost)
Backtrace:
#0 /var/www/html/wiki/mediawiki-1.28.0/includes/libs/rdbms/database/Database.php(912): Database->reportQueryError(string, integer, string, string, boolean)
#1 /var/www/html/wiki/mediawiki-1.28.0/includes/libs/rdbms/database/Database.php(1254): Database->query(string, string)
#2 /var/www/html/wiki/mediawiki-1.28.0/extensions/CheckUser/specials/SpecialCheckUser.php(732): Database->select(string, array, array, string, array)
#3 /var/www/html/wiki/mediawiki-1.28.0/extensions/CheckUser/specials/SpecialCheckUser.php(89): CheckUser->doIPEditsRequest(string, boolean, string, integer)
#4 /var/www/html/wiki/mediawiki-1.28.0/includes/specialpage/SpecialPage.php(522): CheckUser->execute(NULL)
#5 /var/www/html/wiki/mediawiki-1.28.0/includes/specialpage/SpecialPageFactory.php(576): SpecialPage->run(NULL)
#6 /var/www/html/wiki/mediawiki-1.28.0/includes/MediaWiki.php(283): SpecialPageFactory::executePath(Title, RequestContext)
#7 /var/www/html/wiki/mediawiki-1.28.0/includes/MediaWiki.php(851): MediaWiki->performRequest()
#8 /var/www/html/wiki/mediawiki-1.28.0/includes/MediaWiki.php(512): MediaWiki->main()
#9 /var/www/html/wiki/mediawiki-1.28.0/index.php(43): MediaWiki->run()
#10 {main} WikiUser22222 (talk) 02:03, 14 May 2017 (UTC)
- As far as I can particularly tell, it seems you forgot to run php update.php, as indicated by the error itself: A database query error has occurred. Did you forget to run your application's database schema updater after upgrading? See update.php. │Star-Warden│ 08:42, 14 May 2017 (UTC)
Grab Visual Editor form MediaWiki in order to use in Custom PHP Project
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. In our project we want to use MediaWiki Visual Editor individually. Its may? and how?
In addition, we want make MediaWiki simpler and disable some of unwanted modules like User Accounts. Its may?
Please advise me. thanks. Skmohammadi (talk) 08:25, 14 May 2017 (UTC)
- If you want to use VE, simply install it, following the instructions here: VisualEditor.
- In order to disable the creation of user accounts, this page is for you. In this particular case, you need to add the following line to your localsettings.php:
- $wgGroupPermissions['*']['createaccount'] = false; │Star-Warden│ 08:40, 14 May 2017 (UTC)
- Thank you Star.
- Its may any of unwanted modules using same method? Skmohammadi (talk) 09:05, 14 May 2017 (UTC)
- I don't exactly understand what you mean by module? Are you referring solely to user rights or to extensions, as well? Anyway:
- For user rights, that manual lists you all the available rights and you can enable/disable them just like I showed you above
- For extensions, either remove their lines from localsettings or just disable them by adding a // before them, example: //wfLoadExtension( 'Disambiguator' );
- or if you want to disable multiple extensions:
- /*wfLoadExtension( 'Renameuser' );
- wfLoadExtension( 'Disambiguator' );
- wfLoadExtension( 'Poem' );*/
- You can use both methods to disable (comment out) any line in localsettings.php (or most files on the server). │Star-Warden│ 09:30, 14 May 2017 (UTC)
- Thank you for help Skmohammadi (talk) 09:57, 14 May 2017 (UTC)
Deleting my account
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 signed up for this in error and would like to completely cancel my account. How do I do that, please? WesRivel (talk) 18:06, 14 May 2017 (UTC)
- It's not possible, sorry. 67.244.49.134 (talk) 18:31, 14 May 2017 (UTC)
Unable to import .xml
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 reinsall my wiki on a new server but am struggling importing the .xml file.
When I try and import through the wiki site itself it only imports 16 pages then fails.
I have also tried using putty to do a maintenence import but again fails.
Can someone please try and get the import to work?
I can give you full ssh access and admin access should that be necessary
wiki is located at: http://gmdesign.eu.org/
dump is located at: http://gmdesign.eu.org/dump.xml Urbexuk (talk) 21:36, 14 May 2017 (UTC)
- What's the error you get? Ciencia Al Poder (talk) 09:14, 15 May 2017 (UTC)
- when i use the site to upload i get 503 error as it times out, seems my host sets the time out and 120seconds and will not change that.
- when i use ssh i get this error
- Warning: mysqli::query(): MySQL server has gone away in /home/u324945344/public_html/includes/libs/rdbms/database/DatabaseMysqli.php on line 42
- PHP Warning: mysqli::query(): Error reading result set's header in /home/u324945344/public_html/includes/libs/rdbms/database/DatabaseMysqli.php on line 42 Urbexuk (talk) 17:12, 15 May 2017 (UTC)
- If it's a big dump, you should use command line. The problem with mysql may be that it times out. See this example. In some circumstances, it may be necessary to increase the max_allowed_packet option in mysql.
- Anyway, you can reimport the dump again. Revisions already imported will be skipped. Ciencia Al Poder (talk) 21:00, 15 May 2017 (UTC)
- Its only 32mb in size so is tiny compated to most wiki imports
- I also tried converting to sql and import that way, it seemed to work but nothing showed on wiki, i then did php rebuildall.php and it said it was rebuilding and seemed to identify the 735 pages but then it started bring up errors and still nothing showing on wiki
- i have tried all options that i can think of thats why asking for help and if nessary give you direct access Urbexuk (talk) 16:06, 16 May 2017 (UTC)
- anyone? Urbexuk (talk) 23:28, 18 May 2017 (UTC)
- can no one help? Urbexuk (talk) 01:39, 21 May 2017 (UTC)
- How much do you pay for that hosting? That may explain why you get errors that seems to be limitations or extremely bad performance. Ciencia Al Poder (talk) 10:59, 21 May 2017 (UTC)
Printing from Wiki pages
Hi
I have an internal Wiki with a lot of pages. I use the Wiki to create manuals by concatenating the information in multiple pages by using subst:: It works really well, but some of the images I have on some pages needs to start printing on it's own page, because when using it in a manual it makes it difficult if it splits these images over multiple pages.
I would love to know how to include a page break before specific images when printing pages from our Wiki. I have already tried creating a template with the following code:
<div style="page-break-before:always"></div>
This template does not work at all.
Please assist me?
Kind Regards
Phoebe Du Plessis Phoebe.duPlessis (talk) 08:03, 15 May 2017 (UTC)
Regular E-Mail Notification
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´d like to know if there´s a possibility to receive an E-mail notification for a page, which notifies me, regardless of any changes made to a page, in a specified period? Blumenfuchs (talk) 09:50, 15 May 2017 (UTC)
- You could add it to your Watchlist then enable e-mail notifications from Special:Preferences on your wiki. │Star-Warden│ 12:10, 15 May 2017 (UTC)
- Ok, thank you :)
- Do you know how I could set a period, e.g. a year, so that I could create a page, put it on my watchlist and tell the wiki "send me an E-Mail to remind me to watch this page after that time"? Blumenfuchs (talk) 08:58, 16 May 2017 (UTC)
- I am not aware of such an option existing. Maybe there's an extension to do that, but I really don't know. │Star-Warden│ 09:23, 16 May 2017 (UTC)
- Ok, thank you Blumenfuchs (talk) 09:32, 16 May 2017 (UTC)
MediaWiki won't send emails (password recovery)
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hey,
I get the following error in the logs when attempting to send a recovery email:
postfix/sendmail[26660]: fatal: Recipient addresses must be specified on the command line or via the -t option 134.100.12.133 (talk) 12:41, 15 May 2017 (UTC)
- I've seen this solution in several search results: solution. Set
sendmail_path = /usr/sbin/sendmail -tin php.ini Ciencia Al Poder (talk) 21:15, 15 May 2017 (UTC)
How to create a launch page 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, I would like to create a launch page before the actual mediwiki page shows.
I have created index.html file and included text to it,that works perfect,but the image that I added is not shown. Bash shell (talk) 15:24, 15 May 2017 (UTC)
- If you use clear HTML you can't use wiki syntax. How did you add image? wargo (talk) 09:36, 16 May 2017 (UTC)
- If its normal HTML than for images use <img src="path to image" alt="discription" style="(styles)"> MacFan4000 (talk) 14:47, 16 May 2017 (UTC)
- The problem is not in your wiki as you use separate html page as index.html. You should define exact url of images that you want to use at the page. Fokebox (talk) 08:28, 17 May 2017 (UTC)
Prepare all things like Wikipedia VisualEditor
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 installed MediaWiki and Parsoid in Windows. Visual Editor is installed successfully and all things is good.
I want to prepare all things that Wikipedia used in their VisualEditor. How Wikipedia render math inputed by Formula Editor? It is Mathoid ?
please help me.
I need my editor be like Wikipedia Visual Editor. (excuse me for my bad English) Skmohammadi (talk) 18:47, 15 May 2017 (UTC)
- The math is rendered by Extension:Math MacFan4000 (talk) 14:50, 16 May 2017 (UTC)
- Yes, i know that math is rendered by Extension:Math, but which rendering mode is enabled? Mathoid? Skmohammadi (talk) 06:13, 17 May 2017 (UTC)
- Yes Mathoid —TheDJ (Not WMF) (talk • contribs) 23:24, 17 May 2017 (UTC)
Adding PDF, XLS, JPG, etc to individual 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.
Hi guys, I don't know much about these Wikis this is my first one, but is there a way to add these files to individual pages? Thanks! 209.36.41.250 (talk) 04:28, 16 May 2017 (UTC)
- Yes, they can. By default only 'png', 'gif', 'jpg', 'jpeg' are allowed.
- Manual:$wgFileExtensions variable will need to be changed to allow files with other extensions. Afer which you will only need to include the correct syntax in your Wiki page i.e.
[[File:File_name.pdf]]. AhmadF.Cheema (talk) 07:10, 16 May 2017 (UTC) - See the next posts in Project:Support desk/Flow/2017/05#h-Can't_reply_to_original_question_-_Adding_uploads_to_specific_pages-2017-05-17T05:19:00.000Z! Jörgi123 (talk) 06:14, 20 May 2017 (UTC)
Is registration closed?
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 registered on the main site a few days ago, but didn't receive an activation email. Then I waited a day and then sent a follow up to the support address (contact@comics.org), but I still haven't received a reply. Anyone home? 101.88.96.111 (talk) 07:52, 16 May 2017 (UTC)
- This is not the proper place to ask, as this is the support desk for the mediawiki software. │Star-Warden│ 09:24, 16 May 2017 (UTC)
Query in if-function
Hi,
I want to create a template, where a table is expanded up to 3 columns if more than 4 contents are filled in. I know how to expand a table with an if function, but only for the condition "line has content" or "line doesn't´t have content"
Using the template on a page, it should be like:
|Hobbies =
*Hobby 1
*Hobby 2
*Hobby 3
*Hobby 4
*Hobby 5
Hobby no. 5 should appear in the new added column. The content will be filled in with the bullet points.
Could anybody tell me how I can express this requirement? Blumenfuchs (talk) 09:48, 16 May 2017 (UTC)
Extension MobileFrontend
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. Any help on MobileFrontend please.
Following guide Extension:MobileFrontend#Configuration settings
Step 1.
Installed MobileFrontend in extensions folder
Step 2.
Edit LocalSettings.php:
wfLoadExtension( 'MobileFrontend' );
$wgMFAutodetectMobileView = true;
I can't access wiki from android. Got a 500 error.
Computer works ok.
Thank you! Barijo (talk) 14:53, 16 May 2017 (UTC)
- Please link to your wiki. MacFan4000 (talk) 16:08, 16 May 2017 (UTC)
- Wiki is http://book.clantr.us
- Hi. Any help on MobileFrontend please.
- Following guide Extension:MobileFrontend#Configuration settings
- Step 1.
- Installed MobileFrontend in extensions folder
- Step 2.
- Edit LocalSettings.php:
- wfLoadExtension( 'MobileFrontend' );
- $wgMFAutodetectMobileView = true;
- I can't access wiki from android. Got a 500 error.
- Computer works ok.
- Thank you!
- book.clantr.us/ Barijo (talk) 16:23, 16 May 2017 (UTC)
- According to Special:Version on your wiki, MobileFrontend is not installed. MacFan4000 (talk) 19:01, 16 May 2017 (UTC)
- Sorry LegoFan4000
- I had it commented due 500 error.
- Now, uncommented, check again please. Barijo (talk) 22:34, 16 May 2017 (UTC)
- For some reason Special:Version (Mobile) is working but not Main_Page (Mobile).
- You can use Manual:How to debug to obtain more detailed error information. AhmadF.Cheema (talk) 08:38, 17 May 2017 (UTC)
- Ahmad.
- Thank you for your help in advance. This is debug-on message error:
- Fatal error: Call to undefined method Revision::newKnownCurrent() in /home/clanunre/book.clantr.us/extensions/MobileFrontend/includes/models/MobilePage.php on line 55
- Code line 55:
- if ( $this->rev === null ) {
- Function:
- * @return Revision|bool
- */
- private function getRevision() {
- if ( $this->rev === null ) {
- $this->rev = Revision::newKnownCurrent(
- wfGetDB( DB_REPLICA ),
- $this->title->getArticleID(),
- $this->title->getLatestRevID()
- );
- }
- return $this->rev;
- } Barijo (talk) 23:38, 17 May 2017 (UTC)
- Thank you Ahmad. Will try that. Hope with more details. Barijo (talk) 23:22, 17 May 2017 (UTC)
- Are you sure you are using the extension version which corresponds to your MediaWiki version?
- In case you used git to download the extension, you will need to checkout the branch which corresponds to your MediaWiki version. In case you downloaded a snapshot from here, you will need to choose the correct extension version. AhmadF.Cheema (talk) 23:52, 17 May 2017 (UTC)
- Ahmad, you were right, MobileFrontend version was not correct. Now it works just fine.
- Error is fixed, and issue is closed, thus.
- Thank you! Barijo (talk) 00:48, 18 May 2017 (UTC)
- Hey Ahmad.
- Not sure at all indeed, sorry, I downloaed from here Extension:MobileFrontend, from dowload snapshot.
- I completly understad your point, and thank you for your link. I will do that and tell you what.
- Thanks again. Barijo (talk) 00:07, 18 May 2017 (UTC)
MediaWiki not showing uploaded files
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hi there,
I am new to MediaWiki and I recently installed it (version 1.26.2) on a website (www.sinsemia-wiki.org) and I have a problem with uploads. When I upload an image file (.jpg) the process seems to work fine but in the file page (File:filename.jpg) the system do not show the images. Even when I use the uploaded images on pages they are not shown.
I checked the "images" folder in the FTP and the image files are there.
I just wonder what could be the problem.
Anyone who knows the issue?
Thank you! 31.193.33.81 (talk) 22:36, 16 May 2017 (UTC)
- 1.26.2 is not supported any longer. We recommend updating to a supported version. MacFan4000 (talk) 01:28, 17 May 2017 (UTC)
Can't reply to original question - Adding uploads to specific 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.
Thank you very much! I have been able to get this to work with a picture (adding [[File:filename]] to the specific page after configuring it), but the picture appears to be huge. Is there a way to size it without sizing the actual photo? Also, when adding say a PDF file it only shows the link to the file, there is no thumbnail, is there anyway to add that? Also, I've noticed if a docx file is uploaded it's just blank, can I confirm that if I was viewing it from a system with Word installed it would automatically work? Thanks again!! Olds98 (talk) 05:19, 17 May 2017 (UTC)
- Continuing from Project:Support desk/Flow/2017/05#h-Adding_PDF,_XLS,_JPG,_etc_to_individual_pages-2017-05-16T04:28:00.000Z.
- For size use code of the form:
[[File:Example.jpg|50px]].- See this for other examples regarding image customizations: Help:Images#Format
- For PDF file thumbnails you will need to enable Extension:PdfHandler.
- .docx documents can be downloaded to your users' computer and then viewed through MS Word (or any other compatible software) but I don't know if it can be viewed directly inside the browser window or not. AhmadF.Cheema (talk) 08:25, 17 May 2017 (UTC)
- For size use code of the form:
Extension version information
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, is it possible to easily check if there are new stable releases of my installed extensions? I installed them using tarballs from mediawiki.org and don't want to go and check each single extension as this takes too much time. The best solution for me would be an additional column on Special:Version that shows "available version", but I'm not sure that would be possible to implement. Noboddy (talk) 07:33, 17 May 2017 (UTC)
- From what I know, the most efficient method would be to use git for extensions.
- Using SSH, just pull the extension repository into your MediaWiki extensions directory. After which either check that the repository has changed or not, or directly just git pull any changes. AhmadF.Cheema (talk) 08:08, 17 May 2017 (UTC)
- Thank you, I will have to try that! Noboddy (talk) 09:58, 17 May 2017 (UTC)
CENT OS
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.
Does MediaWiki for CENT OS install the same as Ubuntu or perhaps Red Hat? 71.231.29.39 (talk) 14:16, 17 May 2017 (UTC)
- The only differencies should be installation of php, apache and mysql. MediaWiki installation should work the same in them. Ciencia Al Poder (talk) 09:30, 18 May 2017 (UTC)
Having some massive issues upgrading
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.
Having issues upgrading to new version of mediawiki from an unknown verison. Have CentOS 6.9, but do not know the version of media wiki. Any help would be appreciated 64.89.77.178 (talk) 15:46, 17 May 2017 (UTC)
- Just navigate to Special:Version on your site to see the current version. │Star-Warden│ 16:20, 17 May 2017 (UTC)
- Nothing there in special version, I finally found the defaultsettings.php page in the appropriate directory, and found the edition to be 1.22.8, and I am now trying to upgrade to the latest release, you wouldn't know of a good upgrade procedure? 64.89.77.178 (talk) 16:30, 17 May 2017 (UTC)
- See Upgrading. │Star-Warden│ 17:26, 17 May 2017 (UTC)
- You're awesome. Thank you. 64.89.77.178 (talk) 17:44, 17 May 2017 (UTC)
Issues install mpdf extension
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've followed the upgrade pages, and tried to work through the extension addition but everytime I modify the php page, it crashes my wiki. Wlsnfmly (talk) 18:03, 17 May 2017 (UTC)
- Be sure you've followed all installation steps described in Extension:Mpdf#Installation Ciencia Al Poder (talk) 09:32, 18 May 2017 (UTC)
- I did, at the bottom of the page for instructions is has a line of code that has require_once "$IP/extensions/Mpdf/Mpdf.php"; while I modified the location, the entire website seems to crash after this code. I changed the code to the new 1.28 reference of wfLoadExtension( 'mpdf' ); but it still crashes the webpage. Wlsnfmly (talk) 14:15, 18 May 2017 (UTC)
- See Manual:How to debug and try to get an error message. A "crash" is not informative enough to find the source of the problem. Ciencia Al Poder (talk) 19:07, 18 May 2017 (UTC)
- I will look into those log files and see what I can find, to make things more interesting, I found that after I try to add ANY extension other than pdfbook, at the bottom of my localsettings page, it causes the website to become unresponsive. I will update as soon as I get some additional information. Wlsnfmly (talk) 12:18, 19 May 2017 (UTC)
Issues rendering pdf book
Having issues rendering an image from a pdfbook creation. System redirects to "previewer" but never generates an image. Wlsnfmly (talk) 19:56, 17 May 2017 (UTC)
- Having the same issue. running newest version and the page changes, but just gives a blank page 198.177.55.221 (talk) 02:34, 18 May 2017 (UTC)
- Anyone have any insight on this? I have followed the instructions to a T, installed the htmldoc extension and still cant get the pdf to preview or download. Wlsnfmly (talk) 14:16, 18 May 2017 (UTC)
images from bizagi not display on 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,
I have exported my procedure from Bizagi Modeler 3.1 to Wiki and run with Mediawiki 1.28 but the problem is that it seems the <img> html tag embedded in the <span> tag is interpreted as text and not as a tag Html in mediawiki page.
example: <span> "<img src="data:image/png;base64,iVBORw0KGgo....../>"</span>
could you please give me some solutions to fix it?
I know I have to respect the php and mediawiki versions but I also know that mediawiki not supported mediawiki 1.22 at all too!
Nevertheless, please, help me, I'm lost, if you can solve it, it will be great for all mediawiki and bizagi users.
Thank you for what you can do to fix it. Pmt-it (talk) 21:26, 17 May 2017 (UTC)
- See Manual:Linked images#Native with configuration change. AhmadF.Cheema (talk) 23:04, 17 May 2017 (UTC)
- How exactly did the "src" attribute disappear? Did it happen automatically?
- If this doesn't work, you can also try using Manual:$wgAllowExternalImages. AhmadF.Cheema (talk) 00:32, 19 May 2017 (UTC)
- "src" disappear when I enable $wgAllowImageTag. I tested disable it and "src" reappeared in <img> tag.
- I'll check your link thank you. Pmt-it (talk) 01:29, 19 May 2017 (UTC)
Error with mw-config
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 tried to install MW 1.29 with git and thought I was successful. But my extensions didn't show the correct version number even after I ran maintenance/update.php. So I thought I'll try the mw-config web configuration, but here I got the following error message:
[86ae26c8d74861c3c8e3d76d] /w/mw-config/?page=Upgrade Wikimedia\Rdbms\DBQueryError from line 1075 of /var/www/html/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: SHOW TABLE STATUS LIKE 'revision' ESCAPE '`'
Function: MysqlInstaller::preUpgrade
Error: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ESCAPE '`'' at line 1 (localhost)
Backtrace:
#0 /var/www/html/w/includes/libs/rdbms/database/Database.php(933): Wikimedia\Rdbms\Database->reportQueryError(string, integer, string, string, boolean)
#1 /var/www/html/w/includes/installer/MysqlInstaller.php(183): Wikimedia\Rdbms\Database->query(string, string)
#2 /var/www/html/w/includes/installer/WebInstallerUpgrade.php(62): MysqlInstaller->preUpgrade()
#3 /var/www/html/w/includes/installer/WebInstaller.php(279): WebInstallerUpgrade->execute()
#4 /var/www/html/w/mw-config/index.php(81): WebInstaller->execute(array)
#5 /var/www/html/w/mw-config/index.php(39): wfInstallerMain()
#6 {main}
Is there really a problem with my database or is this a bug in the latest version of MW?
I'm using MW 1.29.0-rc.0 (5859b82) (05:03, 16. Mai 2017) and MySQL 5.7.18-0ubuntu0.16.04.1. Noboddy (talk) 11:14, 18 May 2017 (UTC)
Centered Wikitable doesn't center anymore
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hey,
in my wiki, class="wikitable centered" doesn´t work anymore and I don´t know why. It doesn´t even show a broken code or something, the whole table is just aligned left. Classes like "sortable" or "center" work pretty well.
Does anybody know why this is happening and how I can solve this problem? Blumenfuchs (talk) 14:39, 18 May 2017 (UTC)
- You want for the table itself to be centred or its contents? │Star-Warden│ 14:50, 18 May 2017 (UTC)
- Try wrapping the entire table in <center> tags. MacFan4000 (talk) 22:28, 18 May 2017 (UTC)
- I want for the table itself to be centered. Blumenfuchs (talk) 10:31, 22 May 2017 (UTC)
- Well, using "wikitable center" does what you want. It centers the whole table. Maybe you could be more specific about how exactly you'd want it centred? │Star-Warden│ 16:39, 22 May 2017 (UTC)
- Yes, you can see both ways here:
- https://de.wikipedia.org/wiki/Hilfe:Tabellen#Ausrichtung_der_Tabelle
- If I use "wikitable centered", nothing changes...The "wikitable center" works, but I don´t won't the columns to be bigger than the included text. So I assumed that I´ve to change something in common.js. I don´t think it´s something I could solve in the editing mode, but I really don´t know. Blumenfuchs (talk) 13:57, 30 May 2017 (UTC)
- Hm. Interesting. It doesn't work on my site either. │Star-Warden│ 17:03, 30 May 2017 (UTC)
- Is the CSS class "centered" defined somewhere? On de.wikipedia it's defined in MediaWiki:Common.css. If it's not defined on your wiki it obviously won't have any effect ;) Ciencia Al Poder (talk) 09:30, 31 May 2017 (UTC)
- I can confirm that by adding:
- div.centered,
- table.centered,
- ul.centered,
- .centered {
- margin-left: auto;
- margin-right: auto;
- }
- in common.css does indeed do what the op wanted, as indicated by Ciencia. │Star-Warden│ 11:09, 31 May 2017 (UTC)
- Now it works :) Thank you both for your help :) Blumenfuchs (talk) 07:53, 1 June 2017 (UTC)
How to change the layout in a new skin?
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 wondering how to customise VectorTemplate.php in a custom theme. I have followed the instructions here and successfully created a skin that extends Vector. When I copy over VectorTemplate.php, and change the name of course, it is not recognized.
In the end I just want to change the location of the logo, maybe there is a simpler way? NitaiDas (talk) 06:50, 19 May 2017 (UTC)
- The blog post is a few years old. In current versions of MediaWiki, skins are structured a bit differently. E.g. when you are creating a new skin, I guess you also have a skin.json file in that skin, right? In this skin.json file there most likely is a reference to VectorTemplate.php. You have to adjust this reference accordingly so that it again fits the filename, which you have chosen in your skin.
- Maybe it is best to search all files of your skin for such references so that you can adjust all of them.
- If all you want to change is the logo and nothing else, then there is a way easier method: Edit the wiki page MediaWiki:Vector.css in your wiki and add the CSS styles you want on that page. More information is available at Manual:Interface/Stylesheets. 87.123.253.100 (talk) 17:17, 19 May 2017 (UTC)
Recover mediawiki from a backup with no images/files available
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I have a mediawiki installation that has a complete (XML and sql) backup of the database, but with zero uploaded files. All the image, pdf and other uploaded files (including the mediawiki logo) are gone (rogue superuser). Is there any way to restore the mediawiki with just the text? 128.210.107.25 (talk) 17:17, 19 May 2017 (UTC)
- I would go this way:
- Download the version of MediaWiki, which you used to use and extract it on your server. Then follow the steps on Installation in order to install it. At the end you will be offered a LocalSettings.php file. Put this file into the wiki folder as explained on the manual page and your (new and empty) wiki should work.
- Then I would erase the complete database and I would restore the old database into it. How to restore the database from backup is described on Manual:Restoring a wiki from backup.
- After that the new wiki will contain all the pages and the text of your old installation. However, all image links will be broken since the images obviously are not there. But apart from that I think this procedure should work out nicely. 87.123.253.100 (talk) 17:29, 19 May 2017 (UTC)
- Thank you very much! 128.210.107.25 (talk) 18:00, 19 May 2017 (UTC)
functions in mw.config
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.
Manual:Interface/JavaScript did not have any description of the functions used to access the mw.config variables described on the page. I added a description of mw.config.get and mw.config.values, but it may be incomplete or wrong. Could someone knowledgeable on this topic add a description of mw.config functions to that page, or add a link to a page that already describes these functions?
I see there is a page ResourceLoader/Core_modules#mediaWiki.config... that sort of fits what I'm asking for. — Eru·tuon 18:01, 19 May 2017 (UTC)
Error installing Wikibase: cannot acces database
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hi Everybody,
in advance, thankyou for reading me.
I want to install the extension: wikibase, since I need it in order to use Template:Infobox person .
I copy the extension folder into wiki/extension/ folder, and I copy the following lines to the LocalSettings.php file, as it is recommended in the installation guide.
$wgEnableWikibaseRepo = false;
$wgEnableWikibaseClient = true;
require_once "$IP/extensions/Wikibase/client/WikibaseClient.php";
require_once "$IP/extensions/Wikibase/client/ExampleSettings.php";
And still I am getting the error message: Sorry, we have problems. Cannot acces the database.
What can I do?
Thankyou for your attention,
Jordi Benet tallaferro (talk) 23:04, 19 May 2017 (UTC)
- Are you really sure you need to have wikibase in order to use Template:Infobox person? Wikipedia uses it, but if you plan to have this template in a personal wiki outside Wikipedia, you probably don't want to have a wikibase instance :)
- In that case, try to find what parts of the template require wikibase, and remove them, or adapt it so it only use the parameters provided to the template instead of trying to connect to a remote repository. Ciencia Al Poder (talk) 11:24, 21 May 2017 (UTC)
mw-config/index.php no output
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 extracted the MediaWiki to my web-site, renamed the directory to wiki and browsed to it. I then clicked on the config link which took me to mywebsite/wiki/mw-config/index.php, but the resulting page is blank. What am I supposed to do to configure the website? Jamescobban (talk) 00:04, 20 May 2017 (UTC)
- Check the error log and report your findings please. MacFan4000 (talk) 01:36, 20 May 2017 (UTC)
- I checked the web-site error log and the most recent message was from May 3rd. There was nothing relevant to this failure. Jamescobban (talk) 19:36, 20 May 2017 (UTC)
- When I modify index.php to enable display of error messages I get the following:
- Fatal error: Class 'DOMDocument' not found in /var/www/html/test.zipdandy.com/wiki/includes/cache/localisation/LocalisationCache.php on line 663 Jamescobban (talk) 22:55, 20 May 2017 (UTC)
- When I attempt to fix this according to the documentation I get the following errors:
- Resolving Dependencies
- --> Running transaction check
- ---> Package php-xml.x86_64 0:5.3.3-49.el6 will be installed
- --> Processing Dependency: php-common(x86-64) = 5.3.3-49.el6 for package: php-xml-5.3.3-49.el6.x86_64
- --> Running transaction check
- ---> Package php-common.x86_64 0:5.3.3-49.el6 will be installed
- --> Processing Conflict: php56w-common-5.6.30-1.w6.x86_64 conflicts php-common < 5.6
- --> Finished Dependency Resolution
- Error: php56w-common conflicts with php-common-5.3.3-49.el6.x86_64
- You could try using --skip-broken to work around the problem
- You could try running: rpm -Va --nofiles --nodigest
- Obviously I do not want to install the PHP 5.3 version of php-common on a PHP 5.6 system. This is on centos6 by the way. Jamescobban (talk) 22:59, 20 May 2017 (UTC)
- I tried the following:
- bash-4.1$ sudo yum install php56w-xml
- Loaded plugins: fastestmirror
- Setting up Install Process
- Loading mirror speeds from cached hostfile
- * city-fan.org: nervion.us.es
- * webtatic: us-east.repo.webtatic.com
- drivesrvr | 2.2 kB 00:00
- Resolving Dependencies
- --> Running transaction check
- ---> Package php56w-xml.x86_64 0:5.6.30-1.w6 will be installed
- --> Finished Dependency Resolution
- Dependencies Resolved
- ================================================================================
- Package Arch Version Repository Size
- ================================================================================
- Installing:
- php56w-xml x86_64 5.6.30-1.w6 webtatic 151 k
- Transaction Summary
- ================================================================================
- Install 1 Package(s)
- Total download size: 151 k
- Installed size: 641 k
- Is this ok [y/N]: y
- Downloading Packages:
- php56w-xml-5.6.30-1.w6.x86_64.rpm | 151 kB 00:00
- Running rpm_check_debug
- Running Transaction Test
- Transaction Test Succeeded
- Running Transaction
- Installing : php56w-xml-5.6.30-1.w6.x86_64 1/1
- Verifying : php56w-xml-5.6.30-1.w6.x86_64 1/1
- Installed:
- php56w-xml.x86_64 0:5.6.30-1.w6
- Complete!
- -bash-4.1$
- but I still get:
- Fatal error: Class 'DOMDocument' not found in /var/www/html/test.zipdandy.com/wiki/includes/cache/localisation/LocalisationCache.php on line 663 Jamescobban (talk) 23:04, 20 May 2017 (UTC)
- Run sudo yum remove php-common MacFan4000 (talk) 00:27, 21 May 2017 (UTC)
- Note that after installing, you need to restart apache so it picks the installed extension. Ciencia Al Poder (talk) 11:21, 21 May 2017 (UTC)
Guide to install Mathoid on Centos 6.8
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hi. I am installing Mathoid on Centos 6.8 (accessed by Codeanywhere.com) but i get some errors:
```
$ npm install mathoid
> dtrace-provider@0.8.1 install /home/cabox/workspace/node_modules/mathoid/node_modules/bunyan/node_modules/dtrace-provider
> node scripts/install.js
> librsvg@0.7.0 install /home/cabox/workspace/node_modules/mathoid/node_modules/mathoid-mathjax-node/node_modules/librsvg
> node-gyp rebuild
Package librsvg-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `librsvg-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'librsvg-2.0' found
Package cairo-png was not found in the pkg-config search path.
Perhaps you should add the directory containing `cairo-png.pc'
to the PKG_CONFIG_PATH environment variable
No package 'cairo-png' found
Package cairo-pdf was not found in the pkg-config search path.
Perhaps you should add the directory containing `cairo-pdf.pc'
to the PKG_CONFIG_PATH environment variable
No package 'cairo-pdf' found
Package cairo-svg was not found in the pkg-config search path.
Perhaps you should add the directory containing `cairo-svg.pc'
to the PKG_CONFIG_PATH environment variable
No package 'cairo-svg' found
```` Skmohammadi (talk) 21:14, 20 May 2017 (UTC)
- See https://www.mediawiki.org/wiki/Mathoid MacFan4000 (talk) 00:32, 21 May 2017 (UTC)
- When i following steps to install Mathoid on Centos 6.8 i get errors. These errors are related to Node, NPM, Node-gyp. which version of these tools must be installed? Skmohammadi (talk) 16:32, 21 May 2017 (UTC)
- === NPM package (CentOS 7) ===
- MacFan4000 (talk) 17:40, 21 May 2017 (UTC)
# install dependencies sudo yum install -y epel-release sudo yum install -y nodejs npm mocha librsvg2-devel pkgconfig git sudo yum groupinstall -y 'Development Tools' # put Mathoid in /etc or wherever else cd /etc sudo git clone https://github.com/wikimedia/mathoid cd mathoid # npm install and test sudo npm install npm test # Run server. Or use screen and nohup to run in background node server.js
- I get error:
- Skmohammadi (talk) 11:43, 22 May 2017 (UTC)
user "root" does not have permission to access the dev dir "/root/.node-gyp/4.2.3"
- What are you doing that causes this error? MacFan4000 (talk) 14:47, 22 May 2017 (UTC)
- i followed this steps but when i run command sudo npm install, then i get this errors:
npm WARN engine service-runner@2.3.0: wanted: {"node":">=4.2.2"} (current: {"node":"0.10.48","npm":"2.5.1"}) npm WARN engine request@2.81.0: wanted: {"node":">= 4"} (current: {"node":"0.10.48","npm":"2.5.1"}) npm WARN engine deep-extend@0.4.1: wanted: {"node":">=0.12.0","iojs":">=1.0.0"} (current: {"node":"0.10.48","npm":"2.5.1"}) npm WARN engine form-data@2.1.4: wanted: {"node":">= 0.12"} (current: {"node":"0.10.48","npm":"2.5.1"}) npm WARN engine har-validator@4.2.1: wanted: {"node":">=4"} (current: {"node":"0.10.48","npm":"2.5.1"}) npm WARN engine esprima@3.1.3: wanted: {"node":">=4"} (current: {"node":"0.10.48","npm":"2.5.1"}) npm WARN engine escodegen@1.8.1: wanted: {"node":">=0.12.0"} (current: {"node":"0.10.48","npm":"2.5.1"}) npm WARN engine har-schema@1.0.5: wanted: {"node":">=4"} (current: {"node":"0.10.48","npm":"2.5.1"}) npm WARN engine escodegen@1.8.1: wanted: {"node":">=0.12.0"} (current: {"node":"0.10.48","npm":"2.5.1"}) npm WARN engine request@2.81.0: wanted: {"node":">= 4"} (current: {"node":"0.10.48","npm":"2.5.1"})- this is because version of installed node and npm are less that requirements. Skmohammadi (talk) 08:00, 22 May 2017 (UTC)
- Looks like you need to update nodejs to 4.0 or newer. MacFan4000 (talk) 14:44, 22 May 2017 (UTC)
prerequisites for mathoid installation
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. What is all prerequisites to Mathoid installation on Centos6.8 ?
Is it need node, npm, node-gyp, .... ? Skmohammadi (talk) 21:41, 20 May 2017 (UTC)
Can't Reply to original post - PDFHandler
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 guys, I don't know much about these wiki's but someone told me I could install PDFHandler and gave me the link. I followed the directions and noticed I did not see any PDF thumbnails.. then about 10 min later I get this on the top of all of my WIKI pages. Parameter 1 to PdfHandler::registerWarningModule() expected to be a reference - Can anyone help? Thank you for your help!! Olds98 (talk) 00:13, 21 May 2017 (UTC)
- I have installed the three things they wanted the best I could.. I am guessing they are working.. Olds98 (talk) 00:22, 21 May 2017 (UTC)
- Okay, this is what I have added to my settings to get this to work and I still have the above error:
- Olds98 (talk) 00:29, 21 May 2017 (UTC)
$wgUseImageMagick = true; wfLoadExtension( 'PdfHandler' ); $wgPdfProcessor = 'C:\Program Files\gs\gs9.21\bin\gswin64.exe'; $wgPdfPostProcessor = $wgImageMagickConvertCommand; // if defined via ImageMagick // $wgPdfPostProcessor = 'C:\Program Files\ImageMagick-7.0.5-Q16\convert.exe'; // if not defined via ImageMagick $wgPdfInfo = 'C:\Program Files\Xpdf\bin32\pdfinfo.exe'; $wgPdftoText = 'C:\Program Files\Xpdf\bin32\pdftotext.exe';
Cannot edit Extension:SimpleMathJax at all
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I cannot edit Extension:SimpleMathJax at all, literally even just one letter. It's a kind of weird. I've never seen like this. What happened to the mediawiki? :) Jmkim dot com (talk) 06:10, 21 May 2017 (UTC)
- I can edit it just fine. Could you be more specific about your problem? │Star-Warden│ 09:25, 21 May 2017 (UTC)
- Oh, I misspoke. Actually, that means 'cannot save after edit', not just 'edit'. Jmkim dot com (talk) 11:14, 21 May 2017 (UTC)
- What editor are you using? wikitext editor, visual editor, new wikitext editor?
- What prevents you from saving? An error message (please specify which)? missing or disabled save button? Ciencia Al Poder (talk) 12:45, 21 May 2017 (UTC)
- When I clicked 'Edit' button, It shows 'Source editing' mode. I edited version 0.3 to 0.5 in 'TNT|Extension' template and clicked 'Publish changes' button. And then, I clicked 'Publish changes' button again on the dialog. The dialog says "Something went wrong", "Translation unit markers in unexpected position. Translation unit text: The SimpleMathJax extension enables MathJax, a Javascript library, for typesetting TeX formula in MediaWiki inside math environments." Jmkim dot com (talk) 17:33, 21 May 2017 (UTC)
- I've made the change for you. MacFan4000 (talk) 17:46, 21 May 2017 (UTC)
- MacFan4000, Thanks a lot. I found out it can be edited in the TNT template dialog in visual edting mode. I think there are restrictions for direct edit. Jmkim dot com (talk) 02:21, 22 May 2017 (UTC)
Trying to install PDFHandler and getting this error
Hey guys, I don't know whats going on here.. I tried posting yesterday and it said someone hid it? I installed PDFHandler and the three other packages required and even before installing the three packages I got this error now on the top of every page of my Wiki.. can someone help me? I know nothing about these Wiki's.. thanks! I am stuck!
Parameter 1 to PdfHandler::registerWarningModule() expected to be a reference - Olds98 (talk) 23:38, 21 May 2017 (UTC)
- Hi please don't keep creating duplicate tasks. I merely hid a blank comment. MacFan4000 (talk) 00:12, 22 May 2017 (UTC)
- Hi guys, I am really stuck here.. is there anyone that can help me with this? I don't know where else to go.. thank you for your time. 2602:306:35A0:330:5C6A:B9F7:DA73:12F (talk) 23:05, 26 May 2017 (UTC)
- Is there a place I can perhaps contact whoever made this PDFhanlder to see if they can help me? I posted on a board from their page but they directed me here but it doesn't seem like anyone here knows what to do.. I appreciate any help.. I'm stuck.. thanks! Olds98 (talk) 00:11, 30 May 2017 (UTC)
- I guess it's safe to say nobody here knows about PDFHandler? Olds98 (talk) 18:28, 1 June 2017 (UTC)
- Can anyone please help me out? I would really really appreciate it! Olds98 (talk) 01:26, 12 June 2017 (UTC)
Add a multi language search bar for home page like wikipedia
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 researching if there is a standard way to add a search form that a user can select which language to search, like on the home page of wikipedia. Any clues in that direction are appreciated! NitaiDas (talk) 08:00, 22 May 2017 (UTC)
- The wikipedia homepage is just a simple webpage. It has no relation to Mediawiki, other than pulling in article counts. 101.160.152.205 (talk) 09:05, 22 May 2017 (UTC)
Images always showing 403 error
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I have a feeling this is related to apache directives and URL rewrite.
I have set up MediaWiki on Ubuntu 16 following Wiki family drupal style sites and no matter what I do I get 403 forbidden on all images. That is, images do not show on the wiki, nor when directly navigated to in the URL.
The images directory is outside of the DocumentRoot.
Here is my Apache directives
DocumentRoot "/home/DOMAIN/public_html/mediawiki/mediawiki1.28"
ServerName en.DOMAIN.org
Alias /images "/home/DOMAIN/public_html/mediawiki/sites/images"
<Directory "/home/DOMAIN/public_html/mediawiki/mediawiki1.28">
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d
RewriteRule ^(.*)$ %{DOCUMENT_ROOT}//index.php [L]
## http://www.mediawiki.org/wiki/Manual:Short_URL/Apache
# Enable the rewrite engine
RewriteEngine On
# Short url for wiki pages
RewriteRule ^/?wiki(/.*)?$ %{DOCUMENT_ROOT}/index.php [L]
# Redirect / to Main Page
RewriteRule ^/*$ %{DOCUMENT_ROOT}/index.php [L]
#
Options -Indexes +SymLinksIfOwnerMatch
allow from all
AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch
Require all granted
</Directory>
(In the DocumentRoot and Directory paths symlinks are used, but I have changed to reflect the actual location)
Permissions of the Images directory:
/home/DOMAIN/public_html/mediawiki/sites/images drwxr-xr-x www-data www-data images
All else is DOMAIN:DOMAIN
I have even ran chmod -R 777 images to test.
I have tried with other directories and files in the area where images dir is located, without any success, and that leads me to think that I cannot access ANYTHING outside of the DocumentRoot. NitaiDas (talk) 08:05, 22 May 2017 (UTC)
- Your <Directory> directive is for "/home/DOMAIN/public_html/mediawiki/mediawiki1.28", but "/home/DOMAIN/public_html/mediawiki/sites/images is outside of it, so you need to add another <Directory> directive where you can give access permissions Ciencia Al Poder (talk) 09:30, 22 May 2017 (UTC)
- Thanks, I thought so.
- What sort of permissions directives would be needed? (site files owned by DOMAIN and images by www-data) NitaiDas (talk) 09:56, 22 May 2017 (UTC)
- you can try allow from all and Require all granted, like your example Ciencia Al Poder (talk) 17:46, 22 May 2017 (UTC)
Visio Data File
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´d like to know if it is possible to upload vsdx-data files in media wiki? Blumenfuchs (talk) 14:47, 22 May 2017 (UTC)
- Yes if you add the relevant file extensions to
$wgFileExtensionsin LocalSettings.php MacFan4000 (talk) 16:08, 22 May 2017 (UTC)
can't change user preferences on Special:Preferences
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.27.3
PHP 5.6.30 (apache2handler)
MySQL 5.6.36
Hello, I have a problem and no idea how to solve it, so I hope someone can help me here.
I have updated my MediaWiki from 1.24.0 to 1.27.3 and ran update.php script and after that all user preferences were set to default in MediaWiki, but in the database I can see custom preferences saved (in column up_property in user_properties table ).
If I go to Special:Preferences and change values, I get "Your preferences have been saved" message, but after the page loads, all values are set back to default.
In the database I can see new records, but in Mediawiki all values are set back to default.
Does anyone have an idea what is going wrong?
Thanks! JaNeIEEE (talk) 16:12, 22 May 2017 (UTC)
Template spoiler does not work
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
No ability to expand/hide, no button
http://skrinshoter.ru/s/220517/sLJBX9eV EvangelionI (talk) 16:51, 22 May 2017 (UTC)
- The template was taken here https://ru.wikipedia.org/wiki/Шаблон:Сокрытие
- I installed myself here http://wiki-evan.zzz.com.ua/index.php?title=Шаблон:Сокрытие
- Tell me, please, why it does not work ː(( EvangelionI (talk) 19:40, 22 May 2017 (UTC)
- You also need the CSS and JS that enables collapsible div system that this depends on. It is in their https://ru.wikipedia.org/wiki/MediaWiki:Common.js and https://ru.wikipedia.org/wiki/MediaWiki:Common.css files —TheDJ (Not WMF) (talk • contribs) 11:39, 24 May 2017 (UTC)
- I copied completely earlier already these css and js does not work EvangelionI (talk) 17:06, 24 May 2017 (UTC)
- There are JavaScript errors. If you open the developer console (hit F12 in your browser) you'll see the error on the console: ReferenceError: importScript is not defined
- For an easy workaround, you should enable $wgIncludeLegacyJavaScript. However I recommend to adapt your JavaScript to not depend on this legacy code. Ciencia Al Poder (talk) 09:26, 25 May 2017 (UTC)
Problem sending mails with full form recipient
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I installed a fresh mediawiki-1.28.2 on an Online.net personnal offer hosting (PHP 5.6 + MySQL) which provides quite basic access (FTP for files and phpMyAdmin for database). I had no issue in particular, thanks for the great work!
I configured MediaWiki as a private wiki with user passwords sent by mail. But when I create new user, no mail are sent, while it still looks like a success on the administration interface.
So I configured a log file ($wgDebugLogFile) and it showed that the mail() function returns false, it is just not displayed in the user interface. I then checked with a minimal PHP code that sending a mail works on my server. It works. Then I added some code to 'UserMailer.php' to get more info about the parameters passed by MediaWiki to the mail() function.
Nothing was wrong actually but, it seems that my hosting platform does not support a recipient different from:
username@domain.ext
And in the case of MediaWiki, the recipient is like this:
SomeName <username@domain.ext>
Indeed, when I try my minimal PHP code with such a recipient, the mail() function returns false and no mail is sent.
Question: is there an option in the configuration to force MediaWiki to only use the "basic form" of the recipient instead of the "full form"?
I would prefer not to have to patch the code myself so I hope I missed something... any idea?
Thank you for you help!
PS: If you think about suggesting me to switch to PEAR, I read about it, but I would prefer not to use it, and I'm not event sure it is available on my server. Maxime.bochon (talk) 19:52, 22 May 2017 (UTC)
- Which server software do you use to send emails? Section 3.4 of RFC 2822 specifies how email address can look like. If your mail server software cannot handle that, the mail server software needs fixing. Malyacko (talk) 22:24, 28 May 2017 (UTC)
How to fix slash (/) problem of the url rewrite in IIS8?
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 know this problem..But I don't know how to fix this problem in IIS. 星耀晨曦 (talk) 08:29, 23 May 2017 (UTC)
Blocking Account Creation
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,
My site got vandalized, apparently because I did not properly prevent creation of new accounts. Can someone tell me the proper way to prevent users from creating accounts? I have a handful of people I want to have the ability to add content.
I thought I'd properly followed the instructions in the manual, but I may have misunderstood something.
Thanks! CSchrieb (talk) 18:48, 23 May 2017 (UTC)
Seach and Special Pages aren't using Theme
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.
MonoBook theme is active and working perfectly except Search Results and Special:
Am I missing something or just ignorant of how to setup??
| Product | Version |
|---|---|
| MediaWiki | 1.28.2 |
| PHP | 5.6.30 (cgi-fcgi) |
| MySQL | 5.6.35-cll-lve |
| ICU | 50.1.2 |
- Your load.php URL crashes when loading some modules, for example: mediawiki.helplink. You should enable the display of exception details in Manual:How to debug to see an error message and identify the issue Ciencia Al Poder (talk) 10:23, 24 May 2017 (UTC)
- Interesting, I thought we had debug enabled
- Thank you! Plobrien (talk) 12:05, 24 May 2017 (UTC)
- I don't want to come across unfriendly or anything but, couldn't you have used a different domain ?
- The landscape is confusing enough when it comes to the terms of wiki, wikipedia, wikimedia, wikitech.wikimedia.org, wikileaks etc etc.. Further adding to that confusion for wiki users might not be the best idea... —TheDJ (Not WMF) (talk • contribs) 11:30, 24 May 2017 (UTC)
- We work in the media tech industry. It's an existing convention, like biotech or fintech. i.e. http://www.mediatechsummit.com I suppose we could go with something other than .wiki but its a wiki, no? Plobrien (talk) 12:07, 24 May 2017 (UTC)
Newbie
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 looking for wiki to use in small enterprises (15-25 people). I don't quite understand wiki in general and would like to ask: in running mediawiki, do php and database required for all users? 182.253.80.174 (talk) 03:10, 24 May 2017 (UTC)
- If you're asking if anyone who uses the wiki needs to have php and database installed on their own end, then no. The php and database is required for the wiki itself. │Star-Warden│ 07:48, 24 May 2017 (UTC)
- Users only need a web browser to connect to the server where the wiki is hosted. The server that hosts the wiki needs PHP and database access Ciencia Al Poder (talk) 10:13, 24 May 2017 (UTC)
LocalSettings.php Issue
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I was able to get our site up and running, but when I add the line below to my localsettings.php file, save it, then to to my wiki, I get an error. I have added it to the bottom of my localsettings.php file and followed the install procedures via the site. Has anyone run across this before?
wfLoadExtension('EmbedVideo');
PHP Warning: Parameter 1 to EmbedVideoHooks::onParserFirstCallInit() expected to be a reference, value given in C:\inetpub\wwwroot\kb\includes\Hooks.php on line 195 Joekerr3447 (talk) 12:41, 24 May 2017 (UTC)
- Apparently Extension:EmbedVideo isn't compatible with your MediaWiki version. This has been reported already on the project page on github Ciencia Al Poder (talk) 09:29, 25 May 2017 (UTC)
Inter wiki images
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
My problem is 3 fold
First, I can not figure out how to make the images available to all separete wikis. Technically it works fine, all images go to the same folder, and when entered in the source code they are viewable. But they show in Special:ListFiles only on the site that uploaded them.
Second, and similar, files uploaded on another wiki, or in the pool wiki, are not available in Visual Editor. Files uploaded on a particular site are available for that site only.
Third is explained below
Here is my settings
(Inside of require_once "......SharedWikiFamilySettings.php"; from LocalSettings.php)
$wgUploadNavigationUrl = 'http://pool.domain.org/index.php/Special:Upload';
$wgUseSharedUploads = true;
$wgSharedUploadPath = 'http://pool.domain.org/images';
$wgSharedUploadDirectory = '/home/domain/public_html/mediawiki/sites/images';
$wgHashedSharedUploadDirectory = true;
$wgUploadDirectory = "/home/domain/public_html/mediawiki/sites/images";
Now the 3rd problem is when i remove $wgUploadDirectory none of the sites are able to display the images.
I think everything is related and would appreciate any direction.
I am using Manual:Wiki family#Drupal-style sites on Ubuntu 16, Mediawiki 1.28. NitaiDas (talk) 16:27, 24 May 2017 (UTC)
- Apparently you need to set $wgSharedUploadDBname so the wikis can access the database where the shared uploads are uploaded.
- The idea of using $wgSharedUpload* variables is that a central wiki is used for "shared uploads", but other wikis have independent upload directories, so particular uploads are listed only on each respective wiki (not in all of them at once). Ciencia Al Poder (talk) 09:42, 25 May 2017 (UTC)
- Ah ok, so there is no way to have images uploaded on one wiki be available on the other, or be automatically published on the central pool wiki (thereby available for all). Do I understand correctly? NitaiDas (talk) 10:16, 25 May 2017 (UTC)
- Apparently, you should disable uploads on the local wiki, comment out all config variables about uploads, and set up Manual:$wgForeignFileRepos#Using files from a database that you can access : ForeignDBRepo, ForeignDBViaLBRepo. You can set $wgUploadNavigationUrl to point to the central pool wiki. This way all uploads must be done in the central pool. Ciencia Al Poder (talk) 09:27, 26 May 2017 (UTC)
- That didnt really work, I decided just to leave it at the current situation (described here for anyone goolging here).
- Images are uploaded on each site, and owned by that site. All images are stored on the server in the same directory. I can still use an image on another wiki by putting the source code in (e.g. [[ File ... ]]).
- My setting in SharedWikiFamilySettings.php
- $wgUploadNavigationUrl = 'http://pool-domain.org/index.php/Special:Upload';
- $wgUseSharedUploads = true;
- $wgSharedUploadPath = 'http://pool-domain.org/images';
- $wgSharedUploadDirectory = '/home/domain/public_html/mediawiki/sites/images';
- $wgHashedSharedUploadDirectory = true;
- $wgUploadDirectory = "/home/domain/public_html/mediawiki/sites/images"; NitaiDas (talk) 12:48, 7 June 2017 (UTC)
VisualEditor RESTBase
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
- I have a problem.
- I set up the VisualEditor on my Mediawiki.
- And it work but, I can not save it.
- I downloaded the restbase and start it but, It do not working.
- I don't know how to use cxserver and restbase.
- Please help me 211.32.133.242 (talk) 10:00, 25 May 2017 (UTC)
- I have the same problem; I have followed instructions in
- Extension:VisualEditor and
- Content translation/cxserver/Setup#Starting cxserver automatically
- and I have access to the VisualEditor for creation for new article but I can't save the content. If I try to access VisualEditor in existing article it gives me a server access error. I try to go back in the installation process and I'm asking in what directory we should install the Restbase (giving the instructions:
- "git clone https://github.com/wikimedia/restbase.git" and
- "npm install".
- Can someday answer my question and after I can make some progress in the problem!!!
- Thanks in advance 24.54.34.28 (talk) 23:54, 25 May 2017 (UTC)
- {"type":"https://mediawiki.org/wiki/HyperSwitch/errors/not_found#route","title":"Not found.","method":"get","uri":"/localhost/v1"} 211.32.133.242 (talk) 10:01, 25 May 2017 (UTC)
- You should install Parsoid
- Parsoid/Developer Setup
- And link Parsoid & Visual Editor
- Extension:VisualEditor#Linking with Parsoid
- You can write & save the page without Restbase.
- If you want to switch between Wikitext editing and VE, you should install Restbase. Libattery (talk) 16:55, 2 June 2017 (UTC)
Notice: Uncommitted DB writes
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 seeing an error when I'm not logged into a wiki
Notice: Uncommitted DB writes (transaction from DatabaseBase::query (JobQueueDB::doGetSiblingQueuesWithJobs)). in C:\inetpub\wwwroot\WIKI\includes\db\Database.php on line 3306
I have recently upgraded from 1.23 to 1.27. This error started appearing after the upgrade.
| Product | Version |
|---|---|
| MediaWiki | 1.27.2 |
| PHP | 5.6.22 (cgi-fcgi) |
| SQLite | 3.8.10.2 with full-text search support |
| Lua | 5.1.4 |
This error message appears only when I'm logged out of the wiki. out of the wiki. 87.198.212.130 (talk) 14:50, 25 May 2017 (UTC)
- This is problematic to diagnose, see T85762.
- Apparently there are pending jobs on your wiki, try to run them through runJobs.php to discard the error is being caused by one of them. Ciencia Al Poder (talk) 09:22, 26 May 2017 (UTC)
- Hi,
- I haven't taken any further steps yet, but when I was going to edit a page, I was able to get details of another error:
- Warning: unlink(C:\inetpub\wwwroot\data/locks/hck6po3i81n2fwsv27nex1hfwp7wt0p.lock): Permission denied in C:\inetpub\wwwroot\WIKI\includes\filebackend\lockmanager\FSLockManager.php on line 219
- Notice: DB transaction callbacks still pending (from ). in C:\inetpub\wwwroot\WIKI\includes\db\Database.php on line 3314 87.198.212.130 (talk) 15:50, 28 May 2017 (UTC)
- Check that your folder C:\inetpub\wwwroot\data has permissions for IIS and PHP to write on it. Ciencia Al Poder (talk) 17:17, 28 May 2017 (UTC)
- Hi,
- Seems like all the permissions for C:\inetpub\wwwroot\data are okay.
- When I tried running runJobs.php I think that my php_pso.dll file is missing:87.198.212.130 (talk) 18:47, 28 May 2017 (UTC)
php maintenance/runJobs.php PHP Warning: PHP Startup: Unable to load dynamic library 'C:\PHP\ext\php_pdo.dll' - The specified module could not be found.
How do I add code for system messages?
I installed Extension:GlobalUserGroups and it includes system messages for the Global Administrator group but it doesn't have any system messages for other global groups that I want.
Existing pages on creating system messages are highly technical and useless. + r3df0x +x (talk) 19:39, 25 May 2017 (UTC)
Mediawiki Issues in Namespaces and Extension
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 team,
We have Installed Mediawiki on the Linux system .But now we have facing some issues related to the Namespaces and Extension.
First of all , I want To create the Department wise Folder in the Mediawiki , but I am not able to do it and Secondly I am Not able to install the Extensions .
I am using Mediawiki 1.28.2
Can you please help me with this 183.182.86.185 (talk) 08:18, 26 May 2017 (UTC)
- How do you do it? What do you mean by "folder"? wargo (talk) 08:49, 26 May 2017 (UTC)
- Hi,
- which extensions are you talking about exactly?
- Regarding namespaces please have a look at Manual:Using_custom_namespaces. You can create a MediaWiki namespace for each department. if you want to have some simple access control, try Extension:Lockdown
- --
- Robert Osnard (talk) 08:50, 26 May 2017 (UTC)
There’s a problem with this website’s security certificate
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 just installed mediaWiki on my computer running Windows 10. For some reason I cannot get rid of this error when I open my wiki: There’s a problem with this website’s security certificate
Thanks Ron Barker (talk) 13:07, 26 May 2017 (UTC)
- On computer? Kizule (talk) 17:22, 26 May 2017 (UTC)
- Yes, on my 'computer'. In fact on my 'laptop'. This is a new laptop. I have mediawiki on my old laptop, although it is a bit out-of-date 1.15.4! Not sure how to transfer content, but that is for another day! Thanks. Ron Barker (talk) 04:50, 27 May 2017 (UTC)
- I think you are getting this warning, because new browser versions warn you in case of missing certificates. With the same browser version you would also get this warning, if you used the old wiki installation.
- I think there are three options: Create your own, self-signed certificate. This does not cost you anything, but the browser might still complain that the certificate is not signed by a valid authority. The other option would be to buy a certificate - but I don't know if that is possible for localhost at all... Or - third option - maybe the browser can be configured to no longer complain.
- For the content there is our manual: Manual:Moving a wiki. 83.135.231.12 (talk) 05:55, 27 May 2017 (UTC)
- Even better, get a LetsEncrypt certificate, which is free and not self signed. Also the latest versions of Safari/Chrome/Firefox don't give warnings for non ssl sites. It also sounds like you are trying to load via https://. MacFan4000 (talk) 12:27, 27 May 2017 (UTC)
- Thank you all for the replies. Not sure I am capable of following the suggestion re 'certificates'.
- Mac, yes, I do appear to be using https:// can I change it, and how? https://localhost/mediawiki/index.php/Main_Page
- Cheers Ron Barker (talk) 13:46, 27 May 2017 (UTC)
- try http://localhost/mediawiki/index.php/Main_Page MacFan4000 (talk) 13:48, 27 May 2017 (UTC)
- Mac
- Many thanks that worked. Ron Barker (talk) 17:54, 27 May 2017 (UTC)
Google Translate
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 integrate google translate with mediawiki? 79.119.124.0 (talk) 17:00, 26 May 2017 (UTC)
- If google translate can be integrated with any website, then yes, it should be possible. Refer to the google translate docs. Ciencia Al Poder (talk) 11:01, 27 May 2017 (UTC)
Images and thumbnails not displayed
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 exported my procedure from Bizagi Modeler 3.1 to Wiki and run with Mediawiki 1.28.
I added those settings below from my LocalSettings.php:
$wgGroupPermissions['*']['upload'] = true;
$wgFileExtensions = array('png','gif','jpg','jpeg','doc','xls','mpp','pdf','ppt','tiff','bmp','docx', 'xlsx', 'pptx','ps','odt','ods','odp','odg');
$wgEnableUploads = true;
$wgAllowImageTag = true;
I allow all rights for all users on the repository below:
/mediawiki/images
The problem is that no images are displayed on my procedure and the <img> tag html have no attribute "src" .
When I set $wgAllowImageTag = false; I can see that <img> tag html have the attribute src with the image path but the <img> html tag is reconized as a text.
Please, someone can help me with settings.
I think I forgot to set anything else.
Thanks for reply.
Regards Pmt-it (talk) 20:25, 26 May 2017 (UTC)
- $wgFileExtensions doesn't affect what kind of file you can add to img tag. The src attribute will be dropped if it's not a valid URL (<nokiki>http://servername/path/file.ext</nokiki>). You can't use UNC URLs nor relative URLs. Ciencia Al Poder (talk) 11:00, 27 May 2017 (UTC)
- Hi Ciencia Al Poder,
- I don't know what kind of file I can add to img tag because, basically, when I exported my procedure from Bizagi to Mediawiki, it make the export automatically with Bizagi type file. Sorry, I don't know how to explain but all I know is the bug came from the settings of LocalSetting.php and maybe not on $wgFileExtensions because I can see images on the repository /mediawiki/images/...
- Maybe it's another settings I have to allow or fill.
- Please, let me know if you have a solution.
- Thank you Pmt-it (talk) 02:31, 30 May 2017 (UTC)
- You can try to start giving the exact wiki markup used to display the image. Ciencia Al Poder (talk) 09:22, 30 May 2017 (UTC)
- Ok, but I want wiki to display the image automatically when I export my procedure from Bizagi.I don't think I am able to use wiki markup manually on every procedures I've got, it's too much.
- It's weird, when I set $wgAllowImageTag = false; the <img> html tag is interpreted as text and when I remove the quotes to be interpreted as an html tag, the image is displayed.
- when I set $wgAllowImageTag = true; the <img> has no attribut "src".
- I think I miss a detail.
- Please help. Pmt-it (talk) 19:03, 30 May 2017 (UTC)
- Ok,
- I think I found the problem with undisplaying images, it seems that bizagi export images with base64 encode and not ascii encode...So, correct me if I'm wrong but I think that mediawiki not support base64, that's why "src" isn't appeared when I enable image html tag?
- How I can solve this problem, please? Pmt-it (talk) 03:07, 31 May 2017 (UTC)
- data: is not an allowed URL protocol for MediaWiki, thus the src attribute is dropped. You can try adding it to $wgUrlProtocols Ciencia Al Poder (talk) 09:23, 31 May 2017 (UTC)
- Thank you Ciencia Al Poder,
- thanks to you I solved the problem, I had to declare "data: " in $wgUrlProtocols, here is my settings in LocalSettings.php:
- $wgAllowImageTag = true;
- $wgGroupPermissions['*']['upload'] = true;
- $wgFileExtensions = array('png','gif','jpg','jpeg','doc','xls','mpp','pdf','ppt','tiff','bmp','docx', 'xlsx', 'pptx','ps','odt','ods','odp','odg');
- $wgEnableUploads = true;
- $wgHashedUploadDirectory = true;
- $wgUrlProtocols[] = "data:";
- Thank you a lot! Pmt-it (talk) 19:03, 31 May 2017 (UTC)
Incorrect date displaying when not logged in
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, could someone help with a problem with time and dates please?
I have created a number of "On this day" pages, with each one having a title with the format Month space Date, eg, "May 27", "June 1" etc.
I then added the line {{#ifexist:{{#time: F j}} | *[[{{#time: F j}} | On {{#time: F j}} in SVR history]] }} This checks to see if a page with today's date exists. If it does, it creates the link and adds it to a bulleted list, if not, it returns a blank. This worked fine when logged in, but always defaulted to the date of the last page edit when not logged in, presumably because the parser function takes "the time the page was last rendered into HTML."
I changed the line to {{#ifexist:{{CURRENTMONTHNAME}} {{CURRENTDAY}} | *[[{{CURRENTMONTHNAME}} {{CURRENTDAY}} | On {{CURRENTMONTHNAME}} {{CURRENTDAY}} in SVR history]] }} thinking this would force it to read the current date, but it's exactly the same. I've tried ...title=Main_Page&action=purge and that didn't fix it. It works perfectly when logged in, but as soon as I log out, it reverts back to the date of the last page edit.
Is there a way of fixing this please? It's on the front page and aimed at visitors who will probably not be logged in when they see it, so I could do with having it working properly. It's at www.svrwiki.com if you want to take a look.
Thanks in advance.
Graham Graham Phillips 110 (talk) 00:45, 27 May 2017 (UTC)
- You can use purgeList.php in a cron job to be executed once a day for the pages you want to purge. I don't think there's another solution. Ciencia Al Poder (talk) 10:39, 27 May 2017 (UTC)
- Thanks, I looked at purgeList and that seems to rely on using a squid, which we don't.
- Extension:External Data linked to http://www.currenttimestamp.com/ might be a way of doing it if it was possible for Mediawiki to read the date.
- Another idea was to create a Bot that automatically updates the page every day at 00:01.
- All these are beyond my ability at the moment. Are any of them worth persevering with?
- There are various Mediawiki calendar or similar extensions out there. Do they all use #time: and have this same problem, or is there one that works for users who are not logged in? Graham Phillips 110 (talk) 08:14, 28 May 2017 (UTC)
- purgeList.php also purges the MediaWiki parser cache if you pass the --purge parameter. Ciencia Al Poder (talk) 17:15, 28 May 2017 (UTC)
- Thanks again. I tried purgeList.php and it's not much of a manual. With no proper explanation of how to use it, I tried everything I could think of and found it either did nothing or crashed the site.
Anyway, I think I've found a way round it. Creating an internal link as an external link that looks like an internal link seems to force the wiki to use the real current time to create that link. Like this - {{#ifexist:{{#time:F j|now }} | *On <span class="plainlinks">[http://www.svrwiki.com/{{#time:F_j|now}} {{#time: F j|now}} in SVR history]</span>}}
- I'm not sure the "now" is really needed, but my connection is so slow tonight that it's taking several minutes every time I log in, log out, preview, or save, so as it's working at last, I left it in. The underscore is needed though for an external link. As an internal link it worked OK without it. Graham Phillips 110 (talk) 23:10, 28 May 2017 (UTC)
- You can see the site as anon without logging out by using the private browsing option of your browser. The external link shouldn't make a difference. Maybe the use of "now" is forcing the page to not be cached? Ciencia Al Poder (talk) 09:16, 29 May 2017 (UTC)
- No, I tried that first, thinking that if it was going to display 0 seconds offset from 'now', that it would look up the real 'now', but it didn't work.
- It was while right clicking and selecting "Inspect" for various elements that I noticed times and dynamic links to internal pages based on time were coded directly in to the HTML, while external links were created live.
- One problem was that I've set the wiki to open internal links in the same tab and external links in a new tab. By using a full url for an internal link, it was opening in a new tab. Once it has created an external link using #time though, it sets the #time correctly for the rest of the page, so I got round it by creating an external link that is just a full stop, hidden at the bottom of the page, and an internal link, that now works, in the normal place.
- This {{#ifexist:{{#time:F j|now }} | *[[{{#time:F_j|now}} | On {{#time: F j|now}} in SVR history]]}} won't work on its own.
- As long as this {{#ifexist:{{#time:F j|now }} | <span class="plainlinks">[http://www.svrwiki.com/{{#time:F_j|now}} .]</span> }} is somewhere on the page, it will.
- I'm surprised this problem hasn't come up before and been solved properly. Surely most people just look at a wiki to get information, they don't bother logging in unless they are going to edit it. I know what I've done is a bit of a bodge, but it works, so hopefully it will be of use to someone else. Graham Phillips 110 (talk) 14:26, 29 May 2017 (UTC)
- You seem to be using an extension for such external links, because external links are generated server-side and sent with all the HTML, not "created live".
- The problem is not new, Help:Magic words already warns it may give incorrect results because of the cache.
- Maybe a simple fix is using Extension:MagicNoCache. Ciencia Al Poder (talk) 19:19, 29 May 2017 (UTC)
- Thanks, I didn't know about that extension, maybe that would have been an easier way to do it.
- I don't know if disabling the cache on the Main Page would slow it down noticeably. If so, maybe creating a page titled "Today" with the content __NOCACHE__ <includeonly>{{#time:F j}}</includeonly>, then using {{:Today}} instead of {{#time:F j}} on the Main Page would speed it up again. I suppose that would depend on whether #time got calculated before or after the transclusion.
It's working now, but I might try that one anyway, just to get rid of that full stop. Graham Phillips 110 (talk) 21:54, 29 May 2017 (UTC) - __NOCACHE__ is going to leak to the main page making it not cacheable. In fact, if the main page is cached you'll have exactly the same problem, because the cached main page won't be updated (which is what's happening now) Ciencia Al Poder (talk) 09:24, 30 May 2017 (UTC)
- Thanks again. __NOCACHE__ was the answer.
- The Main page has always been slow to load, and I was concerned that disabling the cache would slow it down even more. It turns out it was a map on the Main Page calling several icons from Wikimedia Commons that was slowing it down. Duplicating the icons locally got the page loading a lot quicker and disabling the cache made no noticeable difference.
- Having a random image on the test Main Page, but not on the real Main Page didn't help, as that refreshed the page every time it was viewed, effectively disabling the cache, making me think I'd solved the problem when I hadn't. Graham Phillips 110 (talk) 18:22, 2 June 2017 (UTC)
Can I run Mathoid on Windows?
Such as title. I plan to install the math extension on Windows. 星耀晨曦 (talk) 14:38, 27 May 2017 (UTC)
- try long time,not work 111.227.182.106 (talk) 01:37, 21 December 2017 (UTC)
Contributions not updated after import
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,
After performing an import, contributions for users have not been updated. For example "Main Page" history shows that user "A" has for example 10 edits, but Special:Contributions shows no edits for that user, and it is a redlink. Any ideas how to fix this? Reception123 (talk) 17:05, 27 May 2017 (UTC)
- This is after the user created the account on the newly imported wiki Reception123 (talk) 17:36, 27 May 2017 (UTC)
- Maybe the update is queued? Manual:Job queue
- Try checking your Wiki's statistics: https://en.wikipedia.org/w/api.php?action=query&meta=siteinfo&siprop=statistics AhmadF.Cheema (talk) 21:43, 27 May 2017 (UTC)
- I think there is a maintenance script, which allows you to update the edit count numbers for all users inside the database. Using this script might set the values correctly again. 87.123.249.149 (talk) 21:56, 27 May 2017 (UTC)
- Thank you for your answers. The update is not queued, as there are no jobs waiting.
- I ran the script, initEditCount.php with no success. Any other suggestions would be appreciated. Reception123 (talk) 05:35, 28 May 2017 (UTC)
- When you say that Special:Contributions would be a red link, do you then after clicking that link actually see the special page "Contributions"? And if so: Does it say the user would not(!) be registered? Or are you not seeing this page at all? 87.123.249.149 (talk) 07:09, 28 May 2017 (UTC)
- It is a redlink, and when I click it I see the page but there are no user contributions that show up. As I said previously, the contributions were only "gone" after the users registered on the new wiki. Reception123 (talk) 07:17, 28 May 2017 (UTC)
- I just checked includes/specials/SpecialContributions.php and it looks like the Contributions page is getting information on the edits directly from the database (and not from a cache or so). The interesting part is where it calls ContribsPager(). Do the variables contain wrong data at that place? Maybe something went wrong with the import?
- Btw. I do not understand why the users have to register again in the new wiki. Have you deleted the user table? Or: Why have they been there in the old installation and are no longer in the new one? 87.123.249.149 (talk) 07:46, 28 May 2017 (UTC)
- Yes, to my knowledge the user table has not imported (as this is a wiki farm, and user tables are shared).
- I'm not quite sure how and where I can check what you are asking. Reception123 (talk) 08:16, 28 May 2017 (UTC)
- Oh, so this is an installation with a shared user table. I am no expert in that regard, but I would guess that in this case having no content in the user table might be ok(?). But it seems like somehow the connection to your shared user table got lost or is broken currently.
- Maybe someone else can help you further from here. 87.123.249.149 (talk) 08:41, 28 May 2017 (UTC)
- I have checked the user table for the local wiki, and the registered users do show up normally, though the same as on-wiki, they have no edits. Reception123 (talk) 08:50, 28 May 2017 (UTC)
- The user IDs (rev_user) needed to be associated with rev_user_text. The issue is now fixed thanks to @Ciencia Al Poder Reception123 (talk) 18:41, 28 May 2017 (UTC)
DBQueryError at index.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.
- After I finish installing my wiki, and upload the LocalSettings file, I try to just head to the main index page (or the "create" page), but I get the following error:
- Fatal exception of type "DBQueryError"
- So I cannot view any page on my wiki. Right now, I have one website with two subfolders containing their own wikis. I set up one wiki a month or so ago, and it works perfectly right now. Today, I'm trying to setup a second wiki in that second subfolder, but I get that error above. Both wikis share the same user, same server, same MySQL process, etc. I'm using version 1.28.2 of mediawiki for both. I've re-downloaded the tar gz file a few times and started from scratch (after removing databses and files on the server), but no luck. I have NOT tried an older version of mediawiki, so... maybe I might need to. Brian denton (talk) 23:31, 27 May 2017 (UTC)
- See Manual:How to debug for how to get more information. Malyacko (talk) 17:56, 29 May 2017 (UTC)
- You would need to provide more information for us to be able to see what the error is.
- You can add
- error_reporting( -1 );
- ini_set( 'display_errors', 1 );
- $wgShowSQLErrors = true;
- $wgDebugDumpSql = true;
- to your LocalSettings.php file Reception123 (talk) 05:34, 28 May 2017 (UTC)
Google Translate 2
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.
Thank you for answering my question @Ciencia Al Poder. Sorry for the duplicate topic, but I cant reply to my original one.
It gave me a code and it says to add it to every page that I want it translated. Is there an easier way to wrap that code and have it displayed on all pages? Maybe through common.js? 79.119.124.0 (talk) 00:24, 28 May 2017 (UTC)
- Yes, you need to insert scripts in MediaWiki:Common.js as explained in Manual:Interface/JavaScript. Note that this page will contain JavaScript code, not HTML code, so don't put <script></script> tags on it, just the contents of the script. In case you have to load a script file, add this to the page:
- Ciencia Al Poder (talk) 17:11, 28 May 2017 (UTC)
$.getScript( "http://url.of/the/script.js" );
- So should I just plainly add the contents of this: https://pastebin.com/xCc1y4yz to common.js? I tried doing it by your second suggestion $.getScript( "http://url.of/the/script.js" );, I created a mediawiki:google.js page and added its url there, but it wouldn't load it.
- And if the site will load it, where will it display the translation tool? 79.119.124.0 (talk) 18:04, 28 May 2017 (UTC)
- No, it should be this:
function googleTranslateElementInit() { new google.translate.TranslateElement({pageLanguage: 'en', layout: google.translate.TranslateElement.InlineLayout.SIMPLE}, 'google_translate_element'); } $.getScript( '//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit' );- The thing is, it requires the page to have a div with id "google_translate_element" (the id seems configurable on the code) where the translate button will be added. However, you can't add it easily unless you add it with JavaScript (and then load the google translate script) or edit the skin file. Ciencia Al Poder (talk) 19:37, 28 May 2017 (UTC)
- I am lost. I should add the above code common.js, correct? And then edit the skin file? Like monobook.js? And add what there? 79.119.124.0 (talk) 06:58, 29 May 2017 (UTC)
- Yes, this goes to MediaWiki:Common.js
- Then add this to a page to test if it works before doing anything else: <div id="google_translate_element"></div>
- You'll have to see how it looks and where it should be placed in the page. Instead of editing a PHP skin file, I'd suggest adding the element with JavaScript. Ciencia Al Poder (talk) 09:20, 29 May 2017 (UTC)
- Thank you! It does work, indeed. But is it possible for it to be displayed on all pages, instead of adding it manually? And is it possible to have it appear in the far right of the title? 79.119.124.0 (talk) 10:13, 29 May 2017 (UTC)
- So, at the opposite end of the title. 79.119.124.0 (talk) 10:13, 29 May 2017 (UTC)
- Ok, the complete code for this:
- Ciencia Al Poder (talk) 19:26, 29 May 2017 (UTC)
function googleTranslateElementInit() { new google.translate.TranslateElement({pageLanguage: 'en', layout: google.translate.TranslateElement.InlineLayout.SIMPLE}, 'google_translate_element'); } $(function() { $('<div id="google_translate_element">').css('float','right').insertBefore('#firstHeading'); $.getScript( '//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit' ); }); - Thank you very much! 79.119.124.0 (talk) 07:46, 30 May 2017 (UTC)
update.php says composer.lock not up to date
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
When I run update.php from the "maintenance" folder I get this response:
"mediawiki/validator: 2.3.1 installed, 2.2.* required.
mediawiki/semantic-media-wiki: 2.5.2 installed, ~2.5 required.
mediawiki/maps: 4.2.1 installed, ~4.1 required.
Error: your composer.lock file is not up to date. Run "composer update" to install never dependencies"
But when I run "composer update" from the wiki's root directory, I get this message: "Nothing to install or update" and I still cannot run update.php. What could be wrong?
| MediaWiki | 1.28.2 |
| PHP | 7.0.15-0ubuntu0.16.04.4 (apache2handler) |
| MySQL | 5.7.18-0ubuntu0.16.04.1 |
Thanks!
Henrik Thiil Nielsen Henryfunk (talk) 02:40, 28 May 2017 (UTC)
- Sorry, I forgot to add a link to my site: https://www.irhb.org/wiki/index.php/Main_Page.
- And here's my Version-page: https://www.irhb.org/wiki/index.php/Special:Version Henryfunk (talk) 03:37, 28 May 2017 (UTC)
- [0] should allow you to continue with the update process.
- [0] https://www.semantic-mediawiki.org/wiki/Help:Installation/Troubleshooting#Error:_your_composer.lock_file_is_not_up_to_date. MWJames (talk) 11:59, 28 May 2017 (UTC)
- Beautiful! Thank you very much. Henryfunk (talk) 13:50, 28 May 2017 (UTC)
Does the BreadCrumbs2 extension define its own breadcrumbs?
Hi everyone,
Does the BreadCrumbs2 extension define its own breadcrumbs?
By which I mean, can I toss a fixed extension phrase onto all my pages, without changing it for each page,
Or do I have to specifically define every breadcrumb trail for every single one of my wiki pages I use it on? If this is true then 1) it's a lot more work, 2) if I typo the breadcrumbs, they fail, and 3) if I reorganize the structure of my wiki, I have to update all affected pages' breadcrumb code.
I apologize for asking something without simply trying it. I am stretching myself pretty far and hoping someone can say, before I go through the trouble of trying it. I suspect I have to define it specifically given how wiki pages actually float freely (as it were), but hope I am wrong. RedKnight7 (talk) 09:46, 29 May 2017 (UTC)
MobileFrontend Skin problems
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 got the latest version of Mobile Frontend and can't see the menu any more if I'm using the mobile view. It seems to be a problem with the Skin Minerva, but I don't really understand what I should change to get it working. It would be great if somebody could help me!
I get the following error in my browser console:
[78cf064f2b03ecda26489551] /w/load.php?debug=false&lang=de&modules=ext.visualEditor.targetLoader%2Ctrack%2Cve%7Cjquery.accessKeyLabel%2CbyteLength%2Cclient%2Ccookie%2CtextSelection%2Cthrottle-debounce%7Cmediawiki.RegExp%2CTitle%2CUri%2Capi%2Ccldr%2Ccookie%2Cexperiments%2CjqueryMsg%2Clanguage%2Cnotify%2Crouter%2Cstorage%2Ctemplate%2Cuser%2Cutil%2Cviewport%7Cmediawiki.api.user%7Cmediawiki.language.data%2Cinit%7Cmediawiki.libs.pluralruleparser%7Cmediawiki.page.startup%7Cmediawiki.template.hogan%2Cregexp%7Cmediawiki.ui.input%7Cmobile.ajax.styles%7Cmobile.betaoptin%2Cissues%2CmainMenu%2Creferences%2Csearch%2Csite%2Cstartup%2Ctoggle%2Cwatchstar%7Cmobile.editor.api%7Cmobile.issues.images%7Cmobile.loggingSchemas.edit%2CmobileWebMainMenuClickTracking%2CmobileWebSearch%7Cmobile.mainMenu.icons%2Cstyles%7Cmobile.overlay.images%7Cmobile.pagelist.scripts%2Cstyles%7Cmobile.pagesummary.styles%7Cmobile.references.gateway%2Cimages%7Cmobile.search.api%2Cimages%2Cutil%7Coojs%2Coojs-router%7Cskins.minerva.editor%2Cscripts%2Ctoggling%7Cskins.minerva.icons.images.scripts%2Cvariants%7Cskins.minerva.scripts.top%7Cuser.defaults&skin=minerva&version=1247avh Less_Exception_Compiler from line 148 of /var/www/html/w/vendor/oyejorge/less.php/lib/Less/Tree/Mixin/Call.php: .background-image-svg-quick is undefined in /var/www/html/w/extensions/MobileFrontend/resources/mobile.ajax.styles/spinner.less
Backtrace:
#0 /var/www/html/w/vendor/oyejorge/less.php/lib/Less/Tree/Ruleset.php(147): Less_Tree_Mixin_Call->compile(Less_Environment)
#1 /var/www/html/w/vendor/oyejorge/less.php/lib/Less/Tree/Ruleset.php(88): Less_Tree_Ruleset->EvalMixinCalls(Less_Tree_Ruleset, Less_Environment, integer)
#2 /var/www/html/w/vendor/oyejorge/less.php/lib/Less/Tree/Ruleset.php(94): Less_Tree_Ruleset->compile(Less_Environment)
#3 /var/www/html/w/vendor/oyejorge/less.php/lib/Less/Tree/Ruleset.php(94): Less_Tree_Ruleset->compile(Less_Environment)
#4 /var/www/html/w/vendor/oyejorge/less.php/lib/Less/Parser.php(199): Less_Tree_Ruleset->compile(Less_Environment)
#5 /var/www/html/w/includes/resourceloader/ResourceLoaderFileModule.php(979): Less_Parser->getCss()
#6 /var/www/html/w/includes/resourceloader/ResourceLoaderFileModule.php(875): ResourceLoaderFileModule->compileLessFile(string, ResourceLoaderContext)
#7 /var/www/html/w/includes/resourceloader/ResourceLoaderFileModule.php(846): ResourceLoaderFileModule->readStyleFile(string, boolean, ResourceLoaderContext)
#8 /var/www/html/w/includes/resourceloader/ResourceLoaderFileModule.php(390): ResourceLoaderFileModule->readStyleFiles(array, boolean, ResourceLoaderContext)
#9 /var/www/html/w/includes/resourceloader/ResourceLoaderModule.php(666): ResourceLoaderFileModule->getStyles(ResourceLoaderContext)
#10 /var/www/html/w/includes/resourceloader/ResourceLoaderModule.php(613): ResourceLoaderModule->buildContent(ResourceLoaderContext)
#11 /var/www/html/w/includes/resourceloader/ResourceLoader.php(1040): ResourceLoaderModule->getModuleContent(ResourceLoaderContext)
#12 /var/www/html/w/includes/resourceloader/ResourceLoader.php(763): ResourceLoader->makeModuleResponse(ResourceLoaderContext, array, array)
#13 /var/www/html/w/load.php(53): ResourceLoader->respond(ResourceLoaderContext)
#14 {main}
[78cf064f2b03ecda26489551] /w/load.php?debug=false&lang=de&modules=ext.visualEditor.targetLoader%2Ctrack%2Cve%7Cjquery.accessKeyLabel%2CbyteLength%2Cclient%2Ccookie%2CtextSelection%2Cthrottle-debounce%7Cmediawiki.RegExp%2CTitle%2CUri%2Capi%2Ccldr%2Ccookie%2Cexperiments%2CjqueryMsg%2Clanguage%2Cnotify%2Crouter%2Cstorage%2Ctemplate%2Cuser%2Cutil%2Cviewport%7Cmediawiki.api.user%7Cmediawiki.language.data%2Cinit%7Cmediawiki.libs.pluralruleparser%7Cmediawiki.page.startup%7Cmediawiki.template.hogan%2Cregexp%7Cmediawiki.ui.input%7Cmobile.ajax.styles%7Cmobile.betaoptin%2Cissues%2CmainMenu%2Creferences%2Csearch%2Csite%2Cstartup%2Ctoggle%2Cwatchstar%7Cmobile.editor.api%7Cmobile.issues.images%7Cmobile.loggingSchemas.edit%2CmobileWebMainMenuClickTracking%2CmobileWebSearch%7Cmobile.mainMenu.icons%2Cstyles%7Cmobile.overlay.images%7Cmobile.pagelist.scripts%2Cstyles%7Cmobile.pagesummary.styles%7Cmobile.references.gateway%2Cimages%7Cmobile.search.api%2Cimages%2Cutil%7Coojs%2Coojs-router%7Cskins.minerva.editor%2Cscripts%2Ctoggling%7Cskins.minerva.icons.images.scripts%2Cvariants%7Cskins.minerva.scripts.top%7Cuser.defaults&skin=minerva&version=1247avh Less_Exception_Compiler from line 148 of /var/www/html/w/vendor/oyejorge/less.php/lib/Less/Tree/Mixin/Call.php: .transform is undefined in /var/www/html/w/extensions/MobileFrontend/resources/mobile.startup/toast.less
Backtrace:
#0 /var/www/html/w/vendor/oyejorge/less.php/lib/Less/Tree/Ruleset.php(147): Less_Tree_Mixin_Call->compile(Less_Environment)
#1 /var/www/html/w/vendor/oyejorge/less.php/lib/Less/Tree/Ruleset.php(88): Less_Tree_Ruleset->EvalMixinCalls(Less_Tree_Ruleset, Less_Environment, integer)
#2 /var/www/html/w/vendor/oyejorge/less.php/lib/Less/Tree/Ruleset.php(94): Less_Tree_Ruleset->compile(Less_Environment)
#3 /var/www/html/w/vendor/oyejorge/less.php/lib/Less/Tree/Ruleset.php(94): Less_Tree_Ruleset->compile(Less_Environment)
#4 /var/www/html/w/vendor/oyejorge/less.php/lib/Less/Parser.php(199): Less_Tree_Ruleset->compile(Less_Environment)
#5 /var/www/html/w/includes/resourceloader/ResourceLoaderFileModule.php(979): Less_Parser->getCss()
#6 /var/www/html/w/includes/resourceloader/ResourceLoaderFileModule.php(875): ResourceLoaderFileModule->compileLessFile(string, ResourceLoaderContext)
#7 /var/www/html/w/includes/resourceloader/ResourceLoaderFileModule.php(846): ResourceLoaderFileModule->readStyleFile(string, boolean, ResourceLoaderContext)
#8 /var/www/html/w/includes/resourceloader/ResourceLoaderFileModule.php(390): ResourceLoaderFileModule->readStyleFiles(array, boolean, ResourceLoaderContext)
#9 /var/www/html/w/includes/resourceloader/ResourceLoaderModule.php(666): ResourceLoaderFileModule->getStyles(ResourceLoaderContext)
#10 /var/www/html/w/includes/resourceloader/ResourceLoaderModule.php(613): ResourceLoaderModule->buildContent(ResourceLoaderContext)
#11 /var/www/html/w/includes/resourceloader/ResourceLoader.php(1040): ResourceLoaderModule->getModuleContent(ResourceLoaderContext)
#12 /var/www/html/w/includes/resourceloader/ResourceLoader.php(763): ResourceLoader->makeModuleResponse(ResourceLoaderContext, array, array)
#13 /var/www/html/w/load.php(53): ResourceLoader->respond(ResourceLoaderContext)
#14 {main}
[78cf064f2b03ecda26489551] /w/load.php?debug=false&lang=de&modules=ext.visualEditor.targetLoader%2Ctrack%2Cve%7Cjquery.accessKeyLabel%2CbyteLength%2Cclient%2Ccookie%2CtextSelection%2Cthrottle-debounce%7Cmediawiki.RegExp%2CTitle%2CUri%2Capi%2Ccldr%2Ccookie%2Cexperiments%2CjqueryMsg%2Clanguage%2Cnotify%2Crouter%2Cstorage%2Ctemplate%2Cuser%2Cutil%2Cviewport%7Cmediawiki.api.user%7Cmediawiki.language.data%2Cinit%7Cmediawiki.libs.pluralruleparser%7Cmediawiki.page.startup%7Cmediawiki.template.hogan%2Cregexp%7Cmediawiki.ui.input%7Cmobile.ajax.styles%7Cmobile.betaoptin%2Cissues%2CmainMenu%2Creferences%2Csearch%2Csite%2Cstartup%2Ctoggle%2Cwatchstar%7Cmobile.editor.api%7Cmobile.issues.images%7Cmobile.loggingSchemas.edit%2CmobileWebMainMenuClickTracking%2CmobileWebSearch%7Cmobile.mainMenu.icons%2Cstyles%7Cmobile.overlay.images%7Cmobile.pagelist.scripts%2Cstyles%7Cmobile.pagesummary.styles%7Cmobile.references.gateway%2Cimages%7Cmobile.search.api%2Cimages%2Cutil%7Coojs%2Coojs-router%7Cskins.minerva.editor%2Cscripts%2Ctoggling%7Cskins.minerva.icons.images.scripts%2Cvariants%7Cskins.minerva.scripts.top%7Cuser.defaults&skin=minerva&version=1247avh Less_Exception_Compiler from line 148 of /var/www/html/w/vendor/oyejorge/less.php/lib/Less/Tree/Mixin/Call.php: .transition-transform is undefined in /var/www/html/w/extensions/MobileFrontend/resources/mobile.watchstar/watchstar.less
Backtrace:
#0 /var/www/html/w/vendor/oyejorge/less.php/lib/Less/Tree/Ruleset.php(147): Less_Tree_Mixin_Call->compile(Less_Environment)
#1 /var/www/html/w/vendor/oyejorge/less.php/lib/Less/Tree/Ruleset.php(88): Less_Tree_Ruleset->EvalMixinCalls(Less_Tree_Ruleset, Less_Environment, integer)
#2 /var/www/html/w/vendor/oyejorge/less.php/lib/Less/Tree/Ruleset.php(94): Less_Tree_Ruleset->compile(Less_Environment)
#3 /var/www/html/w/vendor/oyejorge/less.php/lib/Less/Tree/Ruleset.php(94): Less_Tree_Ruleset->compile(Less_Environment)
#4 /var/www/html/w/vendor/oyejorge/less.php/lib/Less/Parser.php(199): Less_Tree_Ruleset->compile(Less_Environment)
#5 /var/www/html/w/includes/resourceloader/ResourceLoaderFileModule.php(979): Less_Parser->getCss()
#6 /var/www/html/w/includes/resourceloader/ResourceLoaderFileModule.php(875): ResourceLoaderFileModule->compileLessFile(string, ResourceLoaderContext)
#7 /var/www/html/w/includes/resourceloader/ResourceLoaderFileModule.php(846): ResourceLoaderFileModule->readStyleFile(string, boolean, ResourceLoaderContext)
#8 /var/www/html/w/includes/resourceloader/ResourceLoaderFileModule.php(390): ResourceLoaderFileModule->readStyleFiles(array, boolean, ResourceLoaderContext)
#9 /var/www/html/w/includes/resourceloader/ResourceLoaderModule.php(666): ResourceLoaderFileModule->getStyles(ResourceLoaderContext)
#10 /var/www/html/w/includes/resourceloader/ResourceLoaderModule.php(613): ResourceLoaderModule->buildContent(ResourceLoaderContext)
#11 /var/www/html/w/includes/resourceloader/ResourceLoader.php(1040): ResourceLoaderModule->getModuleContent(ResourceLoaderContext)
#12 /var/www/html/w/includes/resourceloader/ResourceLoader.php(763): ResourceLoader->makeModuleResponse(ResourceLoaderContext, array, array)
#13 /var/www/html/w/load.php(53): ResourceLoader->respond(ResourceLoaderContext)
#14 {main}
[78cf064f2b03ecda26489551] /w/load.php?debug=false&lang=de&modules=ext.visualEditor.targetLoader%2Ctrack%2Cve%7Cjquery.accessKeyLabel%2CbyteLength%2Cclient%2Ccookie%2CtextSelection%2Cthrottle-debounce%7Cmediawiki.RegExp%2CTitle%2CUri%2Capi%2Ccldr%2Ccookie%2Cexperiments%2CjqueryMsg%2Clanguage%2Cnotify%2Crouter%2Cstorage%2Ctemplate%2Cuser%2Cutil%2Cviewport%7Cmediawiki.api.user%7Cmediawiki.language.data%2Cinit%7Cmediawiki.libs.pluralruleparser%7Cmediawiki.page.startup%7Cmediawiki.template.hogan%2Cregexp%7Cmediawiki.ui.input%7Cmobile.ajax.styles%7Cmobile.betaoptin%2Cissues%2CmainMenu%2Creferences%2Csearch%2Csite%2Cstartup%2Ctoggle%2Cwatchstar%7Cmobile.editor.api%7Cmobile.issues.images%7Cmobile.loggingSchemas.edit%2CmobileWebMainMenuClickTracking%2CmobileWebSearch%7Cmobile.mainMenu.icons%2Cstyles%7Cmobile.overlay.images%7Cmobile.pagelist.scripts%2Cstyles%7Cmobile.pagesummary.styles%7Cmobile.references.gateway%2Cimages%7Cmobile.search.api%2Cimages%2Cutil%7Coojs%2Coojs-router%7Cskins.minerva.editor%2Cscripts%2Ctoggling%7Cskins.minerva.icons.images.scripts%2Cvariants%7Cskins.minerva.scripts.top%7Cuser.defaults&skin=minerva&version=1247avh Less_Exception_Compiler from line 148 of /var/www/html/w/vendor/oyejorge/less.php/lib/Less/Tree/Mixin/Call.php: .transition-transform is undefined in /var/www/html/w/extensions/MobileFrontend/resources/mobile.mainMenu.styles/mainmenu.less
Backtrace:
#0 /var/www/html/w/vendor/oyejorge/less.php/lib/Less/Tree/Ruleset.php(147): Less_Tree_Mixin_Call->compile(Less_Environment)
#1 /var/www/html/w/vendor/oyejorge/less.php/lib/Less/Tree/Ruleset.php(88): Less_Tree_Ruleset->EvalMixinCalls(Less_Tree_Ruleset, Less_Environment, integer)
#2 /var/www/html/w/vendor/oyejorge/less.php/lib/Less/Tree/Ruleset.php(94): Less_Tree_Ruleset->compile(Less_Environment)
#3 /var/www/html/w/vendor/oyejorge/less.php/lib/Less/Tree/Ruleset.php(94): Less_Tree_Ruleset->compile(Less_Environment)
#4 /var/www/html/w/vendor/oyejorge/less.php/lib/Less/Parser.php(199): Less_Tree_Ruleset->compile(Less_Environment)
#5 /var/www/html/w/includes/resourceloader/ResourceLoaderFileModule.php(979): Less_Parser->getCss()
#6 /var/www/html/w/includes/resourceloader/ResourceLoaderFileModule.php(875): ResourceLoaderFileModule->compileLessFile(string, ResourceLoaderContext)
#7 /var/www/html/w/includes/resourceloader/ResourceLoaderFileModule.php(846): ResourceLoaderFileModule->readStyleFile(string, boolean, ResourceLoaderContext)
#8 /var/www/html/w/includes/resourceloader/ResourceLoaderFileModule.php(390): ResourceLoaderFileModule->readStyleFiles(array, boolean, ResourceLoaderContext)
#9 /var/www/html/w/includes/resourceloader/ResourceLoaderModule.php(666): ResourceLoaderFileModule->getStyles(ResourceLoaderContext)
#10 /var/www/html/w/includes/resourceloader/ResourceLoaderModule.php(613): ResourceLoaderModule->buildContent(ResourceLoaderContext)
#11 /var/www/html/w/includes/resourceloader/ResourceLoader.php(1040): ResourceLoaderModule->getModuleContent(ResourceLoaderContext)
#12 /var/www/html/w/includes/resourceloader/ResourceLoader.php(763): ResourceLoader->makeModuleResponse(ResourceLoaderContext, array, array)
#13 /var/www/html/w/load.php(53): ResourceLoader->respond(ResourceLoaderContext)
#14 {main}
[78cf064f2b03ecda26489551] /w/load.php?debug=false&lang=de&modules=ext.visualEditor.targetLoader%2Ctrack%2Cve%7Cjquery.accessKeyLabel%2CbyteLength%2Cclient%2Ccookie%2CtextSelection%2Cthrottle-debounce%7Cmediawiki.RegExp%2CTitle%2CUri%2Capi%2Ccldr%2Ccookie%2Cexperiments%2CjqueryMsg%2Clanguage%2Cnotify%2Crouter%2Cstorage%2Ctemplate%2Cuser%2Cutil%2Cviewport%7Cmediawiki.api.user%7Cmediawiki.language.data%2Cinit%7Cmediawiki.libs.pluralruleparser%7Cmediawiki.page.startup%7Cmediawiki.template.hogan%2Cregexp%7Cmediawiki.ui.input%7Cmobile.ajax.styles%7Cmobile.betaoptin%2Cissues%2CmainMenu%2Creferences%2Csearch%2Csite%2Cstartup%2Ctoggle%2Cwatchstar%7Cmobile.editor.api%7Cmobile.issues.images%7Cmobile.loggingSchemas.edit%2CmobileWebMainMenuClickTracking%2CmobileWebSearch%7Cmobile.mainMenu.icons%2Cstyles%7Cmobile.overlay.images%7Cmobile.pagelist.scripts%2Cstyles%7Cmobile.pagesummary.styles%7Cmobile.references.gateway%2Cimages%7Cmobile.search.api%2Cimages%2Cutil%7Coojs%2Coojs-router%7Cskins.minerva.editor%2Cscripts%2Ctoggling%7Cskins.minerva.icons.images.scripts%2Cvariants%7Cskins.minerva.scripts.top%7Cuser.defaults&skin=minerva&version=1247avh Less_Exception_Compiler from line 148 of /var/www/html/w/vendor/oyejorge/less.php/lib/Less/Tree/Mixin/Call.php: .background-image-svg-quick is undefined in /var/www/html/w/extensions/MobileFrontend/resources/mobile.pagesummary.styles/pagesummary.less
Backtrace:
#0 /var/www/html/w/vendor/oyejorge/less.php/lib/Less/Tree/Ruleset.php(147): Less_Tree_Mixin_Call->compile(Less_Environment)
#1 /var/www/html/w/vendor/oyejorge/less.php/lib/Less/Tree/Ruleset.php(88): Less_Tree_Ruleset->EvalMixinCalls(Less_Tree_Ruleset, Less_Environment, integer)
#2 /var/www/html/w/vendor/oyejorge/less.php/lib/Less/Tree/Ruleset.php(94): Less_Tree_Ruleset->compile(Less_Environment)
#3 /var/www/html/w/vendor/oyejorge/less.php/lib/Less/Tree/Ruleset.php(94): Less_Tree_Ruleset->compile(Less_Environment)
#4 /var/www/html/w/vendor/oyejorge/less.php/lib/Less/Parser.php(199): Less_Tree_Ruleset->compile(Less_Environment)
#5 /var/www/html/w/includes/resourceloader/ResourceLoaderFileModule.php(979): Less_Parser->getCss()
#6 /var/www/html/w/includes/resourceloader/ResourceLoaderFileModule.php(875): ResourceLoaderFileModule->compileLessFile(string, ResourceLoaderContext)
#7 /var/www/html/w/includes/resourceloader/ResourceLoaderFileModule.php(846): ResourceLoaderFileModule->readStyleFile(string, boolean, ResourceLoaderContext)
#8 /var/www/html/w/includes/resourceloader/ResourceLoaderFileModule.php(390): ResourceLoaderFileModule->readStyleFiles(array, boolean, ResourceLoaderContext)
#9 /var/www/html/w/includes/resourceloader/ResourceLoaderModule.php(666): ResourceLoaderFileModule->getStyles(ResourceLoaderContext)
#10 /var/www/html/w/includes/resourceloader/ResourceLoaderModule.php(613): ResourceLoaderModule->buildContent(ResourceLoaderContext)
#11 /var/www/html/w/includes/resourceloader/ResourceLoader.php(1040): ResourceLoaderModule->getModuleContent(ResourceLoaderContext)
#12 /var/www/html/w/includes/resourceloader/ResourceLoader.php(763): ResourceLoader->makeModuleResponse(ResourceLoaderContext, array, array)
#13 /var/www/html/w/load.php(53): ResourceLoader->respond(ResourceLoaderContext)
#14 {main} Noboddy (talk) 15:30, 29 May 2017 (UTC)
- Please explicitly mention the exact versions of MediaWiki and the MobileFrontend extension. "Latest" can be many things (latest stable tarball; latest stable git revision; latest unstable; latest provided by your Linux distribution...) Malyacko (talk) 17:55, 29 May 2017 (UTC)
- I used the last ones from Git on REL_1.29:
- MediaWiki 1.29.0-rc.0 (c749bf6)
- 14:52, 25. Mai 2017
- MobileFrontend1.0.0 (e6d353f) 22:27, 28. Mai 2017 Noboddy (talk) 08:00, 30 May 2017 (UTC)
- You are mixing the master branch of MobileFrontend extension with the 1.29 branch of MediaWiki core. Might be unrelated but that is never a good idea because nobody has tested how random branches work together. Malyacko (talk) 10:00, 30 May 2017 (UTC)
- Thank you, I'll try to switch that branch and see if that fixes my problem! Noboddy (talk) 12:14, 30 May 2017 (UTC)
Changing the font of a wiki to a custom one
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 tried to change my wiki's font to no avail. I'm not sure how to approach this. I have tried editing my Common.css but it seems as if it becomes replaced by TNR or whatever. I have tried going into my skin's ".less" file and tried to attribute my font with @font-face but that completely ruined things and made it seem as if the entire site was barren of any css.
Has anyone ever tried to change their wiki font? What do I have to do?
MediaWiki: 1.27.3 | PHP: 5.5.38 (litespeed) | MariaDB: 10.0.27-MariaDB-cll-lve | <- I don't think these should matter at all, but just in case. 107.190.52.50 (talk) 20:53, 29 May 2017 (UTC)
- What is "TNR"? Malyacko (talk) 07:37, 30 May 2017 (UTC)
- Times New Roman │Star-Warden│ 12:40, 30 May 2017 (UTC)
- Have you tried adding: body { font-face: whatever; } to your MediaWiki:Common.css? │Star-Warden│ 12:40, 30 May 2017 (UTC)
- I'm certain it won't but tried anyway. It's not some default font. Aren't I supposed to link to it? 107.190.52.50 (talk) 20:15, 30 May 2017 (UTC)
- I really don't know then. Maybe someone else with a good command of css might help. │Star-Warden│ 11:13, 31 May 2017 (UTC)
- http://lmgtfy.com/?q=css+use+custom+font Ciencia Al Poder (talk) 10:14, 2 June 2017 (UTC)
False positives with "Ongoing user page spam" filter
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
We should re-evaluate the false positives with Special:AbuseFilter/24 . This blocked an Outreachy intern who was attempting to add a link to her blog about the project.
Perhaps we could only do Disallow, and not Block. I realize that does potentially risk vandals re-trying until they bypass it, but everything's a tradeoff. Or we could tighten up the regex to not match borderline cases that might be legitimate.
As is, it seems we risk false positive blocks discouraging newcomers.
@Mooeypoo @Nemo bis @Jasper Deng Mattflaschen-WMF (talk) 23:57, 29 May 2017 (UTC)
Opening a shell 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.
Hey guys I am trying to follow this direction: Type into a shell "which gs convert pdfinfo pdftotext" to see if you have the above installed first. But it obviously doesn't work in regular CMD on my Windows box so is there a way I am able to do this from Wiki? Thank you very much for your help. Chris Olds98 (talk) 00:17, 30 May 2017 (UTC)
- Your question seems to be if there is a Microsoft Windows equivalent for the "which" command, if you'd like to search for such info.
- Also note that the direction is not about "opening a shell in MediaWiki" (MediaWiki has no shell included) but about opening a shell on your operating system. Malyacko (talk) 07:32, 30 May 2017 (UTC)
- Thank you, I am totally out of my element with this stuff but in regular command typing in that string they want me to type in brings back an error. Do you know where I am supposed to enter that? Thank you! Olds98 (talk) 08:18, 30 May 2017 (UTC)
- That's to enter in a terminal/shell/console window on the machine that is also hosting your MediaWiki instance. Malyacko (talk) 10:01, 30 May 2017 (UTC)
- Thank you! When I enter that command in CMD it comes back because it doesn't know the command which Olds98 (talk) 18:27, 1 June 2017 (UTC)
- That's why I wrote that you'd need to find the equivalent of the "which" command if you are on Microsoft Windows... :) Malyacko (talk) 02:05, 2 June 2017 (UTC)
- "which" returns the full path of those executables (which should be in directories present in the $PATH environment variable).
- On windows there's not a such feature but you can simply search the entire C:\ disk for executables with that name. Ciencia Al Poder (talk) 10:12, 2 June 2017 (UTC)
- Okay, thanks guys.. I believe I have what I need but I still can't get this PDFHandler to work for the life of me.. Olds98 (talk) 01:02, 12 June 2017 (UTC)
Adding extensions to Basque Wikipedia
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, some extensions used elsewhere are not available in Basque Wikipedia, i.e. Kartographer. What is the metodology to enable them? Theklan (talk) 08:46, 30 May 2017 (UTC)
Need longer image names in categories
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I don't know why longer image filenames in categories is not a default setting in the Mediawiki software. At least a little bit longer. It is very short now. Please see this discussion at a Shoutwiki forum:
*http://www.shoutwiki.com/wiki/Forum:Long_image_names_in_categories Timeshifter (talk) 09:36, 30 May 2017 (UTC)
- I'd also like this. You can probably start a discussion in Mailing lists and/or open a bugreport to add a new config setting to control the length of the image name in galleries. Ciencia Al Poder (talk) 09:33, 31 May 2017 (UTC)
- I wish all bug reports, config setting discussions, and feature requests happened mainly on Mediawiki talk pages. Most people don't like remembering the intricacies of other systems such as mailing lists, Phabricator, Flow, etc..
- If you don't mind maybe you can start a discussion on those forums. I just don't use them often enough to feel familiar with them. Timeshifter (talk) 22:28, 2 June 2017 (UTC)
- This is User:Timeshifter. I am logged in, but my user name is not showing up automatically.
- User:Ciencia Al Poder. I started a feature request on Bugzilla:
- * https://phabricator.wikimedia.org/T166989
- Default MediaWiki setting for length of filenames in categories is 22 characters. Then the ellipsis (...) shows up.
- You have to go outside Wikipedia and the Commons to see this. For example look at "File:Under contruction icon-yellow.svg" filename in this category on the Shoutwiki Hub user image category.
- * http://www.shoutwiki.com/wiki/Category:User_images
- It shows up as "Under contruction icon..."
- That is a total of 22 characters and spaces before the ellipsis shows up. That is way too short. We need a longer default length, and/or a config setting to choose a longer length.
- Wikipedia and Commons have much longer filenames in categories. See:
- * https://en.wikipedia.org/wiki/Category:Wikipedia_non-free_files_with_valid_backlink
- * https://commons.wikimedia.org/wiki/Category:Women%27s_March_on_Washington
- Commons has a default gadget setting for longer filenames. I don't know how Wikipedia does it. It doesn't matter whether one is logged in or not. Both Wikipedia and the Commons have long filenames in categories.
- See discussion here:
- * https://www.mediawiki.org/wiki/Project%3ASupport%20desk/Flow/2017/05#h-Need_longer_image_names_in_categories-2017-05-30T09%3A36%3A00.000Z
- * http://www.shoutwiki.com/wiki/Forum:Long_image_names_in_categories 69.61.172.79 (talk) 17:10, 4 June 2017 (UTC)
- Ah, I haven't checked the details of how it was implemented. I though the text was being cut at a fixed character length, but it's not. It's automatically cut to fit one line with CSS. This is easily solvable with custom CSS and not worth another configuration variable.
- In fact it was fixed to 25 characters in $wgGalleryOptions before 1.28 but now it can be overridden easily with CSS. Ciencia Al Poder (talk) 08:14, 5 June 2017 (UTC)
- User:Ciencia Al Poder. I copied the Commons gadget CSS to a Shoutwiki wiki to fix the problem.
- But that is not a good solution because it may not work longterm. The underlying CSS in the mediawiki software may change. This happened with a previous fix when the solution was in custom JS. The underlying software changed and the custom JS no longer worked in allowing longer image filenames to be visible in categories.
- It may not merit a configuration variable if the default setting is long enough. For example; 100 characters as a default setting. Timeshifter (talk) 10:55, 6 June 2017 (UTC)
- If you upgrade MediaWiki, there are many other changes to worry about, I don't think that a "not-so probable change" in this CSS code in the future would give you more headaches than a configuration variable that only sysadmins can change affecting the whole wiki. Ciencia Al Poder (talk) 09:18, 7 June 2017 (UTC)
- User:Ciencia Al Poder. Why is this crappy talk system still being used on Mediawiki.org? :)
- There are tens of thousands of wikis outside Wikimedia. It shouldn't be necessary for the admins on all these wikis to have to figure out this stuff.
- The simpler solution is to have a default length of 100 characters. See:
- https://en.wikipedia.org/wiki/Category:Wikipedia_non-free_files_with_valid_backlink Timeshifter (talk) 01:05, 9 June 2017 (UTC)
Password Change doesnt work
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
If I, or every other User of my Wiki, tries to change his Password via Spezial:ChangeCredentials it doesnt work. The Browser simply reloads the Site, but the password doesnt change. Cookies are enabled. 46.82.161.213 (talk) 15:30, 30 May 2017 (UTC)
- Cases where "The Browser simply reloads the Site" are often caused by ModSecurity flagging the submit as harmful, which discards the data and reloads the page as if no data was submitted (or you're directed to the main page). Ciencia Al Poder (talk) 19:34, 31 May 2017 (UTC)
Google Translate 3
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 forgot to ask, @Ciencia Al Poder. How could I hide it so it doesn't appear on the main page? And is there a way to hide for specific pages/namespaces? If the latter is not possible, at least a way to disappear from the main page? 79.119.124.0 (talk) 16:16, 30 May 2017 (UTC)
- You'll have to hide it with CSS. See for example Manual:FAQ#How do I hide the main page title?
- It should be similar to:
- Ciencia Al Poder (talk) 09:25, 31 May 2017 (UTC)
body.page-Main_Page #google_translate_element { display:none; } - Thank you! That worked. 79.119.124.0 (talk) 09:52, 31 May 2017 (UTC)
The "Related Pages" beta option
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. Up until a few weeks ago, there was a beta option that showed a list of related pages at the bottom of the page. Why has this feature disappeared? Is there any plan to return it? I found it very useful... Guycn2 (talk) 22:13, 30 May 2017 (UTC)
- Apparently it wasn't never intended to be for desktop, see T163114 Ciencia Al Poder (talk) 09:27, 31 May 2017 (UTC)
API Search by Text query Breaks down and causes internal_api_error_DBQueryError
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hey there,
Mediawiki version 1.27.2
Its strange actually.
I am using the API sandbox to build a query. In my case I'm using a list=search query
Here's how my query looks like (it's a search by text query)
When I run this query, I receive a db error like this
{"error":{"code":"internal_api_error_DBQueryError","info":"[6d1bf9f96c62cfe22e726386] Database query error","*":"#0 /var/www/vaniquotes/w/includes/db/Database.php(901): DatabaseBase->reportQueryError(string, integer, string, string, boolean)\n#1 /var/www/vaniquotes/w/includes/db/Database.php(1234): DatabaseBase->query(string, string)\n#2 /var/www/vaniquotes/w/includes/search/SearchMySQL.php(194): DatabaseBase->select(array, array, array, string, array, array)\n#3 /var/www/vaniquotes/w/includes/search/SearchMySQL.php(163): SearchMySQL->searchInternal(string, boolean)\n#4 /var/www/vaniquotes/w/includes/api/ApiQuerySearch.php(95): SearchMySQL->searchText(string)\n#5 /var/www/vaniquotes/w/includes/api/ApiQuerySearch.php(49): ApiQuerySearch->run()\n#6 /var/www/vaniquotes/w/includes/api/ApiQuery.php(251): ApiQuerySearch->execute()\n#7 /var/www/vaniquotes/w/includes/api/ApiMain.php(1362): ApiQuery->execute()\n#8 /var/www/vaniquotes/w/includes/api/ApiMain.php(474): ApiMain->executeAction()\n#9 /var/www/vaniquotes/w/includes/api/ApiMain.php(440): ApiMain->executeActionWithErrorHandling()\n#10 /var/www/vaniquotes/w/api.php(83): ApiMain->execute()\n#11 {main}"}}
But the same query when I modify it to search with title and not text for eg. this one
http://vaniquotes.org/w/api.php?action=query&format=json&prop=&list=search&meta=&continue=&titles=Main+Page&srsearch=arjuna&srnamespace=14&srwhat=title
The results come out perfectly. I was wondering what could be the issue as we are currently developing an app which queries the API and requires to use the search by text functionality.
Any thoughts?
~ Arnab Arnab vani (talk) 06:46, 31 May 2017 (UTC)
- You may need to set up $wgShowSQLErrors = true; in LocalSettings.php so it displays the sql error reason, so you can see if there's a missing table or similar. Ciencia Al Poder (talk) 09:21, 31 May 2017 (UTC)
- Hey @Ciencia Al Poder, thank you for taking the time to let me know. Really appreciate your help here.
- Your suggestion gave deeper insight. So now it says... Table 'vaniquotes_searchindex' is marked as crashed and should be repaired (localhost)
- I've pasted the whole error below.
- Do you think using this method as shown here will help me repair https://stackoverflow.com/questions/4357270/table-is-marked-as-crashed-and-should-be-repaired
- here is the error (although... i did run update.php and it also ran successfully after upgrading)
- {
- "error": {
- "code": "internal_api_error_DBQueryError",
- "info": "[4c69daa6dce119d126ff0e18] Exception Caught: A database error has occurred. Did you forget to run maintenance/update.php after upgrading? See: https://www.mediawiki.org/wiki/Manual:Upgrading#Run_the_update_script\nQuery: SELECT COUNT(*) as c FROM `vaniquotes_page`,`vaniquotes_searchindex` WHERE (page_id=si_page) AND ( MATCH(si_text) AGAINST('+arjuna ' IN BOOLEAN MODE) ) AND page_namespace = '14' \nFunction: SearchMySQL::searchInternal\nError: 1194 Table 'vaniquotes_searchindex' is marked as crashed and should be repaired (localhost)\n",
- "*": "#0 /var/www/vaniquotes/w/includes/db/Database.php(901): DatabaseBase->reportQueryError(string, integer, string, string, boolean)\n#1 /var/www/vaniquotes/w/includes/db/Database.php(1234): DatabaseBase->query(string, string)\n#2 /var/www/vaniquotes/w/includes/search/SearchMySQL.php(194): DatabaseBase->select(array, array, array, string, array, array)\n#3 /var/www/vaniquotes/w/includes/search/SearchMySQL.php(163): SearchMySQL->searchInternal(string, boolean)\n#4 /var/www/vaniquotes/w/includes/api/ApiQuerySearch.php(95): SearchMySQL->searchText(string)\n#5 /var/www/vaniquotes/w/includes/api/ApiQuerySearch.php(49): ApiQuerySearch->run()\n#6 /var/www/vaniquotes/w/includes/api/ApiQuery.php(251): ApiQuerySearch->execute()\n#7 /var/www/vaniquotes/w/includes/api/ApiMain.php(1362): ApiQuery->execute()\n#8 /var/www/vaniquotes/w/includes/api/ApiMain.php(474): ApiMain->executeAction()\n#9 /var/www/vaniquotes/w/includes/api/ApiMain.php(440): ApiMain->executeActionWithErrorHandling()\n#10 /var/www/vaniquotes/w/api.php(83): ApiMain->execute()\n#11 {main}"
- }
- }
- Any thoughts apart from repairing the table I should take a look at that should help fix the error?
- Sincerely,
- ~ Arnab Arnab vani (talk) 07:00, 1 June 2017 (UTC)
- Yes, you need to repair the table for the search to work properly. Ciencia Al Poder (talk) 09:22, 1 June 2017 (UTC)
- Thank you @Ciencia Al Poder this issue is resolved after repairing the database. 123.201.98.71 (talk) 10:16, 6 June 2017 (UTC)
Can't log in - not even with newly provided password
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
It's been ages since I've logged in, and my password didn't work. So I had W send me a new password. But that doesn't work either. I can't log in. Help? 217.39.78.144 (talk) 08:51, 31 May 2017 (UTC)
- Is this on your own wiki, or on another one. If it is your own, you can use changePassword.php to change it. If it is another one, you should ask the system administrators for assistance. Reception123 (talk) 05:00, 1 June 2017 (UTC)
completely disable caching
Hello,
I am developing a new extension for MediaWiki (text annotation with categorization). I use Media Wiki vagrant, which is working well. Unfortunately, I am not able to completely disable caching, so I need to hit the reload button a hundred times before the new PHP code gets executed.
I followed the instructions here Manual:FAQ#How do I completely disable caching.3F
but it didn't have any effect. Anyone has a clue? Pulsargranular (talk) 09:11, 31 May 2017 (UTC)
- When using MediaWiki vagrant, maybe a Squid or Varnish cache is enabled? Osnard (talk) 07:51, 1 June 2017 (UTC)
- I see the role «varnish» but it's not enabled. I also disabled the only enabled role, «semanticmediawiki» but with no avail. Is there one secure way to disable caching? Developing an extension with caching enabled is a nightmare... Pulsargranular (talk) 13:33, 1 June 2017 (UTC)
- I believe the main problem when developing extensions may be the ResourceLoader cache. Do you know this document? ResourceLoader/Developing with ResourceLoader#Breaking cache Osnard (talk) 06:30, 2 June 2017 (UTC)
- Unfortunately this is not the problem. I am running Safari and Chrome and have browser cache disabled completely. The PHP code *is* running in the background (I see it in the logs) but not the current version of it. My current workaround is to include some obvious changes so I actually see that my current code is running. After some time (10, 20 seconds usually) the new code is running. Pulsargranular (talk) 10:59, 2 June 2017 (UTC)
Visualeditor cant connect to Parsoid
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hey i try to install visualeditor on my Wiki (latest version) my Pasoid Service is running and seem to work. I Cant find out why my Wiki cant connect to the Pasoid Server. If i try to edit a page i become :
"(curl error: no status set)"
LocalSettings.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"; // Benutzer zum Visual Editor zwingen //$wgHiddenPrefs[] = 'visualeditor-enable'; // Experimentelle Funkionen einschalten //#$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://localhost:8142', // Parsoid "domain", see below (optional) 'domain' => 'itswiki', );
Config.yaml
# Configure Parsoid to point to your MediaWiki instances.
mwApis:
- # This is the only required parameter,
# the URL of you MediaWiki API endpoint.
uri: 'https://wiki.itswob.de/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: 'itswiki' # 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'
if i use
curl -L http://localhost:8142/itswiki/v3/page/html/Hauptseite
it works and parsoid show html version of my Main page. so the Connection from Parsoid to my Wiki seems to work. but the Wiki cant connect he parsoid Service 46.82.168.33 (talk) 12:58, 31 May 2017 (UTC)
- Hi,
- maybe it is related to your PHP configuration. Try to write a little PHP script that uses cURL to fetch http://localhost:8142/itswiki/v3/page/html/Hauptseite
- You can then use this script to read a potential error message and thus debug. Osnard (talk) 07:50, 1 June 2017 (UTC)
How to create a new 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.
How to create a new wiki? Dingsiyuan (talk) 13:08, 31 May 2017 (UTC)
- See Installing MediaWiki. │Star-Warden│ 13:42, 31 May 2017 (UTC)
- Start one on Miraheze or ShoutWiki MacFan4000 (talk) 16:14, 31 May 2017 (UTC)