Topic on Project:Support desk

Jump to navigation Jump to search
FS7615 (talkcontribs)


So, first of all, I am not too familiar with computer stuff. I have recently opened a wiki using MediaWiki and I want to use Infoboxes in the wiki pages. I think, I have read almost everything that I should do to add infoboxed, but due to me being new to everything, I only understood half of it. So, my Wiki is After reading this page among others, I did the following

- CSS and JS preparation on my site

- installed the ParserFunctions Extention and made the changes in the LocalSettings File

- installed Scribunto and set the execute permissions and made the changes to the LocalSettings File

I did not manage to:

- install Composer and Wikibase as said in this guide

My first question would be how to install Composer. I have downloaded the Composer-Setup.exe file but did not manage to go further than one step in the installation and when I use the scripts, I get errors (Probably doing something wrong there as I never used those before though)

An Example of the error I currently get can be found here

Thanks in advance


AhmadF.Cheema (talkcontribs)

The infobox appears to be working fine; if not, can you explain exactly how you think it should look?

You probably will have absolutely no need to install Wikibase, so no need to go through the trouble on that front.

Regarding Composer, are you running your MediaWiki on some Linux OS or is it on Windows?

FS7615 (talkcontribs)

Yeah, it works now. Seems like it just took a while. The Template pages still look a bit weird though (see here).

Composer: I am hosting the site via and don't know the system that it's hosted on. Is there a way to find out? My Computer is a Windows, but I guess that it's more about where the website is hosted at, right?

Bawolff (talkcontribs)

Do you have shell (ssh) access to your host site? I think its using linux. Possibly composer might already be installed there, so you should try at first just using the composer command to see if it works. If it doesn't, follow the command line instructions at (doing it over your ssh connection) [You may have to type php composer.phar anywhere the instructions say to type composer.

By the way you can usually figure out what type of system something is by typing the command uname and hitting enter from the ssh connection (or uname -a if you want full details).

But also, you may want to consider if you really want to install wikibase. It might be needed if you want to use the exact code that wikipedia uses, but wikibase adds a lot of complications and will be pretty useless to you unless you want to install it for the general reason.

FS7615 (talkcontribs)

I guess this doesn't work for me as I never did something like that before and I'm probably doing something wrong. Do I need to be in a certain url path so that it works? Well at least when I type in php composer.phar, it gives this answer:

Could not open input file: composer.phar

The uname command did work, it is a Linux system.

Now to the steps on

When I type in php -r "copy('', 'composer-setup.php');" as it sais on the site, I am getting this as answer:

Warning: copy(composer-setup.php): failed to open stream: Permission denied in Command line code on line 1

As said, I am probably doing something wrong. Do I need to be in a certain directory to make it work? (such as giving the command from Folder /Extentions/Composer/ or so)?

And concerning the question if Composer is already installed: There is no "Composer" Folder in the Extentions Folder, but I have a file named "composer.json" and one named "composer.local.json-sample" in the /www directory

Bawolff (talkcontribs)

You need to be in a directory you have write access to. Probably easiest is where mediawiki is installed.

By already installed i mean present on the system so you can just type composer and it works. It would not be in extensions/composer (/usr/bin or /usr/local/bin would be the usual place if preinstalled, but that doesnt really matter)

FS7615 (talkcontribs)

Oh yeah, composer is actually installed there and the "composer" command worked 😅. Thank you for the help ^^

AhmadF.Cheema (talkcontribs)

Regarding your Wiki's Template:Infobox and the error you're getting, these errors are often due to the fact Wikipedia templates using Lua are often updated to make use of the latest MediaWiki and extension versions, however, these updates also make them incompatible with older software versions.

Third-party Wikis such as yours are usually using comparatively older versions of MediaWiki/extensions, thereby displaying such errors on import of latest versions of such templates.

Sometimes, one solution for this is to use an older revision of the required template which works on your Wiki.

FS7615 (talkcontribs)

I also have another minor problem with the IP Address. Whenever someone is not logged in and makes edits, the recorded IP Adress is instead of the real IP Address. Is this a known problem?

Bawolff (talkcontribs)

well thats weird. w: is not a real ip address and used usually as a placeholder for unknown.

Maybe your host is trying to keep ips secret for privacy reasons?

FS7615 (talkcontribs)

Hm, maybe. I believe my hoster is not just offering normal web hosting, but also offers web hosting for darknet websites. I just use it as it's a free and easy-to-use hoster but maybe it does have privacy rules like that. In the access logs I can see the IP Addresses though 😬😅

Reply to "adding infoboxes"