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
89.123.241.143 (talkcontribs)

Is there a way for blocked accounts to have the 'read' permission revoked?

Ciencia Al Poder (talkcontribs)

no, and this would make no sense. Most you can do is create a new user group and revoke the read rights for it, and adding those blocked users to the new group, but that wouldn't make more sense anyway, since users can just logout to see the content

87.123.58.199 (talkcontribs)

What Ciencia says is right. You would need a setup, where users cannot see anything, if they are not logged in. Otherwise it would not make sense to revoke read rights from certain accounts.

89.123.241.143 (talkcontribs)

Hm. Is it possible to work for IPs then? That's what I meant to ask initially. I don't think IPs can be added to groups, can they?

87.123.58.199 (talkcontribs)

They cannot. IPs can be blocked, but they cannot be added to groups (at least not by default and I don't know of an extension, which would change that).

Note that what you want in fact _is_ possible: You can configure MediaWiki in such a way that as long as the user is not logged in, only access to a few pages is possible, e.g. to the Main Page and to the login page. All other pages would then be forbidden as long as the user is not logged in. If you then blocked a user, you will effectly also take his read rights away. However, I am not sure, if this solution really is what you want: After all, this takes read rights away from _each and every_ IP. I am aware that this is not what you asked for...

89.123.241.143 (talkcontribs)

Yes. I would only like for any blocked IP/account to have their 'read' rights revoked.

89.123.241.143 (talkcontribs)

Well, mostly for IPs.

87.123.14.60 (talkcontribs)

I know. That's how I understood your question. ;-)

Reply to "Blocked users permissions"

Connect to https wiki-site api with wikitools.py

3
Carchaias (talkcontribs)

I try to create a little python script and have problems to connect my Wiki .

from wikitools import * 
s = wiki.Wiki('https://aquanautweb.de/testwiki/api.php') 

results in

==== RESTART: C:\Users\XXXXXXX\test_wikitools.py ==== 
URLError: <urlopen error EOF occurred in violation of protocol (_ssl.c:590)> trying request again in 5 seconds 
URLError: <urlopen error EOF occurred in violation of protocol (_ssl.c:590)> trying request again in 10 seconds 

It works with https://en.wikipedia.org or other wikipedia pages. The API on my wiki is turned on so I can send requests via the browser. It works further with another wiki that has no TLS. I think someting is going wrong on the server-side but I have no idea what.

Ciencia Al Poder (talkcontribs)

Your server seems to use TLSv1.0, and that python lib seems to use 1.2 by default. See this SO question

Carchaias (talkcontribs)

Hm, this may be the source. But I can't see where wiki.py from wikitools uses requests

But I not experienced with that.

Reply to "Connect to https wiki-site api with wikitools.py"
194.183.0.100 (talkcontribs)

Hi,

i'm trying to install mediawiki on our centralized mysql database. During wizard i choose mysql and insert all the parameters but i receive: DB connection error: Can't connect to MySQL server on 'MYDBSERVER' (13) (MYDBSERVER).

Is there something i need to configure before or after wizard?

Thanks

Ciencia Al Poder (talkcontribs)

Maybe you have SELinux enabled and it's blocking external connections from apache? See this SO question

194.183.0.100 (talkcontribs)

Thanks Ciencia, you're right. Disabled SELinux but now i'm encountering another issue: DB connection error: Authentication plugin 'dialog' cannot be loaded: /usr/lib64/mysql/plugin/dialog.so: cannot open shared object file: No such file or directory

87.123.14.60 (talkcontribs)

That is a problem with MySQL. Obviously the dialog.so plugin cannot be loaded, because it is not present at /usr/lib64/mysql/plugin/.

194.183.0.100 (talkcontribs)

you're right, indeed i'm using mariadb and i really don't know if that's the issue or the compatibilty on redhat

87.123.14.60 (talkcontribs)

So obviously you either want to add that plugin so that it can be found, or - if you don't use it - you should remove it from MariaDB's plugin list so that MariaDB no longer tries loading it.

See https://mariadb.com/kb/en/mariadb/uninstall-plugin/

194.183.0.100 (talkcontribs)

i think i need it in order to let app to connect to db....where can i download it?

87.123.14.60 (talkcontribs)

Up to a few hours ago, I didn't even know that MySQL/MariaDB has support for something called plugins. According to this plugin comes with the MariaDB distribution. It should then be part of the MariaDB installation process to install it, I think.

Reply to "installation issue with MariaDB"

Binary file upload save with a wrong extension

2
Gtehrani (talkcontribs)

Hi,

I added $wgFileExtensions in LocalSettings.php to allow uploads of Microsoft Office files i.e. ppts, docx, xlsx. The problem is that when I upload a file with pptx, the upload tool insists on saving it as a docx file. PDf files seem to be immune but not Office files.

Appreciate your help,

George

87.123.14.60 (talkcontribs)

I don't get it. Do you say that, when you have a pptx file and you upload it, the resulting file name ends in docx? Where does this happen? I mean, you can explicitly define the file name you want, right?

Reply to "Binary file upload save with a wrong extension"
178.24.167.81 (talkcontribs)

if I use http://simpsonspedia.net/index.php?title=Simpsonspedia I got this error, but if I use http://simpsonspedia.net/index.php?title=Simpsonspedia&mobileaction=toggle_view_desktop this site works.

what is the reason? have anyone an idea?

best regards

s.net

178.24.167.81 (talkcontribs)
MediaWiki 1.24.2
PHP 5.4.16 (cgi-fcgi)
MariaDB 5.5.44-MariaDB
TheDJ (talkcontribs)

You can put anything behind the URL and it seems to work. Possibly there is some sort of caching occurring on that URL, and this cache is not being purged for some reason, so that you are seeing an old version of this page from a time where it was actually showing the error ? If that's not it, then I suggest you start looking at debug logs.

195.50.155.96 (talkcontribs)

I use the magic quote __NOCACHE__, so cache shouldn't use.

I'll check the cache and if I find an cached html for this side, I'll delete this file.

best regards

s.net

87.123.14.60 (talkcontribs)

You should add

$wgShowExceptionDetails = true;
$wgShowSQLErrors = true;
$wgShowDBErrorBacktrace = true;

to LocalSettings.php and see, what the actual error is.

Reply to "database error"

Not exceeding the CPU quota limit

6
Summary by Stranger195

That host sucks.

Stranger195 (talkcontribs)

Hostinger Philippines suspended TME's hosting account because it "exceeded allowed 70% CPU quota limit for more than 21 times." How do I make so that MediaWiki doesn't exceed this limit?

TheDJ (talkcontribs)

There is a $wgMemoryLimit, but no cpu limit. Also, that isn't really a common limitation to be applied by hosters for these kinds of services. Limits like these are much more common. I would ask them what this is about, since CPU limit is not something you can easily enforce yourself from PHP.

Stranger195 (talkcontribs)

This was the full reason for suspending my account:

Account themultilingualencyclopedia.16mb.com exceeded allowed 70% CPU quota limit for more than 21 times. This is considered abnormal as it causes a high server load and overall slowdown. Website must be secured and optimized or removed form the server (Account themultilingualencyclopedia.16mb.com exceeded allowed 70% CPU quota limit for more than 21 times. This is considered abnormal as it causes a high server load and overall slowdown. Website must be secured and optimized or removed form the server)
Ciencia Al Poder (talkcontribs)

Get a better hosting company, basically. That's what you get for a free/cheap hosting

Stranger195 (talkcontribs)

Good answer...

87.123.14.60 (talkcontribs)

If I was Sheldon Cooper, I would now ask "Irony?".

But no, that is no irony at all. Bad hosts offer bad services. I am not saying _your_ host is bad. All I see is that what this host offers obviously is not enough even for the standard functions of MediaWiki. Or let me put it that way: Your host wants to have more money or they will no longer allow you to use MediaWiki in that hosting account. And compared to other systems, MediaWiki is even frugal. With a reasonable host this most likely would _not_ have happened.

Colleax (talkcontribs)

Hi,

After upgrading our WIKI page has no lay-out, only text, on the login pages and certain special pages.

I searched in Localsettings.php and CSS directories for answers.

The option to show CSS on all pages does not work: $wgAllowSiteCSSOnRestrictedPages.

I changed the localhost as shown in other solutions on similar problems, in Localsettings.php.

?

87.123.14.60 (talkcontribs)

See Manual:Load.php!

Reply to "Lay-out logonpages not visible"

Why can I not use /FAQ as a URL? MediaWiki is stealing it!

1
GodsDead (talkcontribs)

It just displays:

The MediaWiki FAQ can be found at: https://www.mediawiki.org/wiki/Manual:FAQ 

Which isn't very helpful, as I cant change this. I dont want to have to use Faq as my URL.

Reply to "Why can I not use /FAQ as a URL? MediaWiki is stealing it!"
Carchaias (talkcontribs)

Is there a easyer way to protect a list of pages perhaps by a maintenance script or the like? The only way I've found is Help:Protecting and unprotecting pages.

It somehow boring to open each single page , click the settings, save ...

Ciencia Al Poder (talkcontribs)

There's protect.php. See also Manual:Protection

Carchaias (talkcontribs)

This is only on V 1.25+ , I'm on V 1.23+. There is further no explanation how to use it.

87.123.58.199 (talkcontribs)

protect.php as well as the mechanisms described on Manual:Protection will also work in 1.23.

Reply to "How to "mass-protect" pages ?"
Kirabook (talkcontribs)

Hello. So, I recently developed a new install for Mediawiki on my server. I noticed now that the icons have been missing. By icons, I mean any icons that originate from the extension folder. They are there, but don't appear on the wiki.

After a bit of digging, I noticed what the issue is, but I don't know how to fix it.

While the wiki is linking to the images and where they should be, they are... how do I put this...

Instead of this (what it should be): background-image: url("http://mydomain.com/wiki/extensions/SemanticForms/skins/rearrangeDots.png");

It is this (trying to reference full path, which is incorrect): background-image: url("http://mydomain.com/home4/user/public_html/wiki/extensions/SemanticForms/skins/rearrangeDots.png");

For some reason, the wiki is trying to put the whole path into the link. I figure it must be some small setting that I messed up somewhere, but when I compare it to my older install, everything is pretty much the same. I can't for the life of me figure out why this might be happening.

This comment was hidden by Malyacko (history)
TheDJ (talkcontribs)

Sounds like somewhere you defined something to be "$IP/something" instead of "$wgServer/something". The wgExtensionAssetsPath variable explicitly warns about such a mistake.

Reply to "Missing Icons"