Project:Support desk

Jump to navigation Jump to search

About this board

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

There are also other places where to ask :

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".
Previous page history was archived for backup purposes at Project:Support_desk/old on 2015-07-30.
 

How to print double curly braces (as <code>)?

2
182.232.150.71 (talkcontribs)

I have an Hebrew 1.34.0 website.

I call template to create single-line code:

<includeonly><code>{{{1}}}</code></includeonly><noinclude>

[[קטגוריה:תבניות]]
</noinclude>

Generally it works fine when I call it, but I have a problem that when I desire to present curly braces (as <code>) I get just one curly brace instead two.

Current input:

מסולסלים {{קחש|{}}}

Current output:

{}

Desired output:

{}


How to print double curly braces (as <code>)?

Bawolff (talkcontribs)
{{template name here|<nowiki>{}</nowiki>}}
Reply to "How to print double curly braces (as <code>)?"
Jasonba (talkcontribs)

Hi,

Could you let me know how I can fix the embedded url in new page creation?

Let say I want to search for a page name "mynew page".

For example, when I search a page "mynew page" and it does not exist then I get "Create the page 'mynew page

' on this wiki. After I click on the link of the new page name, It takes me to a new page creation, which also has a default message saying "You have followed a link to page that does not exist yet. To create the page, start typing in the box below (see the "help page" for more information). If you are here by mistake, click your browser's back button.

The thing is the embedded url link ("help page") has a wrong address. It has: http://mywikidomainname/w/index.php/Help:domainname_Help

However, I expected the embedded url would be http://mywikidomainname/wiki/index.php/Help:domainname_Help

The "w" of the embedded url should be replaced by "wiki" to make the url valid.

Could you walk me through how I can fix the embedded url?

In the LocalSettings.php file, I already set $wgArticlePath = "/wiki/$1";

Thanks so much!

JBA

Bawolff (talkcontribs)

that should probably be:

$wgArticlePath = '/wiki/$1';

(Single quote not double) Although im not sure that would cause the issue you are describing. Can you check that you dont have $wgArticlePath specified multiple times.

On the page special:version it should have a table with all your path variables, can you paste them here?

Jasonba (talkcontribs)

Great. Thank you! I will check on those thing and let you know.

Reply to "New page embedded url"

Best practices for updating LocalSettings.php for a live MediaWiki

6
Nnaka1 (talkcontribs)

I am currently developing on my own instance of MediaWiki, which means making changes to the LocalSettings.php.

I have found that in order for my changes to the LocalSettings.php to be picked up, I need to "bounce" / restart my php fpm. This seems quite heavy handed and not the best practice because if I were to have other PHP processes running, they would be impacted. May I know what the best way to do runtime LocalSettings.php updates to an instance of MediaWiki?

Bawolff (talkcontribs)

normally you dont need to do anything for changes to be picked up. Whatever you are experiencing might be some sort of php config issue.

Check also you dont have your php on an NFS (or SMB, etc) file system as network filesystems can sometimes mess this up.

Hazard-SJ (talkcontribs)

Also look into whether you have any PHP caching in place.

Nnaka1 (talkcontribs)

Thanks, yes, any changes I would expect to get picked up the next call that's made.

I made sure that PHP is host local.

I'm using PHP-FPM along with Apache HTTPD. From looking at the PHP-FPM extra.ini file, I see that I set realpath_cache value. From my research it seems that I may need to do a reload of PHP-FPM for this to be cleared but this still seems quite invasive. I'm curious how this sort of set-up / process is typically done / supported in a production environment?

Nnaka1 (talkcontribs)

I am also seeing that in my opcache.ini I have the opcache.enable=1. From what I read, this seems to provide some performance enhancements, but I have a hunch that this could also potentially be the cause of this. But would love to know what your experience is for this as well.

Bawolff (talkcontribs)

Just to be clear, if you add the last line of LocalSettings.php to be:

die("dead");

Nothing changes until you restart php-fpm (including both normal pages and special pages)? Because that is super weird.

Might make sense to ask on a php forum as they might have people who know better how php internals work

Reply to "Best practices for updating LocalSettings.php for a live MediaWiki"

I cannot log in to Active Worlds. The browser will not work, nor can I access it to get my citizen number. Please help.

2
Summary by TiltedCerebellum

User is in the wrong place, this is the Mediawiki help desk for the mediawiki software, not for Active Worlds.

174.246.136.55 (talkcontribs)

I cannot log in to Active Worlds. The browser will not work, nor can I access it to get my citizen number. Please help.

The current AW browser was working just a month ago. What's changed?


Reply to: (removed)

Jackmcbarn (talkcontribs)

You're in the wrong place. This is the support desk for the MediaWiki software, not for Active Worlds.

80.42.233.218 (talkcontribs)

is it possible to have 1 group that imports multipul group permissions


for example:

Sales_Manager = Sales_M & Sales

Sales_Dept = Sales


so that everyone in sales department group has read access to all the documentation they need.

but the Sales managers have this access plus edit permissions and also access to aditional documentation


I am using the extension "Restrict access by category and group" to group pages by categories and makingthem private. BUT i have to edit each user 1 by 1 and add them to all the corosponding categories.


at the moment i have 12 private categories and 30 users.


the 30 users could be grouped into 6 departments requireing access to certain categories based on their department

TiltedCerebellum (talkcontribs)

That extension is unmaintained and severely out of date. It also says at the top:

"If you need per-page or partial page access restrictions, you are advised to install an appropriate content management package. MediaWiki was not written to provide per-page access restrictions, and almost all hacks or patches promising to add them will likely have flaws somewhere, which could lead to exposure of confidential data. We are not responsible for anything being leaked."

"This extension stores its source code on a wiki page. Please be aware that this code may be unreviewed or maliciously altered. They may contain security holes, outdated interfaces that are no longer compatible etc."

Essentially what you are trying to do it not supported by MediaWiki. You are not likely to get help here to use MediaWiki for other than how it was intended.

Reply to "grouping groups"

How can I remove this from my infoboxes?

4
Soylm (talkcontribs)

Can I remove the "Page not linked to Wikidata" at the bottom of the infoboxes? thanks

Bawolff (talkcontribs)

remove the part you dont want?

Soylm (talkcontribs)

I dont know what is THAT part, beacuse the code of the infoboxes is rare, furthermore, it would not be comfortable for users to have to remove that part each time they insert an infobox.

TiltedCerebellum (talkcontribs)

How are we supposed to know what is THAT part? You are provided too little information for anyone to meaningfully help you. What version of MediaWiki? What's the site link? What do you have in your infoboxes? What's the code there? Everything that is in your infoboxes is showing coming from something that's been put there... that's why you go the answer you got. Please provide useful information to go on, or no one can help.

Reply to "How can I remove this from my infoboxes?"
90.45.227.38 (talkcontribs)

Excusez-moi, je ne parle pas l'anglais, quand j'essaie au début , j'obtiens le message d'erreur suivant : ubuntu@ubuntu-Lenovo-ideapad-330-17IKB:~$    gksudo gedit filename

La commande « gksudo » n'a pas été trouvée, voulez-vous dire :

  commande « gfsudo » du deb gfarm-client

Essayez : sudo apt install <nom du deb>

TiltedCerebellum (talkcontribs)

Vous utilisez la mauvaise commande et c'est ce qu'elle vous dit. Votre question est de savoir comment faire les choses dans Ubuntu. Ceci est le service d'assistance de MediaWiki pour les questions concernant le logiciel MediaWiki uniquement. Ils ne peuvent pas vous aider à apprendre à installer des logiciels sous Linux. Ce que vous demandez dépasse le cadre de ce service d'assistance.


You are using the wrong command and that is what it is telling you. Your question is rabout how to do things in Ubuntu. This is the MediaWiki help desk for questions about the MediaWiki software only. They cannot help you learn how to install software in Linux. What you are asking is beyond the scope of this help desk.

90.45.227.38 (talkcontribs)

J'obtiens le résultat suivant : ubuntu@ubuntu-Lenovo-ideapad-330-17IKB:~$  gksudo gedit filename

La commande « gksudo » n'a pas été trouvée, voulez-vous dire :

  commande « gfsudo » du deb gfarm-client

Essayez : sudo apt install <nom du deb>

ubuntu@ubuntu-Lenovo-ideapad-330-17IKB:~$  gfsudo gedit filename

La commande « gfsudo » n'a pas été trouvée, mais peut être installée avec :

sudo apt install gfarm-client

90.45.227.38 (talkcontribs)

ubuntu@ubuntu-Lenovo-ideapad-330-17IKB:~$ sudo apt-get install apache2 mysql-server php5 php5-mysql libapache2-mod-php5

Lecture des listes de paquets... Fait

Construction de l'arbre des dépendances       

Lecture des informations d'état... Fait

Aucune version du paquet php5 n'est disponible, mais il existe dans la base

de données. Cela signifie en général que le paquet est manquant, qu'il est devenu obsolète

ou qu'il n'est disponible que sur une autre source

Aucune version du paquet libapache2-mod-php5 n'est disponible, mais il existe dans la base

de données. Cela signifie en général que le paquet est manquant, qu'il est devenu obsolète

ou qu'il n'est disponible que sur une autre source

Aucune version du paquet php5-mysql n'est disponible, mais il existe dans la base

de données. Cela signifie en général que le paquet est manquant, qu'il est devenu obsolète

ou qu'il n'est disponible que sur une autre source

E: Le paquet « php5 » n'a pas de version susceptible d'être installée

E: Le paquet « php5-mysql » n'a pas de version susceptible d'être installée

E: Le paquet « libapache2-mod-php5 » n'a pas de version susceptible d'être installée

90.45.227.38 (talkcontribs)

ubuntu@ubuntu-Lenovo-ideapad-330-17IKB:~$ sudo apt-get install apache2 mariadb-server-10.0 php php-mysql libapache2-mod-php php-xml php-mbstring

Lecture des listes de paquets... Fait

Construction de l'arbre des dépendances       

Lecture des informations d'état... Fait

Aucune version du paquet mariadb-server-10.0 n'est disponible, mais il existe dans la base

de données. Cela signifie en général que le paquet est manquant, qu'il est devenu obsolète

ou qu'il n'est disponible que sur une autre source

Cependant les paquets suivants le remplacent :

  percona-xtradb-cluster-server-5.7:i386 mariadb-server-10.1:i386

  mariadb-plugin-spider:i386 mariadb-plugin-oqgraph:i386

  mariadb-plugin-mroonga:i386 mariadb-plugin-connect:i386

  mariadb-client-10.1:i386 percona-xtradb-cluster-server-5.7

  mariadb-server-10.1 mariadb-plugin-tokudb mariadb-plugin-spider

  mariadb-plugin-oqgraph mariadb-plugin-mroonga mariadb-plugin-connect

  mariadb-client-10.1

E: Le paquet « mariadb-server-10.0 » n'a pas de version susceptible d'être installée

90.45.227.38 (talkcontribs)

tar -xvzf /tmp/mediawiki-*.tar.gz sudo mkdir /var/lib/mediawiki sudo mv mediawiki-*/* /var/lib/mediawiki

90.45.227.38 (talkcontribs)

tar -xvzf /tmp/mediawiki-*.tar.gz sudo mkdir /var/lib/mediawiki sudo mv mediawiki-*/* /var/lib/mediawiki

90.45.227.38 (talkcontribs)

ubuntu@ubuntu-Lenovo-ideapad-330-17IKB:/tmp$ sudo mv mediawiki-*/* /var/lib/mediawiki

mv: impossible de déplacer 'mediawiki-1.34.2/cache' vers '/var/lib/mediawiki/cache': Le dossier n'est pas vide

mv: impossible de déplacer 'mediawiki-1.34.2/docs' vers '/var/lib/mediawiki/docs': Le dossier n'est pas vide

mv: impossible de déplacer 'mediawiki-1.34.2/extensions' vers '/var/lib/mediawiki/extensions': Le dossier n'est pas vide

mv: impossible de déplacer 'mediawiki-1.34.2/images' vers '/var/lib/mediawiki/images': Le dossier n'est pas vide

mv: impossible d'écraser le non répertoire '/var/lib/mediawiki/includes' par le répertoire 'mediawiki-1.34.2/includes'

mv: impossible d'écraser le non répertoire '/var/lib/mediawiki/languages' par le répertoire 'mediawiki-1.34.2/languages'

mv: impossible d'écraser le non répertoire '/var/lib/mediawiki/maintenance' par le répertoire 'mediawiki-1.34.2/maintenance'

mv: impossible d'écraser le non répertoire '/var/lib/mediawiki/mw-config' par le répertoire 'mediawiki-1.34.2/mw-config'

mv: impossible d'écraser le non répertoire '/var/lib/mediawiki/resources' par le répertoire 'mediawiki-1.34.2/resources'

mv: impossible d'écraser le non répertoire '/var/lib/mediawiki/skins' par le répertoire 'mediawiki-1.34.2/skins'

mv: impossible de déplacer 'mediawiki-1.34.2/tests' vers '/var/lib/mediawiki/tests': Le dossier n'est pas vide

mv: impossible d'écraser le non répertoire '/var/lib/mediawiki/vendor' par le répertoire 'mediawiki-1.34.2/vendor'

90.45.227.38 (talkcontribs)

ubuntu@ubuntu-Lenovo-ideapad-330-17IKB:~$ sudo mkdir /var/lib/mediawiki

[sudo] Mot de passe de ubuntu :

Désolé, essayez de nouveau.

[sudo] Mot de passe de ubuntu :

mkdir: impossible de créer le répertoire «/var/lib/mediawiki»: Le fichier existe

90.45.227.38 (talkcontribs)

ubuntu@ubuntu-Lenovo-ideapad-330-17IKB:~$ sudo mv mediawiki-*/* /var/lib/mediawiki

mv: impossible de déplacer 'mediawiki-1.34.2/cache' vers '/var/lib/mediawiki/cache': Le dossier n'est pas vide

mv: impossible de déplacer 'mediawiki-1.34.2/docs' vers '/var/lib/mediawiki/docs': Le dossier n'est pas vide

mv: impossible de déplacer 'mediawiki-1.34.2/extensions' vers '/var/lib/mediawiki/extensions': Le dossier n'est pas vide

mv: impossible de déplacer 'mediawiki-1.34.2/images' vers '/var/lib/mediawiki/images': Le dossier n'est pas vide

mv: impossible d'écraser le non répertoire '/var/lib/mediawiki/includes' par le répertoire 'mediawiki-1.34.2/includes'

mv: impossible d'écraser le non répertoire '/var/lib/mediawiki/languages' par le répertoire 'mediawiki-1.34.2/languages'

mv: impossible d'écraser le non répertoire '/var/lib/mediawiki/maintenance' par le répertoire 'mediawiki-1.34.2/maintenance'

mv: impossible d'écraser le non répertoire '/var/lib/mediawiki/mw-config' par le répertoire 'mediawiki-1.34.2/mw-config'

mv: impossible d'écraser le non répertoire '/var/lib/mediawiki/resources' par le répertoire 'mediawiki-1.34.2/resources'

mv: impossible d'écraser le non répertoire '/var/lib/mediawiki/skins' par le répertoire 'mediawiki-1.34.2/skins'

mv: impossible de déplacer 'mediawiki-1.34.2/tests' vers '/var/lib/mediawiki/tests': Le dossier n'est pas vide

mv: impossible d'écraser le non répertoire '/var/lib/mediawiki/vendor' par le répertoire 'mediawiki-1.34.2/vendor

Malyacko (talkcontribs)

Hi. Do you have a question? If a folder already exists then you could delete that folder?

92.188.51.38 (talkcontribs)

J'ai des messages d'erreur. Savez-vous ce que je dois faire, s'il vous plaît?~~~~

Reply to "false"

GREY BOX BLOCKING ME FROM INPUTTING TEXT

4
Summary by TiltedCerebellum

Not related to MediaWiki

Lwcharles73 (talkcontribs)

How do I remove the box that blocking the text when I first log into the compiler

Malyacko (talkcontribs)
2600:1700:C270:1CD0:28F1:FAAA:2527:9C0A (talkcontribs)

Well I downloaded code block c++ application on my Macbook Pro and when I login it to type a grey block pops up preventing me from typing and changing text in it.

Leaderboard (talkcontribs)

Media Viewer doesn't work on a page with a template?

2
Keren - WMIL (talkcontribs)

I have a project page with two tabs that are separate pages. Why does Media Viewer open the photos (as I want it) on the separate pages (e,g, this one), but not on the project page?

TiltedCerebellum (talkcontribs)

Because you have the Multimedia Viewer Extension installed and enabled, and that's what it is designed to do. If you disable it the file page will be displayed instead, that's how it works on MW with the Multimedia Viewer Extension disabled.

Reply to "Media Viewer doesn't work on a page with a template?"
197.138.16.2 (talkcontribs)

Hello mediawiki

Kindly assist me with login

Majavah (talkcontribs)

Please be more specific with your question.

TiltedCerebellum (talkcontribs)

You need to provide what site you are trying to log into so the people who help here know if you are in the right place. Also please see: Help:Logging in

Reply to "login problem"