Project:Support desk

Jump to navigation Jump to 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, Wikimedia Developer Support, Q&A, mwusers (unofficial forum) 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".
BilliTheCat (talkcontribs)

I keep having problems, and I am a visual thinking person with double vision. I cant find the answers I need in the sea of tiny grey letters.

Whenever I try to log in, 90% of the time I am told that I am entering the wrong username or password.

When I am actually logged in, half of the time, I am told that I do not exist.

My User page comes and goes.

My alerts and inbox, my only saving grace, says it is empty, when it is not.

I cant find the little blue link on the menu to the left that says "Upload File."

I am sorry if I am posting this in the wrong place. The grey maze of words is giving me motion sickness.

Thanks.

Nina

87.123.197.0 (talkcontribs)

To start with the first issue:

We are speaking about a MediaWiki installation, right? Is it one of the language versions of Wikipedia?

Basically, if login fails again and again, then this is often caused by broken cookies. Clearing cookies should help in this case.

BilliTheCat (talkcontribs)

Thanks for answering.

I do not know the wiki lingo yet.

I am confused about the answers, so I will try to add some details about my experience from last night and today, and maybe you can see which step I slipped up on.

I cleared my cookies a few time last night. Maybe I am not doing it right. I am using PC Google Chrome.

Last night I was trying to follow all of your directions, including uploading files and setting up my user page.

I uploaded 3 or 4 files. That was smooth!

I link one of my images to a page. (Colored Vector of Humayun's Tomb to the Humayun's Tomb page.)

Then I noticed that my copyright info said share-alike, and I wanted to post Public Domain. It took me an hour or two to find the page with the list of copyright tags and updated my images' copyrights.

Then I started following the site's directions. I added my graphic ability and language abilities to my user page, and played around with the user page by creating a gallery and adding some links.

When I was finding the tag for language ability, all of the sudden, the entire page turned to Hindi, academic Hindi. It took me some time to get my Hindi feet back, and I managed to get the page back to English. (Can I redo your language switch graphic as a vector so that it is clearer? I would just copy it directly into a vector image.)

Then, that is when I disappeared. My user page was gone, and things kept saying that I do not exist. Also, all of my notices, alerts, and messages were gone.

Then I notice that the metadata for my files didn't show up correctly, so I tried to update a newer copy of an image with complete metadata. That is when I was logged out, and I couldn't get back in until this afternoon.

I still do not exist, and neither do my uploads.

There are somethings that I can't remember right now. This site has been like being thrown into the deep-end, and I have only taken baths for the last ten years.

Please.

What did I do wrong, and How can I fix things?

Thanks

Nina

Reply to "Help Me!"
2A02:908:CD23:3820:2CA7:EBB0:C959:751A (talkcontribs)

Hi, I'm using the Mediawiki 1.23.9 software on my German website http://soluschristus.bplaced.net . I don't understand much about all the software and technology. The hoster is www.bplaced.net.

I would like to know some answers to be able to use the software better. I would be very thankful if someone could add me on skype or facebook, to explain a few things.

But one important question is, how I am able to make a full backup of my wiki. I have written many articles, and want to be sure, that no way they could be lost. In the MediaWiki special pages, there is the option to export pages, but it's not realistic to take each article one after the other. They are too many.

I'm regularly downloading a "localhost.sql" file, which is a database exported from my website hoster bplaced.net. And I download sometimes the full folder of my website through FileZilla.

But still, I am not sure, if this backups are full rescue. When I download the full folder from FileZilla, I'm often asked, if I want to overwrite some files, because there are more than one of them with the same name, but different size (so I'm confused). And I don't know how to test the backups, if it's possible to fully import the data or not - I don't know how.

I'm a newb. Thanks for help.

2001:16B8:105F:2A00:E455:E47F:AB3E:AED2 (talkcontribs)

The database file contains all texts inside your articles. So having a current backup of it is good. To be on the safe side, you should have a backup of the wiki folder as well.

See backup for more details.

Samwilson (talkcontribs)

You can also do a full XML dump of all pages, with the dumpBackup.php script. This can be useful in addition to the full database backup, because it doesn't contain any sensitive information. Some public wikis choose to archive their full pages dump on the Internet Archive.

Reply to "how to backup full wiki"

Migrating to new server with SQlite DB

2
2A02:8084:6A00:E80:250C:F771:7A0C:BCE4 (talkcontribs)

Hello,

I'm migrating from a Windows box to an Linux box, but I'm encountering difficulty connecting the sqlite DB

I'm using MW 1.27.4 and have no issues doing a vanilla install on the Linux box, but when I replace

My steps:

  • Install vanilla 1.27.4 on new linux box
  • Add my extensions and images into the respective folders on new linux box
  • Update LocalSettings.php file to include configuration for extensions
  • Replace vanilla sqlite DB with my existing sqlite DB from old windows box
    • Issue: This breaks the wiki. I see a page saying:
    • Sorry! This site is experiencing technical difficulties. Try waiting a few minutes and reloading. (Cannot access the database)

Settings on Windows mediawiki

Version: 1.27.4

PHP: 5.6.22 (cgi-fcgi)

SQLite: 3.8.10.2 with full-text search support

Lua: 5.1.4

Settings on vanilla Linux mediawiki:

Version: 1.27.4

PHP: 5.6.25 (apache2handler)

SQLite: 3.7.17 with full-text search support

Lua: 5.1.5

Thoughts?

87.123.197.0 (talkcontribs)
Reply to "Migrating to new server with SQlite DB"
Thibdx (talkcontribs)

Dear,

When I try to connect from anoter browser I got an error message saying (in summary) : You IP xx.xx.xx.xx is bloked because "blockedusername" has used it and is blocked.

I disabled the option to block IPs from this user. It works now. But I'm very concerned by the fact that my server or mediawiki installation is maybe infected by a malicious script.

Do you have an idea on how to check this ?

Regards

Reply to "The own server IP is blocked..."

How to stretch the HTML <body> to the page bottom?

2
Sturmjäger (talkcontribs)

I'm currently re-skinning my wiki and want both the main navigation and the page content to be seperated from the background image as "one unit", ie having the same background color and matching borders/box-shadows, so that it looks like one page and not like here in the default Vector, where the main menu is completely seperate on the left side.

To do this I first tried to give both the content and the navigation the same background-color, but the problem was that I couldn't stretch the main navigation div all the way down to the bottom/footer. I tried several stuff, including the display:flex property, but nothing worked out.

Then, I tried assigning the backgorund-image to html and the background-color and a reduced width to the body:

html {
background-image:url('https://domain.tld/background.jpg');
background-size:cover;
background-attachment:fixed;
}
body {
    background-color: #fdfdfd;
    width: 85%;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 10px 0 10px -10px rgba(0,0,0,0.30), -10px 0 10px -10px rgba(0,0,0,0.30);
margin-top:2em;
}

However, now the body doesn't go all the way down to the bottom, as you can see here: https://abload.de/img/mediawikic0sb5.png

What's the problem there? How to stretch the body to the bottom?

87.123.197.0 (talkcontribs)

You should be able to stretch the element by giving it a height, e.g. height: 100%;. You can use the developer tools of your webbrowser to directly see the change in rendering so that you immediately know, if what you did had the intended effect.

Reply to "How to stretch the HTML <body> to the page bottom?"
Dog1994 (talkcontribs)

I substitute my infoboxes because that's easier for me.

I can't for the life of me figure out how to change the alignment without basically creating an entirely new infobox to call upon, which would be super annoying.

I've tried adding |align        ="left" and |style =leftto the infobox afterward and nothing changes. What can I do? i also do not want to edit common.css

Ciencia Al Poder (talkcontribs)
Dog1994 (talkcontribs)

they're not copied, no. completely built from scratch.

I have a CSS override so that they all align=right but I want some of them to align=left, and that's my problem.

AhmadF.Cheema (talkcontribs)

If you are using local CSS overrides, than I assume those CSS rules are implemented on-to the Infobox through a class. In which case, can't just two separate classes be made, one for left-alignment and the other for right-alignment?

Dog1994 (talkcontribs)

They can, how would I accomplish that?

To make it clear: i have one page that I am attempting to use multiple infoboxes on and it looks awful with all of them on the same alignment. I want to change it so that every other box is aligned left.

AhmadF.Cheema (talkcontribs)

How exactly are you accomplishing, as you mentioned above, "align=right" for your Infoboxes?

Dog1994 (talkcontribs)

I add:

.infobox { float: right; }

to Common.css and that forces all infoboxes to the right, which I need otherwise I can't place them where I need them to be. This is great for the vast majority of pages where I want a right-aligned infobox, but in some pages I need left aligned. I can't just remove the common.css since that will force all of my infoboxes back to the left.

So now I'm stuck since I need to be able to fluctuate certain infoboxes to the left.

Ciencia Al Poder (talkcontribs)

On the table or div of the infobox, add style="float:{{{align|right}}};"

then add align=left on the templates you want it to be left-aligned. You can remove the .infobox { float: right; } style

110.149.125.240 (talkcontribs)

Or add .infobox-float-left { float: left; } as a class, and add that class to the infoboxes you want on the left.

You should also add clear: right; to your infobox class, so your infoboxes stay to the right of the page, rather than stacking up next to each other.

Dog1994 (talkcontribs)

i can't tell if i just have no idea what i'm doing or maybe i've set up templates completely wrong.

I tried following @Ciencia Al Poder's suggestion but as usual, I still can't get my templates to do anything but be EITHER stuck permanently on the left or permanently on the right.

To my Template:Character page (the one I use most often) I added:

| style="float:{{{align|right}}} but removed the ; escape since that didn't make sense to me (but I later added it back and it made no difference)

and then I removed the

.infobox { float: right; }

from my MediaWiki:Common.css

but without that, my templates simply do not obey any float or align properties.

I didn't follow the other suggestion since i dont want tom mess with classes that I don't understand

Ciencia Al Poder (talkcontribs)

Be sure style="float:{{{align|right}}}" is on the table, not on a column

Dog1994 (talkcontribs)

How do I ensure it's on a table versus a column?

Currently I substitute, so I'm not sure it's being displayed as a table. I'm still very inexperienced with infoboxes, sorry!

Ciencia Al Poder (talkcontribs)

See Help:Tables to see what's a table, and what's a column (or more correct, a table cell, which is what I wanted to say)

Reply to "substitution alignment"
Remy170 (talkcontribs)

Hola, recién he instalado mediawiki y quiero cambiarle la URL a mi página para que más personas puedan entrar.

Actualmente tengo que ingresar con el link: localhost/mediawiki y si este link se lo paso a alguien más obviamente no puede ingresar. ¿Cómo podría adquirir una URL donde todos puedan ingresar? GRACIAS.

Jörgi123 (talkcontribs)

I think you are basically looking for $wgServer, which you can change in LocalSettings.php. This will change the URLs, which MediaWiki creates.

Remy170 (talkcontribs)

I got to change the URL modifying the hosts file and then editing the $wgServer, however, I think that it only changes the appearance of the link because I still cannot enter from another device (in this case, my cell phone).

Thanks for answering!

2003:CC:ABDD:6000:C083:9F7E:B7FC:92A9 (talkcontribs)

The links should not point to localhost, but to some kind of URL or IP. If this is the case, then configuration of MediaWiki is fine. The next step then is to make sure that this URL or IP is reachable via your network so that another device can reach it.

Ciencia Al Poder (talkcontribs)

Para que más gente pueda acceder, lo ideal es instalarlo en un servidor de internet. Si el proyecto es muy pequeño y quieres tenerlo en el PC de casa, deberás primero saber cuál es tu dirección IP pública (lo puedes ver en alguna web como http://whatismyipaddress.com/), y esa será la dirección que poner en $wgServer y la que debes pasar a los que quieran acceder a tu sitio. Es posible que debas configurar en el router la redirección de puertos, normalmente del puerto 80 hacia el PC que tiene MediaWiki, y configurar los firewall para que permitan el tráfico externo.

Debido a que la dirección IP pública de tu casa puede cambiar con el tiempo, lo mejor es contratar un dominio, o bien un servicio dyndns para usar un nombre de dominio en lugar de una IP.

119.159.174.20 (talkcontribs)
Reply to "Cambiar URL de mi wiki"
Altmic 1 (talkcontribs)

I'm a beginner using the mediawiki software. I bought a wiki subdomain from 1&1 and this works fine, with rhe exception of downloading a page as PDF.

Software Version
MediaWiki 1.28.3
PHP 5.6.36 (cgi-fcgi)
MySQL 5.5.60-0+deb7u1-log
ICU 52.1

I have loaded the extensions in LocalSettings.php :

require_once "$IP/extensions/Collection/Collection.php";

require_once "$IP/extensions/Mpdf/Mpdf.php";

$wgMpdfTab = false;

I have also tried htmldoc, but I think it's not intstalled and I think I have no permission to install, because it's the 1&1 server.

What can I do.

Thank You!!

Reply to "No download as PDF"

Pygmentize process getting TimedOut

1
AhmadF.Cheema (talkcontribs)
Reply to "Pygmentize process getting TimedOut"

Lua error: Line 264: attempt to perform arithmetic on local 'a' (a table value).

1
79brue (talkcontribs)

I used lua module to make bitwise operators. But it seems to have an error. What should be the error?

Template: <includeonly><onlyinclude>{{#invoke:Bitwise|band|a = {{{1|1}}}|b = {{{2|1}}}}}</onlyinclude></includeonly>

Line 264 of module: function M.band(a,b) return ((a+b) - bxor(a,b))/2 end

return statement: return M

Reply to "Lua error: Line 264: attempt to perform arithmetic on local 'a' (a table value)."