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

Unable to Scribunto/Lua working on our wiki. Getting the following error:

Fatal error: Call to undefined function pcntl_wifsignaled() in/home/jackdl5/public_html/jurassicoutpost.com/encyclopedia/extensions/Scribunto/engines/LuaStandalone/LuaStandaloneEngine.php on line 645Fatal error: Call to undefined function

Permissions for the Engine binaries are all set correctly and both Scribunto and Lua show as being installed on Special:Version.

Any thoughts?

Ciencia Al Poder (talkcontribs)

pcntl_wifsignaled() is a PHP function, that needs to be installed/enabled on the server, although it's not listed as a requirement in Extension:Scribunto. I wonder how many shared host provide that requirement.

86.155.95.154 (talkcontribs)

Because we're on a shared server our host is telling us it's not possible to get this set up, is there another work around?

TheDJ (talkcontribs)

The alternative to luastandalone is luasandbox, but that requires even more influence on the php server I believe.

TheDJ (talkcontribs)

Seems this dependency was introduced in may 2015.

https://gerrit.wikimedia.org/r/#/c/213586/

86.155.95.154 (talkcontribs)

Would using an older version pre-May 2015 help combat this issue for now?

Reply to "Error with Scribunto/Lua"
Pronull (talkcontribs)

how to create an infobox? i've installed Scribunto and yet i'm still lost. Thanks

67.244.58.187 (talkcontribs)

Copy and paste the wikipedia modules and pages. In this case Wikipedia:Module:Infobox, Wikipedia:Module:InfoboxImage, Wikipedia:Module:Navbar, Wikipedia:Template:Nowrap, Wikipedia:Template:Infobox, and any any other inbox templates you may want. Hope this helps.

Pronull (talkcontribs)

I've copy paste modules and templates and yet still no infobox. Thanks btw for your response, i really appreciate it

24.39.1.140 (talkcontribs)

Did you put th template on a page and specify parameters.

Pronull (talkcontribs)

yup, already done it.

let say i want to use Infobox person and i entered these info

{.{ Infobox person

| name = jon | image = | alt = | caption = lalalala | birth_name = asdasdaqweqweqwe | birth_date = | birth_place = KL | death_date = | death_place = | nationality = MAS | other_names = tralalala | occupation = | years_active = | known_for = | notable_works =

}.}

then, the whole page(same like Template:Infobox person/doc) come out instead an infobox.

Thanks.

24.39.1.140 (talkcontribs)

Did you copy from Wikipedia:Template:Infobox Person?

Bencola (talkcontribs)

Hello,

I am also trying to add infoboxes to mediawiki, I followed these instructions : Manual:Importing Wikipedia infoboxes tutorial. But when I try to import, I get this error : Fatal error: Call to undefined function mb_check_encoding() in /var/www/mediawiki/extensions/Scribunto/engines/LuaCommon/UstringLibrary.php on line 36

Can somebody help me ?

I run MW 1.26.2

Thanks.

TheDJ (talkcontribs)

@Bencola Your php server needs mbstring

http://in1.php.net/manual/en/mbstring.installation.php

Reply to "Infobox"
138.204.191.121 (talkcontribs)

Boa tarde.

Eu carrego uma imagem e ela aparece deste tipo:

Quando clico na imagem ele retorna um error:

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Reply to "Problema no upload imagem"
Peteforsyth (talkcontribs)

The page above seems to be significantly out of date: it assumes that bureaucrats are the only ones assigning permissions. However, as an administrator on English Wikipedia, I have the ability to assign rights such as Account Creator and Confirmed. Does this vary from one wiki to another? Can somebody more knowledgeable than myself help update the page? -Pete F (talk) 03:18, 2 May 2016 (UTC)

Tactica amiga (talkcontribs)

I think you overlooked this part:

By default, you will need to be a 'Bureaucrat' (in the 'Bureaucrat' group) before you can access the Special:UserRights page. The first user created when setting up a MediaWiki installation is a bureaucrat.

My guess is that in (English) Wikipedia either (some) admins are given the "userrights" permission OR someone granted those rights to you for whatever reason. IMHO the page is OK as it is.

87.123.49.6 (talkcontribs)

If you can access this page, then you have the "userrights" right.

Note that user rights can always only be assigned to groups. So if you can access the Special:UserRights page, then you have the "userrights" permission in at least one of your groups. Which of the groups that is/are, can be checked on Special:ListGroupRights!

Peteforsyth (talkcontribs)

Thank you Tactica amiga and 87. I had indeed seen that sentence, but both of your remarks help me better understand its significance.

It seems to me that there are two overlapping, but not identical needs:

  1. We should have (and perhaps do have) good documentation of how the MediaWiki software works; and
  2. We should have good documentation of how Wikimedia wikis work.

As a trainer, facilitator, and functionary on Wikimedia wikis, my interest is much more with #2. Perhaps I will work on a page that is more finely tuned to that need. Many thanks for your help! -Pete F (talk) 18:53, 2 May 2016 (UTC)

87.123.57.72 (talkcontribs)

Your #1, the technical aspect inside the MediaWiki software, is documented on Manual:$wgGroupPermissions!

Reply to "Help:Assigning permissions seems out of date"

Someone has stolen my account and posting false images of me

2
166.137.98.15 (talkcontribs)

Media wiki Hello I am crystal l Taliefero The photo that you have posted of me is not a fair representation of only crystal L. Taliefero. I donot know who changed my photo or who has locked my account but it needs to be corrected at once! My email is ctalie@aol.com This is my photo

87.123.57.72 (talkcontribs)

Hello and welcome at the MediaWiki Support Desk, the Support Desk for MediaWiki!

MediaWiki is a software, which can be used to run wikis like Wikipedia. However, Wikimedia Foundation, who is running Wikipedia, is not responsible for third party websites, which might have been created using MediaWiki.

In case you have problems with content on such a third party site, please try contacting that site's owner. In case this did not help and if you think the problemaic information might be legally relevant, you should contact your lawyer to get the matter settled!

Reply to "Someone has stolen my account and posting false images of me"
195.77.16.215 (talkcontribs)

Hello, I'm a new user in mediawiki. I have created a wiki and I need to resolve a problem with search box.

The search box is differ capital letters of lower cases, accentuated words of no accentuated words.

I need to configure my search box, for no differing this cases.

It's possible?

Thank's

Reply to "Searches more generics"
193.145.201.52 (talkcontribs)

Hola soc nou en açò i necessitaria que quan vull fer una cerca en el quadre de cerques, em proposara termes que comencen igual que el que jo estic emplenant, sense tenir en compte majúscules ni accents.

Es a dir: si jo escric al quadre tar... ell em propose Tàrtar, tarjeta, categoría: taronja, ...

Es possible?

Gràcies

193.145.201.52 (talkcontribs)

Sóc l'autor del post: Oblideu-se, la traducció és prou dolenta, no s'enten res.

Reply to "Cerques més genèriques"
Jac09876 (talkcontribs)

Has someone Office365 working?

I use a Office365 user with a mailbox (smtp@acme.com) for sending and the following configuration:

$wgSMTP = array(

'host' => "smtp.office365.com", //could also be an IP address

'IDHost' => "acme.com",

'port' => 587,

'auth' => true,

'username' => "smtp@acme.com",

'password' => "PassWord123"

);

When I try to send a Confirmation email for user@acme.com, I get the following message:

Confirm email address

Jump to: navigation, search

Acme wiki could not send your confirmation mail. Please check your email address for invalid characters.

Mailer returned: Failed to send data [SMTP: Invalid response code received from server (code: 550, response: 5.7.60 SMTP; Client does not have permissions to send as this sender)]

I would very grateful for some useful remarks.

- Jac

Jac09876 (talkcontribs)

As a test, the following powershell command works:

Send-MailMessage -From smtp@acme.com -To user@acme.com -Subject "Test Email" -Body "Test SMTP Relay Service" -SmtpServer smtp.office365.com -Credential $msolcred -UseSsl -Port 587

- Jac

Jac09876 (talkcontribs)

And from the Centos server itself, this also works:

echo "This is the message body and contains the message" | mailx -v -r "smtp@acme.com" -s "This is the subject" -S smtp="smtp.office365.com:587" -S smtp-use-starttls -S smtp-auth=login -S smtp-auth-user="smtp@acme.com" -S smtp-auth-password="PassWord123" -S ssl-verify=ignore -S nss-config-dir=/etc/pki/nssdb/ user@acme.com

- Jac

Jac09876 (talkcontribs)

I found an article about how to test Pear mail with Office365

http://stackoverflow.com/questions/22623908/php-smtp-office365-com-for-email

And this too, works.

- Jac

Jac09876 (talkcontribs)

Solved!

$wgPasswordSender = "smtp@acme.com";

this must be identical to the username above.

- Jac

Ciencia Al Poder (talkcontribs)

Thanks! I've added a note in Manual:$wgPasswordSender about this

Upgrade from 1.15.5-2 to 1.19.20: no style/skin

8
YvonneM (talkcontribs)

Hi,

I'm currently moving to a new server with a newer Debian version and with that the version of MediaWiki changes as well. So MediaWiki is installed from the Debian sources.

I copied over the config files, upload folders etc. and exported/imported the databases. (I'm actually running 3 MediaWikis with /etc/mediawiki/LocalSettings.php pointing to 3 different LocalSettings files which always worked fine in the past ans still seems to work).

After running the update skript for the different databases the Wikis seem to work. The problem I have is that I'm missing any style or skin, it looks like a pure white html page. And I don't find any hint in the log even when changing the apache LogLevel to debug. Nothing changes when I comment out the line $wgDefaultSkin = 'monobook'; in my LocalSettings.php

I already read in another post that creating a symlink load.php -> /usr/share/mediawiki/load.php in /var/lib/mediawiki would help but it exists already in my case.

Do you have any hint for me what is needed to get a beautiful and user friendly layout on the new server?

Thanks in advance.

Regards,

Yvonne

87.123.34.27 (talkcontribs)

Hi Yvonne,

see Manual:Load.php!

Another place to check is Manual:Errors_and_symptoms#The_wiki_appears_without_styles_applied_and_images_are_missing.

YvonneM (talkcontribs)

Hi,

The Manual:Load.php mentions a .htaccess file which I think I don't have. But there are already rewrite rules in /etc/apache2/sites-available/mywiki.conf so I assume I can add it there?! I simply copied this part from the old server and inserted the new line now:

RewriteEngine On

RewriteRule ^(api|load)\.php - [L]

RewriteCond %{REQUEST_FILENAME} "^/upload"

RewriteRule ^(.*)$ $1 [PT,L]

RewriteCond %{REQUEST_FILENAME} "^/extensions"

RewriteRule ^(.*)$ $1 [PT,L]

RewriteCond %{REQUEST_FILENAME} "^/skins"

RewriteRule ^(.*)$ /wiki/$1 [PT,L]

RewriteRule ^(.*)$ /wiki/index.php/$1 [PT,L,QSA]

Is there something wrong with it?

It still does not work :-(

Concerning the second link:

How can I "Try to browse the load.php file of my MediaWiki installation with my web browser"?

87.123.49.6 (talkcontribs)

From reading your source code, I found something interesting at least:

In the last rule you are redirecting everything to wiiki/index.php. Obviously you have the wiki installed in the subfolder called wiki/. In exactly this folder there are the files api.php and load.php. These two files should be made accessible with the very first rule. Does it work, if you replace the line

RewriteRule ^(api|load)\.php - [L]

with this one (wihout the "^" at the start?

RewriteRule (api|load)\.php - [L]
87.123.49.6 (talkcontribs)

By the way, you can just view the HTML source code of a wiki page with your web browser. In the head of that page there will be several links to load.php. Just follow one of them and see, what it shows you...

YvonneM (talkcontribs)

Unfortunately it does not work neither when I replace the line as you described it above.

The link to load.php in the source code of the wiki in the browser is in both cases the same. When I call this link in the browser I get:

"There is currently no text in this page." (The path is exactly like the one to the main page, "Main_Page" is simply replaces with "Load.php".)

I found that I should put

$wgLoadScript   = "{$wgScriptPath}/load.php";

into my LocalSettings.php

but it does not make a difference.

87.123.49.6 (talkcontribs)

In the line with $wgLoadScript, which you quoted above, the value is identical to it's default value. I would just remove that line. This should not influence the problem.

The _correct_ situation would be that you click the link to load.php and the result is _not_ a wiki page, but it is some CSS styles or some JavaScript lines.

If the link instead shows a wiki page, then the RewriteRules do not fit. Whatever it is that is linked as load.php, exactly this file should be accessible without Apache rewriting the according requests.

Note that after a change in the .conf files of Apache, you have to restart the server for these changes to take effect!

YvonneM (talkcontribs)

Thanks for your help! I found the last missing piece: In addition to the rewrite rule I had to change $wgScriptPath from "" to "/wiki" after the upgrade on the new server and now all wikis are up and running again :-)

Divinorum ari (talkcontribs)

Hi, we were using VisualEditor plugin with parsoid server to get rich editor in MediaWiki. Unfortunately few days ago it started to fail and now, I'm unable to edit our pages anymore. It's writing "Database error", so I turned on DB debug mode and got following error:

Error: 1205 Lock wait timeout exceeded; try restarting transaction (localhost)

..no idea what that mean. We have latest stable MediaWiki + latest version of VisualEditor plugin.

Any ideas please ?

Thank you.

Ivan

Divinorum ari (talkcontribs)

More from log:

"Function: DatabaseBase::query"

..I like to add also the quesry, but this system si bloking me as spam (??)

basically it can't write to "user" table, can't update user_touched. I can update that manually, so table is not accidentally locked

87.123.34.27 (talkcontribs)

I think this is a problem with MySQL and there with the table engine InnoDB.

See http://stackoverflow.com/questions/6000336/how-to-debug-lock-wait-timeout-exceeded for information on how to debug this error!

178.41.207.83 (talkcontribs)

A database query error has occurred. This may indicate a bug in the software.

  • Query: UPDATE `user` SET user_touched = "20160501161258" WHERE user_id = 1
  • Function: DatabaseBase::query
  • Error: 1205 Lock wait timeout exceeded; try restarting transaction (localhost)

Backtrace:

#0 /home/tomisko/Wiki/includes/db/Database.php(1076): DatabaseBase->reportQueryError('Lock wait timeo...', 1205, 'UPDATE `user` S...', 'DatabaseBase::q...', false) #1 /home/tomisko/Wiki/extensions/LastUserLogin/LastUserLogin.body.php(38): DatabaseBase->query('UPDATE `user` S...') #2 /home/tomisko/Wiki/includes/Setup.php(730): LastUserLogin::updateUserTouched() #3 /home/tomisko/Wiki/includes/WebStart.php(137): require_once('/home/tomisko/W...') #4 /home/tomisko/Wiki/load.php(32): require('/home/tomisko/W...') #5 {main}
87.123.49.6 (talkcontribs)

So this is happening during an UPDATE query on user.user_touched.

I found this commit from mid 2013, which is included in 1.23 and newer. As far as I can tell, it fixes exactly this kind of problem: https://phabricator.wikimedia.org/rMWd3281c2b5cf49027fef27a06a29cfe1e1570bfa1

Which version of MediaWiki are you using?

Divinorum ari (talkcontribs)

I'm using the latest stable, installed just 2 months ago.. tha strange thing is, that everything was working without any problms, until now.. and I have no idea what's triggered this behavior. Parsoid server has not been updated meantime, neither VisualEditor plugin.. so I just updated plugin, but still geting this error. But, just wih Visual Editor - classic editor works well.

I've already tried to make some DB settings changes, restarted DB, restarted Parsoid server, switched off Memcached, but nothing helped.

Just wondering what else should I do :)

Thanks, Ivan

Divinorum ari (talkcontribs)

..just realized from backtrace, that this is probably triggered by LastUserLogin plugin:

#1 /home/tomisko/Wiki/extensions/LastUserLogin/LastUserLogin.body.php(38): DatabaseBase->query('UPDATE `user` S...')

need to find out, how to disable that to verify

Divinorum ari (talkcontribs)

Verified - disabling this extension is by-passing the problem. The outstanding question is, how to report this bug :)

Upgrade to latest extension build does not solving the problem.

Reply to "VisualEditor timeOut"