Project:Support desk

Jump to: navigation, search

About this board

vde   Welcome to MediaWiki.org's Support desk, where you can ask MediaWiki questions!

There are also other places where to askCommunication: IRCCommunication#Chat, mailing listsMailing lists, Q&A etc.

Before you post

Post a new question

  1. To help us answer your questions, please always indicate which versions you are using (reported by your wiki's Special:Version page):
    • MediaWiki
    • PHP
    • Database
  2. Please include the URL of your wiki unless you absolutely can't. It's often a lot easier for us to identify the source of the problem if we can look for ourselves.
  3. To start a new thread, click "Start a new topic".
By clicking "Add topic", you agree to our Terms of Use and agree to irrevocably release your text under the CC BY-SA 3.0 License and GFDL

API integration / problem of getting relevant search results

1
PerfectMusic (talkcontribs)

We are making an integration with Wiki for our web-site. We would like to get texts from Wiki with API, but the problem is that searching results are not always relevant. Can you please recommend how we can get the page we really need and avoid of wrong texts coming from Wiki.

Thanks.

Reply to "API integration / problem of getting relevant search results"
2A02:120B:C3C9:7F10:359C:1339:3788:D956 (talkcontribs)

I got a problem with the images on my site (http://pokemon-go-wiki.ch).

The problem starts whit the logo which is not visible but reachable via url. Also do all other images on the site not work.

It is also impossible to click on a link at the file list (Dateiliste).

http://pokemon-go-wiki.ch/index.php/Spezial:Dateien

How can I fix that?

Reply to "Images does not show"
Summary by AhmadF.Cheema

Extension:AbuseFilter issues, problem with URIs

24.39.1.140 (talkcontribs)

I posted here, (Post is called Problems), a week ago, and still have not gotten a response. If I could get one that would be great. Thanks.

Original report:


I am having some issues on my wiki. I can create empty filters and enable/disable them but I can't do anything else. If I try it says,

Not Implemented

GET to /index.php/Special:AbuseFilter/2 not supported. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

This only happens when I try to edit the conditions. Any thoughts? 67.244.58.187 00:47, 9 April 2016 (UTC)

This comment was hidden by 87.123.58.223 (history)
This comment was hidden by 67.244.58.187 (history)
87.123.58.223 (talkcontribs)

The URL /index.php/Special:AbuseFilter looks like you are using short URLs. Maybe the problem is somehow related to the short URL configuration?

67.244.58.187 (talkcontribs)

I dont think thats it though.

87.123.58.223 (talkcontribs)

And what do you think it is?

108.114.10.142 (talkcontribs)

How should I know?

Ciencia Al Poder (talkcontribs)

Disable short URLs (basically, remove all rewrite rules and restore/adapt $wgArticlePath) and try again

LegoFan4000 (talkcontribs)

I was also thinking that it might have something to do with mod_security.

AhmadF.Cheema (talkcontribs)

Also, had the same problem. Found disabling only the HTTPS .htaccess rewrite rules was enough.

Rewrite rules:

RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}

The browser gives the following warning for secured connection:

Mixed Content: The page at 'https://<Domain>/wiki/Special:AbuseFilter/1'</nowiki> was loaded over a secure connection, but contains a form which targets an insecure endpoint 'http://<Domain>/wiki/Special:AbuseFilter/1'. This endpoint should be made available over a secure connection.

Any idea how this can be permanently fixed, or whatever the root problem might be?

Ciencia Al Poder (talkcontribs)

@AhmadF.Cheema: AbuseFilter is being used here at WMF wikis, and in HTTPS, and I don't see that problem.

If you're using https, be sure you don't have $wgServer set with "http://" as protocol, because it will force URLs to http instead of https.

AhmadF.Cheema (talkcontribs)

Yes, that was apparently the exact problem.

The "form which targets an insecure endpoint" now uses https://<Domain>/wiki/Special:AbuseFilter/1 instead of "http://".

Thanks!

Guycn2 (talkcontribs)

I want to set a background color for all non-existing pages. For that I need a CSS class for non-existing pages. Is there any CSS class on MediaWiki that indicates a non-existing page?

TheDJ (talkcontribs)

No, it does not seem like there is such a class atm.

Guycn2 (talkcontribs)

:-( Thanks for the answer

Ciencia Al Poder (talkcontribs)

You can do something with JavaScript, checking wgArticleId, and wgNamespaceNumber to exclude special pages (see Manual:Interface/JavaScript)

Guycn2 (talkcontribs)

Thank you. I would prefer doing it with a simple CSS class, because I'm terrible in JS ;(

Reply to "A CSS class for non-existing pages"

Installed MediaWiki, but only see Main Page

2
Errpeepo (talkcontribs)

I did a fresh installation of MediaWiki, no errors. However, if I click anything on the Main Page, it takes me to the "No such spacial page" section, even if I just try logging in.

Can somebody please help me?

Ciencia Al Poder (talkcontribs)

Do you have any extensions installed? If so, disable all of them and enable one by one to see which one causes the problem.

Reply to "Installed MediaWiki, but only see Main Page"
Roots06 (talkcontribs)

Dear all

it seems that the users in my mediawiki (http://www.surveillance-citoyenne.fr/mediawiki/index.php?title=Accueil) do not appear in phpMyAdmin (Version information: 4.1.14) making it difficult to manage privileges etc... Anyone know where does this come from ?

Thank you in advance

Ciencia Al Poder (talkcontribs)

Users are stored in the user table

Reply to "users don't appear in my phpMyadmin"
Zagman76 (talkcontribs)

Hello - after moving servers, and switching from Apache to nginx, I can no longer log into my site, and I am not sure why. I keep getting an error that says: "Login Error. You are now logged in!" However I am not logged in: http://i.imgur.com/ZupSeZp.png

Also - the top-right, by the login link shows an 'internal' IP of 192.168.4.242, instead of my real-world public IP (my internal network isn't even in the 192.168.0.0/16 range), so I'm not sure why that's happening either.

The site is behind an AWS ELB, but it was that way previous to the switch, and it was working fine then.

Any assistance would be greatly appreciated! Thanks!

Ciencia Al Poder (talkcontribs)

Are you sure you're hitting the new server and not the old one? You may also need to set $wgSquidServers

Zagman76 (talkcontribs)

I had the SquidServers setting set properly, and was definitely hitting the new server (old was was powered off).

I just upgraded to the latest mw version today, and that seemed to fix the problem.

an error "Exception encountered, of type "BadMethodCallException""

7
Wujiang2016 (talkcontribs)

when I finished installing the mediawiki and registered users,there is an error "Exception encountered, of type "BadMethodCallException"".

Ciencia Al Poder (talkcontribs)

What MediaWiki version? Clear steps to reproduce?

Wujiang2016 (talkcontribs)

this version is 1.27.0 .

the step is:After the installation is completed, I opened the main page of the site, input the register of user

, entered the user information and submitted, then the error message comed out. only showed the error information

, there was no trace information.May I send you a website which has the picture of the error page? Would you mind checking it and letting me know what the mistake is, please?

109.193.61.189 (talkcontribs)

Hi, same here, fresh installation, no login possible.

TheDJ (talkcontribs)

You could try disabling your installed extensions one by one. Likely one of them is not compatible with 1.27.0

62.32.69.53 (talkcontribs)

I got same error message.

MediaWiki 1.27.0. Php 7.0.9. Debian 7 32bit.

Wujiang2016 (talkcontribs)

I solved my problem, I replaced the 1.26.3 version, thanks.

Reply to "an error "Exception encountered, of type "BadMethodCallException"""
Nanoukaplus (talkcontribs)

Hello,

how can I use a variable in an ask query of format = template, to use its value in the template defining the ask ?

Concretely, I've got this in my template A :

{{#vardefine:variabletest|{{{filename}}} }}

with file name a field in a form linked to my template A.

Plus, I've got this query :


{{#ask: [[Category:Objects]]
|?number
|format=template
|template=Template B
}}

And I want to inser the value of the variable variabletest to make conditions on it in my second template, the B

How to do that please ?

Reply to "Variables in included templates"

Exception encountered, of type "LocalFileLockError"

7
OMG PLEASE DO NOT BE OCCUPIED I AM TRIGGERED (talkcontribs)

Whenever I want upload new image I get this error.

Exception encountered, of type "LocalFileLockError"

Ubuntu Server (Apache2)

87.123.9.12 (talkcontribs)

In which wiki is this happening?

Which version of MediaWiki is this wiki using?

(Possibly T135485, T132921...)

OMG PLEASE DO NOT BE OCCUPIED I AM TRIGGERED (talkcontribs)

Newest one

87.123.9.12 (talkcontribs)

What is the "newest version"? Is that 1.27, which is the newest LTS version? Or 1.28wmf..., which is the newest point release? Or even something completely different, because you installed this from some strange repository, which only has outdated stuff anyways?

OMG PLEASE DO NOT BE OCCUPIED I AM TRIGGERED (talkcontribs)

1 2 7

84.72.156.189 (talkcontribs)

Had the same issue but it was only a permission problem. MediaWiki was not able to write to the images subdirectory. Could be the same issue on your system.

Nicolas NALLET (talkcontribs)

try to put www-data as owner recursively

chown -R  www-data images

Reply to "Exception encountered, of type "LocalFileLockError""