Project:Support desk/Flow/2018/10
| This page used the Structured Discussions extension to give structured discussions. It has since been converted to wikitext, so the content and history here are only an approximation of what was actually displayed at the time these comments were made. |
| This page is an archive. |
| Please ask questions on the current support desk. |
How to Search content rather than just page titles with cirrussearch
Hi,
I replaced the mediawiki search with the cirrussearch extension.
It works very well. At least now I can find a lot more pages based on there titles.
But for some reason I am not able to get any match based on page content.
For example a search for: "This is my page content" would get zero matches and would suggest to create a page with the title "This is my page content".
I already went trough the Extension:CirrusSearch page and its further links, but I can't find the right option.
Would be awesome, if someone could point me in the right direction.
Edit:
I am running
mediawiki version: 1.29.1
PHP: 7.0.32
MySQL: 5.7.24
Thank you :-) Rivaldez (talk) 08:20, 1 October 2018 (UTC)
- Unrelated, but please upgrade. Your MediaWiki version is not supported anymore. https://www.mediawiki.org/wiki/Manual:Upgrading Malyacko (talk) 13:53, 3 October 2018 (UTC)
- Solved: See this link for further information. Rivaldez (talk) 14:55, 5 October 2018 (UTC)
Refused to execute script... because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.
Hi,
When I open MediaWiki 1.31 in Chrome, no error occurs. But when I press F12 I see an error:
Failed to load resource: the server responded with a status of 500 (Internal Server Error)
(index):1 Refused to execute script from 'http://localhost:85/mediawiki/load.php?debug=false&lang=de&modules=startup&only=scripts&skin=monobook' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.
Any idea what causing this? Vaclav.cverna (talk) 08:47, 1 October 2018 (UTC)
- Open the URL that causes the error (http://localhost:85/mediawiki/load.php?debug=false&lang=de&modules=startup&only=scripts&skin=monobook) and see what it displays. It may display an error message (this should probably give more info, or else look at Manual:How to debug), or a normal wiki page (in which case you have problems with rewrite rules or your configuration for Short Urls). Ciencia Al Poder (talk) 09:29, 1 October 2018 (UTC)
- Well, it shows: [138e899602188f3076ba15c8] 2018-10-01 10:28:57: Fataler Ausnahmefehler des Typs „Error“. In english: Fatal exception error of type "Error". Vaclav.cverna (talk) 10:31, 1 October 2018 (UTC)
- As mentioned in Manual:How to debug, try setting the following in your LocalSettings.php and reload the URL where you get the exception error:AhmadF.Cheema (talk) 10:49, 1 October 2018 (UTC)
$wgShowExceptionDetails = true; $wgDevelopmentWarnings = true; error_reporting( -1 ); ini_set( 'display_errors', 1);
- It returned following:
- [48337de985c0d931d2ee776a] /mediawiki/load.php?debug=false&lang=de&modules=startup&only=scripts&skin=monobook Error from line 561 of C:\xampp\htdocs\mediawiki\includes\resourceloader\ResourceLoader.php: Class 'ResourceLoaderUserCSSPrefsModule' not found
- Backtrace:
- #0 C:\xampp\htdocs\mediawiki\includes\resourceloader\ResourceLoader.php(148): ResourceLoader->getModule(string)
- #1 C:\xampp\htdocs\mediawiki\includes\resourceloader\ResourceLoaderStartUpModule.php(440): ResourceLoader->preloadModuleInfo(array, DerivativeResourceLoaderContext)
- #2 C:\xampp\htdocs\mediawiki\includes\resourceloader\ResourceLoaderStartUpModule.php(422): ResourceLoaderStartUpModule->getAllModuleHashes(DerivativeResourceLoaderContext)
- #3 C:\xampp\htdocs\mediawiki\includes\resourceloader\ResourceLoaderModule.php(831): ResourceLoaderStartUpModule->getDefinitionSummary(DerivativeResourceLoaderContext)
- #4 C:\xampp\htdocs\mediawiki\includes\resourceloader\ResourceLoader.php(665): ResourceLoaderModule->getVersionHash(DerivativeResourceLoaderContext)
- #5 [internal function]: ResourceLoader->{closure}(string)
- #6 C:\xampp\htdocs\mediawiki\includes\resourceloader\ResourceLoader.php(678): array_map(Closure, array)
- #7 C:\xampp\htdocs\mediawiki\includes\resourceloader\ResourceLoader.php(759): ResourceLoader->getCombinedVersion(ResourceLoaderContext, array)
- #8 C:\xampp\htdocs\mediawiki\load.php(51): ResourceLoader->respond(ResourceLoaderContext)
- #9 {main} Vaclav.cverna (talk) 11:01, 1 October 2018 (UTC)
- Does your Monobook skin version corresponds to your MediaWiki core version? AhmadF.Cheema (talk) 11:37, 1 October 2018 (UTC)
- Yes, it corresponds. Vaclav.cverna (talk) 12:05, 1 October 2018 (UTC)
- Did you recently upgrade MediaWiki? If so, did you extract the new MediaWiki core files into a new folder or overwrite the old one? AhmadF.Cheema (talk) 14:27, 1 October 2018 (UTC)
- New MediaWiki installation fixed this issue. It seems that last MediaWiki instance was corrupt. Thank you for your contributions to help to solve this issue. Vaclav.cverna (talk) 09:07, 2 October 2018 (UTC)
- Exactly the same problem under the freshest
git pulled andcomposer updated MediaWiki 1.31.1. [f6e08d370e888c08e9306d53] /w/load.php?debug=false&lang=ru&modules=startup&only=scripts&skin=vector Error from line 561 of /var/www/wiki/w/includes/resourceloader/ResourceLoader.php: Class 'MFResourceLoaderParsedMessageModule' not foundBacktrace:#0 /var/www/wiki/w/includes/resourceloader/ResourceLoader.php(148): ResourceLoader->getModule(string)#1 /var/www/wiki/w/includes/resourceloader/ResourceLoaderStartUpModule.php(440): ResourceLoader->preloadModuleInfo(array, DerivativeResourceLoaderContext)#2 /var/www/wiki/w/includes/resourceloader/ResourceLoaderStartUpModule.php(422): ResourceLoaderStartUpModule->getAllModuleHashes(DerivativeResourceLoaderContext)#3 /var/www/wiki/w/includes/resourceloader/ResourceLoaderModule.php(831): ResourceLoaderStartUpModule->getDefinitionSummary(DerivativeResourceLoaderContext)#4 /var/www/wiki/w/includes/resourceloader/ResourceLoader.php(665): ResourceLoaderModule->getVersionHash(DerivativeResourceLoaderContext)#5 [internal function]: ResourceLoader->{closure}(string)#6 /var/www/wiki/w/includes/resourceloader/ResourceLoader.php(678): array_map(Closure, array)#7 /var/www/wiki/w/includes/resourceloader/ResourceLoader.php(759): ResourceLoader->getCombinedVersion(ResourceLoaderContext, array)#8 /var/www/wiki/w/load.php(51): ResourceLoader->respond(ResourceLoaderContext)#9 {main}- P.S. The problem goes away if MobileFrontend is switched off. Perhaps, this change should be backported to MediaWiki 1.31?
- P.P.S. I filed a bug. Alexander Mashin talk 08:00, 4 November 2018 (UTC)
WYSIWYG-CKeditor does not show in Mediawiki 1.31.
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hi,
when I try to open WYSIWYG-CKeditor bundle 6 in MediaWiki 1.31 it does not show. No error occurs.
| MediaWiki | 1.31.0 |
| PHP | 7.2.10 (apache2handler) |
| MariaDB | 10.1.36-MariaDB |
Any idea how to fix it? Vaclav.cverna (talk) 09:03, 1 October 2018 (UTC)
Creating Mediawiki as Document Management System
Hi,
- How can I create Mediawiki as a Document Management System?
- As I came to know that the maximum size of files to be uploaded is 2 megabytes.
- How can I make the maximum size to be unlimited.
I have raised this question because, I have tried to install Openkm for Document Management System. But I have faced problems in my Ubuntu server and my mediawiki stopped working. So is there any chance how to use my single server with the localhost user that runs for both mediawiki and openkm?
Can some one suggest me on this. 90.187.42.65 (talk) 12:07, 1 October 2018 (UTC)
- For increasing the default upload size, see Manual:Configuring file uploads#Set maximum size for file uploads. AhmadF.Cheema (talk) 14:28, 1 October 2018 (UTC)
Can't Log Into Account
Hi, a previous employee began to create a Wikipedia page. I have the username but do not have the password. Attempts at changing password do not work as my email is not associated with this account. How can I change the account so that my email is the owner? 50.237.185.134 (talk) 16:38, 1 October 2018 (UTC)
- Password reset is described at Manual:Resetting passwords.
- If this was in your companies wiki, you could basically use one of the options from that link to get access to that account.
- If this actually is in Wikipedia, then I guess the anser is: You can't.
- If a company email address has been registered for this account (if at all), then maybe an administrator in your company can forward you the password reset email so that you can use it although it did not go to your own email account. In a next step, after logging in, you could then change the email address in that Wikipedia account. 2001:16B8:10B0:9A00:80BF:68F0:5B6C:E67B (talk) 20:06, 1 October 2018 (UTC)
- If this is actual Wikipedia, please also read https://en.wikipedia.org/wiki/Wikipedia:Conflict_of_interest Bawolff (talk) 22:01, 2 October 2018 (UTC)
add a musician bio
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Could someone give me information on how to add a well established musician's bio to infogalactic,mediawiki, and wikileaks? Thank you for your help.. 2604:6000:9F00:5000:A0D7:9543:4E1:C511 (talk) 00:09, 2 October 2018 (UTC)
- Infogalactic and Wikileaks are unrelated to the Wikimedia Foundation (of which this support desk is a part of). MediaWiki is a Wiki software package, it isn't the place for musician's bios. The appropriate place for such subjects would be Wikipedia. AhmadF.Cheema (talk) 00:37, 2 October 2018 (UTC)
- Thank you so much for the reply and information! 2604:6000:9F00:5000:A0D7:9543:4E1:C511 (talk) 04:24, 2 October 2018 (UTC)
changing font-size does not work in Print.css anymore
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I used "ul,ol{font-size:140%;}" in MediaWiki:Print.css to increase readability of printouts. (Most pages of the parisch church wiki I maintain countain just a table of hymns and a list of prayer.) Last week I upgraded from 1.27 to 1.31.1, PHP 7.2.10, MariaDB 10.1.34, ICU 60.2. Now font-size is no longer increased at printout. When I add "color=red;" the printed list is red. I tried 30pt, 30px, 2em, printout stayed small. I tried "@media print {ul,ol { font-size: 36pt; color:blue; }} in MediaWiki:Common.css leading to blue printouts but still with small font. When I just put "ul,ol{font-size:36px;}" to MediaWiki:Common.css all lists on the screen are very big, but printout stays with small font. Has something changed with the new MediaWiki version? Am I doing something wrong?
Many thanks in advance for any help :-)
(It is a private wiki, but if You need access for further investigation just drop me a note ....) Ralphkarl (talk) 06:51, 2 October 2018 (UTC)
- What you describe is kind of odd. My first guess would be something else is overriding the font-size (Although its hard to say without seeing the wiki. You can use the browser's developer console to inspect the css rules (go to a ?printable=yes url to get print stylesheets)).
- You could try something like
ul,ol { font-size: 140% !important; }
- And see if that works better Bawolff (talk) 22:00, 2 October 2018 (UTC)
- Thx for the reply and sorry for my late answer ...
- It's even more odd: When I view the page with ?pritable=yes the font is huge as expected, but pressing Ctrl-P (on that page) leads to the well known small font (but moving the indent of the list more to the right if the requested font size is bigger). I tested it with IE, Firefox and Chrome on Win7, as well as Safari and Firefox on a Mac with iOS 10.11.
- Adding !important makes no difference. Could it be a browser problem? Ralphkarl (talk) 08:23, 8 October 2018 (UTC)
- Just to bring up more strange results: I started the server where I upgraded from (MidaWiki 1.27.2, PHP 7.0.32, MySQL 5.5.61, ICU 52.1) opened the same page with ?printable=yes. It apears in the browser with the same huge font as on the new server, BUT it also prints with that huge font. ...... Ralphkarl (talk) 11:26, 8 October 2018 (UTC)
- With Bawolff's guess - something is overriding the font-size - and his suggestion to investigate by browser tools I found "ol li,ul li{padding:2px 0;font-size:10pt;}" in "mywiki/load.php?debug=false&lang=de&modules=ext.visualEditor.desktopArticleTarget.noscript%7Cmediawiki.legacy.commonPrint%2Cshared%7Cmediawiki.sectionAnchor%7Cmediawiki.skinning.interface%7Cskins.vector.styles&only=styles&skin=vector" Can Anybody tell me how to deduce from the link to a file with the nasty font-size entry? Ralphkarl (talk) 08:29, 10 October 2018 (UTC)
- Finally I found "font-size: 10pt;" in the ol,il -> li section of skins/Vektor/print.less :-). Is it a bug or a feature? Ralphkarl (talk) 09:55, 10 October 2018 (UTC)
- I looked that up for you:
- These styles have been added here
- https://github.com/wikimedia/mediawiki-skins-Vector/commit/3a3e7ac04622ad0c3b33a01a0d8f0ab934646bc0
- and remained unchanged since then.
- Anyway, you should be able to override them, if that is what you want, e.g. with
- 2001:16B8:1083:F600:9EC:A349:3168:3A5 (talk) 12:59, 10 October 2018 (UTC)
ol li, ul li { font-size:14pt; } - Thanks for looking that up. So it seems that in Version 1.27 it was possible to overwrite the skin stylesheet by Print.css ant that is no longer possible in Version 1.31.1, right? Was that intended? - Anyway, for now I am happy by removing the font-size line from the Vektor/print.less and I learned a lot on how to investigate such problems, that will certainly help me customizing printouts in the future :-)) Ralphkarl (talk) 05:15, 11 October 2018 (UTC)
- Nice to hear. :-)
- No, I think that MediaWiki:Print.css should still be working. Your changes to Vector/print.less will be lost after the next MediaWiki update.
- Maybe you can investigate what exactly your issue is. If you add the rule to MediaWiki:Print.css again:
- Is the rule not included in the print view of the page?
- Or is it included, but it does not kick in (e.g. because it is not specific enough)? 2001:16B8:10DA:8A00:88A4:6305:32E2:75FB (talk) 12:14, 11 October 2018 (UTC)
- When I restore Vector/print.less to its original content and add the rule "font-size: 140%;" to MediaWiki:Print.css chromes developer tools show me:
@media printload.php?debug=…&skin=vector:1ol li, ul li {padding: 2px 0;font-size: 10pt;}- and Inherit from ul
@media printload.php?debug=…&skin=vector:1ol, ul {font-size: 140%;}- I seems like the rule in print.less overwrites the Print.css. Can I change the rule in Print.css to be even stronger than the print.less rule? Ralphkarl (talk) 07:57, 16 October 2018 (UTC)
- Use the same CSS selector: "ol li, ul li", instead of ol, ul Ciencia Al Poder (talk) 09:09, 16 October 2018 (UTC)
- That realy does the Job. Now my wiki ist Update proof again.
- Thank You all who helped me on this.
- Muchas gratias "Ciencia Al Poder"!!! (Sorry, but as I am abstinent to social media I cannot thank You on LinkedIn. Pls accept my thanks here.) Ralphkarl (talk) 13:16, 30 October 2018 (UTC)
как войти или зарегистрироваться на sovok.tv по этой учетной записи не пускает.
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
как войти или зарегистрироваться на sovok.tv по этой учетной записи не пускает. Chyl66 (talk) 11:47, 2 October 2018 (UTC)
- Wrong support forum. AhmadF.Cheema (talk) 13:13, 2 October 2018 (UTC)
DynamicPageList
when using the (third party) DynamicPageExtension I am getting the following errors:
Notice: Undefined Index: Parser Clear State in (...)/extensions/DynamicPageList/DPL.php on line 84
Warning: Non-numeric Value encountered in (...)/extensions/DynamicPageList/DPL.php on line 722
Does anybody know why this errors are occurring? Rafaelho12 (talk) 14:04, 2 October 2018 (UTC)
- These aren't "errors", they are php "warnings".
- Which probably just means there are some code quality issues. They won't stop the extension from working in and of itself, but if the extension doesn't work, they may help to point to why. Bawolff (talk) 21:53, 2 October 2018 (UTC)
"The supplied credentials could not be authenticated" on my own Miraheze Wiki
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I am constantly getting a problem on my own Miraheze Wiki when trying to login. It is saying "The supplied credentials could not be authenticated." What could be the problem? Two days, I enabled lots of filters and now I can't access my own wiki at all. My own Wiki is located at https://pkbwcgs.miraheze.org/wiki/Main_Page. Can you please help. Pkbwcgs (talk) 16:41, 2 October 2018 (UTC)
- This support desk is unrelated to Miraheze. For help with Miraheze Wikis, see their Help center. AhmadF.Cheema (talk) 17:00, 2 October 2018 (UTC)
- It said to use MediaWiki's help desk in the MediaWiki section. Pkbwcgs (talk) 17:02, 2 October 2018 (UTC)
- Your question is concerned with the specific technical setup that Miraheze is using. The Wikimedia Foundation (of which MediaWiki is a part of) has no control over it.
- Kindly, see the Contacting Miraheze section on the Help center page. AhmadF.Cheema (talk) 17:59, 2 October 2018 (UTC)
- I have sorted the problem out anyway. Thank you. Pkbwcgs (talk) 18:30, 2 October 2018 (UTC)
Exteinsion Moderation. Error when reject page changes.
I try to reject changes but get database error. In the same time approve this changes work correctly.
This is error log.
[0efe41db50fce80c550cf3fb] /index.php?title=%D0%A1%D0%BB%D1%83%D0%B6%D0%B5%D0%B1%D0%BD%D0%B0%D1%8F:Moderation&modaction=reject&modid=18&token=3474dbc5c6108d34bbc867e046f5d75d5bb4c847%2B%5C Wikimedia\Rdbms\DBQueryError from line 1457 of /var/www/wiki/data/www/wiki.directphone.net/includes/libs/rdbms/database/Database.php: A database query error has occurred. Did you forget to run your application's database schema updater after upgrading?
Query: UPDATE `moderation` SET mod_rejected = '1',mod_rejected_by_user = '1',mod_rejected_by_user_text = 'Administrator',mod_preloadable=0 WHERE mod_id = '18' AND mod_merged_revid = '0' AND mod_rejected = '0'
Function: ModerationActionReject::executeRejectOne
Error: 1062 Duplicate entry '0-edit-0-\xD0\x93\xD0\xBB\xD0\xB0\xD0\xB2\xD0\xBD\xD0\xB0\xD1\x8' for key 'moderation_load' (localhost)
Backtrace:
#0 /var/www/wiki/data/www/wiki.directphone.net/includes/libs/rdbms/database/Database.php(1427): Wikimedia\Rdbms\Database->makeQueryException(string, integer, string, string)
#1 /var/www/wiki/data/www/wiki.directphone.net/includes/libs/rdbms/database/Database.php(1200): Wikimedia\Rdbms\Database->reportQueryError(string, integer, string, string, boolean)
#2 /var/www/wiki/data/www/wiki.directphone.net/includes/libs/rdbms/database/Database.php(2010): Wikimedia\Rdbms\Database->query(string, string)
#3 /var/www/wiki/data/www/wiki.directphone.net/extensions/Moderation/action/ModerationActionReject.php(84): Wikimedia\Rdbms\Database->update(string, array, array, string)
#4 /var/www/wiki/data/www/wiki.directphone.net/extensions/Moderation/action/ModerationActionReject.php(27): ModerationActionReject->executeRejectOne()
#5 /var/www/wiki/data/www/wiki.directphone.net/extensions/Moderation/action/ModerationAction.php(54): ModerationActionReject->execute()
#6 /var/www/wiki/data/www/wiki.directphone.net/extensions/Moderation/SpecialModeration.php(137): ModerationAction->run()
#7 /var/www/wiki/data/www/wiki.directphone.net/includes/specialpage/SpecialPage.php(522): SpecialModeration->execute(NULL)
#8 /var/www/wiki/data/www/wiki.directphone.net/includes/specialpage/SpecialPageFactory.php(568): SpecialPage->run(NULL)
#9 /var/www/wiki/data/www/wiki.directphone.net/includes/MediaWiki.php(288): SpecialPageFactory::executePath(Title, RequestContext)
#10 /var/www/wiki/data/www/wiki.directphone.net/includes/MediaWiki.php(861): MediaWiki->performRequest()
#11 /var/www/wiki/data/www/wiki.directphone.net/includes/MediaWiki.php(524): MediaWiki->main()
#12 /var/www/wiki/data/www/wiki.directphone.net/index.php(42): MediaWiki->run()
#13 {main}
Wiki: 1.31.0
PHP: 7.0.32
MySQL: 5.0.12 Krown1900 (talk) 13:53, 3 October 2018 (UTC)
- Which code base (for example: extension) provides "ModerationActionReject", and has that code base been updated when updating MediaWiki itself to 1.31? Malyacko (talk) 08:04, 4 October 2018 (UTC)
Is MediaWiki 1.30.0 supports Advanced Encryption Standard (AES) Cryptography
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
HI,
Could you please confirm If MediaWiki 1.30.0 supports Advanced Encryption Standard (AES) Cryptography for following cipher algorithm?
(aes256-cts-hmac-sha1-96)
(aes128-cts-hmac-sha1-96)
Actually we are getting following error in server Error_log while using any one of the above AES Crypto types.
gss_accept_sec_context() failed: Unspecified GSS failure. Minor code may provide more information (, No key table entry found for the SPN)
But, if we use the keytab encrypted with either of following Crypto type DES, then we don't see any issue with the Kerberos authentication and its working fine.
(des-cbc-crc)
(des-cbc-md5)
Since the DES is catagoried in weak crypto type hence it's denied to use for security reason. So, Could you pls suggest any solution to the above Crypto type issue?
Thanks in Adv !
Sanjay Sanjay (talk) 15:11, 3 October 2018 (UTC)
- This is controlled by your web server, not MediaWiki. Bawolff (talk) 22:47, 3 October 2018 (UTC)
Extension:HeadersFooters has been Dead since 2012
This extension's download page (Extension:HeadersFooters/CHANGELOG) can only be downloaded from an external site that, according to the wayback machine, has been offline since September, 2012.
-Arrrstin
P.S. I am relatively new at all the functions here. I am not sure if this is the best place to report this. Arrrstin (talk) 16:39, 3 October 2018 (UTC)
- http://ofbeaton.com/releases/HeadersFooters/HeadersFooters_0.2.3_2011-11-04.tar.gz looks like the external site is up.
- We let anyone create extension pages, so we don't have much to do with external extensions like these ones. Generally you will have to contact the author of the extension to get help with it. Bawolff (talk) 22:49, 3 October 2018 (UTC)
Trouble logging into my account
I have never been given a username. All that has been asked for is my email and password. Now it wants a username to sign in. Where do I get a username? 24.51.61.7 (talk) 21:34, 3 October 2018 (UTC)
- Is this related to mediawiki.org or any other Wikimedia Foundation Wiki? AhmadF.Cheema (talk) 01:20, 4 October 2018 (UTC)
How do I submit a bio on myself that would be of interest?
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I am not ready yet but when I am how do I submit a factual and very interesting bio to Wikipedia about myself with supporting documentation?
Rowen Negrin 954 907 2254 negrin22@aol.com I am 75 and i believe it is time. 2601:580:C001:6840:8403:7E15:BA9D:82BD (talk) 04:38, 4 October 2018 (UTC)
- Welcome to mediawiki.org. mediawiki.org is not Wikipedia. Please ask questions about Wikipedia on Wikipedia. Also see https://en.wikipedia.org/wiki/Wikipedia:Conflict_of_interest and https://en.wikipedia.org/wiki/Wikipedia:Notability first. Malyacko (talk) 07:57, 4 October 2018 (UTC)
eliminar mi cuenta
Me gustaria saber como puedo eliminar mi cuenta de mediawiki, Gracias Jmmartineza73 (talk) 06:35, 4 October 2018 (UTC)
- No se pueden eliminar cuentas de usuario en MediaWiki. Puedes cambiar la contraseña de tu cuenta por algo aleatorio y borrar tu dirección de correo para perder el acceso a la misma. Puedes pedir a un administrador que borre tu página de usuario y/o bloquee tu cuenta. Ciencia Al Poder (talk) 09:42, 4 October 2018 (UTC)
Upload mediawiki to 000webhost
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I uploaded to 000webhost and when I try to see the page I see the next error:
Sorry! This site is experiencing technical difficulties.
Try waiting a few minutes and reloading.
(Cannot access the database)
You can try searching via Google in the meantime.
Note that their indexes of our content may be out of date.
and in Localsettings.php i put the correct userDB name, password and hostDBname.
What can I do? 212.63.115.19 (talk) 06:56, 4 October 2018 (UTC)
- DB name, DB password and DB hostname are correct? Check again. Which version of MediaWiki you use? Kizule (talk) 07:34, 4 October 2018 (UTC)
- 000webhost is a free hosting. I doubt it's suitable for running MediaWiki, when inserting ads that may break JavaScript and database may have very low usage limits. Ciencia Al Poder (talk) 09:37, 4 October 2018 (UTC)
- Zoranzoki21 yes it´s all correct that´s what I don´t know where´s the problem 87.221.235.114 (talk) 13:55, 5 October 2018 (UTC)
- Ciencia Al Poder tengo que subirlo a uno gratuito porque es para un trabajo de clase 87.221.235.114 (talk) 13:56, 5 October 2018 (UTC)
- This is my Localsettings.php configuration, I change the password for security but the rest is like I have in the hostinger:
- <?php
- # This file was automatically generated by the MediaWiki 1.29.1
- # installer. If you make manual changes, please keep track in case you
- # need to recreate them later.
- #
- # See includes/DefaultSettings.php for all configurable settings
- # and their default values, but don't forget to make changes in _this_
- # file, not there.
- #
- # Further documentation for configuration settings may be found at:
- # https://www.mediawiki.org/wiki/Manual:Configuration_settings
- # Protect against web entry
- if ( !defined( 'MEDIAWIKI' ) ) {
- exit;
- }
- ## Uncomment this to disable output compression
- # $wgDisableOutputCompression = true;
- $wgSitename = "Deportes-La Mancha";
- $wgMetaNamespace = "Deportes-La_Mancha";
- ## The URL base path to the directory containing the wiki;
- ## defaults for all runtime URL paths are based off of this.
- ## For more information on customizing the URLs
- ## (like /w/index.php/Page_title to /wiki/Page_title) please see:
- ## https://www.mediawiki.org/wiki/Manual:Short_URL
- $wgScriptPath = "/wiki";
- ## The protocol and server name to use in fully-qualified URLs
- $wgServer = "http://localhost";
- ## The URL path to static resources (images, scripts, etc.)
- $wgResourceBasePath = $wgScriptPath;
- ## The URL path to the logo. Make sure you change this from the default,
- ## or else you'll overwrite your logo when you upgrade!
- $wgLogo = "$wgResourceBasePath/resources/assets/wiki.png";
- ## UPO means: this is also a user preference option
- $wgEnableEmail = true;
- $wgEnableUserEmail = true; # UPO
- $wgEmergencyContact = "apache@192.168.1.20";
- $wgPasswordSender = "apache@192.168.1.20";
- $wgEnotifUserTalk = false; # UPO
- $wgEnotifWatchlist = false; # UPO
- $wgEmailAuthentication = true;
- ## Database settings
- $wgDBtype = "mysql";
- $wgDBserver = "localhost";
- $wgDBname = "id7362128_wikii";
- $wgDBuser = "id7362128_root";
- $wgDBpassword = "*********";
- # MySQL specific settings
- $wgDBprefix = "";
- # MySQL table options to use during installation or update
- $wgDBTableOptions = "ENGINE=InnoDB, DEFAULT CHARSET=binary";
- # Experimental charset support for MySQL 5.0.
- $wgDBmysql5 = false;
- ## Shared memory settings
- $wgMainCacheType = CACHE_NONE;
- $wgMemCachedServers = [];
- ## To enable image uploads, make sure the 'images' directory
- ## is writable, then set this to true:
- $wgEnableUploads = true;
- $wgUseImageMagick = true;
- $wgImageMagickConvertCommand = "/usr/bin/convert";
- # InstantCommons allows wiki to use images from https://commons.wikimedia.org
- $wgUseInstantCommons = false;
- # Periodically send a pingback to https://www.mediawiki.org/ with basic data
- # about this MediaWiki instance. The Wikimedia Foundation shares this data
- # with MediaWiki developers to help guide future development efforts.
- $wgPingback = true;
- ## If you use ImageMagick (or any other shell command) on a
- ## Linux server, this will need to be set to the name of an
- ## available UTF-8 locale
- $wgShellLocale = "en_US.utf8";
- ## Set $wgCacheDirectory to a writable directory on the web server
- ## to make your wiki go slightly faster. The directory should not
- ## be publically accessible from the web.
- #$wgCacheDirectory = "$IP/cache";
- # Site language code, should be one of the list in ./languages/data/Names.php
- $wgLanguageCode = "es";
- $wgSecretKey = "ef21e2a45b53c2dd188bb5fbf324679fe21cfeee7aa2a4c746191dbb3b134504";
- # Changing this will log out all existing sessions.
- $wgAuthenticationTokenVersion = "1";
- # Site upgrade key. Must be set to a string (default provided) to turn on the
- # web installer while LocalSettings.php is in place
- $wgUpgradeKey = "a01c2dccbeb58f1c";
- ## For attaching licensing metadata to pages, and displaying an
- ## appropriate copyright notice / icon. GNU Free Documentation
- ## License and Creative Commons licenses are supported so far.
- $wgRightsPage = ""; # Set to the title of a wiki page that describes your license/copyright
- $wgRightsUrl = "";
- $wgRightsText = "";
- $wgRightsIcon = "";
- # Path to the GNU diff3 utility. Used for conflict resolution.
- $wgDiff3 = "/usr/bin/diff3";
- ## Default skin: you can change the default skin. Use the internal symbolic
- ## names, ie 'vector', 'monobook':
- $wgDefaultSkin = "vector";
- # Enabled skins.
- # The following skins were automatically enabled:
- wfLoadSkin( 'CologneBlue' );
- wfLoadSkin( 'Modern' );
- wfLoadSkin( 'MonoBook' );
- wfLoadSkin( 'Vector' );
- # End of automatically generated settings.
- # Add more configuration options below. 87.221.235.114 (talk) 14:05, 5 October 2018 (UTC)
- I use the mediawiki version 1.29.1 87.221.235.114 (talk) 14:05, 5 October 2018 (UTC)
- Change $wgServer value to your site's actual base URL/domain. AhmadF.Cheema (talk) 15:32, 5 October 2018 (UTC)
- I can repair the problem, it´s was the hosting php version, I change it to the oldest version and the browser sais that I need almost the php 5.5 version, I change to php 5.5 version and now it´s works. Thank you for try to help me 87.221.235.114 (talk) 12:01, 6 October 2018 (UTC)
Failed Installation GnuCash 3.3.1 with MAC OSX 10.13.6
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
The installation process appears to go normally, there's the usual warning about 'Opening' a file downloaded from the internet and the GNUCash icon is seen 'bouncing' up & down on the lower docking bar, but after you 'click' Open the GNUCash icon disappears and the installation process halts - nothing! No GNUCash. I've tried several fresh downloads and repeated the same installation process without success. Any advise? 95.151.61.91 (talk) 08:44, 4 October 2018 (UTC)
- This support forum is unrelated to GNUCash. For help with it, see their Getting Help page. AhmadF.Cheema (talk) 09:22, 4 October 2018 (UTC)
Using external and internal sources for authentication
We are using ldap for authentication. Is it possible to add a few people manually using an email and password to login (bypassing ldap). While the majority of people still uses ldap for authentication?
Thanks 132.194.13.92 (talk) 19:03, 4 October 2018 (UTC)
Customize pages with HTML/JS
Hello,
I would like to ask if there's a way to add custom HTML/JS code to the pages, but not as content.
My goal is to add a navbar on top of the page, that will be displayed on all pages and will contain links to external sites.
Thank you,
Andreas 81.4.152.174 (talk) 08:13, 5 October 2018 (UTC)
Update to version 1.31 no WikiEditor any more
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I updated my Pollen-Wiki from MediaWiki 1.23 to 1.31. The update was successful. However, now when editing a page I always get the dull core JavaScript editor and not the WikiEditor from version 1.23. I uploaded the newest version of WikiEditor.
My LocalSettings include:
$wgUseAjax = true;
wfLoadExtension( 'WikiEditor' );
I could not find any solutions on the net.
Thomas
https://pollen.tstebler.ch 77.58.215.12 (talk) 14:23, 5 October 2018 (UTC)
- Additonally, when using the search site https://pollen.tstebler.ch/MediaWiki/index.php?title=Spezial:Suche I got a competely unformatted site. My sidebar navigation is not available and all navigation buttons are below the editing aerea. 77.58.215.12 (talk) 14:36, 5 October 2018 (UTC)
- According to Special:Version, WikiEditor is loaded in your wiki. Basically, it should be working...
- For Spezial:Suche, there is a PHP error, which prevents the styles from rendering. You can see the error here: https://pollen.tstebler.ch/MediaWiki/load.php?debug=false&lang=de&modules=mediawiki.helplink%2CsectionAnchor%2Cspecial%2Cui%7Cmediawiki.legacy.commonPrint%2Cshared%7Cmediawiki.skinning.interface%7Cmediawiki.special.search.styles%7Cmediawiki.ui.button%2Cinput%7Cmediawiki.widgets.SearchInputWidget.styles%7Cmediawiki.widgets.styles%7Coojs-ui-core.styles%7Coojs-ui.styles.icons-alerts%2Cicons-content%2Cicons-interactions%2Cindicators%2Ctextures%7Cskins.vector.styles&only=styles&skin=vector 2001:16B8:105F:2200:BCF8:977F:B390:FFE4 (talk) 15:21, 5 October 2018 (UTC)
- Problem solved. I downloaded a new Version of 1.13.1 an uploaded all files again. Now it works.
- Sorry for bothering
- Thomas 77.58.215.12 (talk) 15:30, 5 October 2018 (UTC)
Why my urlencode string is not encoded?
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hello,
I am trying to encode a string, but it is not working. Here it is: {{urlencode:insource:/[^*:#['}|(>++]\[\[[a-z-]{2,}:[^]]+\]\]/+-insource:"[[image:"+-insource:"[[file:"+-insource:"[[fichier:"}}
Would anyone know what would be a solution to this? Automatik (talk) 15:08, 5 October 2018 (UTC)
- So 2 things:
- First of all, replace | with {{!}}
- The unclosed link [[ open screws up the parser function
- So you could try something like:
{{urlencode:insource:/[^*:#['}{{!}}(>++]\[\[[a-z-]{2,}:[^]]+\]\]/+-insource:"[<nowiki/>[image:"+-insource:"[<nowiki/>[file:"+-insource:"[<nowiki/>[fichier:"}}Bawolff (talk) 17:02, 7 October 2018 (UTC)- I had tried indeed with {{!}} instead of |. But thanks for the nowiki trick, it solved the problem! :-) Automatik (talk) 17:44, 7 October 2018 (UTC)
MediaWiki 1.31.1 uses 100% CPU
After I upgraded my wiki from MediaWiki 1.30.0 to 1.31.1, it was extremely sluggish. It used 99 to 100% CPU all the time. The database is MySQL 5.7.22. I tried with both PHP7.1 and 7.2 and on Ubuntu 16.04 as well as 18.04 (the site is on a Digital Ocean droplet). I tried disabling all MediaWiki extensions, but that didn't help. I ran "update.php" without receiving any error messages or warnings. The site is at https://www.irhb.org , but I have had to revert it to Mediawiki 1.30.0 as it was so slow that it was nearly unusable. Could this be a bug, does vers. 1.31.1 have much higher hardware requirements than 1.30.0, or what else could be the reason? Any help would be much appreciated.
Thanks!
Henryfunk Henryfunk (talk) 18:02, 5 October 2018 (UTC)
- It would help if the results of running the
topcommand in SSH could be shown, when there is 100% CPU usage. This command will show which exact processes are consuming so much resources. AhmadF.Cheema (talk) 19:21, 5 October 2018 (UTC) - Thank you, Ahmad. I reinstated the server droplet with MediaWiki 1.31.1. and ran top as you suggested, and it is clearly MySQL that is hogging all the CPU. Often when I click a link at my site, MySQL's CPU usage shoots to somewhere between 50 and 90 percent. It's memory usage is pretty stable at around 14 precent. Instances of "www-data" and all other items on the list in top use very little CPU and memory. My virtual server has 2Gb RAM. Running MediaWiki 1.30, MySQL typically uses about 3 percent CPU and rarely gets above 16.
- I found out that the upgrade to PHP7.2 and Ubuntu 18.04 has increased the values for "innodb_open_files", "open_files_limit", "performance_schema_digests_size", "table_definition_cache" and "table_open_cache" in MySQL. I have reverted these changes so that all effective values (as per "SHOW VARIABLES" in MySQL) are now exactly the same as with Ubuntu 16.04/PHP7.0/MediaWiki 1.30, but this has had no effect on performance as far as I can see. MySQL still uses much more CPU than it should. Henryfunk (talk) 07:52, 6 October 2018 (UTC)
- For all we know (perhaps even likely) this could be a fault of some small special configuration that Digital Ocean is enforcing on their end.
- After the web page finishes loading, does the MySQL CPU usage automatically come back to zero, or does it continue to remain high? AhmadF.Cheema (talk) 13:31, 7 October 2018 (UTC)
- Thanks again, Ahmad. CPU usage does go back to a low level (often several seconds) after the page has loaded. I should perhaps add that I check that the job queue is empty before I run top. Henryfunk (talk) 14:28, 7 October 2018 (UTC)
Is there an album page format template available?
I would like to make a new wiki page for the Branford Marsalis Quartet album Metamorphosen. Currently the discography section of their wiki page, under 2009 Metamorphosen links to a Richard Strauss study for 23 strings of the same name and brings up a picture of the man.
Is there an album page format template available? I have the CD checked out from the local library at the moment. Dave42Hasse (talk) 17:27, 6 October 2018 (UTC)
- You can take a look at Category:WikiProject Albums templates and Category:Music templates. AhmadF.Cheema (talk) 19:18, 6 October 2018 (UTC)
Kits marked with * have not been tokenized and have not completed batch processing. What does this mean, What do I do next?
Kits marked with * have not been tokenized and have not completed batch processing. What does this mean, What do I do next? 2001:5B0:41D0:2FE8:4520:EB23:D171:D7CC (talk) 21:11, 6 October 2018 (UTC)
- Is your query related to the MediaWiki software? AhmadF.Cheema (talk) 09:00, 7 October 2018 (UTC)
How I can install the pdfembed extension on a mediawiki 1.29?
I´m trying to write this on Localsettings.php:
wfLoadExtension( 'PDFEmbed' );
and with this:
wfLoadExtension( 'PDFEmbed' );
But it doesn´t work.
I also try with:
$wgFileExtensions[]= 'pdf';
Nothing works 87.221.235.114 (talk) 23:44, 6 October 2018 (UTC)
- What do you mean by "it doesn´t work"? Does the extension show up in Special:Version? Have you uploaded the extension files in the
extensions/folder? AhmadF.Cheema (talk) 08:59, 7 October 2018 (UTC)
Peak detector
Greetings,
Please can anyone help how could we make (ideally) a custom block that detects the peaks on a time series input. Detecting the peak, it's power and time when it happened! Have been trying with python through a custom block but having trouble to find both time and power of signal and plot them!
Every help is highly appreciated! Bettimms (talk) 04:18, 7 October 2018 (UTC)
- Is your query related to the MediaWiki software? AhmadF.Cheema (talk) 08:56, 7 October 2018 (UTC)
Where can I set rate limit for API request?
E.g. attacker made tens of thousands different API request to flood my wiki.
Where can I set API visit rate limit?
Manual:$wgRateLimits Does not contain API rate limit in it..... Deletedaccount4567435 (talk) 14:12, 7 October 2018 (UTC)
- Couldn't find anything regarding API rate limits either, however, partial limitations can be applied. See API:Restricting API usage. AhmadF.Cheema (talk) 14:53, 7 October 2018 (UTC)
- wgRateLimit applies to actions not method of action - so if you set an edit rate limit, it will apply regardless of how the edit comes in (via web interface or api)
- Generally speaking this is good, as if the api was more restricted, people would just move to the web interface.
- As a hack, you can do things in LocalSettings.php, like setting a different value to $wgRateLimits depending on if the current url is api.php. But that's very hacky. Bawolff (talk) 16:51, 7 October 2018 (UTC)
Script error when attempting to work with infoboxes and related things
I'm trying to get infoboxes, citations, and all the like set up on my new wiki. I have installed Scribunto along with common.js and common.css, but I am still getting a script error and can't find anything about this particular one:
Script error: The function "show" does not exist.
My MediaWiki version is 1.31.1. I am fairly new to this so any help along with explanations for what I need to do would be greatly appreciated. Thanks in advance Jaschlander (talk) 19:46, 7 October 2018 (UTC)
- Are you using the version of Extension:Scribunto which corresponds to your MediaWiki core version?
- Also, where does this script error actually show up? AhmadF.Cheema (talk) 22:34, 7 October 2018 (UTC)
- Should be, I downloaded the latest version for 1.31 (do I need to try the latest development version instead?). Also, it shows up on template pages specifically, such as the infobox templates (e.g. Template:Infobox, Template:Infobox_person, etc.), citation templates (e.g. Template:PD-old-X-1923), and other ones like Template:Collapse_top, Template:Autotranslate, and Template:Mention (there are far more than just those). Jaschlander (talk) 23:06, 7 October 2018 (UTC)
- The extension version should be fine.
- I assume you recently imported the modules from Wikipedia. The only possible reason for the present problem that I can think of is that some Wikipedia Module was updated to use the function "show" that has been include in a newer version of the Extension:Scribunto. If true, you will need to make use of an older version of that module. However, I'm not sure how to find which module is the problematic one.
- See [[Extension talk:Scribunto/2014#h-Lua_error_in_Module:List_[SOLVED]-2014-06-01T13:26:00.000Z]] for a similar previous problem. See Extension:Scribunto#Logging for setting up an error log file. Maybe that would help. AhmadF.Cheema (talk) 02:43, 8 October 2018 (UTC)
- Yes, they were recent imports from Wikipedia, I'll look into it and post what I find later on Jaschlander (talk) 03:08, 8 October 2018 (UTC)
MW 1.30 compatibility with IE?
Hi Guys,
I am using MW 1.30 on one of my sites. Some features like autosuggest and loading of Mediawiki: Common.js file are working fine on Chrome browser, but these are broken on IE.
Is it due to compatibility issue of MW 1.30 with IE?
Thanks in Advance. 148.168.40.121 (talk) 07:36, 8 October 2018 (UTC)
- See Compatibility#Browsers Ciencia Al Poder (talk) 09:35, 8 October 2018 (UTC)
- Thanks Ciencia :) But I couldn't decipher much from the above link. Can you please help me out? 148.168.40.121 (talk) 09:51, 8 October 2018 (UTC)
- If something is unclear, please explain what exactly is unclear and why. Malyacko (talk) 23:21, 8 October 2018 (UTC)
- It would be more efficient if you ask exactly which part of the document you need help with. AhmadF.Cheema (talk) 11:43, 8 October 2018 (UTC)
- Basic (Grade C) browsers don't get JavaScript, which means some features like what you describe won't work.
- IE has many versions, only IE11+ is supported according to that page Ciencia Al Poder (talk) 09:15, 10 October 2018 (UTC)
- I downgraded my MW version to 1.27.5 from 1.30.
- On 1.30, autosuggest and loading of Mediawiki: Common.js was not working in IE but when I downgraded it to 1.27.5, both are working fine on IE.
- Any specific reasons? 148.168.40.121 (talk) 11:24, 17 October 2018 (UTC)
- It has not been mentioned which version if IE you are using. Malyacko (talk) 17:33, 18 October 2018 (UTC)
- Your IE is too old? Ciencia Al Poder (talk) 09:18, 18 October 2018 (UTC)
Resend email address confirmation
Hello,
I need some assistance, my email address confirmation email was sent to spam, and now the content on my page has been deleted..? G1455O (talk) 14:30, 8 October 2018 (UTC)
- Who send some "email address confirmation" and from which exact website (URL)? What is "your page" and where to see it (exact URL)? Malyacko (talk) 23:21, 8 October 2018 (UTC)
New functionality suggestions?
I would like to propose some new functionality/extensions.. but where do I post those to get the "correct" attention? AssetDenmark (talk) 11:53, 9 October 2018 (UTC)
How do I delete my account?
I run an alumni group for a school. I therefore opened an account to add a link to a notable ex-pupil of the school and to put a link to the school's alumni site. This apparently is not a link wikipedia wants - I have no other use for the account but cannot see how to delete it. WGHSOGU (talk) 14:10, 9 October 2018 (UTC)
- Unfortunately, you cannot. But something practically similar can be done, see Wikipedia:FAQ#How do I change my username/delete my account? AhmadF.Cheema (talk) 17:35, 9 October 2018 (UTC)
Bad admins
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
GethN7 blocked me on rotten websites just because i was mentioning PKMNLivesNew (a troll in wikia)
can you please unblock me on the rotten websites.
can you also global ban GethN7
Link 1: https://rottenwebsites.miraheze.org/wiki/User:GethN7
Link 2: https://rottenwebsites.miraheze.org/wiki/Rotten_Websites_Wiki
Link 3: https://rottenwebsites.miraheze.org/wiki/User:Angrybirdsfanonmiraheze Angrybirdsfanonmiraheze (talk) 17:00, 9 October 2018 (UTC)
- For help with Wikis hosted by Miraheze, see their Help_center. AhmadF.Cheema (talk) 17:31, 9 October 2018 (UTC)
Database query error and error 1142 on my second wiki
Hello guys. I have been working on a wiki family, and the second wiki that I created had problems with having its own database. After I granted permissions to my second database's user, my select permission was denied. Any way to fix this? I tried running cd maintenance on PuTTY, and it said that there was no such file or directory. This is how the error looks:
[W702Vu0kj5bBYBU1eCUslwAAARU] /mw19/ Wikimedia\Rdbms\DBQueryError from line 1149 of /home/gjlxrtap/public_html/mw19/includes/libs/rdbms/database/Database.php: A database query error has occurred. Did you forget to run your application's database schema updater after upgrading?
Query: SELECT user_id,user_name,user_real_name,user_email,user_touched,user_token,user_email_authenticated,user_email_token,user_email_token_expires,user_registration,user_editcount FROM `gjlxrtap_mw19758`.`mwd50q_user` WHERE user_id = '1' LIMIT 1
Function: User::loadFromDatabase
Error: 1142 SELECT command denied to user 'gjlxrtap_mw34555'@'localhost' for table 'mwd50q_user' (localhost) Newman2 (talk) 23:18, 9 October 2018 (UTC)
- You need to change the MySQL configuration: User gjlxrtap_mw34555 needs to have access to table mwd50q_user. 2001:16B8:1028:C100:B8D7:1BAF:F797:54C7 (talk) 07:15, 10 October 2018 (UTC)
- How can I enable access to mwd50q_user? Newman2 (talk) 20:33, 12 October 2018 (UTC)
- his is normally setup by the MediaWiki installer. If you need to do it manually, see mariadb docs:
- https://mariadb.com/kb/en/library/grant/
- Probably, you will want to issue the SQL command:
- Bawolff (talk) 05:47, 15 October 2018 (UTC)
GRANT ALL PRIVILEGES ON gjlxrtap_mw19758.* TO 'gjlxrtap_mw34555'@'localhost'
- I ran the command on SQL, and MySQL gave the following error: #1044 - Access denied for user 'cpses_gjvh8z8op6'@'localhost' to database 'gjlxrtap_mw19758' Newman2 (talk) 20:08, 17 October 2018 (UTC)
- You need to run it as a user that has the permission to grant access to things.
- If its your own db, often that's the "root" user. If your db is managed by your hosting provider, contact your hosting provider. Bawolff (talk) 20:36, 17 October 2018 (UTC)
- Yes, the database I am working with is my own database. However, I created it by copying the structure and data from the main wiki's database. How can I get permission to grant access? Newman2 (talk) 21:14, 18 October 2018 (UTC)
- Log in to MySQL with the MySQL root user! This user can execute GRANT queries. 88.130.53.62 (talk) 21:20, 18 October 2018 (UTC)
- I have been told by the Webhostface staff that I already granted all the permissions. If I already granted permissions, then what do I do next? Newman2 (talk) 22:27, 18 October 2018 (UTC)
Autocomplete in search box not working on mobile
I got it working on desktop but when I go to mobile it is not working. When I tap on the search bar the suggestion div is staying on display none and the switch will not activate.
Do is need to activate the mobile somewhere? 195.93.225.37 (talk) 13:39, 10 October 2018 (UTC)
- Which MediaWiki version? Do you use the standard search, or do you have the CirrusSearch extension installed? Malyacko (talk) 21:00, 10 October 2018 (UTC)
- Iam using CirrusSearch extension , And not getting Auto suggestion into my search engine, Pls help @Malyacko
- MediaWiki1.35.1
- PHP7.4.15 (apache2handler)
- MySQL8.0.25
- Elasticsearch6.5.4 Pooja2425 (talk) 12:43, 1 July 2021 (UTC)
- Apparently this issue is appearing in all the last MW versions, including the one now on Wikipedia website, when using the desktop view (not using the MobileFrontEnd extension and view). Wess (talk) 08:23, 28 March 2019 (UTC)
- @Wess: Please clearly describe what "on mobile" means and which "Wikipedia website" this is about (full link). See How to report a bug - thanks. Malyacko (talk) 10:08, 28 March 2019 (UTC)
- Using various Android mobile devices (not tablets, i.e. - Samsung g s 7, Samsung note 8) on the desktop view of all the Wikimedia sites I came through (i.e. this Mediawiki site, en Wikipedia) the suggestion box is not shown at all while typing.
- Reported in Phabricator: T219590 Wess (talk) 17:05, 28 March 2019 (UTC)
Our users do not get e mail notifications about watched pages
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
The users of our company wiki do not get email notifications, even if the pages are on their watch list.
How can we fix this? 217.6.121.165 (talk) 14:00, 10 October 2018 (UTC)
- Note that email notifications for watched pages will be sent only for the first edit since user's last visit to that page.
- Is email working for other things such as password resets? AhmadF.Cheema (talk) 14:37, 10 October 2018 (UTC)
- Password resets doesn't work either..
- Well I tested it with my own account, visited a page, put it on my watchlist and a colleague changed something. I did not receive a message. 217.6.121.165 (talk) 14:58, 10 October 2018 (UTC)
- You can try Special:Emailuser.
- Setting up a debug log as explained in Manual:How to debug can also help identify the problem. Be sure mail is correctly configured, your server is able to send mails, they don't get flagged as spam, etc. See also Manual:$wgSMTP Ciencia Al Poder (talk) 09:46, 11 October 2018 (UTC)
- FYI: we checked back with team infrastructure. The Wiki-server is too old so that mails cannot be sent :-( Sad, but hey.
- Thanks to you for trying to help! 217.6.121.165 (talk) 12:10, 12 October 2018 (UTC)
Formatting and Images are gone
- I have a website (www.travelstrategies.com) that has been running on HTTP (on a shared host). I have been mapping the URLs to www.travelstrategies.com/page-title. Yesterday, tried to make the switch over to HTTPS. I believe I had the certificate installed correctly and modified $wgServer and the .htaccess file. When that didn't work, I switched things back, to keep the site running while I figured out the problem. But now my Wiki doesn't have any formatting and images are not showing up on the webpage. It looks like it is having problems finding the supporting files. Is there some sort of cache that got messed up during the short period of time when the $wgServer and .htaccess were modified. I'm not sure why everything is not back to normal. Thanks 24.18.203.226 (talk) 17:09, 10 October 2018 (UTC)
- The web browser's developer tools print the line "Loading failed for the <script> with source “http://www.travelstrategies.com/load.php?debug=true&lang=en&modules=startup&only=scripts&skin=tweeki” Malyacko (talk) 20:59, 10 October 2018 (UTC)
- Your domain is currently redirecting to Travelstrategies.com/travelstrategies.com/Travelstrategies.com/travelstrategies.com/Travelstrategies.com/travelstrategies.com/.... and so on. Once you fix this wrong redirect, I guess that the skin and images should also load correctly again. 87.123.197.37 (talk) 18:57, 10 October 2018 (UTC)
- That was just an additional temporary problem when I tried changing $wgServer to "travelstrategies.com", rather than "http://www.travelstrategies.com". Changed that back, and still having the problem the styles, skin, and images. 24.18.203.226 (talk) 20:50, 10 October 2018 (UTC)
- The domain now is not giving out anything at all.
- Please provide a link to the main page of your wiki so that we know, under which URL the content is expected to be. 2001:16B8:1083:F600:9943:D0EB:51AA:1EFF (talk) 22:31, 10 October 2018 (UTC)
добрый день, у меня есть уникальная статья
Слов в статье 1316.
Статья "Как правильно, быстро и не дорого упаковать груз".
Статья со ссылками на сайт где более подробно описаны материалы для упаковки. Стоит ли такую статью размещать в википедии и не удалят ли ссылки на мой сайт. Z9602540193 (talk) 08:38, 11 October 2018 (UTC)
- Hi, you need to ask on Wikipedia for questions about Wikipedia.
- This website is mediawiki.org. mediawiki.org is not Wikipedia. Malyacko (talk) 17:19, 11 October 2018 (UTC)
Error after moving db and host
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I moved my mediawiki to a new host. Therefor I exported the database at phpmyadmin and downloaded the whole folder from the old host.
At the new host i created a new database and imported the database. Then I uploaded the folder to the new host and edited LocalSetting.php with the new database information.
The domain ist still the same as before.
Now I get the error http 500 with the log:
mod_fcgid: stderr: Stack trace:
mod_fcgid: stderr: #0 /home/retger1/wiki.assistenz.de/includes/user/User.php(5272): User::getDefaultOptions()
mod_fcgid: stderr: #1 /home/retger1/wiki.assistenz.de/includes/user/User.php(2884): User->loadOptions()
mod_fcgid: stderr: #2 /home/retger1/wiki.assistenz.de/includes/context/RequestContext.php(364): User->getOption('language')
mod_fcgid: stderr: #3 /home/retger1/wiki.assistenz.de/includes/Message.php(380): RequestContext->getLanguage()
mod_fcgid: stderr: #4 /home/retger1/wiki.assistenz.de/includes/Message.php(1275): Message->getLanguage()
mod_fcgid: stderr: #5 /home/retger1/wiki.assistenz.de/includes/Message.php(842): Message->fetchMessage()
mod_fcgid: stderr: #6 /home/retger1/wiki.assistenz.de/includes/Message.php(934): Message->toString('text')
mod_fcgid: stderr: #7 /home/retger1/wiki.assistenz.de/includes/exception/MWExceptionRenderer.php(200): Message->text()
mod_fcgid: stderr: #8 /home/retger1/wiki.assistenz.de/includes/exception/MWExceptionRenderer.php(300): MWExceptionRenderer::msg('dberr-problems', 'Sorry! This sit...')
mod_fcgid: stderr: #9 /ho in /home/retger1/wiki.assistenz.de/includes/user/User.php on line 1594
Anyone can help me? Thank you in advance Daniel.klaering (talk) 08:40, 11 October 2018 (UTC)
- The error message is incomplete. You posted the stack trace of the error, but not the actual error message Ciencia Al Poder (talk) 09:42, 11 October 2018 (UTC)
- Oh sorry, is this
- mod_fcgid: stderr: PHP Fatal error: Uncaught Error: Call to a member function getCode() on null in /home/retger1/wiki.assistenz.de/includes/user/User.php:1594
- the missing part? Otherwise i do not know where I would get the error message. Daniel.klaering (talk) 10:21, 11 October 2018 (UTC)
- I think that
open_basedirPHP option block your site. Does your site run on a shared host? If it is, can you modify php.ini? 星耀晨曦 (talk) 16:01, 11 October 2018 (UTC) - Hi, thanks for your answer. The site is hosted at Dreamhost and I think I can modify it. Dreamhost tells me that I can create a user.ini to custimize PHP settings. Daniel.klaering (talk) 20:52, 14 October 2018 (UTC)
- I think I found a work around. I installed a clean version of mediawiki, then I copied the whole old wiki into the folder of the clean version without the localsettings.php. After that I just changed the used database in the local settings to the original one.
- After that it works. I don´t know why this works because the database and the files are the same as before now but maybe that can help. Daniel.klaering (talk) 21:06, 14 October 2018 (UTC)
- The error message before sounding like a db problem, and then MW additionally had a problem showing the error message (Finding the user's language).
- Maybe there was subtle differences in the LocalSettings.php Bawolff (talk) 05:36, 15 October 2018 (UTC)
edit category entries
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Dear All,
I use a certain template that puts pages where it is employed into a maintenence category.
It would be helpful if I could add a certain argument into the category list, namely the program version to which the page refers according to parameter {{{version}}} of the template. So if page foo refers to version 3.8, then in category bar the entry of page foo should be "foo (3.8)".
Is there a way to chieve that?
Off course I could instead call [[category:bar/{{{version}}}]], but then I run into danger of overlooking a category ...
Calling [[category:bar|{{{version}}}]] wasn't a solution because then Pages refering to v3.8 and v3.9 will be indistinguishable under the headline "3" :(
Thank you in advance for your answer. Ciciban (talk) 13:46, 11 October 2018 (UTC)
- So one way is to use something like Extension:CategorySortHeaders.
- Another way is to put it both in [[category:bar/{{{version}}}]] and [[category:bar]] So you have it both in a general category and a specific version category. Bawolff (talk) 05:53, 15 October 2018 (UTC)
- Thank you for the hint – Ciciban (talk) 16:57, 15 October 2018 (UTC)
upgrade problem
I try to upgrade our internal mediawiki, but run into problems. The current wiki is running on RHEL 6 on apache2.2.15 with php 5.3.3. The database is mysql 5.6.12 running on a different host maintained by our DBA team.
What I have done is create a clone of the database under a different name to test first. The new host is RHEL7 and as we want to go to php7.1 I need to use the redhat software collections. This will be running apache2.4.27 with 7.1.8.
For the upgrade, I copied over the images, installed the needed extentions, and stripped a bit, and then try to run the update script. Because I run the redhat software collections, I first need to enable php and mysql:
wiki-test#scl enable rh-mysql57 rh-php71 bash
After that the update.php doesn't really do anything:
wiki-test# php update.php
MediaWiki 1.31.1 Updater
Your composer.lock file is up to date with current dependencies!
⧼config-mysql-old⧽
wiki-test#
When writing this and checking versions I notice my mysql client is a bit newer as the server, but don't really expect issues there. I have the feeling it might be related to the redhat software collections where the binary's are then in there own tree:
wiki-test# which php
/opt/rh/rh-php71/root/usr/bin/php
wiki-test# which mysql
/opt/rh/rh-mysql57/root/usr/bin/mysql
I can't really find any logs what it is doing, so I am stuck a bit at the moments. Any hints are appreciated. Akoopal (talk) 14:22, 11 October 2018 (UTC)
- After a chat on irc, found out that the server is still running 5.0.37. Will need to talk to our dba's on that.
- But the update.php misses to give some output, Reedy opened https://phabricator.wikimedia.org/T206765 Akoopal (talk) 14:40, 11 October 2018 (UTC)
- In this case, you should upgrade your MySQL to 5.5.8 or later. 星耀晨曦 (talk) 15:56, 11 October 2018 (UTC)
Table Cell Link
I would like to get a whole Table Cell to be a link.
Creating a Block u can click on to be linked to an other Site and/or Website.
Is there any way to create such a construct? 87.139.233.221 (talk) 16:47, 11 October 2018 (UTC)
- https://stackoverflow.com/questions/10070232/how-to-make-a-cell-of-table-hyperlink in HTML. Malyacko (talk) 17:18, 11 October 2018 (UTC)
Keine Anmeldung möglich / Keine Erstellung von Benutzeraccounts möglich
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Version: MediaWiki-1.31.1
Beim Anmelden und Anlegen eines neues Benutzeraccounts wird immer folgende Fehlermeldung angezeigt:
"Es gab ein Problem bei der Übertragung deiner Benutzerdaten. Diese Aktion wurde daher sicherheitshalber abgebrochen, um eine falsche Zuordnung deiner Änderungen zu einem anderen Benutzer zu verhindern. Bitte sende das Formular erneut ab."
Kann jemand mitteilen, wie die Fehlerursache eingegrenzt werden kann?
Angaben zum Webserver:
Typ: nginx
PHP: 7.3 (Ausführung via fastcgi://unix:/var/run/php/php7.3-fpm.sock )
System Debian Stretch Benn2003 (talk) 17:36, 11 October 2018 (UTC)
- Maybe see Project:Support desk/Flow/2016/07#h-Login_error_(session_hijacking_protection)-2016-07-11T08:56:00.000Z. AhmadF.Cheema (talk) 18:05, 11 October 2018 (UTC)
- Thank You. Benn2003 (talk) 16:40, 14 October 2018 (UTC)
If you go to Copfepris in Mexico it says it is a lair and manipulated institution I don’t think this should be posted.
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
If you go to look for cofepris it says it is a liar and manipulated institution I don’t think this should be posted this way 189.217.72.176 (talk) 23:57, 11 October 2018 (UTC)
- Then, instead of mentioning such here, you should point that out to whichever website contains the problematic information. AhmadF.Cheema (talk) 01:05, 12 October 2018 (UTC)
I'm literally just rttrying to make an account
I'm pretty sure ive looked at it enough and i'm doing it correctly. Some help would e much appreciated
Cheers.
Saying my PW doesn't match and i might be stoned but not quite that stoned (i wish) help please!!!!! 2A00:23C4:F3A3:3601:E4B6:F7EC:5CF3:4380 (talk) 01:51, 12 October 2018 (UTC)
- If you forgot your password than the "Log in" page offers a "Forgot your password?" link. What other help do you expect here? Malyacko (talk) 04:56, 12 October 2018 (UTC)
Local wiki restore pointing to old install folder still
I have a local MediaWiki install (localhost/hepperlepedia) which I migrated to a new folder (localhost/hepperlepedia2) and left the old install intact. I ensured that I was in the hepperlepedia2 url in a browser and changed the background to green in MediaWiki:Common.css. I did this so that I could easily differentiate the two installs, so I wouldn't accidentally edit the wrong install.
But, although they each have their own MediaWiki:Common.css page, now the first install is showing as green also!
I already addressed the issue of incorrect paths by fixing the base url path with (or so I thought):
$wgScriptPath = "/hepperlepedia2";
I also tried clearing the cache by putting this at the top of my LocalSettings.php, but I don't know how to tell if it worked correctly or not:
$wgCacheEpoch = 20181012075657;
My Question:
I already corrected for errors with incorrect "pathing" as I indicated. Why is editing the MediaWiki:Common.css file on the second install also changing the styles on the first, and how can I fix it?
My Backup Process:
This is the backup process I followed after backing up my original local wiki (hepperlepedia) with mysqldump according to this article: Manual:Backing_up_a_wiki. Some of it I interpreted because the instructions although mostly good were ambiguous in some places. When I finish my testing I may edit the instructions for clarity to help the community.
I am using Windows 10 operating system.
- Create new folder (hepperlepedia2) in WAMP www directory on localhost
- Copy .sql file to hepperlepedia2 folder
- Imported the .sql file through CMD with:
mysql -u [my_user] -p wikidb < dump_of_wikidb.sql
- Unzipped the full archive backup into hepperlepedia2. The process created a hepperlepedia subfolder in my new directory.
- Copied all files from hepperlepedia2/hepperlepedia, moved them up one level, then deleted the now-empty hepperlepedia subfolder.
- Launched http://localhost/hepperlepedia2/index.php in Chrome
- Added this code to change body background color in http://localhost/hepperlepedia2/index.php/MediaWiki:Common.css:
body { background: #39e287; } - Refreshed index page and verified color changed.
- Checked first install to ensure color did not change --> IT DID! This is bad.
- Added $wgCacheEpoch = 20181012075657; to top of LocalSettings.php, then refreshed browser using <CTRL+SHIFT+R>, to no avail.
Resources I consulted
- You haven't mentioned whether you updated the database information (name, password) in the LocalSettings.php file of your new installation. AhmadF.Cheema (talk) 10:04, 12 October 2018 (UTC)
- Thanks Ahmad. No, I had not changed the database name because I thought somehow that it was automatic. But, since you mentioned it I tried changing the ehwwiki_01 in the $wgDBname field to ehwwiki_02, the name of the restored database and refreshing the browser just now. I then edited the Common.css on the first install to remove the green body color I added and put everything back the way it was in the original skin. That part worked, BUT it also removed the styling from version two which is supposed to retain the styling.
- I'm definitely with you on thinking both installs are somehow using the same database. I'm not sure how to fix that. Ehtech2000 (talk) 12:00, 12 October 2018 (UTC)
- In case you are using $wgUseFileCache, try turning that Off too. AhmadF.Cheema (talk) 13:43, 12 October 2018 (UTC)
Wikipedia App 5.7.2 for iOS9 not in Apple AppStore
Wikipedia iOS App 5.7.2 should be the last supporting iOS9. Is it possible to put it on the Apple AppStore i order to install it on devices like iPad Mini on which it's not possible to install the current Wikipedia app?
Greatings, Al Al.weber (talk) 08:57, 12 October 2018 (UTC)
when edit source is used - does not show on recent changes
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
is there a way to make it so when 'Edit source' is used - that the page shows as edited at 'Recent changes'?
is this a mis configuration or a bug?
thanks. RobFantini (talk) 15:15, 12 October 2018 (UTC)
- I forgot to mention - when using Visual Editor : recent changes show all edits. RobFantini (talk) 12:46, 13 October 2018 (UTC)
- Hi, which version of MediaWiki you use? I think to here is something wrong with configuration, because changes made with "edit source" have to be showed in recent changes. Kizule (talk) 12:49, 13 October 2018 (UTC)
- Does the user have bot rights or something?
- Normally all edits are shown on Recentchanges. Sometimes you can filter Special:Recentchanges in various ways, but all edits that aren't filtered are shown. Bawolff (talk) 05:44, 15 October 2018 (UTC)
- A buggy extension could be causing errors when inserting the edit in the recent changes table. But I would expect the same error to happen when Visual Editor is used. Ciencia Al Poder (talk) 09:19, 16 October 2018 (UTC)
- thank you for the replies.
- we are using version: 1.31.1 (a4c8065)
- 14:59, September 20, 2018
- We have had this issue for awhile. since 1.27 I think.
- The user [ me] does have bot rights.
- As suggested I think it is due to a configuration issue. When I get a chance I'll look at VE configuration. [ could be some time. when and if i solve this will post what caused the issue.]
- In meantime any shot in the dark suggestions or hints will be appreciated! RobFantini (talk) 23:20, 19 October 2018 (UTC)
- If you have bot rights, it's normal that your edits don't appear in recent changes. However, they should appear if you select the option to display bot edits on your recent changes page Ciencia Al Poder (talk) 08:28, 20 October 2018 (UTC)
- After removing bots rights my source edits now show up in recent changes.
- Thank you for the help! RobFantini (talk) 14:09, 20 October 2018 (UTC)
PuTTY fails to run rebuildall.php
I have been working in PuTTY to fix the problems I have with my second wiki (as a part of a larger wiki family) and fixing the separate database. However, there is one problem. I tried to run rebuildall.php as stated in [[Manual:Maintenance scripts]], but I got the following message: It is not possible to determine the wiki ID.
Also, I want assistance from another error. How do I fix Error: 1142 SELECT command denied to user 'gjlxrtap_mw34555'@'localhost' for table 'mwd50q_user' (localhost)? How do I get my user to have access to user table 'mwd50q_user'? Thank you for reading this. Newman2 (talk) 20:40, 12 October 2018 (UTC)
- If you run maintenance scripts for a wikifamily, you may have to specify --server and/or --wiki options so it knows which wiki you want to use. What precisely you have to do depends on how you have your wikifarm setup. Bawolff (talk) 05:48, 15 October 2018 (UTC)
- How do I specify the server and/or wiki options? Show me how it looks on PuTTY and Localsettings.php. Newman2 (talk) 20:45, 16 October 2018 (UTC)
- See Manual:Maintenance_scripts#Standard_command-line_options. 87.123.197.224 (talk) 21:27, 16 October 2018 (UTC)
- I tried to type in command-line options in PuTTY, and it gave me the following error - bash: --wiki: command not found Newman2 (talk) 22:42, 16 October 2018 (UTC)
- Usually you would type something like (assuming you are in the maintenance directory)
- Bawolff (talk) 01:36, 17 October 2018 (UTC)
php rebuildall.php --wiki putDBNameHERE
"Save changes" doesn't save changes, just refreshes the page
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Information:
- Mediawiki: 1.31.1
- PHP: 7.1.22-1+ubuntu16.04.1+deb.sury.org+1 (apache2handler)
-MariaDB: 10.2.9-MariaDB-10.2.9+maria~trusty
- Wiki link: https://www.timebendersgame.com/wiki
I just installed mediawiki 1.31.1 on my server. I hooked it up to a MySQL database on the server and went through the installation process. Everything seemed to be going fine as it showed the default mediawiki after installation.
However, once I tried to actually use it by editing a page, previewing a page or even logging in with the account I created during the installation it doesn't work. In all of these cases the page just refreshes and doesn't really do or save anything.
For instance when I try to edit a page, I click on "Save changes" and all that happens is it refreshes the page and reverts back to the default text without any of my changes. I'm thinking it might be a database issue, but how would I debug that properly? Any ideas? LionIake (talk) 08:22, 13 October 2018 (UTC)
- In addition: this happens both for MySQL and SQLite database setups LionIake (talk) 15:01, 14 October 2018 (UTC)
- SOLVED: I found what caused this! I had a rule in my .htaccess which removed index.php from the URL. This caused mediawiki to get confused and stopped working. Disabling that in my .htaccess solved the problem! LionIake (talk) 15:39, 14 October 2018 (UTC)
Images are not working on my Installation of MediaWiki
Hi, I installed media wiki 1.31.1 on my server using Softaculous. When installation was complete and I started to set up my page, no images, including the default logo were displaying.
I removed the installation, database, and all files. I re-tried installing manually by downloading from your website, uploaded, extracted the files, set up a new database, and installation was successful. However, I am still having the same problems.
I do not understand what's going on as I've used previous versions of MediaWiki on my server and not had this problem. Can you please provide some assistance?
The URL to my wiki is https://bible.elgrandoc.uk 94.66.56.109 (talk) 11:44, 13 October 2018 (UTC)
- "We can’t connect to the server at bible.elgrandoc.uk."
- Manual:Errors and symptoms#The wiki appears without styles applied and images are missing Malyacko (talk) 21:06, 13 October 2018 (UTC)
- I have the same problem (Edited the info as it is not relevant anymore) Loizbec (talk) 17:16, 21 October 2018 (UTC)
- The error seems to come from the use of "srcsets". On my instance instead of generating a 1.5x src (in src set) it generates a 1,5x src, which is understood by the browser as a 1 and another set which contains 5x, etc. I tried to put my instance in English but it does not seem to solve the problem…
<img alt="Logo-rg.png" src="[myserver]/images/thumb/Logo-rg.png/64px-Logo-rg.png" srcset="[myserver]/images/thumb/Logo-rg.png/96px-Logo-rg.png 1,5x, [myserver]/images/thumb/Logo-rg.png/128px-Logo-rg.png 2x" width="64" height="64">Loizbec (talk) 17:55, 21 October 2018 (UTC)- That does come from the srcsets… I have not solved it (as it should not be a problem), but I have contained the problem by setting
$wgResponsiveImages = false;in LocalSettings.php. --Loizbec (talk) 18:01, 21 October 2018 (UTC)
- That does come from the srcsets… I have not solved it (as it should not be a problem), but I have contained the problem by setting
- The problem about srcsets is a known one. See Manual:Errors and symptoms#Image Thumbnails not working and/or appearing Ciencia Al Poder (talk) 09:22, 22 October 2018 (UTC)
- Thanks a lot for mentioning the insight. Now I can improve my almost “solution” to the problem :)
(a proper solution would be not having to alter the locale, to install the system). - Since it is an expected error when upgrading to 1.31, I would tend to think that it would be a good idea to point to that error in the upgrading manual as it would probably save a lot of time to some people (at least 2 only in this page would have saved hours…). It would also be useful in the installation guide, I'm not sure whether the default localsettings/installation script do that. I don't have the editing rights to modify those pages… Maybe you do know someone who does ;) Loizbec (talk) 11:04, 22 October 2018 (UTC)
- Thanks a lot for mentioning the insight. Now I can improve my almost “solution” to the problem :)
Wiki Structure is all broken after updating mediawiki from v1.27 to v1.31.1
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hello my wiki is all broke up after upgrading from v1.27 to v1.31.1. See the link for further information on this: https://i.imgur.com/l8ocBJf.png
Steps that I have taken:
Updated php5 to php7.0
Transfer my MySQL database over to my MariaDB
Updated all extensions to latest
Ran update.php from CLI
Website display like what you see in the screenshot that I have attached. I have tried disabling all extensions but the issue persists. Any ideas? 24.207.137.35 (talk) 07:51, 14 October 2018 (UTC)
- There is no structure broken but the page is displayed without styling. See Manual:Errors and symptoms#The wiki appears without styles applied and images are missing Malyacko (talk) 15:08, 14 October 2018 (UTC)
- I was able to resolve this. I had the Nginx file recreated and the path was pointed within the directory instead of /html 24.207.137.35 (talk) 18:50, 14 October 2018 (UTC)
Will Commons files that are about GFDL licensed extensions be affected due to the updated Commons policy? Will those be automatically dual-licensed tomorrow?
If not, then can we move them back to this wiki? Liuxinyu970226 (talk) 09:01, 14 October 2018 (UTC)
- "back" means they were here before? Also see Project:About#What MediaWiki.org is not . Malyacko (talk) 15:08, 14 October 2018 (UTC)
- Are there any GFDL licensed extensions? That's not an appropriate license for the extension
- (Also, this is more on topic for project:Current Issues Bawolff (talk) 05:41, 15 October 2018 (UTC)
- @Bawolff: the linked category already tells you four of them: Extension:AJAXPoll, Extension:AuthorComments, Extension:NewsBulletins, and Extension:RtConfig. Liuxinyu970226 (talk) 11:15, 15 October 2018 (UTC)
my znc was working fine on centos 7 i had to reboot the server and it wont start again
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I already reinstalled it and now it wont start this is what im getting all the time
[root@ns388373 ~]# systemctl enable znc.service
Created symlink from /etc/systemd/system/multi-user.target.wants/znc.service to /usr/lib/systemd/system/znc.service.
[root@ns388373 ~]# systemctl start znc.service
[root@ns388373 ~]# service znc status -l
Redirecting to /bin/systemctl status -l znc.service
● znc.service - ZNC, an advanced IRC bouncer
Loaded: loaded (/usr/lib/systemd/system/znc.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Sun 2018-10-14 17:10:29 CEST; 3s ago
Process: 30061 ExecStart=/usr/bin/znc -f (code=exited, status=1/FAILURE)
Main PID: 30061 (code=exited, status=1/FAILURE)
Oct 14 17:10:29 ns388373.ip-176-31-101.eu systemd[1]: Started ZNC, an advanced IRC bouncer.
Oct 14 17:10:29 ns388373.ip-176-31-101.eu systemd[1]: Starting ZNC, an advanced IRC bouncer...
Oct 14 17:10:29 ns388373.ip-176-31-101.eu systemd[1]: znc.service: main process exited, code=exited, status=1/FAILURE
Oct 14 17:10:29 ns388373.ip-176-31-101.eu systemd[1]: Unit znc.service entered failed state.
Oct 14 17:10:29 ns388373.ip-176-31-101.eu systemd[1]: znc.service failed. 84.246.203.101 (talk) 15:13, 14 October 2018 (UTC)
- What is
znc? 星耀晨曦 (talk) 15:55, 14 October 2018 (UTC) - This is a support forum for MediaWiki. We can't help you with your irc bouncer setup. Bawolff (talk) 05:37, 15 October 2018 (UTC)
Author and source on media viewer
I have the mediaviewer / multimediaviewer.
On Mediawiki help pages, when I click on image at the bottom of the lightbox it shows the description and below it shows the author name and source. But on the Mediawiki installation shows the description and below the link 'View author information' instead author name and source.
How to show the author and source on lightbox? Thanks Peh2000 (talk) 15:19, 14 October 2018 (UTC)
- It basically screen scrapes and assumes your site has the same html structure as Commons. See https://commons.wikimedia.org/wiki/Commons:Machine-readable_data and https://www.mediawiki.org/wiki/Extension:CommonsMetadata (You also need to install the CommonsMetadata extension for this to work) Bawolff (talk) 05:40, 15 October 2018 (UTC)
unable to log in
Okay...corrected cookies. Why am I nowt able to log in or why does it say user email not recognized. Should I cancel my donation I just made????? 104.238.38.232 (talk) 02:46, 15 October 2018 (UTC)
- What website are you talking about?
- MediaWiki does not ask for an email during the login process, so if your email was not recognized it is probably not a mediawiki site you are logging into. Bawolff (talk) 05:33, 15 October 2018 (UTC)
Installing a Farm with Symlinks - PHPVersionCheck.php not found
Hey all,
im trying to install a farm via the Symlinks method. I had a look on the Farming Articles (tbh it is a mess) and also found the https://sharkysoft.com/wiki/how_to_configure_multiple_MediaWiki_instances_on_a_single_host .
I have a SLES 12 and since i symlinked the Directory "/srv/www/htdocs/wiki" with all the stuff of my MediaWiki Installation from "/opt/MediaWiki/". I dont know why but it says:
[Mon Oct 15 11:58:08.956570 2018] [:error] [pid 2027] [client 10.111.93.194:56524] PHP Warning: require_once(/opt/mediawiki/../includes/PHPVersionCheck.php): failed to open stream: No such file or directory in /opt/mediawiki/index.php on line 27
[Mon Oct 15 11:58:08.956668 2018] [:error] [pid 2027] [client 10.111.93.194:56524] PHP Fatal error: require_once(): Failed opening required '/opt/mediawiki/../includes/PHPVersionCheck.php' (include_path='.:/usr/share/php7:/usr/share/php7/PEAR') in /opt/mediawiki/index.php on line 27
I tryed to add the path to the php.ini with the include_path but it gave me the "opt/MediaWiki/opt/mediawiki". -> No luck.
I tryed to copy the whole "/includes" directoy, instead of symlinking, but it also says it will not find the PHPVersionCheck.php
User and Group are wwwrun / WWW so this should not be the Problem.
What am I missing / overseeing ?
Best regards and thanks in advice ! Bidesclown (talk) 10:29, 15 October 2018 (UTC)
- Hey all,
- I found something:
- as I edited the index.php of "/opt/MediaWiki/" on line 27 from "require_once dirname( __FILE__ ) . '/../includes/PHPVersionCheck.php';" to "require_once dirname( __FILE__ ) . '/includes/PHPVersionCheck.php';" and line 39 from "require dirname( __DIR__ ) . '/includes/WebStart.php';" to "require dirname( __DIR__ ) . '/mediawiki/includes/WebStart.php';" I got rid of these Errors.
- But now it says in the Error-Log that I already declared "wfInstallerMain();" on Line 41:
PHP Fatal error: Cannot redeclare wfInstallerMain() (previously declared in /opt/mediawiki/index.php:44) in /opt/mediawiki/mw-config/overrides/index.php on line 41- Should I start over with a fresh Server or what are your advice ?
- Best regards! Bidesclown (talk) 13:03, 15 October 2018 (UTC)
- Something seems very screwed up here. I think you somehow symlinked to mw-config instead of the mediawiki directory maybe? Its as if you somehow switched mediawiki/index.php with mediawiki/mediawiki-config/index.php Bawolff (talk) 01:58, 17 October 2018 (UTC)
Subcategories help
Hi, I read the Help:Categories support and I tried but I don't understand how to create subcategories... Anyone who uses them could explain it to me?
I just need some parent categories and then many subcategories for each parent category.
Also, if you can answer this question: Is it possible to have different subcategories with same name? Its parent category would be different but the name would be the same.
Thanks Peh2000 (talk) 17:02, 15 October 2018 (UTC)
- Hierarchy is defined from the child categories. I mean, on a category, you define what are the parent categories of that category, but not the child ones. Child categories appear when they specify the current category as one of their parents.
- Given that, there's no way you can have different (sub)categories with the same name. Ciencia Al Poder (talk) 09:17, 16 October 2018 (UTC)
Category stays empty
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Dear All,
I have another problem pretty similar to this one:
here there is a template intro. I employed it e.g. here with the argument value 2.4. It produces a flag and a link to Category:Intro/2.4 (that should in the end be hidden).
Why does Category:Intro/2.4 remain empty?
Thank you in advance for your help. Ciciban (talk) 17:06, 15 October 2018 (UTC)
- Categories will be updated when your remaining jobs are completed.
- See RunJobs.php. AhmadF.Cheema (talk) 17:13, 15 October 2018 (UTC)
- I have been having this problem for years, running the jobs does not solve the problem, setting $wgRunJobsAsync to false doesn't solve the problem, truncating the jobs table doesn't solve the problem, and running maintenance/refreshLinks.php not only doesn't help, it unlists articles that were already correctly listed on category pages, making the problem worse.
- I'm dealing with that right now and none of the advice works for it. 1.27, 1.29, 1.30, 1.31, doesn't matter 192.69.65.16 (talk) 22:39, 15 October 2018 (UTC)
- in fact the only thing that DOES work is to stop applying categories via templates and write them manually into every page, which defeats a pretty big part of the reason why we want to use MW at all.
- we're still on MySQL, not MariaDB, and probably won't ever get actual support for this issue. PHP 7.0, ubuntu 16.04 and 18.04, doesn't matter. wikimedia left us in the dirt 192.69.65.16 (talk) 22:42, 15 October 2018 (UTC)
- If refreshLinks.php doesn't work, then you have a problem with one of the extensions, that's causing errors when parsing the categories and inserting them in the tracking tables. Disable all extensions and try again. Manual:How to debug gives hints about how to see error messages that may normally be hidden for security reasons on a production server Ciencia Al Poder (talk) 09:13, 16 October 2018 (UTC)
- > we're still on MySQL, not MariaDB, and probably won't ever get actual support for this issue. PHP 7.0, ubuntu 16.04 and 18.04, doesn't matter. wikimedia left us in the dirt
- MySQL is still supported, and what you are describing does not sound like a db issue, so I doubt its related to your use of mysql.
- You should check your php error log of course to see if there are any errors in it. You should also run the runJobs.php maintenance script, and see what it outputs, if there is an error it will likely output what it is
- > truncating the jobs table doesn't solve the problem
- Deleting the jobs table definitely is not going to solve the problem. It might create the problem, but its not going to solve it.
- > $wgRunJobsAsync to false doesn't solve the problem
- This can sometimes help, depending on what the root cause is. Even if it did help, it won't help immediately unless you clear the backlog by running runJobs.php.
- As something to test, try putting the following in the bottom of LocalSettings.php
$wgJobRunRate = 25; $wgRunJobsAsync = false;
- This will slow your wiki down quite a bit, so its more just something to try in order to debug. It also may not take affect immediately, so you might have to wait a couple edits before it works (Say about 35 edits). Bawolff (talk) 01:52, 17 October 2018 (UTC)
- In our wiki we could solve the problem by running RefreshLinks.php by hand – shouldn't that run regularly by default?
Yours, Ciciban (talk) 11:50, 19 October 2018 (UTC) - This is handled automatically by the Job queue. By default, it may take several page loads to populate the category, depending on the number of pending jobs. The recommended way is to run runJobs.php in a cron job or service. Ciencia Al Poder (talk) 16:11, 19 October 2018 (UTC)
- Thanks @user:Ciencia Al Poder – Ciciban (talk) 17:07, 19 October 2018 (UTC)
Extension VisualEditor
GERMAN
Im MediaWiki 1.31.1 ist die Erweiterung "VisualEditor" installiert und durch den Eintrag ...
wfLoadExtension( 'VisualEditor' );
... in der Datei LocalSettings.php aktiviert worden.
Beim ersten Test wurde auch die Erweiterung als Editor aktiviert; nur beim Einlesen eines Seiten-Inhalts gab es Probleme. Seit dem wird der Editor nicht mehr geladen.
Kann jemand mir mitteilen, wie der Ediror wieder aktiviert werden kann?
Auf der Webseite ist kein Button vorhanden, mit dem der Editor wieder aktiviert oder geladen werden kann.
ENGLISH
In the MediaWiki 1.31.1 the extension "VisualEditor" is installed and by the entry ...
wfLoadExtension ('VisualEditor');
... were activated in the file LocalSettings.php.
As a first test, the extension was activated as an editor; only when redeeming a page content there were problems. Since the publisher stopped loading.
Can someone be active with me again, like the Ediror?
There is no button on the website, with the editor you can also activate this entry. Benn2003 (talk) 22:46, 15 October 2018 (UTC)
Localizing individual pages
Hey. IIRC, I read somewhere that there's a possibility of localizing pages in accordance to the language that one selects in their special preferences? If I am not wrong, could someone, please, kindly guide me the right way? As in, where would I need to add the code so that the page changes its name in accordance to said preferences? I am thinking on the page itself, but what exactly do I need to add/include? Thanks! 109.103.213.222 (talk) 09:01, 16 October 2018 (UTC)
- Extension:Translate can be a convenient way. Ciencia Al Poder (talk) 09:21, 16 October 2018 (UTC)
- Thanks. I'll look into it and come back if I don't come across clear with it. 109.103.213.222 (talk) 14:31, 16 October 2018 (UTC)
File deletion error and update.php error
I would like to delete a file from my wiki but it returned a database error. The following is the error message:
[f98fc183ac6a788dc008faf4] /zh/index.php?title=%E6%AA%94%E6%A1%88:KCIcon.png&action=delete Wikimedia\Rdbms\DBTransactionError from line 1297 of /var/www/public_html/zh/includes/libs/rdbms/loadbalancer/LoadBalancer.php: Explicit transaction still active. A caller may have caught an error.
Backtrace:
#0 [internal function]: Wikimedia\Rdbms\LoadBalancer->Wikimedia\Rdbms\{closure}(Wikimedia\Rdbms\DatabaseMysqli)
#1 /var/www/public_html/zh/includes/libs/rdbms/loadbalancer/LoadBalancer.php(1653): call_user_func_array(Closure, array)
#2 /var/www/public_html/zh/includes/libs/rdbms/loadbalancer/LoadBalancer.php(1320): Wikimedia\Rdbms\LoadBalancer->forEachOpenMasterConnection(Closure)
#3 [internal function]: Wikimedia\Rdbms\LoadBalancer->approveMasterChanges(array)
#4 /var/www/public_html/zh/includes/libs/rdbms/lbfactory/LBFactory.php(199): call_user_func_array(array, array)
#5 [internal function]: Wikimedia\Rdbms\LBFactory->Wikimedia\Rdbms\{closure}(Wikimedia\Rdbms\LoadBalancer, string, array)
#6 /var/www/public_html/zh/includes/libs/rdbms/lbfactory/LBFactorySimple.php(156): call_user_func_array(Closure, array)
#7 /var/www/public_html/zh/includes/libs/rdbms/lbfactory/LBFactory.php(201): Wikimedia\Rdbms\LBFactorySimple->forEachLB(Closure, array)
#8 /var/www/public_html/zh/includes/libs/rdbms/lbfactory/LBFactory.php(239): Wikimedia\Rdbms\LBFactory->forEachLBCallMethod(string, array)
#9 /var/www/public_html/zh/includes/MediaWiki.php(601): Wikimedia\Rdbms\LBFactory->commitMasterChanges(string, array)
#10 /var/www/public_html/zh/includes/MediaWiki.php(575): MediaWiki::preOutputCommit(RequestContext, NULL)
#11 /var/www/public_html/zh/includes/MediaWiki.php(529): MediaWiki->doPreOutputCommit()
#12 /var/www/public_html/zh/index.php(42): MediaWiki->run()
#13 {main}
Then I tried to run the update.php, yet it returned another error:
PHP Fatal error: Cannot declare class FakeMaintenance, because the name is already in use in /var/www/public_html/hub/maintenance/Maintenance.php on line 1634
What should I do? Thanks in advance for the advice!
Sys. Spec:
- Apache/2.4.29 (Ubuntu)
- PHP 7.2.11-2
- MYSQL Ver 14.14 Distrib 5.7.23
- Mediawiki 1.31.1 Eagle (talk) 14:24, 16 October 2018 (UTC)
- Some of your code points to /var/www/public_html/zh but other to /var/www/public_html/hub
- Looks like you have a mix of installations (probably with incompatible versions of code) Ciencia Al Poder (talk) 09:08, 17 October 2018 (UTC)
- In a wiki farm/multi-wiki set up, all running the same version of Mediawiki, with separate databases, what would cause this error? 75.164.212.78 (talk) 10:04, 15 October 2019 (UTC)
- Symlinking the extensions directory, apparently, instead of copying it 75.164.212.78 (talk) 10:17, 15 October 2019 (UTC)
Sidebar
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Please look at the sidebar; there are links such as 'mw-download', 'mw-extensions', 'blog-text', 'mw-contribute', etc. Vlad5250 (talk) 06:37, 17 October 2018 (UTC)
- @AKlapper (WMF) AhmadF.Cheema (talk) 09:21, 17 October 2018 (UTC)
- See https://phabricator.wikimedia.org/T207288 and How to report a bug AKlapper (WMF) (talk) 17:33, 17 October 2018 (UTC)
Errors on Specifications Pages
Hi,
When accessing the Specifications pages, I see the following type of errors
https://www.limspec.com/index.php?title=Specification_021102_System_architecture
Internal error
From Limspec Wiki
Jump to: navigation, search
[03cf6304] /index.php?title=Specification_021102_System_architecture Exception from line 167 of /home/www/limspec.com/extensions/Scribunto/engines/LuaStandalone/LuaStandaloneEngine.php: The lua binary (/home/www/limspec.com/extensions/Scribunto/engines/LuaStandalone/binaries/lua5_1_5_linux_64_generic/lua) is not executable. 196.30.235.104 (talk) 09:53, 17 October 2018 (UTC)
- "Execute permissions for the Lua binaries bundled with" Extension:Scribunto need to be set. See Extension:Scribunto#Installation. AhmadF.Cheema (talk) 11:52, 17 October 2018 (UTC)
Problem with Umlaut after Upgrade to MW_1.31.1
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hi,
after upgrading from 1.26.3 to 1.31.1 links to files with umlauts in the filename are broken and I can't call up the file even though it is present in the images-directory.
When the link to that specific file is in a page whose name also contains an umlaut the page name is also distorted in the 404 error message. For example, an ü is shown as %C%BC.
My wiki's language is German, and the following are set in LocalSettings.php:
- $wgShellLocale = "de_DE.utf8";
- $wgLanguageCode = "de";
The following software is installed:
- PHP: 7.2.10-he.0 (apache2handler)
- MySQL: 5.6.37-82.2-log
- ICU: 52.1
MW_1.26.3 ran with PHP 5.6 and everything worked fine.
Any ideas? Alfredo1066 (talk) 13:16, 17 October 2018 (UTC)
- Its probably not relavent anymore, but older versions of php had lots of problems with this on windows, so is your server on windows?
- > For example, an ü is shown as %C%BC.
- This is very weird. %C3%BC is how to correctly encode a ü. I'm not sure how the 3 could be stripped. Maybe check your rewrite rules, and if you have any weird apache modules installed that do weird stuff.
- If available, please post a link to your site. Bawolff (talk) 21:29, 17 October 2018 (UTC)
- Thanks for your reply. No, the wiki is not on Windows, it runs on a unix-environment. The wiki is private, so unfortunately I can't post a link.
- My feeling is that this is more of a problem with the database. In LocalSettings.php the following is set:
- $wgDBprefix = "";
- $wgDBTableOptions = "ENGINE=MyISAM, DEFAULT CHARSET=binary";
- $wgDBmysql5 = false;
- Collation in the database is binary except for the searchindex, where it is latin1_german2_ci.
- As far as I know, latin1 is a subset of utf8, but could this inconsistency be the source of my troubles? And if so, how do I get about it?
- Or is the engine (myisam) causing problems. As of MW_1.30 the default engine is now InnoDB. Should I change this too? Alfredo1066 (talk) 10:54, 19 October 2018 (UTC)
- So changing the charset in a DB can cause encoding problem (Usually binary is the best, it doesn't really matter whether its binary or utf8 though, just if you convert between one or the other its easy to do it wrong and cause others. Normally though, if its a conversion isse though, usually its not quite what you describe, but would be the utf8 bytes being convertered to what the utf8 points for the latin1 code points equivalent, which isn't exactly what you describe.
- But if you want to check things, you could maybe look at what img_name field in the image table and page_title in your page table in your db looks like to see if its correct.
- My main guess would really be something in the webserver and/or some sort of proxy server issue.
- MyISAM vs InnoDB shouldn't affect this. InnoDB is reccomended though. It has better performance under load, and its more reliable (If your computer looses power or whatever). Bawolff (talk) 21:30, 19 October 2018 (UTC)
- If the searchindex table is the only table, which is not binary, then adjusting this from latin1 to utf8 should be fairly simple:
- You can TRUNCATE the table with this MySQL query: TRUNCATE searchindex;
- Then convert the empty table to utf8: ALTER TABLE searchindex CONVERT TO CHARACTER SET utf8;
- Finally run the maintenance script rebuildtextindex.php to fill it again.
- (I think however that this should not influence the umlaut problem you are having.) 2001:16B8:10C2:3B00:39BB:A6CD:552A:AD56 (talk) 04:47, 20 October 2018 (UTC)
- Thank you both for helping out.
- It turned out that the problem arose because of Filezilla using the wrong charset. Once I forced Filezilla to use utf8 when communicating with my server (the wiki resides on a shared host), I was able to call up the file with the umlaut in its name. So, using utf8, I downloaded the whole of the image-directory of mw_1.26.3 and then uploaded all files into the new image-directory of mw_1.31.1.
- I also cleaned the searchindex table by downloading it and then manually changing (notepad++) funny chars into umlauts. But, as you both suggested, this had no effect on the principal problem.
- There is one weird behaviour still present: I get randomly logged out when editing. Initially I thought it related to the problem of this query, but not so. Alfredo1066 (talk) 13:16, 23 October 2018 (UTC)
Display usage of parameters of a template
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hi. Is there a way to display how many times a parameter of a specific template has been used? Say I want to find the usage of |plant= of Template:Botanic and then display this count somewhere anywhere. Is it possible to do that without, preferably, using DPL? Since I'd like to use it numerous times on the same page and I've read that DPL would considerably speed down the server. 109.103.213.222 (talk) 15:39, 17 October 2018 (UTC)
- You could make the template add the page to a category when that parameter is filled. Then use the PAGESINCATEGORY magic word to get the count.
- If you don't want this category to show up on pages, you can mark it as hidden: Help:Categories#Hidden_categories Ciencia Al Poder (talk) 09:32, 18 October 2018 (UTC)
- Sure, that is a workaround, but the thing is I would need to physically display that count somewhere and have it update itself each and every time the parameter is used. 109.103.213.222 (talk) 10:26, 18 October 2018 (UTC)
- Ah, sorry, I misread your answer. Yes, that would be a better workaround, but, if it is somewhat possible, I'd like a direct solution and not a workaround... Otherwise it would mean much too much modification on the template. 109.103.213.222 (talk) 10:28, 18 October 2018 (UTC)
- Plus, pagesincat is expensive and I'd need to make heavy use of it. 109.103.213.222 (talk) 10:33, 18 October 2018 (UTC)
- It's marked as expensive, but this is the less expensive solution so far. Looking at the category table to see how many pages are on that category is very cheap compared to fetch and parse the entire wikitext of each page to find out if a parameter is used on a template (which is what DPL does) Ciencia Al Poder (talk) 09:23, 19 October 2018 (UTC)
- I had thought that an available solution already existed, that's why I asked. Anyway, thanks! I'll look into it. 109.103.213.222 (talk) 09:31, 19 October 2018 (UTC)
Referencing sources
Hi,
I am the first person who wrotthis article about Tsunami in Thai Wikipediae explanation of Tsunami in Thai, a few days after the Dec 26, 2005 Tsunami hit southern Thailand for the first time in history. My original articla was published here: http://www.vcharkarn.com/varticle/267. It was shared and spread to hundred of thousand hits in the first few weeks. Unfortunately, Thai people are often not mindful about giving credit. So it's probably that the person woho wrote it here did not know the source of it since it was published a long time ago. As I was searching my old articles to send to friends, I came across คลี่นสึนามิ here with the first paragraph copied from my article almost word by word. The authors had incorporated many more sources with bibliography, albeit omitting my article. I tried to create and account to add on referencing to my original article but am too inadequate to do it myself.
Regards,
Puangroi Khamriang Puangroi (talk) 02:51, 18 October 2018 (UTC)
- This site is not wikipedia.org. For help with English Wikipedia, see Wikipedia:Teahouse and for Thai Wikipedia, see วิกิพีเดีย:แผนกช่วยเหลือ. AhmadF.Cheema (talk) 08:57, 18 October 2018 (UTC)
Undefined index: UseWindowsAuth in DatabaseMssql.php
Hi,
I try to install Media Wiki on IIS and Microsoft SQL Serveur 2012.
During the wiki setup, at the DB connexion step, I have this error :
Notice : Undefined index: UseWindowsAuth in [My IIS web site folder ] \includes\libs\rdbms\database\DatabaseMssql.php
Same error with a legacy version (1.30.1)
Same error with Windows Authentication or SQL Authentication (both account have suffisant privileges on MSSQL)
Tanks in advance
Kind regards
Peter Grant 193.8.18.1 (talk) 09:34, 18 October 2018 (UTC)
- A PHP Notice is not in itself an error, so this might not be a problem in itself. PHP Notices should be hidden from the output. See https://stackoverflow.com/questions/2867057/how-do-i-turn-off-php-notices for how to turn them off
- However, MS SQL support is very buggy. It's very recommended to not use it, and use mysql instead Ciencia Al Poder (talk) 09:34, 19 October 2018 (UTC)
Finetuning
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Dear All,
I am experimenting with DPL.
As a means I focussed on a template:missing_information on my wiki.
- It produces an entry in category:missing_information
- It has an optional (if that's important) argument user for the signature.
When I apply {{#dpl: category=Missing information |include={Missing information}:user }} I get a complete list of the category entries, but the value of user is delivered only for the very first category entry.
I am shure there is a way to deliver the user argument for all category entries. What's the solution?
Thank you in advance.
Yours, Ciciban (talk) 11:44, 19 October 2018 (UTC)
- Works fine. I did not recognize, that in all pages except for one the template was included by a certain other template.
- Sorry for this no-load.
- Ciciban (talk) 11:57, 19 October 2018 (UTC)
How to create Mediawiki DAILY backup from Ubuntu server to NAS server
Hello,
I have installed my mediawiki in ubuntu server 18.04 lts with Mysql database, and now I want to setup DAILY backup for my medawiki to my NAS server .
Can some help help me out in providing proper procedure to create a backup.
Thanking you in advance 90.187.42.65 (talk) 13:01, 19 October 2018 (UTC)
Recent Changes missing a lot of edits
Hello,
We have a problem on our wiki where the Recent Changes are missing a lot of edits. The edits do show up in the user contributions and the logs. I think it happened after we moved to a different server. We already tried upgrading to the newest version of Mediawiki, running rebuildrecentchanges.php, disabling some of the extensions, including Moderation, but nothing helped. I hope somebody can find whatever the problem is, because it's really annoying.
URL: https://www.khunchainedx.com
Mediawiki Version 1.31.1
PHP 7.2.8 (fpm-fcgi) 84.24.28.175 (talk) 14:24, 19 October 2018 (UTC)
- On your sitenotice I see the message Due to recent vandalism, all edits performed by IPs and new users will be reviewed before being published. This means it might take some time for your edit to show up., but I don't see any moderation-related extension listed on Special:Version (which would be a good candidate of causing this problem). Have you uninstalled/disabled it recently?
- I've looked through the api, and indeed there are edits missing. It would be good to set up log groups for exception and error, and see if something comes up when saving an edit that doesn't show up in recent changes. Ciencia Al Poder (talk) 09:37, 22 October 2018 (UTC)
- Yeah, we disabled Moderation to see if it was the problem, but I haven't removed the site notice yet. I'll try the log groups. 84.24.28.175 (talk) 12:19, 22 October 2018 (UTC)
- We fixed it! Apparently "ignore_user_abort()" was disabled due to moving to the new server. Thanks for your help. 84.24.28.175 (talk) 13:58, 22 October 2018 (UTC)
Extension:DynamicPageList_(Wikimedia): include template parameter values
Dear All,
Does the old Extension:DynamicPageList_(Wikimedia) support the inclusion of template parameter values? How do I have to call them?
Thank you in advance!
Yours, Ciciban (talk) 14:29, 19 October 2018 (UTC)
- E.g. how would the following code for Extension:DynamicPageList3 translate into Extension:DynamicPageList (Wikimedia)?
{{#dpl: category=Missing information |include={Missing information}:user }}- Thank you in advance!
Yours, Ciciban (talk) 04:47, 22 October 2018 (UTC)
Problems with downloading .asc files
My Problem:
I have uploaded a number of .asc files, I can see the files on my server and view their content. But when I try to download them from the wiki I get a "404 - File or directory not found" error. If I upload the same files but name them with a .txt at the end, then it is possible to download the files and they have the correct content.
But my problem is that I would like to upload .asc files and be able to download them from the wiki, normally.
After many hours of testing anything I can think of, I am asking for help from any kind soul. Things that I have tried include:
I have tried to define the .asc as text/plain and application/pgp in the mime files.
I have permitted the .asc files.
I have followed the guides for file uploading Manual:Configuring file uploads.
I have disabled fancy/short urls.
I am running:
Phpp 7.1.6
Mediawiki 1.28.2
Mysql 5.0.12
Thanks in advance. Wlet (talk) 21:36, 19 October 2018 (UTC)
- On an unrelated note, MediaWiki 1.28.2 is an old and unsupported version which now has security issues. Please upgrade. Malyacko (talk) 07:45, 22 October 2018 (UTC)
- That's a problem with the webserver, not MediaWiki, apparently. Maybe the server is configure to only serve JPG, PNG, GIF files and similar, and other files are simply banned.
- Looking at the webserver error logs may give you some hints. Ciencia Al Poder (talk) 09:22, 26 October 2018 (UTC)
mysql access refused after changing hostname
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
media wiki 1.15.5. I changed settings in localsettings.php, I can access mysql as root and changed permission on database for user and hostname. So on the terminal everything seems ok settings have been updated what gives? 90.58.97.143 (talk) 05:51, 20 October 2018 (UTC)
- MediaWiki 1.15 is an ancient and insecure version. Please update it to MediaWiki 1.31 once you got database access running again!
- What version of MySQL is the new server using?
- Have you only changed the hostname? What is the new hostname you are using? Are database user, database name and password correct?
- What is the error message you are getting? 2001:16B8:10C2:3B00:451A:4207:A38D:C691 (talk) 10:02, 20 October 2018 (UTC)
-Mysql version 5.0.67I have changed my dns server, now running on a different machineit used to be hosted on the same machine as the wiki, and it was something.local.(old Hname)I know have changed both the ip and the hostname to something.esle (newHName)- the message is as follows:connecting from another machine on the network
- (Can't contact the database server: Access denied for user 'xxxx'@'something.else' (using password: YES) (newipaddress))
- Rechecked the user, server and password and yes, they are in order Vincemdwk (talk) 11:27, 20 October 2018 (UTC)
- FIXED IT, it was a password problem
- Somehow my password had changed from 'whatever' to 41 hexidecimal format and I had to switch it back to what it was
- Mysql! Vincemdwk (talk) 12:03, 20 October 2018 (UTC)
Preview on social networks
When sharing a page on social networks (I tried with Twitter), it is shared as a plain URL. Usually those networks transform the link into a square with image and text, but it seems they can't retreive that in a wiki page.
Any solution? Thanks Peh2000 (talk) 10:44, 21 October 2018 (UTC)
- See Project:Support desk/Flow/2018/04#h-How_to_force_social_media_to_show_prewiev_of_my_wiki?-2018-04-29T08:21:00.000Z. AhmadF.Cheema (talk) 14:35, 21 October 2018 (UTC)
Making interwiki links the default for a page or section
Hello,
In the WikiJournal sections on Wikiversity, most links are intended to point to Wikipedia (example) so have to repeatedly use the [[w:link|link]] interwikilink format rather than just [[link]]. Is there a way to make links in certain pages, or page sections point to wikipedia by default? Similarly, the list of suggested links from citoid is just within wikivversity. Is it posible to populate this list with wikipedia hits instead when editing specified pages?
Thanks in advance for any ideas! T.Shafee(Evo﹠Evo)talk 12:08, 22 October 2018 (UTC)
- Since no one answered, I think the only way to do this would be through a template, or for shorter use, the equivalent
[[w:link|]]will also work. AhmadF.Cheema (talk) 14:42, 23 October 2018 (UTC) - Hmm, I see what you mean but I think it ends up with a similar problem. The two situations that I'm trying to make easy are:
- Inexperienced editor uses VisualEditor to insert link to Wikipedia in WikiJournal article
- Section of wikimarkup copied directly from Wikipedia to WikiJournal, retaining links point to Wikipedia
- T.Shafee(Evo﹠Evo)talk 22:32, 23 October 2018 (UTC)
- You could make redirects to all those wikipedia pages. Though it wouldn't be clear that you're going to wikipedia until after you've clicked the link. 101.160.14.201 (talk) 07:31, 24 October 2018 (UTC)
- Hmm, interesting idea. I've not found how to make an inter-wiki redirect.
- However, there are often >100 such links per article (example), so making that many redirects would be quite a lot of work.
- Are there any LUA solutions? T.Shafee(Evo﹠Evo)talk 00:04, 26 October 2018 (UTC)
- I've managed to make a template that uses the string replace module to convert wikilinks to interwikilinks here:
- v:Template:Default_interwiki
- However it's not compatible with VisualEditor (everything appears within the template)
- Example here
- Is there any way to apply such a template by default to a page so that the template doesn't have to be explicitly called, or to get VisualEditor to 'ignore' a template? Possibly there's some solution based on <templatestyles>?
- Also ping user:TheDJ in case this is in your knowledge sphere.
- Thanks again for all the ideas! T.Shafee(Evo﹠Evo)talk 04:51, 26 October 2018 (UTC)
- Aha - another step forward - recursive transclusion of {{#String:replace}} means that a single substitution of the v:Template:Default_interwiki template will change all links in a page. T.Shafee(Evo﹠Evo)talk 23:03, 30 October 2018 (UTC)
How to create a View Only profile in Private Wiki? Russian
I set up a private Wiki, where only logged in users can view and edit pages.
Is it possible to create a generic login with view only permissions, so that more users could view the wiki with same login? 91.153.215.72 (talk) 12:45, 22 October 2018 (UTC)
- If I understand you correctly, you can do this by restricting editing to a special user group and allow everyone else to be able to read the Wiki. See Manual:Preventing access#Restrict editing. AhmadF.Cheema (talk) 13:21, 22 October 2018 (UTC)
- Ok, so I create a group for editors, and a group for view only, and both need to be logged in in order to view the wiki, right?
- I found out that I can modify users groups one by one, but is it possible to modify more at once? 91.153.215.72 (talk) 14:45, 22 October 2018 (UTC)
- Probably don't need to set up a separate group for viewing, it should be there by default.
- Haven't tested it, but the following should work:Regarding the second question, I don't think its natively possible i.e. without using some script or coding. AhmadF.Cheema (talk) 17:19, 22 October 2018 (UTC)
# Disable reading by anonymous users $wgGroupPermissions['*']['read'] = false; # Disable anonymous editing $wgGroupPermissions['*']['edit'] = false; # Prevent new user registrations except by sysops $wgGroupPermissions['*']['createaccount'] = false; # Restrict editing by all but sysop and one other user group ("editors") $wgGroupPermissions['user']['edit'] = false; $wgGroupPermissions['sysop']['edit'] = true; $wgGroupPermissions['editors']['edit'] = true;
- Thank you, I'll try this! 91.153.215.72 (talk) 08:03, 23 October 2018 (UTC)
- Just another thought on this: how can I restrict only one specific user to Read Only access? 85.76.139.137 (talk) 04:46, 25 October 2018 (UTC)
- One way would be to create a new user group with that one specific user, OR the simpler solution would probably be to block the user from editing. See Help:Blocking users. AhmadF.Cheema (talk) 09:50, 25 October 2018 (UTC)
- Yes, thank you, blocking the user worked fine! 85.76.141.223 (talk) 13:52, 25 October 2018 (UTC)
- Ohh, too early to celebrate... As I tested the blocked user from the same IP address, it automatically blocked my rights as well. So I guess I need to do a group and assign that one specific user to the group. 85.76.141.223 (talk) 14:08, 25 October 2018 (UTC)
- This shouldn't be an issue.
- You probably kept the option "Automatically block the last IP address used by this user, and any subsequent IP addresses they try to edit from" to its default checked state. Just uncheck that and it should be fine.
- For details, see Autoblock. AhmadF.Cheema (talk) 17:20, 25 October 2018 (UTC)
- Thank you, that did the trick! 85.76.141.223 (talk) 17:39, 25 October 2018 (UTC)
- Do this can't apply in Wikipedia ? 103.58.74.153 (talk) 19:38, 20 February 2022 (UTC)
DynamicPageList3: Arranging the results
Dear All,
I have a template constraint that can be called an indefinite nuber of times within a page. It has an unnamed, required Argument 1 for the name of the constraint and an optional argument default.
I want to make a list, where for every occurance of the template that has a default the pair (1,default) is shown.
My current code is
{{#dpl:
category=default
|include={constraint}:1,{constraint}:default
|secseparators= –
}}
which is inappropriate, because:
- it doesn't sort out occurances of constraint without default
- it doesn't deliver pairs (1,default), but, couriously enough, pairs of the sort (1,[all defaults on the complete page])
I could live with the first problem. But I would highly appreciate a solution for the second one.
Thank you in advance!
yours, Ciciban (talk) 14:28, 22 October 2018 (UTC)
Internal error when trying to create an account
Trying to create an account for the DFO World Wiki. When I give my desired username, PW, and captcha, I get a page titled "Internal error" with this red text in a red box: https://pastebin.com/jjASywVj
Sorry for the pastebin link, wiki thinks I'm spamming if I try to put the text in my post.
Any ideas? 2601:182:CA01:60A2:ACA3:F5AF:BD4D:B53A (talk) 23:04, 22 October 2018 (UTC)
- Sorry, here's the info I'm supposed to include.
- MediaWiki: 1.31.0 (0e7eb69)
- PHP: 7.0.32-0ubuntu0.16.04.1 (fpm-fcgi)
- MariaDB: 10.0.36-MariaDB-0ubuntu0.16.04.1
- And the URL is http://wiki.dfo-world.com 2601:182:CA01:60A2:ACA3:F5AF:BD4D:B53A (talk) 23:06, 22 October 2018 (UTC)
- The Extension:AntiSpoof being used on your Wiki, can you make sure that its version corresponds to your MediaWiki core's version? AhmadF.Cheema (talk) 00:25, 23 October 2018 (UTC)
- It says the extension version is (48ed1f8) and the license is "GPL-2.0-or-later"? Does that help? 2601:182:CA01:60A2:782A:17FE:644:F966 (talk) 00:42, 23 October 2018 (UTC)
- (this is OP i'm not sure why my mac address changed) 2601:182:CA01:60A2:782A:17FE:644:F966 (talk) 00:42, 23 October 2018 (UTC)
- Seems like T189560.
- Try running
composer update --no-devin "../extensions/AntiSpoof/". AhmadF.Cheema (talk) 02:44, 23 October 2018 (UTC)
passing variable dynamically to external data extention
Hi,
I'm using external data extention because I need to get data from a mysql table.
I use this code:
{{#get_db_data: db=database|from=table |limit=50 |order by=alias ASC |data=c1=column }}
I would like to add a where clause like this:
{{#get_db_data: db=database|from=table|where=alias like '%{{{1}}}%' |limit=50 |order by=alias ASC |data=c1=column }}
I would like to pass the variable ID with an input box (the input box extention does not work). Is that possibile? 83.103.62.77 (talk) 07:39, 23 October 2018 (UTC)
Error with ImagePreview after update
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I upgraded my Mediawiki Installation from 1.24 to 1.31.
After the update I see the message: "Fehler beim Erstellen des Vorschaubildes: Datei mit Abmessungen größer als 12,5 MP"
It means: the is an error at generating a preview image. The size of the image is larger than 12,5 MP
When I google around... the message is present in a lot of mediawiki installation around :)
An Example http://wiki.oevsv.at/index.php?title=Datei:Oe5eep_2.jpg
Could someone help me out? Mattes1002 (talk) 12:28, 23 October 2018 (UTC)
- I solved it!
- I installed imagemagick on my Ubuntu 18 with
- sudo apt install imagemagick-6-common
- and set imagemagick in the LocalSettings.php to
- $wgUseImageMagick = true;
- $wgImageMagickConvertCommand = "/usr/bin/convert"; Mattes1002 (talk) 13:04, 23 October 2018 (UTC)
- Glad to know that your issue was resolved! :) X-Savitar (talk) 13:18, 23 October 2018 (UTC)
- 3,456 * 5,184 = 17,915,904
- If on windows, use Irfanview (ctrl-R) to downsize your image. Alfredo1066 (talk) 13:21, 23 October 2018 (UTC)
- The Error occured in my installation with ImageMagick activated like described in LocalSettings.php.
- MediaWiki 1.29.1 and imagemagick 6.9.7.4 in Debian 9.12 87.78.22.207 (talk) 18:01, 23 August 2020 (UTC)
- Same here. I still get: "Fehler beim Erstellen des Vorschaubildes: Datei mit Abmessungen größer als 12,5 MP"
- my configuration is a follows:
- MediaWiki 1.35, Linux CentOS 7 (checked with hostnamectl), ImageMagick 6.9.11-29 (checked with /usr/bin/convert --version)
- $wgEnableUploads = true;
- $wgUseImageMagick = true;
- $wgMediaViewerOnClick = true;
- $wgImageMagickConvertCommand = "/usr/bin/convert"; 147.87.243.156 (talk) 09:35, 1 March 2021 (UTC)
- Solution / Lösung
- LocalSettings.php
- add $wgMaxImageArea / füge $wgMaxImageArea hinzu
- i. e. / z. B.
- $wgMaxImageArea = 2.5e7 ;
- Creates thumbnails of images up to 25 Megapixels. / Erzeugt Vorschaubilder von Bildern bis 25 Megapixels.
- https://www.mediawiki.org/wiki/Manual:$wgMaxImageArea
- https://www.mediawiki.org/wiki/Manual:$wgMaxImageArea/de Simpsonspedia.net (talk) 17:13, 21 December 2021 (UTC)
Issues with Visual Editor / Parsoid out of the blue? curl error: 7
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
So I'm running mediawiki 1.30 on a raspberry pi and my Visual Editor has been working for about 5 or 6 months with no issue and all of a sudden it went bad. Now I keep getting Curl Error: 7. This did begin one day when I had a bad backup happen I think so I'm wondering if something in my parsoid directory became corrupted or something.
This is what I get when I try to run parsoid from it's directory thru putty:
root@raspberrypi:/etc/parsoid# node bin/server.js
internal/modules/cjs/loader.js:141
throw e;
^
SyntaxError: Error parsing /etc/parsoid/node_modules/read-pkg-up/package.json: Unexpected number in JSON at position 2
at JSON.parse (<anonymous>)
at readPackage (internal/modules/cjs/loader.js:137:52)
at tryPackage (internal/modules/cjs/loader.js:147:13)
at Function.Module._findPath (internal/modules/cjs/loader.js:229:20)
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:546:25)
at Function.Module._load (internal/modules/cjs/loader.js:475:25)
at Module.require (internal/modules/cjs/loader.js:598:17)
at require (internal/modules/cjs/helpers.js:11:18)
at pkgUp (/etc/parsoid/node_modules/yargs/yargs.js:493:23)
at Object.Yargs.self._parseArgs (/etc/parsoid/node_modules/yargs/yargs.js:940:29)
at Object.get [as argv] (/etc/parsoid/node_modules/yargs/yargs.js:930:19)
at Master._getOptions (/etc/parsoid/node_modules/service-runner/lib/base_service.js:182:9)
at new BaseService (/etc/parsoid/node_modules/service-runner/lib/base_service.js:29:29)
at new Master (/etc/parsoid/node_modules/service-runner/lib/master.js:30:9)
at new ServiceRunner (/etc/parsoid/node_modules/service-runner/service-runner.js:32:26)
at Object.<anonymous> (/etc/parsoid/bin/server.js:6:1)
After running this command I can clearly see Parsoid is failing to run at startup too...
root@raspberrypi:~# systemctl list-units --type=service
UNIT LOAD ACTIVE SUB DESCRIPTION
alsa-restore.service loaded active exited Save/Restore Sound Card S
apache2.service loaded active running The Apache HTTP Server
● AutostartParsoid.service loaded failed failed Parsoid Service Autostart
avahi-daemon.service loaded active running Avahi mDNS/DNS-SD Stack
● bluetooth.service loaded failed failed Bluetooth service
console-setup.service loaded active exited Set console font and keym
cron.service loaded active running Regular background progra
dbus.service loaded active running D-Bus System Message Bus
● dhcpcd.service loaded failed failed dhcpcd on all interfaces
dphys-swapfile.service loaded active exited LSB: Autogenerate and use
fake-hwclock.service loaded active exited Restore / save the curren
getty@tty1.service loaded active running Getty on tty1
hciuart.service loaded active running Configure Bluetooth Modem
keyboard-setup.service loaded active exited Set the console keyboard
kmod-static-nodes.service loaded active exited Create list of required s
mariadb.service loaded active running MariaDB database server
networking.service loaded active exited Raise network interfaces
ntp.service loaded active running LSB: Start NTP daemon
raspi-config.service loaded active exited LSB: Switch to ondemand c
rc-local.service loaded active exited /etc/rc.local Compatibili
rsyslog.service loaded active running System Logging Service
ssh.service loaded active running OpenBSD Secure Shell serv
lines 1-23...skipping...
UNIT LOAD ACTIVE SUB DESCRIPTION
alsa-restore.service loaded active exited Save/Restore Sound Card State
apache2.service loaded active running The Apache HTTP Server
● AutostartParsoid.service loaded failed failed Parsoid Service Autostart
avahi-daemon.service loaded active running Avahi mDNS/DNS-SD Stack
● bluetooth.service loaded failed failed Bluetooth service
console-setup.service loaded active exited Set console font and keymap
cron.service loaded active running Regular background program processing daemon
dbus.service loaded active running D-Bus System Message Bus
● dhcpcd.service loaded failed failed dhcpcd on all interfaces
dphys-swapfile.service loaded active exited LSB: Autogenerate and use a swap file
fake-hwclock.service loaded active exited Restore / save the current clock
getty@tty1.service loaded active running Getty on tty1
hciuart.service loaded active running Configure Bluetooth Modems connected by UART
keyboard-setup.service loaded active exited Set the console keyboard layout
kmod-static-nodes.service loaded active exited Create list of required static device nodes for the current kernel
mariadb.service loaded active running MariaDB database server
networking.service loaded active exited Raise network interfaces
ntp.service loaded active running LSB: Start NTP daemon
raspi-config.service loaded active exited LSB: Switch to ondemand cpu governor (unless shift key is pressed)
rc-local.service loaded active exited /etc/rc.local Compatibility
rsyslog.service loaded active running System Logging Service
ssh.service loaded active running OpenBSD Secure Shell server
systemd-fsck-root.service loaded active exited File System Check on Root Device
systemd-fsck@dev-disk-by\x2dpartuuid-9b554424\x2d01.service loaded active exited File System Check on /dev/disk/by-partuuid/9b554424-01
systemd-journal-flush.service loaded active exited Flush Journal to Persistent Storage
systemd-journald.service loaded active running Journal Service
systemd-logind.service loaded active running Login Service
systemd-modules-load.service loaded active exited Load Kernel Modules
systemd-random-seed.service loaded active exited Load/Save Random Seed
systemd-remount-fs.service loaded active exited Remount Root and Kernel File Systems
systemd-sysctl.service loaded active exited Apply Kernel Variables
systemd-tmpfiles-setup-dev.service loaded active exited Create Static Device Nodes in /dev
systemd-tmpfiles-setup.service loaded active exited Create Volatile Files and Directories
systemd-udev-trigger.service loaded active exited udev Coldplug all Devices
systemd-udevd.service loaded active running udev Kernel Device Manager
systemd-update-utmp.service loaded active exited Update UTMP about System Boot/Shutdown
systemd-user-sessions.service loaded active exited Permit User Sessions
triggerhappy.service loaded active running triggerhappy global hotkey daemon
user@1000.service loaded active running User Manager for UID 1000
vsftpd.service loaded active running vsftpd FTP server
LOAD = Reflects whether the unit definition was properly loaded.
ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
SUB = The low-level unit activation state, values depend on unit type.
40 loaded units listed. Pass --all to see loaded but inactive units, too.
To show all installed unit files use 'systemctl list-unit-files'.
~
~
~
Any thoughts? Did something automatically update like node or parsoid that threw things off or is it something else?
Thanks! Dev67 (talk) 14:17, 23 October 2018 (UTC)
- Heyo! Fixed =D
- Wound up investigating the JSON error and finding all sorts of weird characters in that read-pkg-up JSON file. Looks like it just became corrupted or something. Ran the command below and I think it updated the package (if not every package in parsoids directory).
npm install read-pkg-upDev67 (talk) 15:50, 23 October 2018 (UTC)- Blah, never mind still broken, reboot wipes these fixes for some reason. Still need to do more digging. I'll report back if I find anything. Maybe it'll help someone else out at some point if I figure this out. Suggestions welcome though. Dev67 (talk) 20:11, 23 October 2018 (UTC)
- The error "Error parsing /etc/parsoid/node_modules/read-pkg-up/package.json: Unexpected number in JSON at position 2" is very explanatory. Do you see something wrong with that file at position 2? Ciencia Al Poder (talk) 09:38, 24 October 2018 (UTC)
- So I had this wiki running on a raspberry pi and that pi was causing some issues I think. Definitely corrupted a bunch of files and for some reason, even if I fixed the files in question, they would become re-corrupted on a reboot. I have since migrated this wiki to a linux virtual server and haven't had an issue with it since. Dev67 (talk) 20:24, 7 November 2018 (UTC)
How to set font to black only
Can Wiki allow for those of us without perfect eyesight to have a setting for black font on white background only. Please ! 76.182.221.117 (talk) 17:51, 23 October 2018 (UTC)
- I guess you can use a browser extension as "Stylus", that allows you to set custom CSS for any website (not only wikis!). Ciencia Al Poder (talk) 09:39, 24 October 2018 (UTC)
Adding data sets
Hi Team, I have a data set in Survey Monkey in which there are 4 questions in which the respondents were asked to respond with a percentage. Unfortunately, the questionnaire was designed to allow this data to be entered as text rather than specifying numeric and hence those fields are very dirty. I can easily export the Survey Monkey file to Excel and manually clean the data whilst retaining the respondent ID's. My question is whether I can use the Add Data facility to add in the four columns of cleaned data as new fields in Displayr with appropriate matching of the individual respondents. I could then simply delete the dirty data fields and rename my new fields appropriately. This would be a magic solution if it works as it will also allow me to code qualitative data and then enter it back into the analysis as quantitative data! I am not sure if it is relevant, but I operate on Mac and so cannot run Q. However, if the solution lies in using Q in some way then I will some how sort out access to a PC. Thanks in advance, Mark 124.246.2.25 (talk) 21:21, 23 October 2018 (UTC)
- Off topic. Wrong support forum. AhmadF.Cheema (talk) 10:31, 24 October 2018 (UTC)
Instructions for CheckUser are wrong
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Please see Extension talk:CheckUser -- the instructions for installing it on MW 1.26 are incorrect. IRC channel hasn't been able to solve this. 2600:8801:1F00:675:D96B:83A0:888B:12EE (talk) 04:26, 24 October 2018 (UTC)
Your message in home page for FreeDOS 1.2
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
You wrote: If you get a scrolling list of “Invalid Opcode” errors when you boot the FreeDOS 1.2 installation CDROM, this is a bug in VirtualBox since we released FreeDOS 1.2.
Your message is an error. I tried to install the hard disk version and I hadn't this message. The problem is another.
The VB is in Windows (Disco C:) and Windows don't permit to install an operation system in C, also if it is in VB. So I had the installation in Disco A, where is not possible to write something (the virtual disk has not the possibility to able the writing).
In the past time, I took an ISO for DOS, I modified it, to verify my ability to make an ISO modification. All was OK.
I made another step: I modified again the ISO to have the installation in disk C. I obtained a message, similar to FreeDOS one.
Carlo Sarti
carlo_sarti@yahoo.com 94.160.186.249 (talk) 11:12, 24 October 2018 (UTC)
- Not sure if this was mean to be here. Is your issue related to MediaWiki software? Thanks! X-Savitar (talk) 11:18, 24 October 2018 (UTC)
Photo Slider
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hey, guys!
I was trying to use this snippet: Snippets/Photo Slider, and I created a page titled jcarousel.js, then another one carousel.css, copied the respective codes, added the carousel.js to common.js, copied wikivoyage's template and even added those div classes that were in the template to common.css.
However, it's horrible. It barely works. And the thing is I can't find where wikivoyage stores its div class for .quote, .type, .name and I also can't find where they store the .js code for carousel, as they don't seem to have a MediaWiki:JCarousel.js (I am thinking it's not working on my side because I am missing these).
I don't even want something THAT complex, I just want a simple photo slider, no need for descriptions (maybe a little one under the image) and fancy colors, 300-400 px width. As a matter of fact, I got to this snippet because MediaWiki's own slideshow (aka gallery, mode=slideshow) does not let me customize the width!
Is there any way to simplify the snippet for carousel and just use it as a workaround to MW's own photo slider? Or, better yet, is there any way to modify the internal files for MW's own photo slider in order to reduce its size? I don't even want it to have a customizable width, just to be 300px wide, that's all! 109.103.213.222 (talk) 12:23, 24 October 2018 (UTC)
- Hey, is there really no solution to this, please? Some small workaround or something? 109.103.213.222 (talk) 11:14, 26 October 2018 (UTC)
- Doesn't the "widths" parameter as mentioned in Help:Images#Optional gallery attributes work for your purpose?
- Update: Maybe it's a bug. Whenever the parameter is set, the image starts with the correct size but then it automatically goes back to the original size. Also mentioned on the talk page (Help talk:Images#Setting width of slideshow image has no effect). AhmadF.Cheema (talk) 03:44, 27 October 2018 (UTC)
- If it is indeed a bug, for the time being you can use the following rules in your MediaWiki:Common.css to force the 400px, or whichever static, width value that you want.There is also Extension:JavascriptSlideshow, which might work better. AhmadF.Cheema (talk) 04:25, 27 October 2018 (UTC)
#mw-content-text > div > ul > li.gallerycarousel > div > div:nth-child(2) > div > a > img, #wikiPreview > div.mw-content-ltr > div > ul > li.gallerycarousel > div > div:nth-child(2) > div > a > img { width: 400px; }
- HI, Ahmad. Thanks for the response! The problem with JS Slideshow is that it's exactly that - a slideshow. I'd like users to be able to scroll at their own pace, let alone even be able to scroll in the first place (which js does not offer). There's also another workaround, but it's horrible: https://en.wikipedia.org/wiki/Help:Gallery_tag#Syntax in the sense that, when you click on the button to display all images in the gallery, the images go behind any text that's present on the page.
- I don't think it's a bug, I think the developers have simply not implemented this feature... Also, unfortunately, your workaround does not work. I've tried different values, refreshed the cache like crazy, but it has no effect. 109.103.213.222 (talk) 10:08, 27 October 2018 (UTC)
- Are you sure the MediaWiki:Common.css workaround doesn't work? I've personally tested it. Which version of MediaWiki are you using?
- Use browser developer tools (on Chrome, press Ctrl+Shift+C) which will open a select tool. Use the select tool and click on the gallery image. In the newly opened pane of windows there would be a "Styles" tab. See if the newly added CSS rules are present there.
- Or maybe if the Wiki is public you can link to it. AhmadF.Cheema (talk) 10:18, 27 October 2018 (UTC)
- Sorry, it's an internal wiki, for our workplace, thus there's no way I could link to it. The MediaWiki version is 1.29.0. The developer tools does not show the workaround when I click on the image...
- I do see something like this:
ul.mw-gallery-slideshow li.gallerycarousel { display: block; text-align: center;- but nothing that comes close to your workaround. 109.103.213.222 (talk) 12:37, 27 October 2018 (UTC)
- Using the select tool click on the image. In the developer tools, this will highlight the relevant HTML code. Right-click on it, choose "Copy" > "Copy selector". Is the newly copied string the same as I have used in my workaround? If not, use this new selector instead. AhmadF.Cheema (talk) 15:54, 27 October 2018 (UTC)
- Aha! That was it. It had an extra item: <code>my #mw-content-text > ul > li.gallerycarousel > div > div:nth-child(2) > div > a > img</code>. Thanks a bunch!
- Also, could I ask you two more questions? How do I move the arrows and the picture in-between those to the bottom of the gallery? Lastly, is there any way I could wrap text around the gallery? It's taking way too much space. Is there a way to make it more compact? 109.103.213.222 (talk) 20:18, 27 October 2018 (UTC)
- From the following, you will probably need to remove the first "div"s after "#mw-content-text" to account for the difference in your setup.
- The second part is straightforward using the float property.However, the first part is more complicated, as it requires to move a second element before the first element through CSS. See this solution.
#mw-content-text > div > ul.mw-gallery-slideshow, #wikiPreview > div.mw-content-ltr > div > ul.mw-gallery-slideshow { float: right; /* Force the carousel towards the right */ margin: 0; /* Remove 4em top and bottom margins */ }
It makes use of position: absolute, which can easily mess the elements' positioning. For 100px gallery, I was able to make the result presentable./* Absolute positioning of the image element */ #mw-content-text > div > ul > li.gallerycarousel > div > div:nth-child(2), #wikiPreview > div.mw-content-ltr > div > ul > li.gallerycarousel > div > div:nth-child(2) { position: absolute; top: 0; left: 80px; /* Needed to centre the image */ } /* Moving the arrows and thumbnail icons below the image */ #mw-content-text > div > ul > li.gallerycarousel > div > div.mw-gallery-slideshow-buttons.oo-ui-layout.oo-ui-panelLayout, #wikiPreview > div > ul > li.gallerycarousel > div > div.mw-gallery-slideshow-buttons.oo-ui-layout.oo-ui-panelLayout { margin-top: 100px; /* Measurement should be equal to the image height */ }
For 400px galleries positioning gets messed up.- Update: See below. AhmadF.Cheema (talk) 13:29, 28 October 2018 (UTC)
- Thank you, I will experiment with it. Thanks a lot! 109.103.213.222 (talk) 13:50, 28 October 2018 (UTC)
- Scratch the above "first part". Just saw the CSS Flexible Boxes solution. Much better, though it will not work for old browsers (apparently those before IE 10, Chrome 21, Firefox 20).AhmadF.Cheema (talk) 14:19, 28 October 2018 (UTC)
/* Initializing the flex continer */ #mw-content-text > div > ul > li.gallerycarousel > div, #wikiPreview > div.mw-content-ltr > div > ul > li.gallerycarousel > div { display: flex; flex-direction: column } /* Position of image */ #mw-content-text > div > ul > li.gallerycarousel > div > div:nth-child(2), #wikiPreview > div.mw-content-ltr > div > ul > li.gallerycarousel > div > div:nth-child(2) { order: 1; } /* Position of image caption */ #mw-content-text > div > ul > li.gallerycarousel > div > div:nth-child(3), #wikiPreview > div.mw-content-ltr > div > ul > li.gallerycarousel > div > div:nth-child(3) { order: 2; } /* Position of arrows and thumbnail icon */ #mw-content-text > div > ul > li.gallerycarousel > div > div.mw-gallery-slideshow-buttons.oo-ui-layout.oo-ui-panelLayout, #wikiPreview > div.mw-content-ltr > div > ul > li.gallerycarousel > div > div.mw-gallery-slideshow-buttons.oo-ui-layout.oo-ui-panelLayout { order: 3; }
- Great. Thank you! 109.103.213.222 (talk) 22:26, 28 October 2018 (UTC)
- Ah, so sorry to bother you again, but there's an issue with the second part... while the images are indeed moved, the buttons above it are not. They remain in the middle of the screen.
- Aaaand it still messes the formatting of the other elements on the page, namely tables and text. It won't wrap the text or the table around it. Also, a third weird issue is that square images "compressed", as in the opposite of stretched, and they come out very weird and foggy. 109.103.213.222 (talk) 22:37, 28 October 2018 (UTC)
- Are you referring to the position: absolute solution or the CSS Flexible Boxes one?
- Did you remember to remove the extra div for your setup? Use the following:The wrapping should be fine. AhmadF.Cheema (talk) 23:10, 28 October 2018 (UTC)
#mw-content-text > ul.mw-gallery-slideshow, #wikiPreview > div.mw-content-ltr > ul.mw-gallery-slideshow { /* Force the carousel towards the right */ float: right; /* Remove 4em top and bottom margins */ margin: 0; }
- For the stretching/compressing part, in contrast to newer versions, MediaWiki 1.29 forces a height value too, when width is set for the image, therefore messing up the aspect ratio. Newer version didn't have that issue, so I didn't see it before.
- Had to set up a separate MediaWiki 1.29 installation to test the changes. In addition to the width attribute also set auto height. The following should work, and keep the original aspect ratio of the image:Tested this to work fine with both square and rectangular images. AhmadF.Cheema (talk) 00:44, 29 October 2018 (UTC)
#mw-content-text > ul > li.gallerycarousel > div > div:nth-child(2) > div > a > img, #wikiPreview > div.mw-content-ltr > ul > li.gallerycarousel > div > div:nth-child(2) > div > a > img { width: 400px; height: auto; }
- Finally working! Thanks so much and sorry for all the trouble!
- I am going to upgrade to 1.32 as soon as it comes out next month, so could I ask for the code for that version so I won't go through this hassle all over again. Much appreciated! 109.103.213.222 (talk) 07:57, 29 October 2018 (UTC)
- Ehm... right floating makes the gallery look inesthetic in combination with the other page elements. Is there any way to have it float closer to any table on the page? Something like a two-thumb distance in between the two. Or at least a center float, but without breaking the formatting of tables. 109.103.213.222 (talk) 07:59, 29 October 2018 (UTC)
- Not really sure what you mean here. Maybe provide an example image.
- For the positioning of tables, they can have their own style rules. see Help:Tables#Table floating around text. The "two-thumb distance" can be set using margin-left and margin-right properties. AhmadF.Cheema (talk) 10:08, 29 October 2018 (UTC)
- Okay, but is there a way to make the gallery float in the middle of the page, or as close to the table as possible? 109.103.213.222 (talk) 13:02, 29 October 2018 (UTC)
- Why not float the tables on either side of the gallery? AhmadF.Cheema (talk) 13:56, 29 October 2018 (UTC)
- It's just one table, though. And having the gallery float too right kind of loses its purpose, since it's supposed to complement the written information. So... any way to "adjoin" them, so to speak? 109.103.213.222 (talk) 20:08, 29 October 2018 (UTC)
- Then use
float: left;for the gallery. - First include the table and then the code for gallery after it. Then,
<div style="clear: both"></div>after the gallery code, so that the content that is supposed to come below the table and gallery does not render at the right of the gallery. AhmadF.Cheema (talk) 21:04, 29 October 2018 (UTC) - Eh, okay, it doesn't really do what I want, as the gallery goes below the table and I'd like it just next to it. Is there no function to float it middle? Google says there's only left and right. 109.103.213.222 (talk) 07:57, 30 October 2018 (UTC)
- Enclosing it between <center> tags moves it exactly where I want it, but then it does not wrap the table around it, as it moves the table just below and it also does not respect the size given in common.css
- Css is hard.... 109.103.213.222 (talk) 08:01, 30 October 2018 (UTC)
- The gallery shouldn't go below the table.
- Did you remember to add
style="float: left;"to the table? AhmadF.Cheema (talk) 11:38, 30 October 2018 (UTC) - Ah, finally, that solves it! You didn't mention that I needed to add float left to the table, only for the gallery, that's why I did not add it. Thank you so much! You were a huge help! 109.103.213.222 (talk) 12:14, 30 October 2018 (UTC)
- I already had the table left floated on my end, since I last mentioned Help:Tables#Table floating around text, therefore missing that you wouldn't have it set the same.
- Regarding REL1_32, as of yet, compared to REL1_31, there doesn't appear to be any difference for the present use case. 1.31's code (i.e. with an additional div) should work on 1.32 too.AhmadF.Cheema (talk) 00:29, 31 October 2018 (UTC)
#mw-content-text > div > ul > li.gallerycarousel > div > div:nth-child(2) > div > a > img, #wikiPreview > div.mw-content-ltr > div > ul > li.gallerycarousel > div > div:nth-child(2) > div > a > img { width: 400px; /* Displayed width of the carousel image, with auto height */ } #mw-content-text > div > ul.mw-gallery-slideshow, #wikiPreview > div.mw-content-ltr > div > ul.mw-gallery-slideshow { float: left; /* Force the carousel towards the right */ margin: 0; /* Remove 4em top and bottom margins */ } /* Initializing the flex continer */ #mw-content-text > div > ul > li.gallerycarousel > div, #wikiPreview > div.mw-content-ltr > div > ul > li.gallerycarousel > div { display: flex; flex-direction: column } /* Position of image */ #mw-content-text > div > ul > li.gallerycarousel > div > div:nth-child(2), #wikiPreview > div.mw-content-ltr > div > ul > li.gallerycarousel > div > div:nth-child(2) { order: 1; } /* Position of image caption */ #mw-content-text > div > ul > li.gallerycarousel > div > div:nth-child(3), #wikiPreview > div.mw-content-ltr > div > ul > li.gallerycarousel > div > div:nth-child(3) { order: 2; } /* Moving the arrows and image icon below */ #mw-content-text > div > ul > li.gallerycarousel > div > div.mw-gallery-slideshow-buttons.oo-ui-layout.oo-ui-panelLayout, #wikiPreview > div.mw-content-ltr > div > ul > li.gallerycarousel > div > div.mw-gallery-slideshow-buttons.oo-ui-layout.oo-ui-panelLayout { order: 3; } - Briliant! Hopefully it will all sort out. Thanks again! 109.103.213.222 (talk) 09:25, 31 October 2018 (UTC)
- Ah, there's one more very weird issue. I am not sure if it's an issue at all, but an image won't show up in a gallery if it has a magic word. Some files make use of {{PAGENAME}} and even though it matches the name of the page, the image simply won't show up. Any way to override this strange behavior? 109.103.213.222 (talk) 20:32, 27 October 2018 (UTC)
- When the image doesn't show up, press F12 (which will open the browser developer tools), there should be a Console tab in the newly opened window panes. Open that tab, and see if any errors are displayed. AhmadF.Cheema (talk) 15:39, 28 October 2018 (UTC)
- Oh, by image not showing up, I meant it does not show up in the gallery AT ALL if it has PAGENAME instead of its name.... 109.103.213.222 (talk) 22:28, 28 October 2018 (UTC)
- So, I've tested this on my end. You're right, when the magic word "{{PAGENAME}}" is used as the name of the image, the gallery script does not render the image. AhmadF.Cheema (talk) 00:59, 29 October 2018 (UTC)
- Any workaround to this? 109.103.213.222 (talk) 07:45, 29 October 2018 (UTC)
- Don't think so. AhmadF.Cheema (talk) 10:09, 29 October 2018 (UTC)
- There's also this: https://www.w3schools.com/howto/howto_js_slideshow.asp
- But I don't understand where to add the HTML part. There's a designated place for CSS and JS on the wiki, of course, but there's no designated place for HTML... 109.103.213.222 (talk) 10:10, 27 October 2018 (UTC)
- One way to add HTML would be through Adding javascript to wiki pages. AhmadF.Cheema (talk) 10:22, 27 October 2018 (UTC)
Download (very) old version
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hi,
We have a MediaWiki 1.21 installation and now need to update PHP, which means a lot of changes in relation to the mysql_* deprecation. I have a fresh copy of 1.31 but I know that we made some changes to 1.21 for authentication, since we needed to differentiate between a member of my team or someone else within the company to determine which articles are relevant to them. I have compared our 1.21 to 1.31 and there are 16000 differences to go through. Is there any way that I can download a fresh copy of 1.21 to diff against our 1.21?
Kind regards,
Richard ClarkeyBoy1987 (talk) 13:06, 24 October 2018 (UTC)
- Hi,
- I found the answer - download using PHPStorm & use Git > Reset > 404e36aa5fda to get the specific version I needed.
- Kind regards,
- Richard ClarkeyBoy1987 (talk) 14:04, 24 October 2018 (UTC)
User Preferences won't be saved
Mediawiki 1.31.0, Centos 7.4, Apache, Mysql
Wiki works fine except for the fact that the users can't save their preferences. They can be changed and it says "successfully saved" but they are only active for as long as the session is active. when the user logs out and back in all is back to default. it happens in Firefox and Internet Explorer.
i can see that the user_properties table is changed after pressing the save button (the language setting disappers) but when the user logs back in the default entry returns.
i found some old topics here saying the short urls causing this error and i changed everything as mentioned here Short URL but it still wont work. is there anything else i can do?
thanks Cornulio (talk) 19:27, 24 October 2018 (UTC)
- When you had a look into the database, what did you see then?
- You say that you changed the language to something non-default and then, when you save this change in the preferences, then the language entry disappears? Did I understand that correctly?
- You say you are using Apache. My guess is that your configuration is somehow messing with the GET/POST variables. I remember producing a similar error myself, but with NGinx. I could then somehow make NGinx preserve the variables... 2001:16B8:10C2:7000:953E:F7CB:FD57:6B79 (talk) 20:45, 24 October 2018 (UTC)
- There's no way short urls can cause user preferences in database to reset back to defaults. There must be some sort of extension installed on your wiki causing preferences to revert to defaults. What extensions do you have installed? Ciencia Al Poder (talk) 09:14, 25 October 2018 (UTC)
- when i change e.g. the language from english to german, i can see that the line in that databasetable is deleted. when i log out and back in the default entry reappears and the language is back to english.
- Extentions are: ldap authentication, PrivatePageProtection, Lockdown, and the default extentions:
- wfLoadExtension( 'CodeEditor' );
- wfLoadExtension( 'Gadgets' );
- wfLoadExtension( 'ImageMap' );
- wfLoadExtension( 'Interwiki' );
- wfLoadExtension( 'LocalisationUpdate' );
- wfLoadExtension( 'MultimediaViewer' );
- wfLoadExtension( 'PdfHandler' );
- wfLoadExtension( 'ReplaceText' );
- wfLoadExtension( 'WikiEditor' );
- here is the link to that (very) old post [1] Cornulio (talk) 09:21, 25 October 2018 (UTC)
- One old version of Extension:Lockdown used to mess up user groups. Try disabling extensions and see if it helps. AhmadF.Cheema (talk) 09:45, 25 October 2018 (UTC)
- disabling the extentions don't change the behaviour . i also disabled the short URLs. nothing. but i saw that on every normal page the url is like
- https://wikiserver/wiki/index.php/Hauptseite but when the user logs out it is https://wikiserver/wiki/index.php?title=Spezial:Abmelden&returnto=Hauptseite is this normal or could it be a reason for the problem? even with short urls on this was the behaviour.
- i just saw that Preferences like gender and date format are correctly saved to the database and stay correct after relogin. so obviosly this issue only affects the language and signature settings... Cornulio (talk) 15:13, 25 October 2018 (UTC)
The employee with the Admin password left the company and took the password with them... help
URL: https://a10wiki.a10networks.com
I'm a new employee that needs to make changes\edit content. There are a hand full of users that are able to Edit contents, but they don't have Admin permissions to create an account for me.
Thanks,
Leon 192.67.159.83 (talk) 22:53, 24 October 2018 (UTC)
- In case you have shell access, and if your old MediaWiki v1.10 has CreateAndPromote.php in the maintenance folder, see Manual:CreateAndPromote.php. Otherwise, see Project:Support desk/Flow/2010/12#h-How_do_I_become_an_administrator_of_my_own_wiki?-2010-12-17T02:04:00.000Z. AhmadF.Cheema (talk) 02:45, 25 October 2018 (UTC)
I get logged out when editing after upgrade to 1.31.1 from 1.26.3
I get randomly logged out when editing pages. I realise that login-handling has been changed in 1.27, and I adopted my cache settings in LocalSettings.php:
$wgMainCacheType = CACHE_DB;
$wgMemCachedServers = array();
$wgSessionCacheType = CACHE_DB;
$wgCacheDirectory = "{$IP}/cache";
1.31.1 runs on the following system:
PHP: 7.2.10-he.0 (apache2handler) MySQL: 5.6.37-82.2-log ICU: 52.1
This is the list of which cookies are set.
- When I frist get on any of my wiki's pages, no cookie is set.
- When I click on "log in" (top right) a cookie is set, named "db(...)_session". ("db(...)" stands for my database). It has a corresponding value.
- Once I have supplied my user name and password and pressed "login", 5 cookies are set, 4 of which are new:
db(...)_session db(...)UserID db(...)UserName UseCDNCache:"false" UseDC:"master"
- The value of the session's cookie though has changed.
- When I subsequently edit a page two cookies (session, UserID) randomly disappear, and a message tells me to log in again.
Any ideas? Alfredo1066 (talk) 13:19, 25 October 2018 (UTC)
- Note that session and UserID cookies are set on login, but the server doesn't send them again on every response. Only the browser is sending them to the server on every request. If the browser stops sending them, you get logged-out.
- This may happen if the cookies expired (when they're set, an expire time is sent along with the cookie value, otherwise the cookie will last until you close the browser), or deleted (your browser may impose a quota of how many cookies you may have, or how many data they can store for each domain).
- Cookies are also scoped to a particular server and path. If your cookies are set to the example.com domain but you navigate to example.org, the domain doesn't match and the cookie won't be sent to the server. The same with the path. If the cookie is scoped to the /wiki/ path but you then access to /index.php, then the cookie won't be sent to the server. Ciencia Al Poder (talk) 09:32, 26 October 2018 (UTC)
- You find me pretty much at a loss here.
- I have been trying out various browsers (firefox, chromium, IE) and with each of them I get the same problem.
- To make things clearer I have set up a new wiki (1.31.1), which you can access here to see for yourself. I still get the same problem, but I also had problems installing it. The installation stalled here:
[af371d7e2691e617de479302] /?page=Install JobQueueError from line 828 of /mw_1.31.1-neu/includes/jobqueue/JobQueueDB.php: Wikimedia\Rdbms\DBQueryError: A database query error has occurred. Did you forget to run your application's database schema updater after upgrading?Query: SELECT job_sha1 FROM `innodbjob` WHERE job_sha1 = '94t2nzwov23jc8fpl2v3kr6rk6lmeu5' AND job_token =Function: JobQueueDB::doBatchPushError: 1146 Table 'db12596436-innodb.innodbjob' doesn't exist (localhost)Backtrace:#0 /mw_1.31.1-neu/includes/jobqueue/JobQueueDB.php(262): JobQueueDB->throwDBException(Wikimedia\Rdbms\DBQueryError)#1 /mw_1.31.1-neu/includes/jobqueue/JobQueueDB.php(200): JobQueueDB->doBatchPushInternal(Wikimedia\Rdbms\DBConnRef, array, integer, string)#2 [internal function]: JobQueueDB->{closure}()#3 /mw_1.31.1-neu/includes/libs/rdbms/database/Database.php(3267): call_user_func(Closure)#4 [internal function]: Wikimedia\Rdbms\Database->onTransactionPreCommitOrIdle(Closure, string)#5 /mw_1.31.1-neu/includes/libs/rdbms/database/DBConnRef.php(49): call_user_func_array(array, array)#6 /mw_1.31.1-neu/includes/libs/rdbms/database/DBConnRef.php(491): Wikimedia\Rdbms\DBConnRef->__call(string, array)#7 /mw_1.31.1-neu/includes/jobqueue/JobQueueDB.php(202): Wikimedia\Rdbms\DBConnRef->onTransactionPreCommitOrIdle(Closure, string)#8 /mw_1.31.1-neu/includes/jobqueue/JobQueue.php(336): JobQueueDB->doBatchPush(array, integer)#9 /mw_1.31.1-neu/includes/jobqueue/JobQueue.php(306): JobQueue->batchPush(array, integer)#10 /mw_1.31.1-neu/includes/jobqueue/JobQueueGroup.php(154): JobQueue->push(array)#11 /mw_1.31.1-neu/includes/user/UserGroupMembership.php(162): JobQueueGroup->push(array)#12 /mw_1.31.1-neu/includes/user/User.php(3663): UserGroupMembership->insert(boolean)#13 /mw_1.31.1-neu/includes/installer/Installer.php(1666): User->addGroup(string)#14 /mw_1.31.1-neu/includes/installer/Installer.php(1575): Installer->createSysop(MysqlInstaller)#15 /mw_1.31.1-neu/includes/installer/WebInstallerInstall.php(44): Installer->performInstallation(array, array)#16 /mw_1.31.1-neu/includes/installer/WebInstaller.php(281): WebInstallerInstall->execute()#17 /mw_1.31.1-neu/mw-config/index.php(79): WebInstaller->execute(array)#18 /mw_1.31.1-neu/mw-config/index.php(38): wfInstallerMain()#19 {main}- Anyway, I restarted the installation and the wiki was set up.
- The problem though persists. Why? Alfredo1066 (talk) 15:33, 29 October 2018 (UTC)
- This looks very strange, it tries to access innodbjob table instead of job, like if a table prefix has been set up, but that should break other pages too. Is this a clean install? Ciencia Al Poder (talk) 10:35, 30 October 2018 (UTC)
how to search for multi word text in wikipedia
i have few keywords and i want to run search against those word all together in wikipedia 117.246.48.108 (talk) 14:32, 25 October 2018 (UTC)
Forgot password no email address associated with account
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hi I'm unable to get into my account Natalie lee5. I do not have an email address associated with it so i'm unable to change the password. 2601:446:300:2CE1:15F9:7016:342E:4515 (talk) 19:21, 25 October 2018 (UTC)
- If you haven't provided any second way to recover your password, there's nothing we can do to recover it, because there's no way you can prove you own that account. Ciencia Al Poder (talk) 09:20, 26 October 2018 (UTC)
- At all? I wrote a whole article and had an editing process going. I can't have someone from support to fix it? 2601:446:300:2CE1:C940:A891:CF66:6E0 (talk) 22:46, 26 October 2018 (UTC)
- Feel free to tell us how you propose to prove that you are the person that you state you are, based on the (non-public) information that we already have about you. Note that an IP address is not sufficient. Malyacko (talk) 07:20, 27 October 2018 (UTC)
Page for my Village
How to create page and publish ? please help me with the steps for new page for my village HARISH S Kalagi (talk) 12:50, 26 October 2018 (UTC)
- The relevant place to make your queries would be at Wikipedia:Teahouse. AhmadF.Cheema (talk) 16:46, 26 October 2018 (UTC)
Recommendation hosting options for Visual Editor
The documentation for the Visual Editor extension states that it "relies on the separate nodeJS-based Parsoid parser service that needs to be installed and enabled in order to edit pages with it."
Pair Networks Support (my hosting provider) tells me that Parsoid "runs as a 'Daemon' which means that it will not be installable on your server, as it is a shared server."
So in order to have Visual Editor on my wiki, should I upgrade at Pair's QS / VQS package or move to another hosting solution? I pay Pair $16.95/month for their "Advanced Account" service plus $3/month for 3 "Dedicated IP Domain Hosting" services. Their VPS pricing starts at $29.95 a month. What hosting do other wiki-ers prefer for VIsual Editor capabilities? Chuck.Kahn (talk) 16:45, 26 October 2018 (UTC)
Thread discussions extension for SQLite
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Is there any thread discussions extension that works well with SQLite?
Since I'm using SQLite, I can't use Structured Discussions. PlavorSeol (talk) 03:43, 27 October 2018 (UTC)
How to shift my mediawiki account from private to authorized editors only
Hello All,
Can some one help me out how to change my mediawiki account from private to authorized editors. And let me know what else i have to change in my mediawiki before and after doing modifications.
Thanking you in Advance. 139.30.75.208 (talk) 14:25, 28 October 2018 (UTC)
- What exactly do you mean by "mediawiki account"? Did you mean MediaWiki installation/setup? If so, see Manual:Preventing access#Restrict editing. AhmadF.Cheema (talk) 15:27, 28 October 2018 (UTC)
- Hello AhmadF.Cheema,
- Thank you so much for your response.
- I mean that when installing mediawiki, I have used the user rights to private, but now i want to shift it to authorized editors.
- And I will have a look in to the link that I you have provided.
- Thank you so much. 139.30.74.16 (talk) 22:37, 28 October 2018 (UTC)
Wiki website redirected to Wikipedia on mobile devices
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hi there,
I have a mediawiki website in a third level domain (wiki.example.org). When I access to it from any mobile device, the page appears for a while and immediately it is redirected to Wikipedia. It does not happen in desktop browser. I cannot find a solution to this problem, do you have any hint? Thank you! Gborgonovo (talk) 21:31, 28 October 2018 (UTC)
- If the Wiki is public, can you link to it? AhmadF.Cheema (talk) 22:17, 28 October 2018 (UTC)
- The link is this:
- http://wiki.tavernadelleidee.it/index.php/Main_Page Gborgonovo (talk) 10:11, 12 November 2018 (UTC)
- What redirect rules are you using for your website?
- This doesn't appear to be an issue related with MediaWiki. AhmadF.Cheema (talk) 11:10, 12 November 2018 (UTC)
- Thank you, I know it was not a MediaWiki issue, but I couldn't find any valid option to solve it. It seems it was a the mediawiki:commons.js Gborgonovo (talk) 20:28, 19 November 2018 (UTC)
- Try to not blindly copy scripts from wikipedia, when you don't know what's their purpose: http://wiki.tavernadelleidee.it/index.php/MediaWiki:Common.js
- That's the culprit of the redirect Ciencia Al Poder (talk) 10:50, 14 November 2018 (UTC)
- Thank you very much!! There it was the issue! I don't know either why that code is there... Gborgonovo (talk) 20:29, 19 November 2018 (UTC)
- Thank you very much!! There it was the issue! I don't know either why that code is there... Gborgonovo (talk) 20:26, 19 November 2018 (UTC)
Gedmatch account
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
How do I take my Gedmatch account off private? 2001:5B0:41C0:1C88:C8A9:2978:9795:33C0 (talk) 22:06, 28 October 2018 (UTC)
- Wrong support forum. MediaWiki.org is not GEDmatch.com. AhmadF.Cheema (talk) 23:13, 28 October 2018 (UTC)
How to edit "default" templates
I have a question.
How I can edit "Content Templates" ? There is a 3 default example but I want a change to my "default" for user but I dont can find where.
Thanks for idea
https://imgur.com/a/xZujbAQ 185.247.144.26 (talk) 07:51, 29 October 2018 (UTC)
- Which editor software is that? Which exact MediaWiki version are you using? Malyacko (talk) 08:08, 29 October 2018 (UTC)
- My extension list.
- wfLoadExtension( 'Gadgets' );
- wfLoadExtension( 'ImageMap' );
- wfLoadExtension( 'InputBox' );
- wfLoadExtension( 'PdfHandler' );
- wfLoadExtension( 'WikiEditor' );
- wfLoadExtension( 'Interwiki' );
- wfLoadExtension( 'NewestPages' );
- wfLoadExtension( 'AdvancedSearch' );
- wfLoadExtension( 'ConfirmEdit' );
- wfLoadExtension( 'WYSIWYG' );
- wfLoadExtension( 'EditAccount' );
- wfLoadExtension( 'intersection' );
- wfLoadExtension( 'CategoryTree' );
- wfLoadExtension( 'EmbedVideo' );
- wfLoadExtension( 'Renameuser' );
- wfLoadExtension( 'UserMerge' );
- Media wiki 1.31 185.247.144.26 (talk) 08:16, 29 October 2018 (UTC)
- Looks like your screenshot shows Extension:WYSIWYG. There are more than 2000 MediaWiki extensions so it's helpful to make it explicit that your question is actually about the WYSIWYG extension. :) Malyacko (talk) 21:43, 29 October 2018 (UTC)
'createAndPromote.php --sysop --force user' not working [ Solved ]
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hello
I mistakenly removed a user from Administrators . [ at user profile did ' Restore all default settings' ] So I read at https://www.mediawiki.org/wiki/Manual:CreateAndPromote.php that this should work:
[ --force If account already exists, just grant it rights or change password. Do not create a new account in this case.]
php createAndPromote.php --sysop --force rob
but this is returned:
Account exists and nothing to do.
Is there another way to add an existing user to a group?
best regards, Rob RobFantini (talk) 13:16, 29 October 2018 (UTC)
- Your CLI command looks fine.
- You could add an entry directly into the database table <code>user_groups</code>. You will need to know your <code>user_id</code>, which can be found in the <code>user</code> table. Osnard (talk) 07:37, 31 October 2018 (UTC)
- Note that "Restore all default settings" in Special:Preferences does not change user groups. Looks like the account is still sysop. Ciencia Al Poder (talk) 10:14, 31 October 2018 (UTC)
- hello Ciencia
- you wrote: ' Looks like the account is still sysop ' .
Could you tell me how you see that?- Does being in group 'administrator' equal being a sysop?
- thank you for the help so far! RobFantini (talk) 00:58, 2 November 2018 (UTC)
- Yes administrator here means sysop. AhmadF.Cheema (talk) 01:14, 2 November 2018 (UTC)
JavaScript snippet to prepend text to a page
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hello :-)
I am looking for a JavaScript snippet to prepend text to a page in a single API call. I know I can make one call to get the page content and another one to make the edit. But can I combine the two in a single call?
Svetlana Gryllida 10:01, 30 October 2018 (UTC)
- You can use the edit api, which has an appendtext parameter, where you only pass the text to append to the existing text, without the need to know the existing contents of the page. Ciencia Al Poder (talk) 10:22, 30 October 2018 (UTC)
- Ciencia Al Poder thanks. prependtext looks useful also. :-) Gryllida 23:29, 31 October 2018 (UTC)
- Oops, sorry, I erroneously read "append"! Yeah, prependtext will do the job Ciencia Al Poder (talk) 09:32, 1 November 2018 (UTC)
User rights for talk pages [solved]
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
In my Pollen-Wiki (version 1.30.0) I want that all registerd user can create and edit pages. All other users should only be allowed to read pages and to create and edit the corresponding talk pages.
In my LocalSettings.php is the following code:
$wgGroupPermissions['*']['createaccount'] = false;
$wgGroupPermissions['user']['edit'] = true;
$myProtectedNamespaces = array(NS_MAIN, NS_CATEGORY, NS_TEMPLATE, NS_PROJECT, NS_IMAGE, NS_HELP, NS_USER, NS_FILE, NS_MEDIAWIKI);
foreach ($myProtectedNamespaces as $ns) {
$wgNamespaceProtection[$ns] = array('user'); }
With this configuration every not registered user can now read the page and can create or edit the corresponding talk page (as wanted) but unfortunately all registered users are not allowed to edit or create pages anymore (talk pages can be created or edited). Where is the error?
Greetings from Basel, Switzerland
Thomas 77.58.215.12 (talk) 13:43, 30 October 2018 (UTC)
- I think the values for $wgNamespaceProtection are supposed to be permission names and not user group names. See your Wiki's Special:ListGroupRights for permission names. AhmadF.Cheema (talk) 14:59, 30 October 2018 (UTC)
- I searched the web for a solution but I couldn't find any. The code above is from the book D.J. Barrett, MediaWiki, O'Reilly 2008. I tried several options, like $wgGroupPermissions['*']['createtalk'] = true; but this is not working, because this right needs the 'edit' set to true.
- I think it is only possible with namespace restrictions.
- Thomas 77.58.215.12 (talk) 15:53, 30 October 2018 (UTC)
- What I meant was to, instead of $wgNamespaceProtection[$ns] = array('user'); try something like:
- $wgNamespaceProtection[$ns] = array('editmyusercss'); AhmadF.Cheema (talk) 16:09, 30 October 2018 (UTC)
- I tried the group names listed in Special:ListGroupRights but nothing changed. I even invented a new name. This name is now listed in the Special:List.. also but nothing changed e.g. enlisted user cannot edit pages. 77.58.215.12 (talk) 16:56, 30 October 2018 (UTC)
- I'm not talking about the group names, but the permission names (like "editmyusercss"). AhmadF.Cheema (talk) 19:28, 30 October 2018 (UTC)
- I solved the problem:
- $myProtectedNamespaces = array(NS_MAIN, NS_CATEGORY, NS_TEMPLATE, NS_PROJECT, NS_IMAGE, NS_HELP, NS_USER, NS_FILE, NS_MEDIAWIKI);
- foreach ($myProtectedNamespaces as $ns) {
- $wgNamespaceProtection[$ns] = array('editarticles'); }
- $wgGroupPermissions['*']['edit'] = true;
- $wgGroupPermissions['user']['edit'] = true;
- $wgGroupPermissions['user']['editarticles'] = true;
- $wgGroupPermissions['sysop']['edit'] = true;
- $wgGroupPermissions['sysop']['editarticles'] = true;
- Now registered user are allowed to create and edit pages. Unregistered user can now only create and edit talk pages.
- Thomas 77.58.215.12 (talk) 10:52, 2 November 2018 (UTC)
Lua errors
I use Mediawiki 131.XX lateststable. all modules and templates are copied from Wikipedia and are up to date.The error below is now appearing throughout my site. This started after I recently upgraded to the 1.31 branch.
Lua error in Module:Citation/CS1 at line 1530: attempt to index local 'ps' (a nil value).
This is running on a stable Debian server but using the Mediawiki tarball installation.
Any tips on clearing this error. I am NOT a Lua programmer and quite frankly did just fine without it, but I like not needing to write my own templates and the modules.
John Foster
http://www.physicswiki.net 2605:6000:8B0C:E200:9CAF:7188:8B11:C9D5 (talk) 20:12, 30 October 2018 (UTC)
- Have you upgraded the corresponding version of the Extension:Scribunto too.
- If that doesn't help, you might need to update the module code too. The Wikipedia modules might have been updated in line with the newer version of the extension since you last imported them.
- In such a case, a simple re-import of the module should work. However in some cases, it is also possible that the updated code might be for a version greater than 1.31, then you'll have to look in the module's history to see which update works for you. AhmadF.Cheema (talk) 23:52, 30 October 2018 (UTC)
- Scribunto is a matching version from Mediawiki. to the Mediawiki I have installed. both are 1.31 1
- However most of the modules and templates were recently upgraded to the current versions used on Wikipedia. I saw the Wikipedia is running mediawiki 1.33 xx
- Can that be the issue? If so, is there a way to roll back the templates and modules to match 1.31 1? 2605:6000:8B0C:E200:7D4B:4C66:F910:7634 (talk) 16:34, 1 November 2018 (UTC)
- I think this is probably the issue.
- I don't think there is a feature to rollback imported templates/modules, unless you restore the Wiki database from a previous backup made before the pages were import.
- You might not need to rollback all the imported templates/modules, just start with the one which is showing errors. Use source code from the time when Wikipedia was running 1.31. AhmadF.Cheema (talk) 18:44, 1 November 2018 (UTC)
How to fix database errors with PhpMyAdmin?
MediaWiki Version: 1.30
PHP Version: 5.6.38 (litespeed)
MySQL Version: 5.6.41-cll-lve
My father tried to register for an account on my wiki, and he got errors when attempting to create an account. I don't think I have MySQL commands on my web host provider, but PhpMyAdmin has SQL queries. This is what the error looks like:
[W9jAlcKqCv0QXC9ERuT1NwAAAQs] /mw19/index.php?title=Special:CreateAccount&returnto=Main+Page Wikimedia\Rdbms\DBQueryError
from line 1149 of /home/gjlxrtap/public_html/mw19/includes/libs/rdbms/database/Database.php:
A database query error has occurred.
Did you forget to run your application's database schema updater after upgrading?
Query: INSERT INTO `mwd50q_cu_changes` (cuc_page_id,cuc_namespace,cuc_title,cuc_minor,cuc_user,cuc_user_text,cuc_actiontext,cuc_comment,cuc_this_oldid,cuc_last_oldid,cuc_type,cuc_timestamp,cuc_ip,cuc_ip_hex,cuc_xff,cuc_xff_hex,cuc_agent) VALUES ('0','2','','0','3','TestAccount','was created','','0','0','3','20181030203533','104.231.254.108','68E7FE6C','0',NULL,'Mozilla/5.0 (iPhone; CPU iPhone OS 12_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/70.0.3538.75 Mobile/15E148 Safari/605.1')
Function: CheckUserHooks::logUserAccountCreation
Error: 1146 Table 'gjlxrtap_mw19758.mwd50q_cu_changes' doesn't exist (localhost)
Backtrace:
#0 /home/gjlxrtap/public_html/mw19/includes/libs/rdbms/database/Database.php(979): Wikimedia\Rdbms\Database->reportQueryError(string, integer, string, string, boolean)
#1 /home/gjlxrtap/public_html/mw19/includes/libs/rdbms/database/Database.php(1589): Wikimedia\Rdbms\Database->query(string, string)
#2 /home/gjlxrtap/public_html/mw19/extensions/CheckUser/CheckUser.hooks.php(247): Wikimedia\Rdbms\Database->insert(string, array, string)
#3 /home/gjlxrtap/public_html/mw19/extensions/CheckUser/CheckUser.hooks.php(209): CheckUserHooks::logUserAccountCreation(User, string)
#4 [internal function]: CheckUserHooks::onLocalUserCreated(User, boolean)
#5 /home/gjlxrtap/public_html/mw19/includes/Hooks.php(177): call_user_func_array(string, array)
#6 /home/gjlxrtap/public_html/mw19/includes/Hooks.php(205): Hooks::callHook(string, string, array, NULL)
#7 /home/gjlxrtap/public_html/mw19/includes/auth/AuthManager.php(1413): Hooks::run(string, array)
#8 /home/gjlxrtap/public_html/mw19/includes/auth/AuthManager.php(1130): MediaWiki\Auth\AuthManager->continueAccountCreation(array)
#9 /home/gjlxrtap/public_html/mw19/includes/specialpage/AuthManagerSpecialPage.php(358): MediaWiki\Auth\AuthManager->beginAccountCreation(User, array, string)
#10 /home/gjlxrtap/public_html/mw19/includes/specialpage/AuthManagerSpecialPage.php(482): AuthManagerSpecialPage->performAuthenticationStep(string, array)
#11 [internal function]: AuthManagerSpecialPage->handleFormSubmit(array, VFormHTMLForm)
#12 /home/gjlxrtap/public_html/mw19/includes/htmlform/HTMLForm.php(669): call_user_func(array, array, VFormHTMLForm)
#13 /home/gjlxrtap/public_html/mw19/includes/specialpage/AuthManagerSpecialPage.php(416): HTMLForm->trySubmit()
#14 /home/gjlxrtap/public_html/mw19/includes/specialpage/LoginSignupSpecialPage.php(316): AuthManagerSpecialPage->trySubmit()
#15 /home/gjlxrtap/public_html/mw19/includes/specialpage/SpecialPage.php(522): LoginSignupSpecialPage->execute(NULL)
#16 /home/gjlxrtap/public_html/mw19/includes/specialpage/SpecialPageFactory.php(578): SpecialPage->run(NULL)
#17 /home/gjlxrtap/public_html/mw19/includes/MediaWiki.php(287): SpecialPageFactory::executePath(Title, RequestContext)
#18 /home/gjlxrtap/public_html/mw19/includes/MediaWiki.php(851): MediaWiki->performRequest()
#19 /home/gjlxrtap/public_html/mw19/includes/MediaWiki.php(523): MediaWiki->main()
#20 /home/gjlxrtap/public_html/mw19/index.php(43): MediaWiki->run()
#21 {main} Newman2 (talk) 22:00, 30 October 2018 (UTC)
- As the error message suggests: Did you forget to run your application's database schema updater after upgrading? See Manual:Upgrading#Run the update script Ciencia Al Poder (talk) 10:17, 31 October 2018 (UTC)
bulk upload in UploadWizard
Mediawiki 1.31 in Ubuntu 16.04 with apache 2.4.18, php 7.0.30
I would like to avoid having to type description and categories.
Is there any exif metadata that I can fill with external programs which will avoid to type manually the description for each image?
I have configured UploadWizard like below, but also category is not automatically filled.
Any help please?
$wgUploadWizardConfig = array( 'debug' => false, 'autoAdd' => array( 'wikitext' => array( 'Fichero cargado con UW.' ), 'categories' => array( 'Almacén' ), ), 'enableMultipleFiles' => true, 'enableMultiFileSelect' => true, 'uwLanguages' => array( 'es' => 'Español', 'en' => 'English' ), 'tutorial' => array( 'skip' => true ), 'maxUploads' => 500, 'fileExtensions' => $wgFileExtensions );
192.148.212.6 (talk) 14:50, 31 October 2018 (UTC)
- If I fill EXIF ImageDescription or XMP Description, the text was imported into wizard, but it does not work in this version.
- Is there eny other way to do this?
- And another problem is that now the warning about not filling the category does not let you continue in the wizard, is like if Category it was mandatory.
- Thanks in advance
- pd.: this was working for me in MW 1.30.0, PHP 7.0.25-0ubuntu0.16.04.1 MySQL 5.7.21 192.148.212.6 (talk) 15:03, 31 October 2018 (UTC)
How can I add the code into the <head>
I want to modify the skin so that every page includes a script (adsence) in the head. In which file should I add the code? I use Vector skin. VectorTemplate.php doesn't seem to be the file as it just outputs headelement formed somewhere else. I'd like to know, where? 142.157.25.184 (talk) 17:09, 31 October 2018 (UTC)
- See Extension:HeadScript. AhmadF.Cheema (talk) 17:37, 31 October 2018 (UTC)
- Thank you, Ahmad! It worked 142.157.25.184 (talk) 19:17, 31 October 2018 (UTC)
- Or the official answer: write a specific OutputPageBeforeHTML hook, and from there call addInlineScript, on the passed OutputPage. —TheDJ (Not WMF) (talk • contribs) 09:38, 1 November 2018 (UTC)
- How is it possible to insert the script in the head only for non-automatically generated pages? Or specify somewhere explicitly on which pages the script has to be inserted? 107.159.22.73 (talk) 00:23, 2 November 2018 (UTC)
- Anyone please suggest, how can a change the head of specific pages. Thank you! 142.157.25.184 (talk) 14:59, 2 November 2018 (UTC)
- Depends. Is it just dependening on a title ? Then just take the title from the earlier mentioned hook and pageoutput and conditionally add it.
- If it depends on the CONTENT being insterted, like with video, graphs atc, then you should only add from the parserhook, which transforms your wikitext to html.
- In that case you need to define and use resourceloader modules which declarativly wrap your scripts and then add those modules to the parseroutput using the addModules method. There are many wikimedia installed extensions that do this, that you could look towards to learn from. —TheDJ (Not WMF) (talk • contribs) 11:01, 3 November 2018 (UTC)
- Thank you TheDJ. Yes, if I can add a scipt in the head depending on the page title, that'd do what I need.
- I'm a beginner, so do not completely understand what to do. As a start I tried to just add the script on every page using the hook you suggested.
- I wrote in the LocalSettings.php
- $wgHooks['OutputPageBeforeHTML'][] = 'addInlineScript(<script >...</script>)';
- but it led to "Internal error", so apparently there was error in the syntax. What should I modify in order to add that script?
- Thank you. 142.157.25.184 (talk) 22:59, 4 November 2018 (UTC)
- See Snippets/Load an additional JavaScript or stylesheet file on all pages:
- Ciencia Al Poder (talk) 10:35, 5 November 2018 (UTC)
$wgHooks['BeforePageDisplay'][] = function( OutputPage &$out, Skin &$skin ) { $out->addInlineScript( '<script>...</script>' ); }; - Thanks, but it adds the script not in the head. How to modify it to add in the head? 142.157.25.184 (talk) 17:07, 6 November 2018 (UTC)
- Please, suggest how it is possible to add a script in the head of a given page? Thank you for any advice! 142.157.25.184 (talk) 15:17, 7 November 2018 (UTC)
- > Please, suggest how it is possible to add a script in the head of a given page? Thank you for any advice!
- If you are using Extension:HeadScript then in LocalSettings.php you must define the JS code (or filename). So you can use PHP to "decide" whether or not to add that code. HSRobinson (talk) 18:11, 7 November 2018 (UTC)
- Thank you. HSRobinson
- Could you provide more details on this? Because I tried to use LocalSettings to put the script only in one page and it didn't work:. The code was:
- if ($id == 106) {
- $wgHeadScriptCode = <<<'START_END_MARKER'
- <script>....</script>
- START_END_MARKER;
- }
- How can I modify this approach to have the script in the given page? Thank you! 142.157.25.184 (talk) 23:49, 26 November 2018 (UTC)
- I have not found a way to access the article/page ID in LocalSettings, but you can certainly use $_REQUEST or $_SERVER to get the URL of the page and use that to filter. Or if you want you can use the API to get the ID via the URL. HSRobinson (talk) 12:23, 28 November 2018 (UTC)
- Thank you! You mean, that LocalSettings doesn't know, what page id is? So I should work through the url (which might change)?
- Your approach worked, just for someone who's trying to do something similar I'll post the piece of code here:
- if (($_SERVER['REQUEST_URI'] == '/index.php?title=XXX') || ($_SERVER['REQUEST_URI'] == '/index.php?title=YYY'))
- {
- $wgHeadScriptCode = <<<'START_END_MARKER'
- <script> ... </script>
- START_END_MARKER;
- }
- So you can explicitly indicate the pages where you want the script. Del222 (talk) 16:39, 28 November 2018 (UTC)
- These didn't work for my current version of MediaWiki, but this snipet did: Snippets/Load an additional JavaScript or stylesheet file on all pages 104.142.125.214 (talk) 19:03, 9 May 2019 (UTC)
- Hello, does anyone know a way to add HTML to the <nowiki><head></nowiki> tag with vanilla JavaScript (ES6/7)? Thanks, 182.232.142.153 (talk) 07:23, 22 June 2019 (UTC)
- Usually, adding contents to the head with JavaScript is useless. However, even if you want to do that, that's not really related to MediaWiki, since that's something so generic as "how to add HTML to any arbitrary HTML element" Ciencia Al Poder (talk) 11:30, 22 June 2019 (UTC)
- @Ciencia Al Poder I'm curious to know why you consider it useless to add HTML to head with JS? Thanks anyway... 49.230.4.142 (talk) 01:25, 21 September 2019 (UTC)
- The kind of code you usually want to add to the head element is for third party software to process, like an authorization key for google analytics or a search engine, OpenGraph tags for social media, etc. But the programs that scrape your website to look at those tags don't execute JavaScript, hence why I think it's usually useless to add those tags with JavaScript.
- On the other hand, if the user wants to add a script using javascript, well... it's irrelevant where you put the script tags, because what you want is to execute the script, not to put script tags on the page. Ciencia Al Poder (talk) 10:24, 21 September 2019 (UTC)
Diff in wiki markup
When viewing a diff I would like to copy it as wiki markup using deletion tags (del) and insertion tags (ins). Is there a safe extension or a script to do that? Gryllida 23:28, 31 October 2018 (UTC)
Importing large xmls into a new wiki
| MediaWiki | 1.31.1 |
| PHP | 7.0.32 (litespeed) |
| MySQL | 5.7.23-cll-lve |
| ICU | 50.1.2 |
Hello,
Right now I'm currently moving a lot of information from one wiki to another, and I've been roadblocked by the file upload limit in Special:Import. I've researched how to get around this, and it seems to be altering some values (namely max_file_size and some others) in order to allow larger file uploads. However, the information is a bit scattered around, and I'm a little confused on where these values are located, or how to add them to the specific files. Is there a more easy-to-read guide I could use, or could someone help me with bumping up the max file size to upload larger xml files? The largest file in question is ~2.56 GB.
Thanks. 66.169.205.162 (talk) 23:55, 31 October 2018 (UTC)