Project:Support desk/Flow/2020/01

Latest comment: 1 year ago by Saffi Potentate in topic Wikipedia App., can't login.
This page is an archive.
Please ask questions on the current support desk.

Bulk undo of page 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.


I ran an overoptimistic pywikibot script that deleted a category line from many pages. I know the time window, and no other edits occurred during that time window, and no edits have been made to the affected pages since. Is there a command to either undo changes made in a time range, revert back to a set date, or use add_text.py to re-add the category line to pages last changed in a time range? Vicarage (talk) 11:36, 1 January 2020 (UTC)

See "Get help" on https://www.mediawiki.org/wiki/Manual:Pywikibot Malyacko (talk) 12:25, 1 January 2020 (UTC)
Current plan:
Backup again
Restore backup taken 2 hours before problem to a new wiki
(new wiki) python pwb.py listpages -cat:conseries -ns:0 -user:john -format:4 > conseries.txt
(old wiki) python pwb.py add_text -ns:0 -user:john -file:conseries.txt -text:" [[Category:conseries]]"
Oddly, the add_text script changes the initial capital of existing categories without asking, but I can live with that
Drink beer. Vicarage (talk) 12:43, 1 January 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Weird carating effect

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.


On my wiki (Mediawiki 1.34.0, PHP 7.3.13 MySQL5.6.40-84.0-log) there is a strange carating effect "⧼mvwiki.com⧽" on the logo and other items related to 'timeless' skin since updating to 1.34.0. I look at the code and it's bonkers trying to figure out where the error is; some of it was fixable but the logo still looks bad - please help Kevathens (talk) 14:13, 1 January 2020 (UTC)

Along with MediaWiki core, did you remember to update Skin:Timeless too? Looks like you did. If so, maybe the new configurations are required. AhmadF.Cheema (talk) 16:21, 1 January 2020 (UTC)
Hm I tried this. I need to note that the title is usually 'timeless-title' without replacing 'timeless-title' with 'mvwiki' in TimelessTemplate.php - so the error lies in the call of that? Kevathens (talk) 18:32, 1 January 2020 (UTC)
There's no message 'timeless-title' in Timeless. The title message key is timeless-sitetitle. The site title is produced through the chain timeless-sitetitle -> sitetitle ->{{SITENAME}}. The magic word {{SITENAME}} got its value from $wgSitename. If you have attempted to fix this from "TimelessTemplate.php", that will be likely where the problem comes from as that's not proper way to fix title. – Ammarpad (talk) 09:59, 2 January 2020 (UTC)
Fixed! Thanks! Kevathens (talk) 17:00, 2 January 2020 (UTC)
usually the caretting indicates that an i18n message is missing Bawolff (talk) 19:32, 1 January 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

TOClimit not working on mobile view

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.


Mediawi 1.28.2
Hi, we've got a page with a lot of level 3 headings, so to avoid them all appearing in the TOC, we've got <div class="toclimit-2">__TOC__</div> on the page.
This works fine on desktop, but not on mobile view.
The page is at https://www.svrwiki.com/Unsuccessful_proposals_for_railways_in_the_Severn_Valley
Is there a way to force this to work on mobile please? Graham Phillips 110 (talk) 19:12, 1 January 2020 (UTC)
MediaWiki 1.28 has been unsupported for more than two years and has several security vulnerabilities by now. Your website is insecure. Please upgrade. Malyacko (talk) 13:07, 2 January 2020 (UTC)
The page where you defined that class does not apply to mobile site. To make it work on mobile, you have to also define it in svrwiki.com/MediaWiki:Mobile.css. – Ammarpad (talk) 09:25, 2 January 2020 (UTC)
Thank you both. It's working perfectly on mobile now, and I'll do the upgrade at the earliest opportunity. Graham Phillips 110 (talk) 22:22, 2 January 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

donated, but still beeing spammed with requests to donate

What can I do now?

I donated anonymously, before I subscribed to you.

How will this be handled?

How do I get rid of this annoying requests to spend money, despite I did this already?

How can I now receive a confirmation for my donation (for tax reduction purposes)?

Thank you for your answer in advance, Uwe 178.82.91.101 (talk) 05:27, 2 January 2020 (UTC)

Is this related to the Wikimedia Foundation?
If so, for tax receipts, see Foundation:Donations FAQ#If I make a donation, how do I get my tax receipt? AhmadF.Cheema (talk) 12:15, 2 January 2020 (UTC)
I think if you're not deleting/disallowing cookies, (at least the relevant cookies) you'd see less of that banner. The Fundraising team are also working on "I already donated" button, that can help in such situations. For your other question please contact donate wikimedia.org – Ammarpad (talk) 17:22, 2 January 2020 (UTC)

Translation problem

Hey I'm having a trouble translating a page from English to Arabic,

I go to contributions -> new contribution -> new translation - and then select the article and languages

Afterwords a message pops up "This is an ongoing translation by محمد مدهون.

Please make sure you coordinate with the user who translated the current translation."

I tried to contact him but he didn't provide his contacts and he seems not active for quite long time, how can I fix this issue? علاء عبد الواحد (talk) 08:39, 2 January 2020 (UTC)

From what I understand, there's nothing you can do. See phab:T179515 and phab:T89707. You just have to wait, until when that translation is deleted by a scheduled script (The wait period is strangely up to 1 year and 3 months after the user went inactive) This is definitely not optimal (in my view), but it's what we have. So now you just have look for something else to translate. – Ammarpad (talk) 05:01, 3 January 2020 (UTC)

After migration, configuration and customization of MediaWiki, the main page looks broken.

After migration, configuration and customization of MediaWiki, the main page looks broken.

What is cause?


Working current instance:

https://cdn1.imggmi.com/uploads/2020/1/2/346f40651cd80627fab0cdfe2f38764e-full.png


Broken new instance:

https://cdn1.imggmi.com/uploads/2020/1/2/70b95fc9d7fc2145a2055d8c58c99595-full.png


The current instance of MediaWiki has:

Product         Version

MediaWiki       1.17.2

PHP     5.6.40-0+deb8u8 (fpm-fcgi)

MySQL   5.5.62-0+deb8u1-log


The new instance of MediaWiki has:

Product         Version

MediaWiki       1.31.6 (b2517e4)

PHP     7.3.11-1~deb10u1 (apache2handler)

MariaDB         10.3.18-MariaDB-0+deb10u1

ICU     63.1


I use the following extensions:

CategoryTree

Cite

Collection

LDAPProvider

LDAPAuthentication2

pChart4mw

PluggableAuth

RSS

SyntaxHighlight_GeSHi

Widgets

WikiEditor


I use the following skins:

MonoBook

Timeless

Vector Pavche (talk) 15:04, 2 January 2020 (UTC)

The CSS is not loaded. See the Developer Tools of your web browser to see which CSS files do not get loaded. Malyacko (talk) 18:25, 2 January 2020 (UTC)
The developer console says:
The script from “https://wiki.egi.eu/w/load.php?debug=true&lang=en&modules=startup&only=scripts&skin=vector” was loaded even though its MIME type (“text/html”) is not a valid JavaScript MIME type.
Loading failed for the <script> with source “https://wiki.egi.eu/w/load.php?debug=true&lang=en&modules=startup&only=scripts&skin=vector”.
I have the skin Vector:
mediawiki-1.31.6/w/skins/Vector# cat version
Vector: REL1_31
2019-05-20T02:31:52
f0327dc Pavche (talk) 10:27, 3 January 2020 (UTC)
That's output from the console. Please look at errors for CSS files in the network tab. Malyacko (talk) 12:58, 3 January 2020 (UTC)
Debug data:
IP: 147.251.17.252
Start request GET /wiki/Main_Page
HTTP HEADERS:
HOST: wiki.egi.eu
USER-AGENT: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0
ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
ACCEPT-LANGUAGE: en-US,en;q=0.5
ACCEPT-ENCODING: gzip, deflate, br
CONNECTION: keep-alive
COOKIE: _ga=GA1.2.884723994.1578037706; _gid=GA1.2.1496363130.1578037706
UPGRADE-INSECURE-REQUESTS: 1
[caches] cluster: APCBagOStuff, WAN: mediawiki-main-default, stash: db-replicated, message: APCBagOStuff, session: APCBagOStuff
[caches] LocalisationCache: using store LCStoreCDB
[CryptRand] 0 bytes of randomness leftover in the buffer.
[session] SessionBackend "8r7od3amachn40lmm0gql2htl217phs3" is unsaved, marking dirty in constructor
[session] SessionBackend "8r7od3amachn40lmm0gql2htl217phs3" save: dataDirty=1 metaDirty=1 forcePersist=0
[cookie] already deleted setcookie: "wikidb_session", "", "1546516778", "/", "", "1", "1"
[cookie] already deleted setcookie: "wikidbUserID", "", "1546516778", "/", "", "1", "1"
[cookie] already deleted setcookie: "wikidbToken", "", "1546516778", "/", "", "1", "1"
[cookie] already deleted setcookie: "forceHTTPS", "", "1546516778", "/", "", "", "1"
[DBConnection] Wikimedia\Rdbms\LoadBalancer::openConnection: calling initLB() before first connection.
[DBReplication] Cannot use ChronologyProtector with EmptyBagOStuff.
[DBReplication] Wikimedia\Rdbms\LBFactory::getChronologyProtector: using request info {
"IPAddress": "147.251.17.252",
"UserAgent": "Mozilla\/5.0 (X11; Linux x86_64; rv:68.0) Gecko\/20100101 Firefox\/68.0",
"ChronologyProtection": false,
"ChronologyPositionIndex": 0
}
[DBConnection] Wikimedia\Rdbms\LoadBalancer::openConnection: connected to database 0 at 'localhost'.
Title::getRestrictionTypes: applicable restrictions to Main Page are {edit,move}
[ContentHandler] Created handler for wikitext: WikitextContentHandler
[MessageCache] MessageCache::load: Loading en... local cache is empty, got from global cache
Unstubbing $wgParser on call of $wgParser::firstCallInit from MessageCache->transform
Parser: using preprocessor: Preprocessor_DOM
Unstubbing $wgLang on call of $wgLang::_unstub from ParserOptions->__construct
[caches] parser: APCBagOStuff
Article::view using parser cache: yes
Parser cache options found.
ParserOutput cache found.
Article::view: showing parser cache contents
MediaWiki::preOutputCommit: primary transaction round committed
MediaWiki::preOutputCommit: pre-send deferred updates completed
MediaWiki::preOutputCommit: LBFactory shutdown completed
Title::getRestrictionTypes: applicable restrictions to Main Page are {edit,move} Pavche (talk) 12:01, 3 January 2020 (UTC)
The script from “https://wiki.egi.eu/w/load.php?debug=true&lang=en&modules=startup&only=scripts&skin=vector” was loaded even though its MIME type (“text/html”) is not a valid JavaScript MIME type.
Main_Page
Loading failed for the <script> with source “https://wiki.egi.eu/w/load.php?debug=true&lang=en&modules=startup&only=scripts&skin=vector”. Main_Page:109:1
Ruleset ignored due to bad selector. load.php:10:1
...
Stylesheets without CSSOM changes reparsed to check for errors. Refresh the page to also see errors from stylesheets changed from CSSOM and from style attributes. Pavche (talk) 12:05, 3 January 2020 (UTC)
Apache error log
No messages while loading the main page.
Apache access log
::1 - - [03/Jan/2020:13:26:07 +0100] "OPTIONS * HTTP/1.0" 200 152 "-" "Apache/2.4.38 (Debian) OpenSSL/1.1.1d (internal dummy connection)" Pavche (talk) 12:28, 3 January 2020 (UTC)
Debug log
https://bpaste.net/E3FA Pavche (talk) 13:01, 3 January 2020 (UTC)
The installation of MediaWiki is in:
/mnt/data/mediawiki-1.31.6/w
From our previous instance of MediaWiki in LocalSettings.php:
$wgScriptPath = "/w"
Now I have changed that parameter $wgScriptPath = "".
It works. I am happy! Pavche (talk) 14:35, 3 January 2020 (UTC)

Confirm email address

When trying to confirm I get the message

A confirmation code has already been emailed to you; if you recently created your account, you may wish to wait a few minutes for it to arrive before trying to request a new code

But I do not get an Email, The email address is correct.

When I click on Mail a confirmation code I get an error could not send your confirmation mail. Please check your email address for invalid characters.

Mailer returned: Unknown error in PHP's mail() function.

What can I do ? 2610S (talk) 00:25, 3 January 2020 (UTC)

Is this here on a wmf wiki or on a different wiki? DannyS712 (talk) 00:46, 3 January 2020 (UTC)
are you the system administrator of the wiki.
If you are on linux most likely no mail transfer agent is installed (check to see if you can send mail with the commandline mail client), and you have to install something like sendmail or postfix.
Alternatively you can configure manual:$wgSMTP to use an external email sender Bawolff (talk) 02:12, 3 January 2020 (UTC)

MediaWiki internal error.

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 need help with updating I get Original exception: [7d98db55d3f6c8490a5c13b3] /wiki//index.php/Main_Page Wikimedia\Rdbms\DBQueryError from line 1603 of /var/www/nextcloud/wiki/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 event_id,event_type,event_variant,event_agent_id,event_agent_ip,event_extra,event_page_id,event_deleted,notification_timestamp FROM `swecho_event` INNER JOIN `swecho_notification` ON ((notification_event=event_id)) INNER JOIN `swecho_target_page` ON ((etp_event=event_id)) WHERE event_deleted = '0' AND notification_user = '1' AND notification_read_timestamp IS NULL AND etp_page = '1'

Function: EchoEventMapper::fetchUnreadByUserAndPage

Error: 1146 Table 'wiki.swecho_event' doesn't exist (localhost)

Can you please help me. I am going to comment out echo and thanks in my site


Nsturtz2 (talk) 02:27, 3 January 2020 (UTC)

run update.php or remove the extension. Bawolff (talk) 03:53, 3 January 2020 (UTC)
Thank you that worked Nsturtz2 (talk) 00:51, 2 April 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

does someone know why i am unable to load page content translation page ?

please check the link http://tewiki.iiit.ac.in/index.php?title=Special:ContentTranslation&campaign=contributionsmenu&to=te Ramu ummadishetty (talk) 05:05, 3 January 2020 (UTC)

works fine for me Bawolff (talk) 07:41, 3 January 2020 (UTC)
after clicking on translate its not working... Ramu ummadishetty (talk) 08:56, 4 January 2020 (UTC)

Could not authenticate credentials against domain "LDAP"

Product         Version

MediaWiki       1.31.6 (0ecb4d9)

PHP     7.3.11-1~deb10u1 (apache2handler)

MariaDB         10.3.18-MariaDB-0+deb10u1

ICU     63.1


Plugins for LDAP authentication:

  - LDAPProvider

  - PluggableAuth

  - LDAPAuthentication2


The configuration of LDAP authentication is in:

/etc/mediawiki/ldapprovider.json


A testing instance of MediaWiki is publicly available at:

https://wiki-test.egi.eu Pavche (talk) 15:17, 3 January 2020 (UTC)

Contents of /etc/mediawiki/ldapprovider.json
{
       "LDAP": {
               "connection": {
                       "server": "ldap.server.com",
                       "port": 636,
                       "user": "cn=account,dc=server,dc=com",
                       "pass": "********",
                       "options": {},
                       "enctype": "ssl",
                       "basedn": "dc=server,dc=com",
                       "groupbasedn": "ou=groups,dc=server,dc=com",
                       "userbasedn": "ou=People,dc=server,dc=com",
                       "searchattribute": "uid",
                       "searchstring": "uid=USER-NAME,dc=server,dc=com",
                       "grouprequest": "MediaWiki\\Extension\\LDAPProvider\\UserGroupsRequest\\GroupUniqueMember::factory",
                       "groupobjectclass": "",
                       "groupattribute": "member",
                       "usernameattribute": "uid",
                       "realnameattribute": "cn",
                       "emailattribute": "mail"
               },
               "userinfo": {
                       "attributes-map": {
                               "email": "mail",
                               "realname": "cn",
                               "nickname": "uid"
                       }
               }
       }
}

Pavche (talk) 15:18, 3 January 2020 (UTC)
Debug data
https://bpaste.net/IJCQ Pavche (talk) 15:19, 3 January 2020 (UTC)
Debug log
https://bpaste.net/KZDQ Pavche (talk) 15:21, 3 January 2020 (UTC)
LDAP extensions in LocalSettings.php
# https://www.mediawiki.org/wiki/Extension:LDAPProvider
wfLoadExtension( 'LDAPProvider' );
$LDAPProviderDomainConfigs = "/etc/mediawiki/ldapprovider.json";
# https://www.mediawiki.org/wiki/Extension:PluggableAuth
wfLoadExtension( 'PluggableAuth' );
# This extension is part of the LDAP Stack and requires the LDAPProvider extension to be installed first.
# LDAPAuthentication2 requires PluggableAuth.
# https://www.mediawiki.org/wiki/Extension:LDAPAuthentication2
wfLoadExtension( 'LDAPAuthentication2' ); Pavche (talk) 15:24, 3 January 2020 (UTC)

Extension:MobileApp error 1.34

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.


Any idea what is causing this error?


Fatal error: Uncaught Exception: Unable to open file /home/dgo/public_html/extensions/MobileApp/extension.json: filemtime(): stat failed for /home/dgo/public_html/extensions/MobileApp/extension.json in /home/dgo/public_html/includes/registration/ExtensionRegistry.php:136 Stack trace: #0 /home/dgo/public_html/includes/GlobalFunctions.php(52): ExtensionRegistry->queue('/home/dgo/...') #1 /home/dgo/public_html/LocalSettings.php(272): wfLoadExtension('MobileApp') #2 /home/dennisgo/public_html/includes/Setup.php(124): require_once('/home/dgo/...') #3 /home/dgo/public_html/includes/WebStart.php(81): require_once('/home/dgo/...') #4 /home/dgo/public_html/index.php(41): require('/home/dgo/...') #5 {main} thrown in /home/dgo/public_html/includes/registration/ExtensionRegistry.php on line 136 AlgorithmGG (talk) 18:21, 3 January 2020 (UTC)

I got the same error installing Extension:UniversalLanguageSelector also AlgorithmGG (talk) 18:27, 3 January 2020 (UTC)
Why are you trying to install Extension:MobileApp? I don't think it is supposed to work for third-party Wikis i.e. non-Wikimedia Foundation Wikis.
Regarding Extension:UniversalLanguageSelector, can you quote the error here? AhmadF.Cheema (talk) 22:12, 3 January 2020 (UTC)
Oh i wasn't aware of this, It seems like a just progression as things are missing in my project. I do this stuff voluntarily as a hobby. Regarding the Extension:UniversalLanguageSelector extension the error is the same, i am its unable to open the file.
Cheers AlgorithmGG (talk) 00:19, 4 January 2020 (UTC)
the error just means the extension is missing/mediawiki could not find it. Bawolff (talk) 03:39, 4 January 2020 (UTC)
Thanks, Bawolff that's hilarious that. it would help if I installed the extension. Top man 👍 AlgorithmGG (talk) 03:53, 4 January 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

update and composer.lock

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,

Running a MW site, PHP version 7.3, MW 1.33.1.

In the root directory, there is this composer.lock file which I can successfully update, no problem.

When trying to run update.php in the maintenance directory, it complains as follows : 'Error: your composer.lock file is not up to date. Run "composer update --no-dev" to install newer dependencies'

I go back to the main directory where composer.lock is stored, run composer.phar update --no-dev as requested, works sucessfully, and going back to maintenance/update.php, I get the same error message again. Any idea ?

Airy Amagnien2 (talk) 18:50, 3 January 2020 (UTC)

Not sure, but maybe composer update --no-dev also needs to be run in one of the extension folders? Among the extensions you installed, was there any one whose installation instructions required composer install too? AhmadF.Cheema (talk) 22:17, 3 January 2020 (UTC)
Yes, I do not remember which but I'll check. Amagnien2 (talk) 22:59, 3 January 2020 (UTC)
Most extensions I use do not require Composer nor Update. Exceptions are:
  • Maps (install successful)
  • TimedMediaHandler (install aborted, since I could not run update.php owing to composer.lock not ok)
I never saw instructions telling to run composer in the extension folder itself, and my only composer(.phar) file is in the root directory of the website. Amagnien2 (talk) 10:50, 4 January 2020 (UTC)
ive heard of this issue with people installing extensions via composer where update.php gets confused if the extension edits composer.json (as opposed to extensions that just use composer) Bawolff (talk) 04:19, 5 January 2020 (UTC)
I gave up TimedMediaHandler without regret, since I could install the sound manager 2 button that works fine for mp3 files and keep videos for later. However I'm stuck with this issue, the intention being to install Cargo - no alternative here.
For the sake of clarity, here's the log :
(php/7.3/production/stable) ~/www/maintenance $ php update.php
MediaWiki 1.33.1 Updater
mediawiki/maps: 7.15.5 installed, ^7 required.
Error: your composer.lock file is not up to date. Run "composer update --no-dev" to install newer dependencies
(php/7.3/production/stable) ~/www/maintenance $ cd
(php/7.3/production/stable) ~ $ cd www
(php/7.3/production/stable) ~/www $ php composer.phar update --no-dev
> ComposerHookHandler::onPreUpdate
Loading composer repositories with package information
Updating dependencies
Generating optimized autoload files
> ComposerVendorHtaccessCreator::onEvent
(php/7.3/production/stable) ~/www $ cd maintenance
(php/7.3/production/stable) ~/www/maintenance $ php update.php
MediaWiki 1.33.1 Updater
mediawiki/maps: 7.15.5 installed, ^7 required.
Error: your composer.lock file is not up to date. Run "composer update --no-dev" to install newer dependencies Amagnien2 (talk) 14:57, 6 January 2020 (UTC)
update.php gets confused when using version constraints that are not exact (e.g. that start with a ^). Use only exact version constraints if installing extensions via composer (MediaWiki core doesn't really want extensions to be installed that way, but some extension developers seem to insist on reccomending people do this).
This is https://phabricator.wikimedia.org/T219832 Bawolff (talk) 09:08, 9 January 2020 (UTC)
Thanks for that. I only used the provided version constraints, including open-ended ones as you mention. I'll try that fix and let you (and other readers) know. Amagnien2 (talk) 16:33, 12 January 2020 (UTC)
I changed one line in the composer.php file located in the main website folder. Instead of ^7 required, I put the current version (7.15.5) as being required, then ran composer.phar. After that, update.php worked successfully.
Great advice ! warm thanks from the happy user. Now I can proceed with installing Cargo :) :) :) Amagnien2 (talk) 20:14, 12 January 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Mediawiki Alpha

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.


May I ask, what are the pros and cons of using Alpha? I tend to use the stable versions. AlgorithmGG (talk) 20:35, 3 January 2020 (UTC)

Alpha/Master versions have the latest features included, however, they may have severe bugs and keeping them up-to-date is a pain because of the high frequency of their updates. These are primarily used in development Wikis.
In a production Wiki, you should definitely use the stable releases. Master versions do not provide any significant benefit for the amount of work they require and potential risk of data loss. AhmadF.Cheema (talk) 22:07, 3 January 2020 (UTC)
Thanks this is what i thought. it sounds like a lot of fun thanks for the clarification. AlgorithmGG (talk) 00:20, 4 January 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Problem with webp uploads- MW 1.33 on Apache

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 have added webp and svg via:
$wgEnableUploads = true;
$wgUseImageMagick = true;
$wgImageMagickConvertCommand = "/usr/bin/convert";
$wgFileExtensions = array( 'png', 'gif', 'jpg', 'jpeg', 'webp', 'svg' );
in LocalSettings.php on my MW 1.33 install, svg works great but I still receive the error that webp is is not a permitted filetype. Webp is enabled in apache .htaccess AddType image/webp .webp as per my host's documentation (Dreamhost VPS) and the apache documentation.. not sure why MediaWiki can't see/allow it. Is there something else that I'm missing that might need to be done in order to get webp working? TiltedCerebellum (talk) 22:07, 3 January 2020 (UTC)
are you sure that you dont have multiple $wgFileExtensions lines in LocalSettings.php ? Bawolff (talk) 03:30, 4 January 2020 (UTC)
Yep, checked that. Seems to have resolved, no idea why. :\ TiltedCerebellum (talk) 04:11, 4 January 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Template:Coord/display/title does not work on my site

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.


As the documentation indicates it should be shown on the right side of the title, but in my case I am not able to make it work properly. I guess there is something in the configuration that does not let this work correctly. I would appreciate help on this.


I leave two link so you can see what I mean.

https://en.dontv.es/wiki/Template:Coord/display/title

https://en.dontv.es/wiki/Newfoundland,_Kentucky


Best regards Jomagalo (talk) 11:56, 4 January 2020 (UTC)

Are you copying en:Template:Coord/display/title? If so, how did you import the template into your Wiki? You'll probably need to import the other related templates and modules along with any CSS rules to make the template work properly.
To import all related templates and modules, export the required template through en:Special:Export while having the Include templates option checked. After which import the created XML file into your Wiki.
The missing CSS rules appear to be present in en:MediaWiki:Vector.css (and other skin CSS pages). AhmadF.Cheema (talk) 13:00, 4 January 2020 (UTC)
Problem solved. The page: MediaWiki:Vector.css was empty. I had already tried everything.
Thank you. Jomagalo (talk) 13:59, 4 January 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Extension:flow pimple error mw 1.34

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 am getting this error with flow

Fatal error: Class 'Pimple\Container' not found in /home/dennisgo/public_html/extensions/Flow/includes/Container.php on line 5


all the files didn't seem to come with the download, does anybody have a link or some advice on this please.


Kind Regards


AlgorithmGG (talk) 18:45, 4 January 2020 (UTC)

Please provide clear steps to reproduce and what you did or not. Internet search engines show results for that error message, for example https://www.mediawiki.org/wiki/Extension%20talk%3AStructuredDiscussions/2019#h-Error-2019-05-13T17%3A18%3A00.000Z or https://phabricator.wikimedia.org/T158157 . Have you looked at them before creating this post? Malyacko (talk) 01:13, 5 January 2020 (UTC)
Cheers this is installed with no errors, I think. AlgorithmGG (talk) 03:10, 5 January 2020 (UTC)
@AlgorithmGG I don't understand your last comment. If you installed it without errors then why did you start this thread saying that you had errors when installing it? Malyacko (talk) 14:21, 5 January 2020 (UTC)
There is a missing file called Pimple\Container' in mediawiki 1.34 I installed extensions/Flow 1.34 and then I installed the master which is not compatible with 1.34.. AlgorithmGG (talk) 01:59, 5 January 2020 (UTC)
its likely you need to run composer install in the flow directory Bawolff (talk) 04:17, 5 January 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

MW 1.34 Email feature

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 problem with emails? messages are not being emailed since my update . The notice shows the email but the message isn't being mailed to inbox anymore. Has anybody else experienced this? AlgorithmGG (talk) 22:26, 4 January 2020 (UTC)

Nobody knows without more information. How many users are affected? What does the log of your email server show? Malyacko (talk) 01:11, 5 January 2020 (UTC)
Yeah, its a server issue! Thanks maybe someone else had the same experience as its not an error. Cheers AlgorithmGG (talk) 01:57, 5 January 2020 (UTC)
its likely a problem with your operating system's mail support. Check of you can send email via command line unix mail command. Bawolff (talk) 04:16, 5 January 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

board to board messaging bug mw 1.34

on mobile it seems the send button is missing on board to board messaging it currently just has the text saying {send} with no actual send button. AlgorithmGG (talk) 03:02, 5 January 2020 (UTC)

@AlgorithmGG Nobody knows which "Send" button this is about, as you did not provide any steps to reproduce. Or what "board to board messaging" is. Malyacko (talk) 14:20, 5 January 2020 (UTC)
Is it possible to post images on here? for better clarification and insight to help explain? this post is regarding social tools and a broken send button in mobile view sending messages board to board. AlgorithmGG (talk) 16:06, 5 January 2020 (UTC)
"Social Tools" is important context. Which extension on Social tools/List of extensions is this about? Malyacko (talk) 21:27, 5 January 2020 (UTC)
I am going to take some time and read through the scripts i am using. Cheers AlgorithmGG (talk) 17:49, 6 January 2020 (UTC)

Structured Dissuccions redirect special 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.


May I ask, following installing flow I came across the redirecting special page but can not find any documentation explaining the function and terminology of Post and UUID regarding the script, and what happens when theses settings are altered.


the script says:

Structured Discussions workflow or a Structured Discussions post given a UUID


What is a UUID?


Kind Regards AlgorithmGG (talk) 03:20, 5 January 2020 (UTC)

its a (mostly) random bunch of numbers that identify something. See w:UUID Bawolff (talk) 04:15, 5 January 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

do i need dump for translating articles using content translator extension?

I installed content translator extension in sandbox .when i tried to translate i an getting empty page .so do i need to import dump in order to translate it? Ramu ummadishetty (talk) 05:58, 5 January 2020 (UTC)

What is "sandbox"? Which exact MediaWiki version did you install and which ContentTranslation version? Malyacko (talk) 14:19, 5 January 2020 (UTC)
sandbox nothing but Mediawiki version 1.34.0 and content translation version 1.0.0 Ramu ummadishetty (talk) 08:07, 6 January 2020 (UTC)
Oh, is this the same as https://www.mediawiki.org/wiki/Project%3ASupport%20desk/Flow/2020/01#h-does_someone_know_why_i_am_unable_to_load_page_content_translation_page_%3F-2020-01-03T05%3A05%3A00.000Z ? Then why did you start a new thread? Malyacko (talk) 14:22, 5 January 2020 (UTC)
yes it is the same thing Ramu ummadishetty (talk) 08:10, 6 January 2020 (UTC)

Añadir un contador de visitas a la wiki

Por favor, desearía añadir un contador de visitas a www.wikinclusion.org pero no sé como hacerlo.

Lo he intentado con Google Analytics pero no me funciona.

Muchas gracias por la ayuda

Manuel Manuelfree (talk) 19:11, 5 January 2020 (UTC)

See Extension:HitCounters, Extension:UserPageViewTracker, Project:Support desk/Flow/2013/08#h-How_can_I_know_how_many_people_visit_my_wiki?-2013-08-30T04:54:00.000Z Malyacko (talk) 21:25, 5 January 2020 (UTC)

Edit filter false positives

Hello. Where do I report false positives for the edit filter on MediaWiki? HighwayTyper (talk) 19:23, 5 January 2020 (UTC)

To Project:Current issues. Ciencia Al Poder (talk) 13:05, 6 January 2020 (UTC)

Closing a picture on Wikipedia article - bug

I don't know if it's a new update, but when I open then close a picture now in a Wikipedia article, it'll return me back to the top of the article as if I reloaded it. I only noticed this in the last ~two weeks but haven't been on my desktop much in the last few months. It's the first time that I can remember this ever happening.

If I opened a pic in the past, I might be halfway down a long article, and closing it would just return me to where I left off because opening a pic was like opening a temporary viewer window that hovered over the article. So closing/opening the picture wouldn't have disturbed where I was up to underneath (even if I couldn't see it from the black bars on the side). I could click the left and right buttons to scan through pics in the article and still close it to return to where I was up to in the article, without it being disturbed. Even if I right-clicked the pic and selected "view image" to go to the direct link, then backed up twice to the article, I would still reload to where I was reading after a split-second wait. But now it puts me back to the top of the page regardless of whether it's just one or many pics I see.

It's really frustrating to have to scroll back down again on a long article simply because I opened a picture. Anyone know what's up? 123.243.202.230 (talk) 01:05, 6 January 2020 (UTC)

This sounds like it might be phabricator:T229484. Sam Wilson 08:22, 6 January 2020 (UTC)
Thank you! 123.243.202.230 (talk) 17:13, 6 January 2020 (UTC)

Serious Problems

I use media wiki through A2 hosting and use softaculous for update and what not. So I upgraded to 1.34 and my WIKI is gone. It is just not there and it is a blank vanilla wiki. I backed it up, but if I try to restore the backup nothing works. it was fine until I tried to upgrade to 1.34. I can still find all the images I've uploaded in the file manager as well, but my wiki is a vanilla one. Will someone help me? Goddess.skadi (talk) 13:14, 6 January 2020 (UTC)

Wiki contents are inside a database (usually mysql). Even if you remove the files of MediaWiki, the database is on the same server or another server and the database files are not normally accessible to users. In the old LocalSettings.php you'll have the database connection settings to connect to your database (server, username, password and database name) Ciencia Al Poder (talk) 16:02, 6 January 2020 (UTC)
Can you help me? Goddess.skadi (talk) 16:49, 6 January 2020 (UTC)
Let me try to explain it another way. So I tried to restore my previously backedup version that I backedup right before I upgraded to 1.34. using Softaculous.
It successfully restores my backup and then gives me a link to click on that gets me to a point here: "mywebpage" /mw-config/ where the header says: MediaWiki 1.30.0 installation. See for yourself: https://grevindeafmarkland.info/mw-config/
Then is says:
Existing wiki
A LocalSettings.php file has been detected. To upgrade this installation, please enter the value of $wgUpgradeKey in the box below. You will find it in LocalSettings.php.
When I enter that key (arzxuhj2pfsthjkr) the following happens:
[XhNeDre-bosA-yKTujgKXAAAAAE] /mw-config/?page=ExistingWiki InvalidArgumentException from line 378 of /home/grevinde/public_html/includes/libs/rdbms/database/Database.php: Wikimedia\Rdbms\Database::factory no viable database extension found for type 'mysql'
Backtrace:
#0 /home/grevinde/public_html/includes/installer/MysqlInstaller.php(152): Wikimedia\Rdbms\Database::factory(string, array)
#1 /home/grevinde/public_html/includes/installer/DatabaseInstaller.php(184): MysqlInstaller->openConnection()
#2 /home/grevinde/public_html/includes/installer/WebInstallerExistingWiki.php(169): DatabaseInstaller->getConnection()
#3 /home/grevinde/public_html/includes/installer/WebInstallerExistingWiki.php(82): WebInstallerExistingWiki->handleExistingUpgrade(array)
#4 /home/grevinde/public_html/includes/installer/WebInstaller.php(277): WebInstallerExistingWiki->execute()
#5 /home/grevinde/public_html/mw-config/index.php(80): WebInstaller->execute(array)
#6 /home/grevinde/public_html/mw-config/index.php(39): wfInstallerMain()
#7 {main}
When I try to go to my wiki page the following happens:
[XhNfV7e-bosA-yKTujgOvgAAAAE] 2020-01-06 16:24:55: Fatal exception of type InvalidArgumentException

Goddess.skadi (talk) 16:27, 6 January 2020 (UTC)
Can you help me? Goddess.skadi (talk) 16:36, 6 January 2020 (UTC)
First see Project:Support desk/Flow/2018/04#h-DatabaseBase::factory_no_viable_database_extension_found_for_type_'mysql'-2018-04-04T11:34:00.000Z, if it helps. AhmadF.Cheema (talk) 17:54, 6 January 2020 (UTC)

Refund

I was charged $90.94 on October 7, 2019 from this company. Had no Idea what you are. Reported to my bank they didputed charges. The put back on 10/10 took back out on 11/1, put back again on 11/5. They are having problems figuring this out. Being told there taking it back out again. I believe you should be refunding my money. Daughter told me I could google the name and find out info. NOTHING LOOKS FAMILIAR. CONTACT ME CINDY WALKER (cindywalkercw5@gmail.com) 73.103.28.142 (talk) 14:21, 6 January 2020 (UTC)

You are on the support desk for the MediaWiki software, so I am afraid that you are in the wrong place here, but hard to say without knowing the name of "this company". Note that this is a public place here. Malyacko (talk) 15:11, 6 January 2020 (UTC)

Unable to login after moving the Wiki to a new server

Hi, my provider changed the server on which the wiki is installed, he moved also the database. After this, every attemp to login fails with the "sessionfailure" error.

The server accepts cookies and the /tmp folder is accessible. What else could I try?

I tried also upgrading to 1.31 but got the same error. Wisdom fl (talk) 14:51, 6 January 2020 (UTC)

See Manual:How to debug/Login problems Malyacko (talk) 15:12, 6 January 2020 (UTC)

Upgrade issue

I apologize for the wording

It's a Google translation

I speak only Hebrew

I'm trying to upgrade the wiki via / mw-config

And gets the error

Could not open "/maintenance/archives/patch-mime_minor_length.sql" יאיר מן (talk) 20:20, 6 January 2020 (UTC)

?מאיזו גרסה ולאיזו גרסה DannyS712 (talk) 20:22, 6 January 2020 (UTC)
Do not upgrade, refresh for Manual:update.php יאיר מן (talk) 20:26, 6 January 2020 (UTC)
באיזו גרסה אתה משתמש? DannyS712 (talk) 20:27, 6 January 2020 (UTC)
1.34.0 יאיר מן (talk) 20:28, 6 January 2020 (UTC)
Is there a stack trace? https://www.mediawiki.org/wiki/Manual:$wgShowExceptionDetails DannyS712 (talk) 20:31, 6 January 2020 (UTC)
The file exists - https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/core/+/1.34.0/maintenance/archives/patch-mime_minor_length.sql - is it downloaded? DannyS712 (talk) 20:32, 6 January 2020 (UTC)
Need to install them? יאיר מן (talk) 20:33, 6 January 2020 (UTC)
Depending on how you upgraded //to// 1.34.0, the file might not have been downloaded? DannyS712 (talk) 20:36, 6 January 2020 (UTC)
The wiki installation was 1.34.0 This is not an update יאיר מן (talk) 20:37, 6 January 2020 (UTC)
But 1.33 -> 1.34 might not have been done correctly DannyS712 (talk) 20:38, 6 January 2020 (UTC)
The wiki was never version 1.33 יאיר מן (talk) 20:39, 6 January 2020 (UTC)
What was the last upgrade? DannyS712 (talk) 20:41, 6 January 2020 (UTC)
Write at localSettings.php
$ wgShowExceptionDetails = True
It will help? יאיר מן (talk) 20:43, 6 January 2020 (UTC)
It might, I'm not sure DannyS712 (talk) 20:44, 6 January 2020 (UTC)
I added and now he writes
[XhOcidsjiAGwhQm-Mi2c8QAAABk] / mw-config /? Page = ExistingWiki ParseError from line 166 of /home/vol5_5/epizy.com/epiz_24987621/yair-man.ga/htdocs/LocalSettings.php: syntax error, unexpected end of file
Backtrace:
# 0 /home/vol5_5/epizy.com/epiz_24987621/yair-man.ga/htdocs/includes/installer/WebInstallerExistingWiki.php(29): Installer :: getExistingLocalSettings ()
# 1 /home/vol5_5/epizy.com/epiz_24987621/yair-man.ga/htdocs/includes/installer/WebInstaller.php(270): WebInstallerExistingWiki-> execute ()
# 2 /home/vol5_5/epizy.com/epiz_24987621/yair-man.ga/htdocs/mw-config/index.php(80): WebInstaller-> execute (array)
# 3 /home/vol5_5/epizy.com/epiz_24987621/yair-man.ga/htdocs/mw-config/index.php(38): wfInstallerMain ()
# 4 {main} יאיר מן (talk) 20:47, 6 January 2020 (UTC)
So it looks like there is a syntax error in the local settings (line 166) - can you paste lines ~160-170? DannyS712 (talk) 20:48, 6 January 2020 (UTC)
I managed to add the code but it did not resolve the error יאיר מן (talk) 20:52, 6 January 2020 (UTC)
I'm not sure how to help then DannyS712 (talk) 20:53, 6 January 2020 (UTC)
What did you want me to do with this link https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/core/+/1.34.0/maintenance/archives/patch-mime_minor_length.sql יאיר מן (talk) 20:54, 6 January 2020 (UTC)
I was saying that that is the file that your installation should have but cannot find DannyS712 (talk) 20:55, 6 January 2020 (UTC)
Trying to overwrite the file? יאיר מן (talk) 20:56, 6 January 2020 (UTC)
Could not open "/maintenance/archives/patch-mime_minor_length.sql" - cannot find the file I linked DannyS712 (talk) 20:57, 6 January 2020 (UTC)
I installed the wiki using scriptinstall.rocks יאיר מן (talk) 20:58, 6 January 2020 (UTC)
Not familiar with that, sorry; I don't think I can help DannyS712 (talk) 20:58, 6 January 2020 (UTC)
Thank you so much for trying to help יאיר מן (talk) 20:59, 6 January 2020 (UTC)
If anyone could help, I'd love to יאיר מן (talk) 21:12, 6 January 2020 (UTC)
Is the LocalSettings.php: syntax error, unexpected end of file error still coming up? If so, I don't think the syntax error (such as a missing ;) is resolved yet. Can you copy/paste lines ~160-170, here? AhmadF.Cheema (talk) 00:54, 7 January 2020 (UTC)
This issue resolved the issue with
  Could not open "/maintenance/archives/patch-mime_minor_length.sql
unsolved יאיר מן (talk) 09:47, 7 January 2020 (UTC)
The installer is trying to execute the file /maintenance/archives/patch-mime_minor_length.sql but that file does not exist in your installation.
This file should be there. However, if it's missing, I wouldn't trust the entire installation, because there may be other files missing or corrupted. I'd suggest you to download MediaWiki again, to be sure it isn't missing any other file that can cause malfunction.
You can, of course, download that file individually and place where the installer expects it to be. However, there's no guarantee there will be no more problems later. Ciencia Al Poder (talk) 10:30, 7 January 2020 (UTC)
I performed these actions יאיר מן (talk) 10:33, 7 January 2020 (UTC)

A very accurate data based entry onto your site has been deleted. Why?

I tried to enter very accurate data based on my re cords from my grandmother's educational documentation and resume, and my knowledge]ge as recorded in my journals growing up.  However this info was deleted I now see, from your site.  This was very accurate. I'came back today to upload photos of the graduating class as I detailed, and my grandmother teaching at this school. But all is gone.


Please explain why it ahas been deleted.


Belle 2601:283:4200:3D20:611F:29FF:1846:AF3A (talk) 21:30, 6 January 2020 (UTC)

Addendum: I have not registered as one writing for Wikipedia, and perhaps that was of issue, as my credentials were unknown
Belle 2601:283:4200:3D20:611F:29FF:1846:AF3A (talk) 21:54, 6 January 2020 (UTC)
as an additional note, your credentials are irrelavent to wikipedia. You have to back up anything you say with evidence and logical argument. The only reason to register an account is it makes it easier to have back and forth discussions with people. It also hides your ip address which some people care about Bawolff (talk) 22:48, 6 January 2020 (UTC)
first of all, this site is not wikipedia. We are related to them, but this is not wikipedia. We only do the computer program wikipedia uses.
But to answer your question, wikipedia requires all information to cite secondary sources. Everything you mentioned was primary. See w:WP:NOR
to ask questions about wikipedia editorial standards go to w:WP:Teahouse Bawolff (talk) 22:45, 6 January 2020 (UTC)

Using SSL certificates for user authentication in MediaWiki 1.31.6

Hi.

I have installed long term support version of MediaWiki.

Users would like to authenticate automatically via SSL certificates when they visit the main page.

Which extension is suitable for that versions of MW?

Thanks. Pavche (talk) 08:56, 7 January 2020 (UTC)

Extension:SSL authentication or Extension:SSLClientAuthentication ? Malyacko (talk) 09:06, 7 January 2020 (UTC)

Parsoid on Heroku for visual editor extension Not Working

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 have installed visual editor on my wiki site

and installed Parsoid on Heroku in this tutorial: VisualEditor/Installation on a shared host

and it's worked

i then added a subdomain "wiki" that points to the location of the wiki "domainName.com/wiki" subfolder

i then changed this values in localsettings.php

$wgScriptPath = '';

$wgArticlePath = '/index.php/$1';

$wgServer = 'https://wiki.eyalgi.com';


before it's was i guess:

$wgScriptPath = '/wiki';

$wgArticlePath = don't remember but as default

$wgServer = 'eyalgi.com';


and after this subdomain worked

the parsoid Stopped working

Parsoid Folder 185.191.205.140 (talk) 08:57, 7 January 2020 (UTC)

Please provide exact version information for VisualEditor, Parsoid, and MediaWiki. Malyacko (talk) 09:07, 7 January 2020 (UTC)
mediawiki: version: 1.33.1
for parsoid i just did: git clone https://gerrit.wikimedia.org/r/mediawiki/services/parsoid
on git bash to create the folder. it's on the tutorial i have given
and visualeditor on 1.33
the error says when i try to edit visually:
Error loading information from server: apierror-visualeditor-docserver-http: HTTP 404 185.191.205.138 (talk) 11:24, 7 January 2020 (UTC)
I guess you are not alone: https://phabricator.wikimedia.org/T234049#5529794 Malyacko (talk) 14:24, 7 January 2020 (UTC)
so what should i do?
i need visual editor
and my parsoid is on heroku 185.191.205.138 (talk) 15:59, 7 January 2020 (UTC)
I'm not sure its actually https://phabricator.wikimedia.org/T234049#5529794 , although it might be, since you said it previously worked, and the guess is that bug is mostly about a server misconfiguration.
What is the contents of localsettings.js and config.yaml in your parsoid checkout (especially the mwApis: uri: directive). Please also verify that $wgVirtualRestConfig is correct in your LocalSettings.php Bawolff (talk) 19:43, 7 January 2020 (UTC)
from some reason i could not post here that ⧼abusefilter-warning-linkspam⧽
it's all here: jpst.it/1ZILg 185.191.205.141 (talk) 07:24, 8 January 2020 (UTC)
well your first post said your using https, but the paste you just linked said parsoid is configured that your wiki is on http, that is probably part of the problem Bawolff (talk) 08:24, 8 January 2020 (UTC)
Thanks You Very Much It's Working
I Did What you Said And ReMaked Parsoid With The Tutorial And It's Working :) 185.191.205.142 (talk) 05:53, 9 January 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Authenticating via LDAP fails

Installed software

Product Version
MediaWiki 1.31.6 (0ecb4d9)

15:26, 3 January 2020

PHP 7.3.11-1~deb10u1 (apache2handler)
MariaDB 10.3.18-MariaDB-0+deb10u1
ICU 63.1

Extensions used for authentication: LDAPProvider, PluggableAuth, LDAPAuthentication2


LDAP configuration is saved to: /etc/mediawiki/ldapprovider.json


In LocalSettings.php I have:

wfLoadExtension( 'LDAPProvider' );

$LDAPProviderDomainConfigs = "/etc/mediawiki/ldapprovider.json";

wfLoadExtension( 'PluggableAuth' );

wfLoadExtension( 'LDAPAuthentication2' );


When I log with user 'my_username' then the authentication fails.


When I open the log: /var/log/mediawiki/debug-wiki.log

then I see:

[LDAP] ldap_connect( $hostname = 'ldaps://ldap.server.com:636', $port = 389 );

[LDAP] # __METHOD__ returns Resource id #15

[MediaWiki\Extension\LDAPProvider\Client] Setting LDAP_OPT_PROTOCOL_VERSION to 3

[LDAP] ldap_set_option( $linkID, $option = 17, $newval = 3 );

[LDAP] # returns 1

[MediaWiki\Extension\LDAPProvider\Client] Setting LDAP_OPT_REFERRALS to 0

[LDAP] ldap_set_option( $linkID, $option = 8, $newval = 0 );

[LDAP] # returns 1

[LDAP] ldap_bind( $linkID, $bindRDN = 'cn=sync,dc=egi,dc=eu', $bindPassword = 'XXXX' );

[LDAP] # returns 1

[MediaWiki\Extension\LDAPProvider\Client] MediaWiki\Extension\LDAPProvider\Client::getSearchString: User DN is: 'uid=my_username,dc=egi,dc=eu'

[LDAP] ldap_bind( $linkID, $bindRDN = 'uid=my_username,dc=egi,dc=eu', $bindPassword = 'XXXX' );

[LDAP] # returns

[MessageCache] MessageCache::load: Loading en... local cache is empty, got from global cache

[PluggableAuth] Authentication failure.

[PluggableAuth] ERROR: Could not authenticate credentials against domain "LDAP"


When I open our LDAP server by using Apache Directory Studio

then I see that the correct settings for my user is:

DN: uid=my_username,ou=People,dc=egi,dc=eu


How to modify the LDAP config for searching to include the string 'ou=People'?


Thanks in advance. Pavche (talk) 09:24, 7 January 2020 (UTC)

Looks like you have to change the configuration as described in Extension:LDAPProvider, setting "searchstring" as "uid=USER-NAME,ou=People,dc=egi,dc=eu", and maybe userbasedn and groupbasedn too. Ciencia Al Poder (talk) 10:34, 7 January 2020 (UTC)

Unable to view image after migrating wiki to new server to new updated version 1.26.4

I recently migrated my mediawiki 1.19 running in ubuntu to mediawiki-1.26.4 running in RHEL7.7.

After setup, I noticed the image files are not showing, insted it shows the name of the image, example - Fil:image1.png (page does not exist) , when click on that it goes to edit mode example - Creating Fil:image1.png.


I have verifed the wiki server and conformed the image is available in right path .


Appreciate, if I get some valuable input on what could be the reason for this issue and where to check Kevu2604 (talk) 15:31, 7 January 2020 (UTC)

If you're going to upgrade, why are you upgrading to such a ridiculously old version?
Just to verify, when you say Fil:image1.png, you mean File:image1.png?
At a guess it sounds like the contents of the image table in your wiki's database is missing. Is the page Special:ListFiles empty? Bawolff (talk) 19:37, 7 January 2020 (UTC)

No more thumbnails

So I tried to upgrade to 1.34 and had some problems so I reverted back to 1.30. Ever since then I have the following problems:


Error creating thumbnail: Unable to save thumbnail to destination

No higher resolution available.


This now happens with almost every image I upload and a lot of images that were already working fine. I searched google and have tried everything listed to no avail including the information on this site. it did make me upgrade the php to 7.2 when I tried to upgrade. 2605:A601:AE42:D300:48EE:BAD8:E912:2D11 (talk) 21:23, 7 January 2020 (UTC)

does the user the webserver is running as have sufficient rights to create files in the image directory? Bawolff (talk) 08:19, 8 January 2020 (UTC)
Yes. It is A2Hosting using softaculous. All permissions are 755 or 644. I upgraded to 1.34 and still have the problem. This was not an issue prior to trying to upgrade the wiki and has been a problem ever since. Every time I try to upload a picture the same thing happens no matter how big or small or what type of extension I use. 208.188.113.180 (talk) 10:25, 8 January 2020 (UTC)
Depending on the owner of the file or directory, you should change the owner for permissions to work. A wrong owner renders 755 or 644 permissions as a readonly directory. You can confirm that setting 777 permissions for folders and 666 to files and see if the problem is solved, then check the owner of the files and folders and adjust permissions again. Ciencia Al Poder (talk) 10:31, 8 January 2020 (UTC)

problem at import: Maximum execution time exceeded

Hi, when I import the XML file in my wiki (which contains many articles from another wiki), it is loading at then says:

Fatal error: Maximum execution time of 12 seconds exceeded in /users/soluschristus2/www/includes/import/WikiImporter.php on line 548

When I go to the file WikiImporter.php on line 548 there is written

$buffer .= $this->reader->value;

What can I do to solve this? How can I increase the maximum execution time?

Thanks 2A02:908:3112:8F20:8175:4688:F018:F716 (talk) 09:12, 8 January 2020 (UTC)

You need to set max_execution_time in php.ini Ciencia Al Poder (talk) 10:34, 8 January 2020 (UTC)
It's me.
I tried what is written here
https://www.templatemonster.com/blog/where-is-php-ini/
the result see here
http://soluschristus2.bplaced.net/test.php
There is written
user_ini.filename .php.ini .php.ini
Still I don't know how to solve my problem. Polyphon522 (talk) 13:45, 8 January 2020 (UTC)
By editing php.ini and increasing the value. Your link shows that it is still set to "12". Malyacko (talk) 14:52, 8 January 2020 (UTC)
Sorry I don't know where to find such a file "php.ini". (see my last post above) Polyphon522 (talk) 17:51, 8 January 2020 (UTC)
Probably your hosting provider doesnt let you and you have to contact them
Normally it would be a in a directory like /etc/php but it can vary a lot. Bawolff (talk) 07:10, 9 January 2020 (UTC)

Yes

Plz how login our account tell me 2401:4900:385E:E0C3:E0D6:9B5D:D973:2964 (talk) 15:35, 8 January 2020 (UTC)

Plz 2401:4900:385E:E0C3:E0D6:9B5D:D973:2964 (talk) 15:35, 8 January 2020 (UTC)
By entering "our" username and password. AhmadF.Cheema (talk) 16:40, 8 January 2020 (UTC)

I can't get data from Wikidata

I have imported all the templates related to Wikidata but there is no way to get data from Wikidata. For example:

In these two link you see the difference


My site

https://en.dontv.es/wiki/Template:WikidataCoord_hqlocation


Wikipedia

https://en.wikipedia.org/wiki/Template:WikidataCoord_hqlocation


As you can see the property name does not appear on my site Jomagalo (talk) 15:47, 8 January 2020 (UTC)

wikidata support comes from extension:Wikibase not from the templates which just use it Bawolff (talk) 07:02, 9 January 2020 (UTC)
The Wikibase extension is installed but I am not sure that it was done correctly in the LocalSettings.php file. Could you help me with that?
This is the configuration I have in my LocalSettings.php:
$wgEnableWikibaseRepo = true;
$wgEnableWikibaseClient = true;
require_once "$IP/extensions/Wikibase/repo/Wikibase.php";
require_once "$IP/extensions/Wikibase/repo/ExampleSettings.php";
require_once "$IP/extensions/Wikibase/client/WikibaseClient.php";
require_once "$IP/extensions/Wikibase/client/ExampleSettings.php";
wfLoadExtension( 'WikibaseLexeme' );
wfLoadExtension( 'WikimediaBadges' ); Jomagalo (talk) 09:28, 9 January 2020 (UTC)

Lua error

I am getting one of the common errors, but none of the solutions seem to be pointing me in a right direction.

Lua error: Internal error: The interpreter exited with status 127

What I have already done is look at LocalSettings.php to see where the luapath is set, but by all accounts it is completely correct. Scribunto is installed correctly in the extensions folder. For reference, we are using HostHavoc as a web host and installed MediaWiki through Softaculous. The luapath is set to $wgScribuntoEngineConf['luastandalone']['luaPath'] = '/usr/bin/lua'; 209.99.197.100 (talk) 18:01, 8 January 2020 (UTC)

If you type /usr/bin/lua at the command line, do you get a lua prompt Bawolff (talk) 01:37, 9 January 2020 (UTC)

Restore original skin

Need some help restoring original skin 2602:306:3239:F8A0:2957:BF86:8F26:BFD8 (talk) 19:02, 8 January 2020 (UTC)

You will have to elaborate. Basically you wrote "My car does not work. Tell me how to fix it. But I don't tell you which car, or why I think that it does not work." :) Malyacko (talk) 20:27, 8 January 2020 (UTC)

error message after change my username, and cannot logout

Jango->minejango2, cannot logout

Sorry! We could not process your edit due to a loss of session data.

You might have been logged out. Please verify that you're still logged in and try again. If it still does not work, try logging out and logging back in, and check that your browser allows cookies from this site.


222.107.120.70 (talk) 03:59, 9 January 2020 (UTC)

Probably you attempted doing so while the rename was still in progress. Just give it some time and log in with your new username. You don't need to do anything for the old one. – Ammarpad (talk) 07:45, 9 January 2020 (UTC)
still, and I give a so small info.
in gamepedia, I change the username, not id.
and it still showing errors.
when logout: Log out failed due to session error. Please try again
when trying edit wiki: Sorry! We could not process your edit due to a loss of session data.
You might have been logged out. Please verify that you're still logged in and try again. If it still does not work, try logging out and logging back in, and check that your browser allows cookies from this site.
oh well, I accept cookies. 2001:2D8:E14F:20CE:0:0:330B:E0A0 (talk) 11:02, 9 January 2020 (UTC)
This website is not officially linked with Gamepedia, you'll have to ask at their support forum (probably, Gamepedia Help Wiki). AhmadF.Cheema (talk) 12:54, 9 January 2020 (UTC)

How to combine SSL certificates + LDAP for user authentication in MediaWiki?

TASK

To allow users to authenticate via personal certificates.

Under condition that a certificate identifier matches the value of a certain field in LDAP server.


We have LDAP server for user authentication.

Some users have personal SSL certificates.

Besides contact information, some users have their certificates stored in our LDAP server.


When a user browses a web page for administering his/her user account

then a check for a personal certificate is done.


Authentication is performed via username and password.

If the authentication is successful

then the personal certificate is saved into the LDAP server.


Next time the same user tries to log in by offering personal certificate

then the system recognizes it and prompts:

Logged in using certificate /DC=org/DC=terena/DC=tcs/C=CZ/O=ORGANIZATION/CN=USERNAME 1234


The entry which identifies the certificate is:

"/DC=org/DC=terena/DC=tcs/C=CZ/O=ORGANIZATION/CN=USERNAME 1234"

It is stored in LDAP server under:

userCertificateSubject: /DC=org/DC=terena/DC=tcs/C=CZ/O=ORGANIZATION/CN=USERNAME 1234


QUESTIONS

How to combine information coming from 2 extensions in MediaWiki?

How to compare authentication details from LDAPProvider and SSL_authentication? Pavche (talk) 08:20, 9 January 2020 (UTC)

This should be possible.
Instead of Extension:SSL authentication I'd recommend using Extension:Auth remoteuser, though. Basically this should be a very similar setup as the LDAPStack with Kerberos authentication ("network based authentication" / "implicit login"). The only difference is, that the remote username is provided by mod_ssl instead of mod_auth_kerb. Have a look at LDAP_hub#Basic_overview Osnard (talk) 09:14, 9 January 2020 (UTC)

Set my MediaWiki private

Hello,

I downloaded MediaWiki following a WikiHow instructions considering it what I was looking for: a program to archieve idea, files, short stories I write and stuff, but I hoped it was all offline. Considering it's not the case there is at least a way to make it private?

Or am I missing something and it DOES work offline? 82.53.223.246 (talk) 15:08, 9 January 2020 (UTC)

if its on your local host it would be available offline. See manual:preventing access.
You may be interested in tiddlywiki https://tiddlywiki.com Bawolff (talk) 16:09, 9 January 2020 (UTC)

Name and Password chosen while installing, don't let me log in now

I installed today MediaWiki using a nick and a password - but no e-mail thinking it was not neccessary. But when the long process of installation was done and I have been able to access to my wikia, it was required to me to Log In. When I did it... something was invalid.

So I created here on the site a "new account", using the same nick used before, the same password used before, and putting also an e-mail. I went on outlook, confirmed my registration, but now I notice that if on my LocalSetting.php file i set editing restriction like this


$wgGroupPermissions['*']['edit'] = false;

$wgGroupPermissions['user']['edit'] = false;

$wgGroupPermissions['sysop']['edit'] = true;


My created account has no chance to create /edit any page. This means I'm not the admin. What's going wrong? There is any chance i can log again as Admin? What should i do? GregorHeavans (talk) 21:34, 9 January 2020 (UTC)

The new created user will not have admin privileges by default. To promote new users, without access to an admin account, see Manual:CreateAndPromote.php. AhmadF.Cheema (talk) 22:56, 9 January 2020 (UTC)
If you have created 'a "new account", using the same nick used before, the same password used before, and putting also an e-mail.' that definitely means you never created the account in the first place or you forgot what actually the username was. You cannot create exact account twice. You should use the script given above to create administrative user from the command line. Any account you create from the interface will not have any special privilege. – Ammarpad (talk) 10:59, 10 January 2020 (UTC)

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 put a link in the article, it automaticly begins with http://

When I see the preview of the editing, everything is ok. But when I save the article with a link, it saiys:

[24ca8d2d33493e28e7c12486] 2020-01-09 21:46:53: Fatal exception of type "RuntimeException"

I cannot use a hyperlink in any way. The only way it accepts a http:// link, is to write it with

<nowiki> link </nowiki>

So I still can't use hyperlinks. MediaWiki 1.34.0.

Please explain to a newb Polyphon522 (talk) 21:49, 9 January 2020 (UTC)

Looks like a problem with some anti-spam extension. To get a more detailed error, in LocalSettings.php, set:
$wgShowExceptionDetails = true;
$wgDevelopmentWarnings = true; error_reporting( -1 ); ini_set( 'display_errors', 1); error_reporting(E_ALL);
For details, see Manual:How to debug (Setting up a debug log file). AhmadF.Cheema (talk) 22:59, 9 January 2020 (UTC)
This is what I get then. What can I do?
[c3ace1dd252949e1d812991b] /index.php?title=Test&action=submit RuntimeException from line 119 of /users/soluschristus2/www/vendor/guzzlehttp/guzzle/src/functions.php: GuzzleHttp requires cURL, the allow_url_fopen ini setting, or a custom HTTP handler.
Backtrace:
#0 /users/soluschristus2/www/vendor/guzzlehttp/guzzle/src/HandlerStack.php(40): GuzzleHttp\choose_handler()
#1 /users/soluschristus2/www/vendor/guzzlehttp/guzzle/src/Client.php(65): GuzzleHttp\HandlerStack::create()
#2 /users/soluschristus2/www/includes/http/GuzzleHttpRequest.php(172): GuzzleHttp\Client->__construct(array)
#3 /users/soluschristus2/www/includes/http/HttpRequestFactory.php(124): GuzzleHttpRequest->execute()
#4 /users/soluschristus2/www/includes/http/Http.php(47): MediaWiki\Http\HttpRequestFactory->request(string, string, array, string)
#5 /users/soluschristus2/www/includes/http/Http.php(75): Http::request(string, string, array, string)
#6 /users/soluschristus2/www/extensions/SpamBlacklist/includes/BaseBlacklist.php(370): Http::get(string)
#7 /users/soluschristus2/www/extensions/SpamBlacklist/includes/BaseBlacklist.php(332): BaseBlacklist->getHttpText(string)
#8 /users/soluschristus2/www/extensions/SpamBlacklist/includes/BaseBlacklist.php(297): BaseBlacklist->buildSharedBlacklists()
#9 /users/soluschristus2/www/includes/libs/objectcache/wancache/WANObjectCache.php(1424): BaseBlacklist->{closure}(boolean, integer, array, NULL)
#10 /users/soluschristus2/www/includes/libs/objectcache/wancache/WANObjectCache.php(1278): WANObjectCache->fetchOrRegenerate(string, integer, Closure, array)
#11 /users/soluschristus2/www/extensions/SpamBlacklist/includes/BaseBlacklist.php(298): WANObjectCache->getWithSetCallback(string, integer, Closure)
#12 /users/soluschristus2/www/extensions/SpamBlacklist/includes/BaseBlacklist.php(227): BaseBlacklist->getSharedBlacklists()
#13 /users/soluschristus2/www/extensions/SpamBlacklist/includes/SpamBlacklist.php(77): BaseBlacklist->getBlacklists()
#14 /users/soluschristus2/www/extensions/SpamBlacklist/includes/SpamBlacklistHooks.php(41): SpamBlacklist->filter(array, Title)
#15 /users/soluschristus2/www/includes/Hooks.php(174): SpamBlacklistHooks::filterMergedContent(DerivativeContext, WikitextContent, Status, string, User, boolean)
#16 /users/soluschristus2/www/includes/Hooks.php(202): Hooks::callHook(string, array, array, NULL)
#17 /users/soluschristus2/www/includes/EditPage.php(1790): Hooks::run(string, array)
#18 /users/soluschristus2/www/includes/EditPage.php(2247): EditPage->runPostMergeFilters(WikitextContent, Status, User)
#19 /users/soluschristus2/www/includes/EditPage.php(1617): EditPage->internalAttemptSave(NULL, boolean)
#20 /users/soluschristus2/www/includes/EditPage.php(682): EditPage->attemptSave(NULL)
#21 /users/soluschristus2/www/includes/actions/EditAction.php(55): EditPage->edit()
#22 /users/soluschristus2/www/includes/actions/SubmitAction.php(38): EditAction->show()
#23 /users/soluschristus2/www/includes/MediaWiki.php(511): SubmitAction->show()
#24 /users/soluschristus2/www/includes/MediaWiki.php(302): MediaWiki->performAction(Article, Title)
#25 /users/soluschristus2/www/includes/MediaWiki.php(900): MediaWiki->performRequest()
#26 /users/soluschristus2/www/includes/MediaWiki.php(527): MediaWiki->main()
#27 /users/soluschristus2/www/index.php(44): MediaWiki->run()
#28 {main} Polyphon522 (talk) 09:53, 10 January 2020 (UTC)
You have the SpamBlacklist extension installed and configured to get the list of spam hosts from a remote URL. However, your server doesn't have curl installed or enabled, which is necessary to connect to external hosts,
You should either install curl, or disable the lookup of spam hosts from an external URL and instead manually copy the list of spam hosts to a local file and point the extension to that file. You'll need to update it regularly Ciencia Al Poder (talk) 10:25, 10 January 2020 (UTC)
Thank you, Ciencia Al Poder!
What I have done:
- I have deleted the folder extensions/SpamBlacklist
- deleted the extension also from LocalHost.php
The result is, that the URLs are working now.
So I can let it be that way, or do I have to do something more?
(I don't need the extension SpamBlacklist anyway) Polyphon522 (talk) 10:17, 11 January 2020 (UTC)
Assuming "LocalHost.php" meant LocalSettings.php, then yes, removing the Extension:SpamBlacklist lines from this file is enough. AhmadF.Cheema (talk) 11:38, 11 January 2020 (UTC)
Problem solved. Thanks a lot everyone! Polyphon522 (talk) 11:39, 11 January 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Configure Wikibase

Please,

Can someone tell me how to correctly configure Wikibase to access Wikidata data?

This is what I have in my LocalSettings.php

$wgEnableWikibaseRepo = true;

$wgEnableWikibaseClient = true;

require_once "$IP/extensions/Wikibase/repo/Wikibase.php";

require_once "$IP/extensions/Wikibase/repo/ExampleSettings.php";

require_once "$IP/extensions/Wikibase/client/WikibaseClient.php";

require_once "$IP/extensions/Wikibase/client/ExampleSettings.php";


Even so, I can't get any Wikidata data. Any help would be appreciated, is the only mistake I still have to solve in my Wiki. Jomagalo (talk) 07:51, 10 January 2020 (UTC)

Template:Label "Error in the sequence of orders: the" label "function does not exist."

I get an error in the Template:Label indicating "Error in the sequence of orders: the" label "function does not exist.". I don't see how to solve it. Please can you help me.

MediaWiki: 1.33.2 Jomagalo (talk) 08:16, 10 January 2020 (UTC)

Have you also uploaded all the other related Templates and Modules used in Template:Label? AhmadF.Cheema (talk) 09:17, 10 January 2020 (UTC)
All modules and templates are imported Jomagalo (talk) 09:25, 10 January 2020 (UTC)

High memory usage from MediaWiki

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 using MediaWiki 1.34 on an Apache server.
My website has been generating a lot of 500 internal server errors and my web host thinks this may be due to Media Wiki high memory usage. Here's what they told me and I would be grateful for any suggestions from people with more knowledge than I have.
"Please note that all shared servers are running with Cloud Linux. This software allows us to isolate our customer’s usage on the server and provide more stability for our shared customers. With Cloud Linux, each account has following server resource limit:
2% CPU and MEMORY,
0.4% for MySQL or 5000 Total Connections
20% for Top Processes.
When those values are reached by an account the website's loading time will decrease due to those limitations and errors will appear i.e. 500 internal server error.
I have checked your cPanel>CPU and Concurrent Connection Usage>Snapshots, select the latest date/time, and found the following processes have been run by your account:
-------------------------------------------------------
PID CMD CPU MEM
-------------------------------------------------------
1557937 /opt/cpanel/ea-php72/root/usr/bin/php-cgi /home/xxxxx/public_html/wiki/load.php N/A 15
1557945 /opt/cpanel/ea-php72/root/usr/bin/php-cgi /home/xxxxx/public_html/wiki/load.php N/A 11
1557946 /opt/cpanel/ea-php72/root/usr/bin/php-cgi /home/xxxxx/public_html/wiki/load.php N/A 11
2244977 /opt/cpanel/ea-php72/root/usr/bin/php-cgi /home/xxxxx/public_html/wiki/load.php 0% 3
2251525 /opt/cpanel/ea-php72/root/usr/bin/php-cgi /home/xxxxx/public_html/wiki/load.php 0% 3
3299917 /opt/cpanel/ea-php72/root/usr/bin/php-cgi /home/xxxxx/public_html/wiki/load.php 0% 3
3688868 /opt/cpanel/ea-php72/root/usr/bin/php-cgi /home/xxxxx/public_html/wiki/load.php 0% 3
-------------------------------------------------------
This indicates the 500 internal server error was caused by high memory usage from MediaWiki installation under /public_html/wiki/ directory. You may need to consult MediaWiki support desk to see if they have a patch or update script to fix the high usage." Greylin (talk) 10:11, 10 January 2020 (UTC)
MediaWiki is a very complex software that has quite high memory requirements. Unless your host already provides the installation for MediaWiki (and support), you're probably getting only problems with shared hosts.
A VPS or dedicated server is usually the best option. Ciencia Al Poder (talk) 10:29, 10 January 2020 (UTC)
In addition to the above, if your Wiki was working fine previously, and without making any MediaWiki software changes, the site has suddenly started having high-memory usage issue, it might indicate a problem with the server configuration on your host's end too.
There have been bugs which cause previous PHP commands to not terminate properly causing them to stack up and create high-resource usage.
If you have SSH access, you can use the top command to see running processes live. Are the multiple PHP commands mentioned by your host running simultaneously? Do they dissipate when your Wiki is not being used?
Also, in case you use Extension:VisualEditor then shared hosting will most likely not be suitable for you. AhmadF.Cheema (talk) 11:49, 10 January 2020 (UTC)
if its all load.php (?) i guess its probably js minimization that is the issue.
Anyways, do you have object caching of some sort installed? It will probably reduce cpu usage a lot. Bawolff (talk) 02:45, 11 January 2020 (UTC)
Thank you for the suggestions.
I have contacted my web host with some of the questions you asked, as I don't know enough to answer them myself. I do know, however, that my two wikis have been running smoothly for years and this high memory usage is a new problem
So far both wikis are still only small in terms of content and numbers of people using them. Might it help the high memory usage if I exported and then removed one of them? Greylin (talk) 14:36, 12 January 2020 (UTC)
Having one or multiple wikis shouldn't matter here if the memory limitation is for each request. Otherwise, having multiple wikis will matter only if both are being accessed concurrently, but if they're low traffic that shouldn't be a problem. Ciencia Al Poder (talk) 14:53, 12 January 2020 (UTC)
Well. My web host now says they will increase the PHP limits for my website/account and are moving me to a newer server with more modern hardware/software, after which, they say, I should not experience this problem any more. This does feel right, given that the wikis problem has only cropped up within the past few months. I will report back. Greylin (talk) 12:41, 14 January 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

How can I uninstall Wikibase Repository

I have tried to disable or uninstall Wikibase Repository commenting on these lines:

#require_once "$IP/extensions/Wikibase/repo/Wikibase.php";

#require_once "$IP/extensions/Wikibase/repo/ExampleSettings.php";


I get an error connecting to the database. I just want to have Wikibase Client activated


Jomagalo (talk) 12:20, 10 January 2020 (UTC)

Not sure if things are different now, but a "client only" setup in this way was not possible two years ago. See Talk:Wikibase/Flow export#h-How_can_I_uninstall_Wikibase_Repository_and_retain_Client?-2018-05-08T14:14:00.000Z. AhmadF.Cheema (talk) 20:31, 10 January 2020 (UTC)
So how are you set up Mediawiki Special:Version or Wikipedia https://en.wikipedia.org/w/index.php?title=Special:Version Jomagalo (talk) 20:52, 10 January 2020 (UTC)
I don't think Special:Version is relevant here. If you are referring specifically only to Wikibase, then Wikibase/Installation is the appropriate resource. AhmadF.Cheema (talk) 11:43, 11 January 2020 (UTC)

SphinxSearch throws an error in MediaWiki Version 1.34.0

I'm sorry, I just pasted this in in a hurry because our bureau closes at 16:30 on Fridays. So I try again now:


I have upgraded my wiki to Version 1.34.0, including the extensions. Now the phenomenon is, that when I make use of the SphinxSearch extension, instead of search results it comes up with this error message:

[895083e3cfe4edcfab999700] /testwiki/index.php?search=Celia&title=Spezial%3ASuche&go=Seite ArgumentCountError from line 28 of /srv/www/htdocs/testwiki/extensions/SphinxSearch/SphinxMWSearchResult.php: Too few arguments to function SphinxMWSearchResult::getTextSnippet(), 0 passed in /srv/www/htdocs/testwiki/includes/widget/search/FullSearchResultWidget.php on line 65 and exactly 1 expected

Backtrace:

#0 /srv/www/htdocs/testwiki/includes/widget/search/FullSearchResultWidget.php(65): SphinxMWSearchResult->getTextSnippet()

#1 /srv/www/htdocs/testwiki/includes/widget/search/BasicSearchResultSetWidget.php(122): MediaWiki\Widget\Search\FullSearchResultWidget->render(SphinxMWSearchResult, integer)

#2 /srv/www/htdocs/testwiki/includes/widget/search/BasicSearchResultSetWidget.php(70): MediaWiki\Widget\Search\BasicSearchResultSetWidget->renderResultSet(SphinxMWSearchResultSet, integer)

#3 /srv/www/htdocs/testwiki/includes/specials/SpecialSearch.php(462): MediaWiki\Widget\Search\BasicSearchResultSetWidget->render(string, integer, SphinxMWSearchResultSet, SphinxMWSearchResultSet)

#4 /srv/www/htdocs/testwiki/includes/specials/SpecialSearch.php(179): SpecialSearch->showResults(string)

#5 /srv/www/htdocs/testwiki/includes/specialpage/SpecialPage.php(575): SpecialSearch->execute(NULL)

#6 /srv/www/htdocs/testwiki/includes/specialpage/SpecialPageFactory.php(611): SpecialPage->run(NULL)

#7 /srv/www/htdocs/testwiki/includes/MediaWiki.php(296): MediaWiki\Special\SpecialPageFactory->executePath(Title, RequestContext)

#8 /srv/www/htdocs/testwiki/includes/MediaWiki.php(900): MediaWiki->performRequest()

#9 /srv/www/htdocs/testwiki/includes/MediaWiki.php(527): MediaWiki->main()

#10 /srv/www/htdocs/testwiki/index.php(44): MediaWiki->run()

#11 {main}


To elaborate on the problem, this is what I have in the LocalSettings.php:

#wfLoadExtension( 'SphinxSearch' );

$wgSearchType = 'SphinxMWSearch';

wfLoadExtension( 'SphinxSearch' );

#require_once( "$IP/extensions/SphinxSearch/SphinxSearch_testwiki.php" );

#wfLoadExtension( 'SphinxSearch_testwiki' );

# Host and port on which searchd deamon is tunning

#$wgSphinxSearch_index = "my_testwiki_main";

#$wgSphinxSearch_index_list = "my_testwiki_main,my_testwiki_incremental";

$wgFooterIcons['poweredby']['sphinxsearch'] = array(

       'src' => "$wgScriptPath/extensions/SphinxSearch/Powered_by_sphinx.png",

       'url' => 'http://www.mediawiki.org/wiki/Extension:SphinxSearch',

       'alt' => 'Search Powered by Sphinx',

);


And the extension.json looks like this:

{

       "name": "SphinxSearch",

       "author": "Svemir Brkic, Paul Grinberg",

       "url": "https://www.mediawiki.org/wiki/Extension:SphinxSearch",

       "descriptionmsg": "sphinxsearch-desc",

       "license-name": "GPL-2.0",

       "type": "other",

       "version": "1.0.0",

       "AutoloadClasses": {

               "SphinxMWSearch": "SphinxMWSearch.php",

               "SphinxMWSearchResult": "SphinxMWSearchResult.php",

               "SphinxMWSearchResultSet": "SphinxMWSearchResultSet.php"

       },

       "ExtensionFunctions": [

               "SphinxMWSearch::initialize"

       ],

       "MessagesDirs": {

               "SphinxSearch": [

                       "i18n"

               ]

       },

       "config": {

               "SphinxSearch_host": "127.0.0.1",

               "SphinxSearch_port": 9312,

               "SphinxSearch_index": ",my_testwiki_main",

               "SphinxSearch_index_list": "my_testwiki_main,my_testwiki_incremental",

               "SphinxSearch_index_weights": "null",

               "SphinxSearch_mode": 4,

               "SphinxSearch_sortmode": 0,

               "SphinxSearch_sortby": "",

               "SphinxSearch_maxmatches": 1000,

               "SphinxSearch_cutoff": 0,

               "SphinxSearch_weights": {

                       "old_text": 1,

                       "page_title": 100

               },

               "SphinxSearchMWHighlighter": true,

               "SphinxSuggestMode": "",

               "SphinxSearchAspellPath": "aspell",

               "SphinxSearchPersonalDictionary": "",

               "EnableSphinxInfixSearch": false,

               "EnableSphinxPrefixSearch": true

       },

       "manifest_version": 1

}


So I activated the PHP error message display, and it shows me this error message:

Warning: Declaration of SphinxMWSearchResult::getTextSnippet($terms) should be compatible with RevisionSearchResult::getTextSnippet($terms = Array) in /srv/www/htdocs/testwiki/extensions/SphinxSearch/SphinxMWSearchResult.php on line 14


So I took a look at both functions. The one in SphinxMWSearchResult.php looks like this:

       public function getTextSnippet( $terms ) {

               global $wgAdvancedSearchHighlighting, $wgSphinxSearchMWHighlighter, $wgSphinxSearch_index;

               $this->initText();

               $contextlines = 2;

               $contextchars = 75;

               if ( $wgSphinxSearchMWHighlighter ) {

                       $h = new SearchHighlighter();

                       if ( $wgAdvancedSearchHighlighting ) {

                               return $h->highlightText( $this->mText, $terms, $contextlines, $contextchars );

                       } else {

                               return $h->highlightSimple( $this->mText, $terms, $contextlines, $contextchars );

                       }

               }

               $excerpts_opt = [

                       "before_match" => "(searchmatch)",

                       "after_match" => "(/searchmatch)",

                       "chunk_separator" => " ... ",

                       "limit" => $contextlines * $contextchars,

                       "around" => $contextchars,

               ];

               $excerpts = $this->sphinx_client->BuildExcerpts(

                       [ $this->mText ],

                       $wgSphinxSearch_index,

                       implode( ' ', $terms ),

                       $excerpts_opt

               );

               if ( is_array( $excerpts ) ) {

                       $ret = '';

                       foreach ( $excerpts as $entry ) {

                               // remove some wiki markup

                               $entry = preg_replace(

                                       '/([\[\]\{\}\*\#\|\!]+|==+|<br ?\/?>)/',

                                       ' ',

                                       $entry

                               );

                               $entry = str_replace(

                                       [ "<", ">" ],

                                       [ "<", ">" ],

                                       $entry

                               );

                               $entry = str_replace(

                                       [ "(searchmatch)", "(/searchmatch)" ],

                                       [ "<span class='searchmatch'>", "</span>" ],

                                       $entry

                               );

                               $ret .= "<div style='margin: 0.2em 1em 0.2em 1em;'>$entry</div>\n";

                       }

               } else {

                       $ret = wfMessage( 'internalerror_info', $this->sphinx_client->GetLastError() );

               }

               return $ret;

       }

}


compared to the one in RevisionSearchResultTrait.php:

public function getTextSnippet( $terms = [] ) {

               return '';

       }


So what do I do about it? Ablum010777 (talk) 15:27, 10 January 2020 (UTC)

@Ablum010777 See How to report a bug Malyacko (talk) 00:18, 11 January 2020 (UTC)

Forgot my user name

Want to log in to change settings. Forgot user name. 2600:6C40:7900:202:E995:A52A:90AD:2505 (talk) 22:23, 10 January 2020 (UTC)

What do you expect us to do? Malyacko (talk) 00:18, 11 January 2020 (UTC)

archiving of website

i just tried to access my website and found out that it is archived. I was not notified and don't know now what to do. i tried to follow the given suggestions but i can't find corresponding links in my control panel Heikebean (talk) 22:31, 10 January 2020 (UTC)

@Heikebean Whatever unnamed website that is about, you will have to contact that website. Malyacko (talk) 00:17, 11 January 2020 (UTC)

There is no Medžuslovjansky among the languages

On Medžuslovjansky spoken by about 3,000 people, but nowhere support for that language, now a lot of people learning of this language, and i want to provide it AntonLandao (talk) 10:48, 11 January 2020 (UTC)

See Translatewiki.net. AhmadF.Cheema (talk) 11:39, 11 January 2020 (UTC)
There is no Medžuslovjansky AntonLandao (talk) 16:51, 13 January 2020 (UTC)
See translatewiki:FAQ#How to add a new language. AhmadF.Cheema (talk) 17:39, 13 January 2020 (UTC)

force small list to split in 2 columns

Hi,

I have MediaWiki 1,34,0. When an article contains more than 10 references, it will be automatically displayed in multiple columns.

How can I edit an arctile, so that the references list will split in 2 columns, even when there are only few references?

Or: How can I define for the wiki, that the references lists split at less than 10 references?

Talk like to a newb.

Thanks Polyphon522 (talk) 12:17, 11 January 2020 (UTC) You can either import the en:Template:Reflist, or you can define your own CSS class in MediaWiki:Common.css making use of CSS Multiple Columns.

For the latter, something like the following in Common.css:

.columns-three {
  -webkit-column-count: 3; /* Old Chrome, Safari and Opera */
  -moz-column-count: 3; /* Old Firefox */
  column-count: 3;
}

Which should be called upon in a WIki page as:

<div class="columns-three">
<references />
</div>

Haven't tested this though. AhmadF.Cheema (talk) 15:33, 11 January 2020 (UTC)

Using column-count always forces a fixed number of columns, which is usually bad because screens can have varying widths.
Instead, use the "column-width: 30em" as the CSS notation. —TheDJ (Not WMF) (talkcontribs) 09:03, 13 January 2020 (UTC)

Internal error after mediawiki migration

I recently moved my wiki to a different server and followed the normal MySQL database backup procedures and did a fresh install of Mediawiki 1.3.4 and linked the old database and updated it. Everything seemed to be fine and working normally but I get this error on a small portion of articles:


[c0fbacdd41e98f4941f8802d] /wiki/Auronio_Zefichetto MediaWiki\Revision\IncompleteRevisionException from line 333 of /var/www/wiki/includes/Revision/SlotRecord.php: Uninitialized field: content_address

Backtrace:

#0 /var/www/wiki/includes/Revision/SlotRecord.php(360): MediaWiki\Revision\SlotRecord->getField()

#1 /var/www/wiki/includes/Revision/SlotRecord.php(500): MediaWiki\Revision\SlotRecord->getStringField()

#2 /var/www/wiki/includes/Revision/RevisionStore.php(1438): MediaWiki\Revision\SlotRecord->getAddress()

#3 /var/www/wiki/includes/Revision/RevisionStore.php(1352): MediaWiki\Revision\RevisionStore->loadSlotContent()

#4 [internal function]: MediaWiki\Revision\RevisionStore->MediaWiki\Revision\{closure}()

#5 /var/www/wiki/includes/Revision/SlotRecord.php(307): call_user_func()

#6 /var/www/wiki/includes/Revision/RevisionRecord.php(175): MediaWiki\Revision\SlotRecord->getContent()

#7 /var/www/wiki/includes/Revision/RenderedRevision.php(228): MediaWiki\Revision\RevisionRecord->getContent()

#8 /var/www/wiki/includes/Revision/RevisionRenderer.php(215): MediaWiki\Revision\RenderedRevision->getSlotParserOutput()

#9 /var/www/wiki/includes/Revision/RevisionRenderer.php(152): MediaWiki\Revision\RevisionRenderer->combineSlotOutput()

#10 [internal function]: MediaWiki\Revision\RevisionRenderer->MediaWiki\Revision\{closure}()

#11 /var/www/wiki/includes/Revision/RenderedRevision.php(198): call_user_func()

#12 /var/www/wiki/includes/poolcounter/PoolWorkArticleView.php(196): MediaWiki\Revision\RenderedRevision->getRevisionParserOutput()

#13 /var/www/wiki/includes/poolcounter/PoolCounterWork.php(125): PoolWorkArticleView->doWork()

#14 /var/www/wiki/includes/page/Article.php(791): PoolCounterWork->execute()

#15 /var/www/wiki/includes/actions/ViewAction.php(63): Article->view()

#16 /var/www/wiki/includes/MediaWiki.php(511): ViewAction->show()

#17 /var/www/wiki/includes/MediaWiki.php(302): MediaWiki->performAction()

#18 /var/www/wiki/includes/MediaWiki.php(900): MediaWiki->performRequest()

#19 /var/www/wiki/includes/MediaWiki.php(527): MediaWiki->main()

#20 /var/www/wiki/index.php(44): MediaWiki->run()

#21 {main} 2604:6000:130C:4DE2:756E:7124:2BB5:23F4 (talk) 17:03, 11 January 2020 (UTC)

If you're the same guy from the Discord channel, this was solved by removing the definition of $wgMultiContentRevisionSchemaMigrationStage you had in your LocalSettings.php Ciencia Al Poder (talk) 10:31, 13 January 2020 (UTC)

Upgrading to use SQLite databases for l10n, jobs

I'm upgrading from MediaWiki 1.29.1 to 1.34.0. My wiki uses SQLite.

I noticed that 1.34.0 includes the following new settings when it generates LocalSettings.php (as created for a new, test wiki). I tried adding them to my upgraded wiki's LocalSettings, but this led to the creation of some new, empty databases, and errors when the expected tables couldn't be found.

$wgLocalisationCacheConf['storeServer'] = [
          'type' => 'sqlite',
          'dbname' => "{$wgDBname}_l10n_cache",
          'tablePrefix' => '',''
          'variables' => [ 'synchronous' => 'NORMAL' ],
          'dbDirectory' => $wgSQLiteDataDir,
          'trxMode' => 'IMMEDIATE',
          'flags' => 0
   ];
   $wgJobTypeConf['default'] = [
          'class' => 'JobQueueDB',
          'claimTTL' => 3600,
          'server' => [
                  'type' => 'sqlite',
                  'dbname' => "{$wgDBname}_jobqueue",
                  'tablePrefix' => '',''
                  'variables' => [ 'synchronous' => 'NORMAL' ],
                  'dbDirectory' => $wgSQLiteDataDir,
                  'trxMode' => 'IMMEDIATE',
                  'flags' => 0
          ]
   ];

Questions:

  • What is the purpose of these declarations? I suspect it's a performance optimization. Am I right? Is it the kind of optimization that matters to a wiki with only a handful of users?
  • Is there a recommended way to create and populate these databases if I decide I want to make use of them? Smith.dan (talk) 07:17, 12 January 2020 (UTC)
Basically they are separate databases for things with different write patterns. I assume its to reduce lock contention, since sqlite doesn't support fine-grained locks.
So for the storeServer, that's used by localization cache. Many people use $wgCacheDirectory instead to store this as static CDB files instead of a database.
For the second one (JobQueueDB). That's for storing jobs. When you edit say a template, used on lots of pages, instead of refreshing all those pages immediately, MW splits that over many requests because otherwise the web server may time out. Job queue is for storing and retrieving the list of things to do later.
At the moment, it seems like the definition of these databases is hardcoded in SqliteInstaller::setupDatabase (includes/installer/SqliteDatabase.php), so i guess you could copy the relavent parts. Bawolff (talk) 06:05, 13 January 2020 (UTC)
Sounds to me like the answers then are:
Pretty much.
If performance is critical to you, and you want to optimize things, not using sqlite would probably be the first step Bawolff (talk) 17:59, 15 January 2020 (UTC)

PHP Warning:  Use of undefined constant php\xe2\x80\x9d

I have moved from ISP to my root server. I have no idea what may be wrong.


PHP Warning:  Use of undefined constant php\xe2\x80\x9d - assumed 'php\xe2\x80\x9d' (this will throw an Error in a future version of PHP) in .../LocalSettings.php on line 141


Line 141 is

$wgScriptExtension  = “.php”;


any suggestions, please?


Haj3s29a (talk) 11:46, 12 January 2020 (UTC)

Replace “ by the proper quotation mark " ? :) Malyacko (talk) 13:34, 12 January 2020 (UTC)
I am blind, thanks...it is crap from Apple...if you copy something it makes those quotation marks Haj3s29a (talk) 17:48, 12 January 2020 (UTC)
That is a bit language specific and also depends on if you are using a code editor (most like Intellij etc have this disabled) or a text editor. But if you want you can disable it for the entire operating system by going to System Preferences -> Keyboard -> Text tab -> "Use smart quotes and dashes" and select the bottom entry to keep them on straight quotes in all cases. —TheDJ (Not WMF) (talkcontribs) 08:57, 13 January 2020 (UTC)

Unable to upload photos

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.


After restoring the backup, when I trying to send the photo a message appears: The path at which the stashed file should have been found was invalid. How to fix it? NH35 (talk) 16:35, 12 January 2020 (UTC)

@NH35 What does "send the photo" mean exactly? Which MediaWiki version? Do you use UploadWizard or the classic upload page? Malyacko (talk) 17:45, 12 January 2020 (UTC)
MW 1.28, upload photo via UploadWizard in article editing (VE) classic upload working fine. NH35 (talk) 17:53, 12 January 2020 (UTC)
Do you have permissions in the image directory set appropriately? Are you overriding $wgUploadDirectory, $wgUploadStashScalerBaseUrl, or $wgUploadPath in LocalSettings.php, if so is it something reasonable? Bawolff (talk) 05:54, 13 January 2020 (UTC)
The problem appeared after restoring the backup. I think the problem is in chmod. NH35 (talk) 20:17, 13 January 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Problem with footnotes

I just installed MediaWiki (1.34.0) on Mac OS and there's a problem with footnotes: when I create a new article it does not display footnotes as it is showed on Help:Cite. It does not recognise the code (the code is recognised as plain text); I tried many different ways like these proposed on the help page, and others (these used in English Wikipedia), but it does not work. What should I do? 37.47.13.16 (talk) 20:57, 12 January 2020 (UTC)

You'll have to enable Extension:Cite in your Wiki first. Furthermore, if you're using some templates employed in Wikipedia to generate the footnotes/references, such as en:Template:Reflist, you'll have to import those templates as well. AhmadF.Cheema (talk) 04:26, 13 January 2020 (UTC)
Thank you for your answer. I will try to enable the extension, as you said. 37.47.13.16 (talk) 10:36, 13 January 2020 (UTC)

Page Forms : fatal error of type "ParseError"

Full message : [XhucMOt5WgdTTuN00XAPfAAAAE8] 2020-01-12 22:22:40: Erreur fatale de type « ParseError »

Story : I am using MW 1.33.1 with a few extensions, latest one being Cargo 2.4.

Following the advice on the Cargo installation guide, I then installed Page Forms 4.6.

When trying to load the extension (adding in LocalSettings.php the line : wfLoadExtension( 'PageForms' );), no wiki page can be reached and all I get is a blank screen with the above message. Amagnien2 (talk) 22:31, 12 January 2020 (UTC)

To get a more detailed error, set in LocalSettings.php:
$wgShowExceptionDetails = true;
$wgDevelopmentWarnings = true; error_reporting( -1 ); ini_set( 'display_errors', 1); error_reporting(E_ALL);
For details, see Manual:How to debug (Setting up a debug log file). AhmadF.Cheema (talk) 04:24, 13 January 2020 (UTC)
Thanks for these hints. Amagnien2 (talk) 22:33, 13 January 2020 (UTC)

Cannot import on local installation

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 have followed this to create the installation
This is all i have:
https://gist.githubusercontent.com/erentar/f36935326514b3e46b23235ff21f9be9/raw/85b390fc5389f85000e6f3ae8623af48b99c38a6/gistfile1.txt Erentar2002 (talk) 00:12, 13 January 2020 (UTC)

There probably should have been a second error message somewhere (maybe in your php error log) detailing the original sql error. If not, try enable MediaWiki debug logging - manual:How to debug, which (among many other things) should report transaction failures.
As a debugging step, you may want to disable all extensions you have enabled, to see if the error is caused by a specific extension. Bawolff (talk) 05:46, 13 January 2020 (UTC)
Nevermind, apparenly the dump i was attempting to import had IMPORT: Unhandled revision XML tag parentid
so... yeah. Thanks for all the help, wouldnt have figured it out without logging! Erentar2002 (talk) 00:22, 14 January 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Ask about the youtube plugin in ckeditor (wysiwyg extension)

If I use the YouTube plugin in ckeditor, the YouTube box is normally displayed when I write it.

When I look at the screen after saving, the text is shown as an iframe tag. Sskorkim (talk) 03:46, 13 January 2020 (UTC)

Hi, do you have a question? What do you expect? What happens instead? Which MediaWiki version? Which extension version? Malyacko (talk) 13:37, 13 January 2020 (UTC)
Hi~ Thanks for the reply
MediaWiki version : 1.31
extension version : I download (https://github.com/Mediawiki-wysiwyg/WYSIWYG-CKeditor) and overwritten it with a new version (https://ckeditor.com/ckeditor-4/)
I did this when I was editing. -----> (https://i.stack.imgur.com/31fGR.png)
But the result is this ---------------> (https://i.stack.imgur.com/tHpdL.png)
I want result is this ----------------> (https://i.stack.imgur.com/sX0zT.png) Sskorkim (talk) 00:00, 14 January 2020 (UTC)
well overriding the mediawiki version of ckeditor with a new generic version is probably a bad idea, and the cause of your issues.
More generally, ckeditor doesnt have the greatest reputation of working well with mediawiki. I would reccomend extension:VisualEditor instead Bawolff (talk) 18:15, 15 January 2020 (UTC)

Fatal error when upgrade from 1.30 to 1.34 (Vector Skin)

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.


It seems mainly is the issue of Vector skin, but I am unsure how to solve this:


Fatal error: Uncaught Error: Cannot call constructor in /var/www/software-studies/skins/Vector/includes/SkinVector.php:40 Stack trace: #0 /var/www/software-studies/includes/ServiceWiring.php(795): SkinVector->__construct('vector') #1 /var/www/software-studies/includes/skins/SkinFactory.php(96): Wikimedia\Services\ServiceContainer->{closure}('vector') #2 /var/www/software-studies/includes/context/RequestContext.php(403): SkinFactory->makeSkin('vector') #3 /var/www/software-studies/includes/context/ContextSource.php(137): RequestContext->getSkin() #4 /var/www/software-studies/includes/OutputPage.php(2562): ContextSource->getSkin() #5 /var/www/software-studies/includes/exception/MWExceptionRenderer.php(134): OutputPage->output() #6 /var/www/software-studies/includes/exception/MWExceptionRenderer.php(53): MWExceptionRenderer::reportHTML(Object(Error)) #7 /var/www/software-studies/includes/exception/MWExceptionHandler.php(121): MWExceptionRenderer::output(Object(Error), 2) #8 /var/www/software-studies/includes/exception/MWExce in /var/www/software-studies/skins/Vector/includes/SkinVector.php on line 40


In the LocalSetting:

$wgDefaultSkin = "vector";

wfLoadSkin( 'Vector' );


* I also try to download the latest Vector from github, but doesn't work too.

Many thanks in advance. Siusoon (talk) 08:55, 13 January 2020 (UTC)

Are you using the Skin:Vector for MediaWiki v1.34? AhmadF.Cheema (talk) 09:17, 13 January 2020 (UTC)
Yes the server is installed with the default Vector skin that comes with 1.34 package. Siusoon (talk) 09:18, 13 January 2020 (UTC)
Case solved now, what I did:
- Replace the server skins directory with the old one then again the 1.34 one
- Replace the vector skin under includes/skins/Vector with the latest version from github https://github.com/wikimedia/mediawiki-skins-Vector
Many thanks!! @AhmadF.Cheema Siusoon (talk) 09:50, 13 January 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

How to configure a local Wikidata installation

I have a local Wikidata installation and I want to configure the default site links to other domains. Example:

enwiki = wikipedia.org

And I would like to set the desired domain

enwiki = mydomain.com Jomagalo (talk) 10:51, 13 January 2020 (UTC)

Alignment of tables with text

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 am having trouble aligning tables with surrounding text. When I use a right-aligned table, or a left-aligned table, it positions the table about half a line lower than the text. Oddly, a center-aligned table sits a bit higher.

I can't for the life of me figure out how to control the vertical alignment of the table against the text.

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum

Any help gratefully received.

thanks ElectricRay (talk) 14:27, 13 January 2020 (UTC)

see how the box is sitting a bit low? ElectricRay (talk) 14:28, 13 January 2020 (UTC)
I've not looked into this in detail but it looks like the wikitable class has margin-top:1em which works out as 14px. You could maybe change this. Jonathan3 (talk) 18:07, 13 January 2020 (UTC)
E.g.
I can't for the life of me figure out how to control the vertical alignment of the table against the text.
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum
Any help gratefully received. Jonathan3 (talk) 18:09, 13 January 2020 (UTC)
Crikey that was easy!!!
thanks so much this is exactly what I was trying to achieve. And I just discovered you can go negative on that margin:top parameter. ElectricRay (talk) 17:03, 14 January 2020 (UTC)
if you just want a callout box (and not a table) you probably want to use a div with float:left instead Bawolff (talk) 18:52, 13 January 2020 (UTC)
e.g.

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum
Which is done using <div style="border:#c8ccd1 solid 1px; width:45%;background: #f8f9fa;float:left;padding:5px;margin:5px">...</div> Bawolff (talk) 22:12, 13 January 2020 (UTC)
although the div lining up is probably more about the 5px margin, than actually lining up.
The other way, is to put the entire thing in a two column table, and then use the vertical-align css property, but its hard to get that to do what you want. Bawolff (talk) 22:30, 13 January 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Help set up Extension:SiteMatrix please

I would appreciate some help configuring this extension. I am not sure what to put in the required variables.


I have added in LocalSettings.php:

wfLoadExtension( 'SiteMatrix' );

$wgSiteMatrixFile = "/home/dontv/public_html/w/langlist.txt";


With that I see all the languages on the left side of Special:SiteMatrix but the right part is empty

The other variables are not clear how to configure them or how to obtain the data they request.


thank you in advance Jomagalo (talk) 17:50, 13 January 2020 (UTC)

extension:SiteMatrix contains information and links on how to configure various variables used by that extension. That extension is generally very specific to Wikimedia, and you may have trouble if your wikifarm is not configured the same way Wikimedia's is (Using the SiteConfiguration object in $wgConf) Bawolff (talk) 22:11, 13 January 2020 (UTC)
The information contained in this extension does not clarify how to configure all the variables. Could you give an example?
You would also need to customise $wgSiteMatrixSites to list the different wikis in your own wikifarm.
How do you get the list of different wikis or with what command can I generate the file to feed that variable? Jomagalo (talk) 09:24, 14 January 2020 (UTC)
umm, its your wikifarm. It is generally assumed that you know what sites make up your own wikifarm.
If you have specific questions about a variable, ask specificly. Its unlikely anyone will answer generic questions that amount to some unspecified thing somewhere is unclear. Bawolff (talk) 17:57, 15 January 2020 (UTC)

How to auto-populate a navbox?

I have a wiki page of short unordered wikilink lists, each under a === heading ===. At the foot of the page and on each of the linked pages is a navbox with almost identical content. Updating the page headings or lists requires keeping the navbox template in sync. Headings are groups and bullets are the lists. The page and navbox can be seen at https://sdiy.info/wiki/Elementary_electronics

Semantic-mediawiki is not permitted, however extension Cargo is, if that's useful.

Instead of keeping it manually up-to-date, how can I get the navbox to auto-update itself whenever the content of the page is changed please?

Thanks. Rob Kam (talk) 19:23, 13 January 2020 (UTC)

You could probably define the list using cargo, and then have both the page content and the infobox be generated via cargo. Bawolff (talk) 22:09, 13 January 2020 (UTC)
That might confuse casual users who want to add the odd new wikilink. Rob Kam (talk) 22:54, 13 January 2020 (UTC)
The Page Forms extension would make it simple enough for the casual user. Maybe even easier. Probably each list of links could be defined in Cargo as List (,) of String or List (,) of Page. There are various input types you could use in Page Forms, eg tokens, which could autocomplete on names of existing pages or whatever you like. Jonathan3 (talk) 22:57, 14 January 2020 (UTC)
Thanks I'll try Page Forms. Oddly both extensions Page Forms and Cargo have multiple pages and don't use either to implement their Navboxes. Rob Kam (talk) 10:04, 15 January 2020 (UTC)
Those two extensions aren't installed on this site, so they can't be used here by the extension authors. AhmadF.Cheema (talk) 15:54, 15 January 2020 (UTC)
I can't see an obvious way to do it with Page Forms, Cargo and styling. I'll try see how easy it is with DPL3 (DynamicPageList3) extension instead. Rob Kam (talk) 14:59, 22 January 2020 (UTC)

How to make groups of references?

Hi,

I read that it's possible to make groups of references.

Help:Cite#Citing different parts of the same source

But as it is mentioned in the end of the link chapter, it doens't work that way.

Please tell me another way! Polyphon522 (talk) 19:53, 13 January 2020 (UTC)

If you are outside of Wikimedia, set $wgCiteBookReferencing = true; in LocalSettings.php (This is experimental though)
If you are in wikimedia, you just have to wait. https://phabricator.wikimedia.org/tag/book-referencing/ has a list of tasks that need to be done before the feature can go live. Bawolff (talk) 22:07, 13 January 2020 (UTC)

The "login" button, hotspot, does not appear on the mobile

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 am configuring a hotspot, with the default page ROUTE 980 router, but the landing page does not show the "login" button when I enter through my mobile. but in my computer it goes well.

Any idea?


190.13.139.210 (talk) 20:44, 13 January 2020 (UTC)

This is not the correct place to ask. Bawolff (talk) 22:01, 13 January 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

mediawiki formatting links, ckeditor load problem

Hello

I'm using CKeditor as an extension

I have a problem, when I write a document I type [[apple]]

MediaWiki changes this to wiki markdown and shows it normally

Is stored in the database as [[apple]]

But when I try to update this, it comes out in the <a>apple</a>

I want to be on [[apple]] when I update.

mediawiki version : 1.31

CKEditor version : 4.13.1 Sskorkim (talk) 04:36, 14 January 2020 (UTC)

What does "update this" mean? Update what and how exactly? Malyacko (talk) 08:06, 14 January 2020 (UTC)
I think he means when he edits the page using that extension, it converts the wikitext in the database to HTML before displaying it. Jonathan3 (talk) 22:50, 14 January 2020 (UTC)
ckeditor is not very good.
If you want a wysiwyg editor, i reccomend extension:VisualEditor instead Bawolff (talk) 18:12, 15 January 2020 (UTC)

Rename Username on MediaWiki Main Website

Hi

I did a major mistake by naming my useraccount on this main Mediawiki page. I would like to change it but it seems to be impossible via the preferences page. All i can read in your forums is how to change the username on sites that we implement in our companies but how you changed it on your main site is never documented or i just didnt find it. Please i need to rename my useraccount as soon as possible thanks.. 194.209.6.201 (talk) 13:33, 14 January 2020 (UTC)

Assuming this is related to Wikimedia Foundation Wikis (such as mediawiki.org, wikipedia.org etc.), each user has a one account that works for all these websites. For name change, see meta:Changing username. AhmadF.Cheema (talk) 17:21, 14 January 2020 (UTC)

get a version of wikipedia locally

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 downloaded and set the mediawiki software, but I was wondering how I can get a reduced copy of wikipedia as my goal would be to try to "develop" an extension for wikipedia. To do this, since I'm not an expert programmer, I would need to test my lines of code on a local copy. is it possible to get it? if you could explain to me how to obtain and configure it, I had read somewhere that it could be done but it did not explain how. Griot Matteo (talk) 17:59, 14 January 2020 (UTC)

https://dumps.wikimedia.org/ or https://www.mediawiki.org/wiki/Manual:Importing_XML_dumps Malyacko (talk) 10:13, 15 January 2020 (UTC)
Thanks so much

Griot Matteo (talk) 10:48, 15 January 2020 (UTC)
just fyi, importing a site as big as (en) wikipedia is probably a challenge in and of itself. I strongly reccomend importing some small wiki instead Bawolff (talk) 18:11, 15 January 2020 (UTC)
My goal would be to download a minimal version because I only need to verify / test the extension that I want to develop, I am not interested in downloading the entire version Wikipedia , I can always find the light version on those links that I have  did they send in the message above? Griot Matteo (talk) 09:46, 16 January 2020 (UTC)
You can use wikipedia:Special:Export to export only a set of pages from there. Ciencia Al Poder (talk) 10:25, 16 January 2020 (UTC)
thanks so much for your help Griot Matteo (talk) 10:28, 16 January 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

How do I become an autoconfirmed user?

I made an account on Miraheze a year ago. On Atrocious Youtubers Wiki, I am still not an autoconfirmed user and it pisses me off. It says I need 10 edits yet I'm not allowed to edit anything on that wiki. Can someone please help me? SaltylakeXD (talk) 20:17, 14 January 2020 (UTC)

This website has no formal links with Miraheze, for more efficient issue resolution you should try asking at their forum. AhmadF.Cheema (talk) 20:21, 14 January 2020 (UTC)

Update.php generates 'cannot access the database'

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 just installed MediaWiki V1.34. This is my first install. Things to seem to work fine but when I tried to install Cargo, I get an error during the (sudo) php update.php step. I've edited LocalSettings.php to have the correct DB and PW. This is SQLite. Thanks.


$php update.php

MediaWiki 1.34.0 Updater

Your composer.lock file is up to date with current dependencies!

Wikimedia\Rdbms\DBConnectionError from line 1380 of /var/lib/mediawiki/includes/libs/rdbms/loadbalancer/LoadBalancer.php: Cannot access the database: Unknown error ()

#0 /var/lib/mediawiki/includes/libs/rdbms/loadbalancer/LoadBalancer.php(931): Wikimedia\Rdbms\LoadBalancer->reportConnectionError()

#1 /var/lib/mediawiki/includes/libs/rdbms/loadbalancer/LoadBalancer.php(898): Wikimedia\Rdbms\LoadBalancer->getServerConnection()

#2 /var/lib/mediawiki/includes/libs/rdbms/loadbalancer/LoadBalancer.php(1043): Wikimedia\Rdbms\LoadBalancer->getConnection()

#3 /var/lib/mediawiki/maintenance/Maintenance.php(1401): Wikimedia\Rdbms\LoadBalancer->getMaintenanceConnectionRef()

#4 /var/lib/mediawiki/maintenance/update.php(147): Maintenance->getDB()

#5 /var/lib/mediawiki/maintenance/doMaintenance.php(99): UpdateMediaWiki->execute()

#6 /var/lib/mediawiki/maintenance/update.php(277): require_once('/var/lib/mediaw...')

#7 {main} Brad at CSU (talk) 23:52, 14 January 2020 (UTC)

Is everything is working correctly before this? And does update.php run okay when you comment out the wfLoadExtension( 'Cargo' );line in LocalSettings.php?
@Yaron Koren might have an idea if it's related to Cargo. Sam Wilson 01:55, 15 January 2020 (UTC)
Good question. This does not appear to be Cargo related. Commenting out wfLoadExtension( 'Cargo' ) does not stop the problem. That said, 'everything is working correctly' as far as I can tell. But I'm completely new to MediaWiki and I'm not sure that I'd notice some incorrectly working aspects of it. But I can edit and save pages using rudimentry wikitext and the Revisions/Modifications page seems to be populated correctly. When I did try to use some Cargo functionality, the pages on my client machine did not want to save/reload -- they would hang. thanks. Brad at CSU (talk) 14:33, 15 January 2020 (UTC)
It seems to me this might be a problem with V1.34. As I said, I'm completely new to this software, but 1.34 has some growing pains. I wish I had more skills to debug this on my own. Update.php seems like a critical piece of the package and getting this error is disturbing.

Brad at CSU (talk) 15:32, 15 January 2020 (UTC)
i'm assuming that normal web access works
when you say sudo update.php, are you sudoing to whatever user the webserver runs as? (On debian/ubuntu this is usually but not neccesarily sudo -u www-data update.php )
Other problems could be if something like selinux is somehow preventing command line php from accessing the db.
If all else fails, you can use the web installer instead of update.php (go in web browser to e.g. mywiki.com/w/mw-config, replacing mywiki.com with your domain and /w/ with the script path) Bawolff (talk) 18:09, 15 January 2020 (UTC)
Bawolff:
My apache2 is running as www-data and if I do as you suggest above, I get the same error. So that's not the problem. Brad at CSU (talk) 23:53, 17 January 2020 (UTC)
Bawolff:
And yes, everything else seems fine. Mediawiki runs great. Brad at CSU (talk) 23:54, 17 January 2020 (UTC)
I solved this by running the web installer as suggested above. I did not know that the web installer also has an update function, and that's what I used. I'm not sure why it worked, but it did. SQLite seems to work fine with Cargo, contrary to its Extension page which suggests SQLite may not work. Brad at CSU (talk) 17:11, 21 January 2020 (UTC)
I had the same error message, but in my case was due to incompatibility for multiple wikis update, or so it seems.
My LocalSettings.php file has the following configuration:
# Information of the dbs
# mydbs[0] $wgScriptPath
# mydbs[1] $wgDBtype
# mydbs[2] $wgDBserver
# mydbs[3] $wgDBname
# mydbs[4] $wgDBuser = "mediawiki_user";
# mydbs[5] $wgDBpassword = "";
# mydbs[6] $wgDBprefix
$mydbs = array(
    array( 'Wiki-1', 'mysql', 'my_database:3306', 'first_wiki', 'my_database_user', 'my_database_password', 'my_prefix_1_' ),
        array( 'Wiki-2', 'mysql', 'my_database:3306', 'second_wiki', 'my_database_user', 'my_database_password', 'my_prefix_2_' ),
        array( 'Wiki-3', 'mysql', 'my_database:3306', 'third_wiki', 'my_database_user', 'my_database_password', 'my_prefix_3_' ),
);
## Database settings
foreach ( $mydbs as $db ) {
    foreach ( $mystrings as $string ) {
        if ( strpos( $string, $db[0] ) !== false ) {
            $wgDBtype = $db[1];
            $wgDBserver = $db[2];
            $wgDBname = $db[3];
            $wgDBuser = $db[4];
            $wgDBpassword = $db[5];
            # MySQL specific settings
            $wgDBprefix = $db[6];
            break 2;
        }
    }
}
In order to run update.php (sudo php73 update.php --doshared). I had to comment the loop and assign the values directly (once per wiki)
## Database settings
#foreach ( $mydbs as $db ) {
#    foreach ( $mystrings as $string ) {
#       if ( strpos( $string, $db[0] ) !== false ) {
#            $wgDBtype = $db[1];
#            $wgDBserver = $db[2];
#            $wgDBname = $db[3];
#            $wgDBuser = $db[4];
#            $wgDBpassword = $db[5];
            # MySQL specific settings
#            $wgDBprefix = $db[6];
#            break 2;
#        }
#    }
#}
$wgDBtype = 'mysql';
$wgDBserver = 'my_database:3306';
$wgDBname = 'first_wiki';
$wgDBuser = 'my_database_user';
$wgDBpassword = 'my_database_password';
# MySQL specific settings
$wgDBprefix = 'my_prefix_1_';
Once updated, I reverted back LocalSettings.php to its original configuration J. Xavier Atero 22:25, 10 July 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

403 Forbidden Access

After restarting our server, we are not able to access our MediaWiki - 403 Forbidden. No changes were made to the LocalSettings.php file; all the groups setup there seem to be fine.

"Forbidden: You don't have permission to access /mediawiki/ on this server."

It's affecting all of us here and not just me. Please assist, thanks.

We are using MediaWiki v1.27, PHP 7.0.30, MYSQL Com Server 5.7.22.



Colin ADX (talk) 02:08, 15 January 2020 (UTC)

This is unrelated to MediaWiki but usually an issue with the configuration of your webserver software. See for example https://stackoverflow.com/questions/10873295/error-message-forbidden-you-dont-have-permission-to-access-on-this-server Malyacko (talk) 10:12, 15 January 2020 (UTC)

Can i confirm the nature of this error please.

Am I getting this error because MW is not caching on localhost?


MediaWiki internal error.


Original exception: [Xh6Y0nA5RPxpLTSqRWeA5gAAAA0] /index.php/Special:Random Wikimedia\Rdbms\DBConnectionError from line 1380 of /home/dgo/public_html/includes/libs/rdbms/loadbalancer/LoadBalancer.php: Cannot access the database: Unknown error (localhost)

Backtrace:

#0 /home/dgo/public_html/includes/libs/rdbms/loadbalancer/LoadBalancer.php(931): Wikimedia\Rdbms\LoadBalancer->reportConnectionError()

#1 /home/dgo/public_html/includes/libs/rdbms/loadbalancer/LoadBalancer.php(898): Wikimedia\Rdbms\LoadBalancer->getServerConnection(integer, string, integer)

#2 /home/dgo/public_html/includes/libs/rdbms/loadbalancer/LoadBalancer.php(1043): Wikimedia\Rdbms\LoadBalancer->getConnection(integer, array, string, integer)

#3 /home/dgo/public_html/includes/GlobalFunctions.php(2576): Wikimedia\Rdbms\LoadBalancer->getMaintenanceConnectionRef(integer, array, string)

#4 /home/dgo/public_html/includes/cache/localisation/LCStoreDB.php(56): wfGetDB(integer)

#5 /home/dgo/public_html/includes/cache/localisation/LocalisationCache.php(441): LCStoreDB->get(string, string)

#6 /home/dgo/public_html/includes/cache/localisation/LocalisationCache.php(487): LocalisationCache->isExpired(string)

#7 /home/dgo/public_html/includes/cache/localisation/LocalisationCache.php(363): LocalisationCache->initLanguage(string)

#8 /home/dgo/public_html/includes/cache/localisation/LocalisationCache.php(304): LocalisationCache->loadItem(string, string)

#9 /home/dgo/public_html/languages/Language.php(4413): LocalisationCache->getItem(string, string)

#10 /home/dgo/public_html/languages/Language.php(265): Language::getFallbacksFor(string)

#11 /home/dgo/public_html/languages/Language.php(225): Language::newFromCode(string)

#12 /home/dgo/public_html/includes/ServiceWiring.php(163): Language::factory(string)

#13 /home/dgo/public_html/includes/libs/services/ServiceContainer.php(458): Wikimedia\Services\ServiceContainer->{closure}(MediaWiki\MediaWikiServices)

#14 /home/dgo/public_html/includes/libs/services/ServiceContainer.php(427): Wikimedia\Services\ServiceContainer->createService(string)

#15 /home/dgo/public_html/includes/MediaWikiServices.php(540): Wikimedia\Services\ServiceContainer->getService(string)

#16 /home/dgo/public_html/includes/Setup.php(801): MediaWiki\MediaWikiServices->getContentLanguage()

#17 /home/dgo/public_html/includes/WebStart.php(81): require_once(string)

#18 /home/go/public_html/index.php(41): require(string)

#19 {main}


Exception caught inside exception handler: [Xh6Y0nA5RPxpLTSqRWeA5gAAAA0] /index.php/Special:Random Wikimedia\Rdbms\DBConnectionError from line 1380 of /home/dgo/public_html/includes/libs/rdbms/loadbalancer/LoadBalancer.php: Cannot access the database: Unknown error (localhost)

Backtrace:

#0 /home/dgo/public_html/includes/libs/rdbms/loadbalancer/LoadBalancer.php(931): Wikimedia\Rdbms\LoadBalancer->reportConnectionError()

#1 /home/dgo/public_html/includes/libs/rdbms/loadbalancer/LoadBalancer.php(898): Wikimedia\Rdbms\LoadBalancer->getServerConnection(integer, string, integer)

#2 /home/dgo/public_html/includes/libs/rdbms/loadbalancer/LoadBalancer.php(1043): Wikimedia\Rdbms\LoadBalancer->getConnection(integer, array, string, integer)

#3 /home/dgo/public_html/includes/GlobalFunctions.php(2576): Wikimedia\Rdbms\LoadBalancer->getMaintenanceConnectionRef(integer, array, string)

#4 /home/dgo/public_html/includes/cache/localisation/LCStoreDB.php(56): wfGetDB(integer)

#5 /home/dgo/public_html/includes/cache/localisation/LocalisationCache.php(386): LCStoreDB->get(string, string)

#6 /home/dgo/public_html/includes/cache/localisation/LocalisationCache.php(304): LocalisationCache->loadItem(string, string)

#7 /home/dgo/public_html/languages/Language.php(4413): LocalisationCache->getItem(string, string)

#8 /home/dgo/public_html/languages/Language.php(265): Language::getFallbacksFor(string)

#9 /home/dgo/public_html/languages/Language.php(225): Language::newFromCode(string)

#10 /home/dgo/public_html/includes/ServiceWiring.php(163): Language::factory(string)

#11 /home/dgo/public_html/includes/libs/services/ServiceContainer.php(458): Wikimedia\Services\ServiceContainer->{closure}(MediaWiki\MediaWikiServices)

#12 /home/dgo/public_html/includes/libs/services/ServiceContainer.php(427): Wikimedia\Services\ServiceContainer->createService(string)

#13 /home/dgo/public_html/includes/MediaWikiServices.php(540): Wikimedia\Services\ServiceContainer->getService(string)

#14 /home/dgo/public_html/includes/ServiceWiring.php(440): MediaWiki\MediaWikiServices->getContentLanguage()

#15 /home/dgo/public_html/includes/libs/services/ServiceContainer.php(458): Wikimedia\Services\ServiceContainer->{closure}(MediaWiki\MediaWikiServices)

#16 /home/dgo/public_html/includes/libs/services/ServiceContainer.php(427): Wikimedia\Services\ServiceContainer->createService(string)

#17 /home/dgo/public_html/includes/MediaWikiServices.php(738): Wikimedia\Services\ServiceContainer->getService(string)

#18 /home/dgo/public_html/includes/cache/MessageCache.php(115): MediaWiki\MediaWikiServices->getMessageCache()

#19 /home/dgo/public_html/includes/exception/MWExceptionRenderer.php(310): MessageCache::singleton()

#20 /home/dgo/public_html/includes/exception/MWExceptionRenderer.php(51): MWExceptionRenderer::reportOutageHTML(Wikimedia\Rdbms\DBConnectionError)

#21 /home/dgo/public_html/includes/exception/MWExceptionHandler.php(121): MWExceptionRenderer::output(Wikimedia\Rdbms\DBConnectionError, integer)

#22 /home/dgo/public_html/includes/exception/MWExceptionHandler.php(195): MWExceptionHandler::report(Wikimedia\Rdbms\DBConnectionError)

#23 /home/dgo/public_html/includes/exception/MWExceptionHandler.php(167): MWExceptionHandler::handleException(Wikimedia\Rdbms\DBConnectionError)

#24 [internal function]: MWExceptionHandler::handleUncaughtException(Wikimedia\Rdbms\DBConnectionError)

#25 {main} AlgorithmGG (talk) 05:01, 15 January 2020 (UTC)

Why would you think that "Cannot access the database: Unknown error (localhost)" could be related to caching, instead of your database? Please clearly elaborate on your path of thoughts. Malyacko (talk) 10:16, 15 January 2020 (UTC)
The problem is about the database connection. Check the database settings and be sure the database server is operational. One of the first things MediaWiki does is to cache/retrieve from cache some localization stuff, that's stored by default on database. As you may expect, an error connecting to the database will cause this error. Ciencia Al Poder (talk) 10:36, 15 January 2020 (UTC)
These lines here etc:
#17 /home/dgo/public_html/includes/MediaWikiServices.php(738): Wikimedia\Services\ServiceContainer->getService(string)
#18 /home/dgo/public_html/includes/cache/MessageCache.php(115): MediaWiki\MediaWikiServices->getMessageCache()
#19 /home/dgo/public_html/includes/exception/MWExceptionRenderer.php(310): MessageCache::singleton()
#
@Malyacko
Thanks @Ciencia Al Poder
It happens when i am downloading from the server. AlgorithmGG (talk) 17:28, 15 January 2020 (UTC)
I am still occasionally getting this error even when I am not downloading from the server.
MediaWiki internal error.
Original exception: [XiTt@Cv9O9bj@vqOrJ5QIgAAAAc] /index.php?search=infobox&title=Special%3ASearch&go=Go Wikimedia\Rdbms\DBConnectionError from line 1380 of /home/dennisgo/public_html/includes/libs/rdbms/loadbalancer/LoadBalancer.php: Cannot access the database: Unknown error (localhost)
Backtrace:
#0 /home/dgo/public_html/includes/libs/rdbms/loadbalancer/LoadBalancer.php(931): Wikimedia\Rdbms\LoadBalancer->reportConnectionError()
#1 /home/dgo/public_html/includes/libs/rdbms/loadbalancer/LoadBalancer.php(898): Wikimedia\Rdbms\LoadBalancer->getServerConnection(integer, string, integer)
#2 /home/dennisgo/public_html/includes/libs/rdbms/loadbalancer/LoadBalancer.php(1043): Wikimedia\Rdbms\LoadBalancer->getConnection(integer, array, string, integer)
#3 /home/dgo/public_html/includes/GlobalFunctions.php(2576): Wikimedia\Rdbms\LoadBalancer->getMaintenanceConnectionRef(integer, array, string)
#4 /home/dgo/public_html/includes/cache/localisation/LCStoreDB.php(56): wfGetDB(integer)
#5 /home/dgo/public_html/includes/cache/localisation/LocalisationCache.php(441): LCStoreDB->get(string, string)
#6 /home/dgo/public_html/includes/cache/localisation/LocalisationCache.php(487): LocalisationCache->isExpired(string)
#7 /home/dgo/public_html/includes/cache/localisation/LocalisationCache.php(363): LocalisationCache->initLanguage(string)
#8 /home/dgo/public_html/includes/cache/localisation/LocalisationCache.php(304): LocalisationCache->loadItem(string, string)
#9 /home/dgo/public_html/languages/Language.php(4413): LocalisationCache->getItem(string, string)
#10 /home/dgo/public_html/languages/Language.php(265): Language::getFallbacksFor(string)
#11 /home/dgo/public_html/languages/Language.php(225): Language::newFromCode(string)
#12 /home/dgo/public_html/includes/ServiceWiring.php(163): Language::factory(string)
#13 /home/dgo/public_html/includes/libs/services/ServiceContainer.php(458): Wikimedia\Services\ServiceContainer->{closure}(MediaWiki\MediaWikiServices)
#14 /home/dgo/public_html/includes/libs/services/ServiceContainer.php(427): Wikimedia\Services\ServiceContainer->createService(string)
#15 /home/dgo/public_html/includes/MediaWikiServices.php(540): Wikimedia\Services\ServiceContainer->getService(string)
#16 /home/dgo/public_html/includes/Setup.php(801): MediaWiki\MediaWikiServices->getContentLanguage()
#17 /home/dsgo/public_html/includes/WebStart.php(81): require_once(string)
#18 /home/dsgo/public_html/index.php(41): require(string)
#19 {main}
Exception caught inside exception handler: [XiTt@Cv9O9bj@vqOrJ5QIgAAAAc] /index.php?search=infobox&title=Special%3ASearch&go=Go Wikimedia\Rdbms\DBConnectionError from line 1380 of /home/dgo/public_html/includes/libs/rdbms/loadbalancer/LoadBalancer.php: Cannot access the database: Unknown error (localhost)
Backtrace:
#0 /home/dgo/public_html/includes/libs/rdbms/loadbalancer/LoadBalancer.php(931): Wikimedia\Rdbms\LoadBalancer->reportConnectionError()
#1 /home/dgo/public_html/includes/libs/rdbms/loadbalancer/LoadBalancer.php(898): Wikimedia\Rdbms\LoadBalancer->getServerConnection(integer, string, integer)
#2 /home/dgo/public_html/includes/libs/rdbms/loadbalancer/LoadBalancer.php(1043): Wikimedia\Rdbms\LoadBalancer->getConnection(integer, array, string, integer)
#3 /home/dgo/public_html/includes/GlobalFunctions.php(2576): Wikimedia\Rdbms\LoadBalancer->getMaintenanceConnectionRef(integer, array, string)
#4 /home/dgo/public_html/includes/cache/localisation/LCStoreDB.php(56): wfGetDB(integer)
#5 /home/dgo/public_html/includes/cache/localisation/LocalisationCache.php(386): LCStoreDB->get(string, string)
#6 /home/dgo/public_html/includes/cache/localisation/LocalisationCache.php(304): LocalisationCache->loadItem(string, string)
#7 /home/dgo/public_html/languages/Language.php(4413): LocalisationCache->getItem(string, string)
#8 /home/dgo/public_html/languages/Language.php(265): Language::getFallbacksFor(string)
#9 /home/dgo/public_html/languages/Language.php(225): Language::newFromCode(string)
#10 /home/dgo/public_html/includes/ServiceWiring.php(163): Language::factory(string)
#11 /home/dgo/public_html/includes/libs/services/ServiceContainer.php(458): Wikimedia\Services\ServiceContainer->{closure}(MediaWiki\MediaWikiServices)
#12 /home/dennisgo/public_html/includes/libs/services/ServiceContainer.php(427): Wikimedia\Services\ServiceContainer->createService(string)
#13 /home/dennisgo/public_html/includes/MediaWikiServices.php(540): Wikimedia\Services\ServiceContainer->getService(string)
#14 /home/dennisgo/public_html/includes/ServiceWiring.php(440): MediaWiki\MediaWikiServices->getContentLanguage()
#15 /home/dennisgo/public_html/includes/libs/services/ServiceContainer.php(458): Wikimedia\Services\ServiceContainer->{closure}(MediaWiki\MediaWikiServices)
#16 /home/dgo/public_html/includes/libs/services/ServiceContainer.php(427): Wikimedia\Services\ServiceContainer->createService(string)
#17 /home/dgo/public_html/includes/MediaWikiServices.php(738): Wikimedia\Services\ServiceContainer->getService(string)
#18 /home/dgo/public_html/includes/cache/MessageCache.php(115): MediaWiki\MediaWikiServices->getMessageCache()
#19 /home/dgo/public_html/includes/exception/MWExceptionRenderer.php(310): MessageCache::singleton()
#20 /home/dgo/public_html/includes/exception/MWExceptionRenderer.php(51): MWExceptionRenderer::reportOutageHTML(Wikimedia\Rdbms\DBConnectionError)
#21 /home/dgo/public_html/includes/exception/MWExceptionHandler.php(121): MWExceptionRenderer::output(Wikimedia\Rdbms\DBConnectionError, integer)
#22 /home/dgo/public_html/includes/exception/MWExceptionHandler.php(195): MWExceptionHandler::report(Wikimedia\Rdbms\DBConnectionError)
#23 /home/dgo/public_html/includes/exception/MWExceptionHandler.php(167): MWExceptionHandler::handleException(Wikimedia\Rdbms\DBConnectionError)
#24 [internal function]: MWExceptionHandler::handleUncaughtException(Wikimedia\Rdbms\DBConnectionError)
#25 {main} AlgorithmGG (talk) 00:09, 20 January 2020 (UTC)
Also getting this error with Mysql which I am currently troubleshooting has anybody encountered this? are there any reports of a search index bug?
[ERROR] mysqld: Table './mwdatabase/searchindex' is marked as crashed and should be repaired AlgorithmGG (talk) 00:50, 20 January 2020 (UTC)
Both errors are related to search. As the last error says, searchindex table is crashed and you should repair it
https://stackoverflow.com/questions/4357270/table-is-marked-as-crashed-and-should-be-repaired Ciencia Al Poder (talk) 10:11, 20 January 2020 (UTC)
Ta! for the info, at the moment its repairing its self i need to fix the underlining issue. I never experienced this before the migration. AlgorithmGG (talk) 22:52, 20 January 2020 (UTC)

Update from MediaWiki 1.15.4

Currently running MediaWiki 1.15.4 (very old I know :( ).


Due to updates I'm forced to move the wiki to a new machine and update.

Updating the OS itself is not possible, since it's that old too.


I've already setuped a new Ubuntu18 machine, all packages are installed, but when using the "old" database on new mediaWiki setup it just overrides the database completely.


What are the steps to update in case of I have already a database backup?

Reading the upgrade doc is only for updating the media wiki (with the OS itself).

How should I proceed / what are the required steps to get the old wiki database migrated (for sure all other files are backuped too).


All the best; Janis he (talk) 06:55, 15 January 2020 (UTC)

What do you mean by "it just overrides the database"? The new wiki looks empty?
If you put the correct database configuration (server, database name, and user/password to connect) it should find it's an existing database and upgrade it.
Note that the setup asks for a database table prefix (see $wgDBprefix). You should specify the same prefix than your old installation, otherwise it will just create new tables with the new prefix. You can look at the tables of the database and see if that's what happened.
The instructions for upgrading are the correct steps in your case, once you've restored the database backup on the new server, if you use the same old LocalSettings.php with the relevant paths and database settings adapted.
Another way is what you seem to be doing: a new install (no existing LocalSettings.php), specifying the database settings from the existing wiki. Once you get the LocalSettings.php, you may add some customizations you made on the old wiki related to settings, and install more extensions/skins. Ciencia Al Poder (talk) 10:34, 15 January 2020 (UTC)
My old database settings are like:
$wgDBtype = "mysql";
$wgDBserver = "localhost":
$wgDBname = "wikidb";
$wgDBuser = "root";
$wgDBprefix = "wiki";
I've imported the old database to the new machine:
https://i.imgur.com/wuuGTWd.png
Now when it comes to setup I've used these settings:
https://i.imgur.com/oxiI6M6.png
I've already tried using the prefix option too with "wiki", but none of these settings are working, mediawiki is not recognizing the old database.
Where's my fault? Janis he (talk) 07:13, 16 January 2020 (UTC)
On the first image, you seem to have 2 different wikis with different prefix: "lwiki2" and "wiki". On the second image, the prefix option is empty (note that you have set "name of the user for installation purposes" as wiki instead of root. Is that correct? Ciencia Al Poder (talk) 10:23, 16 January 2020 (UTC)
Thanks, I'm a bit further.
I've commeneted out plugin related stuff in my LocalSettings.php, but now I receive:
MediaWiki internal error.
Original exception: [1fdc43e90215eb152ecee148] / Wikimedia\Rdbms\DBConnectionError from line 1380 of /var/www/html/lwiki/includes/libs/rdbms/loadbalancer/LoadBalancer.php: Cannot access the database: Unknown error ()
Backtrace:
#0 /var/www/html/lwiki/includes/libs/rdbms/loadbalancer/LoadBalancer.php(931): Wikimedia\Rdbms\LoadBalancer->reportConnectionError()
#1 /var/www/html/lwiki/includes/libs/rdbms/loadbalancer/LoadBalancer.php(898): Wikimedia\Rdbms\LoadBalancer->getServerConnection(integer, string, integer)
#2 /var/www/html/lwiki/includes/libs/rdbms/loadbalancer/LoadBalancer.php(1043): Wikimedia\Rdbms\LoadBalancer->getConnection(integer, array, string, integer)
#3 /var/www/html/lwiki/includes/GlobalFunctions.php(2576): Wikimedia\Rdbms\LoadBalancer->getMaintenanceConnectionRef(integer, array, string)
#4 /var/www/html/lwiki/includes/cache/localisation/LCStoreDB.php(56): wfGetDB(integer)
#5 /var/www/html/lwiki/includes/cache/localisation/LocalisationCache.php(441): LCStoreDB->get(string, string)
#6 /var/www/html/lwiki/includes/cache/localisation/LocalisationCache.php(487): LocalisationCache->isExpired(string)
#7 /var/www/html/lwiki/includes/cache/localisation/LocalisationCache.php(363): LocalisationCache->initLanguage(string)
#8 /var/www/html/lwiki/includes/cache/localisation/LocalisationCache.php(304): LocalisationCache->loadItem(string, string)
#9 /var/www/html/lwiki/languages/Language.php(4413): LocalisationCache->getItem(string, string)
#10 /var/www/html/lwiki/languages/Language.php(265): Language::getFallbacksFor(string)
#11 /var/www/html/lwiki/languages/Language.php(225): Language::newFromCode(string)
#12 /var/www/html/lwiki/includes/ServiceWiring.php(163): Language::factory(string)
#13 /var/www/html/lwiki/includes/libs/services/ServiceContainer.php(458): Wikimedia\Services\ServiceContainer->{closure}(MediaWiki\MediaWikiServices)
#14 /var/www/html/lwiki/includes/libs/services/ServiceContainer.php(427): Wikimedia\Services\ServiceContainer->createService(string)
#15 /var/www/html/lwiki/includes/MediaWikiServices.php(540): Wikimedia\Services\ServiceContainer->getService(string)
#16 /var/www/html/lwiki/includes/Setup.php(801): MediaWiki\MediaWikiServices->getContentLanguage()
#17 /var/www/html/lwiki/includes/WebStart.php(81): require_once(string)
#18 /var/www/html/lwiki/index.php(41): require(string)
#19 {main}
Any idea how to debug?
Database informations are the same as used while installation. Janis he (talk) 08:30, 17 January 2020 (UTC)
Were you able to install? If that's true, you should have get a new LocalSettings.php with the correct database configuration, which may be different than what you had on the old LocalSettings.php Ciencia Al Poder (talk) 10:27, 17 January 2020 (UTC)

Download

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 im trying to download xlights on to my computer, can you please give me the correct link for the download. t

hank you 2001:8003:7095:3200:8169:FB5D:D57A:FACD (talk) 07:31, 15 January 2020 (UTC)

Apologies, but wrong support forum.🤔 You can try searching for "xlights" on an internet search engine. AhmadF.Cheema (talk) 09:58, 15 January 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Pages with category always visible in "Pages without categories"

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've add a category on some pages (category is visible in the bottom of the page), but this page is always present on special page "Pages without caterogies" since 2 days.

I'm in mediawiki 1.28.0.

Is there a known issue about this for this release?


Thanks Cmeschin (talk) 11:55, 15 January 2020 (UTC)

Probably a Job queue issue. See if running runJobs.php helps. AhmadF.Cheema (talk) 15:51, 15 January 2020 (UTC)
Thanks.
It's probably related to this issue:
In MediaWiki 1.27.0 to 1.27.3 and 1.28.0 to 1.28.2, when $wgJobRunRate is set to a value greater than 0, an error like the one below may appear in error logs, or on the page:
PHP Notice: JobQueueGroup::__destruct: 1 buffered job(s) never inserted
I run "runJobs.php" and all pages are updated correctly.
Solved. :)
Regards Cmeschin (talk) 16:50, 15 January 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Upgrade from 1.30 to 1.34 fails

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,

attempting to upgrade existing Mediawiki from 1.30 to 1.34 the following Errormessage in Webinstaller occurs:


See Screenshot

Interner Fehler – MediaWikibody { font-family: sans-serif; margin: 0; padding: 0.5em 2em; }

[72c6da46d2428142beccef1e] /Mewi/mw-config/?page=Upgrade ExtensionDependencyError from line 334 of /users/urspoulsen/www/Mewi/includes/registration/ExtensionRegistry.php: SyntaxHighlight requires "shell" ability: Unable to run external programs, proc_open() is disabled

Backtrace:

#0 /users/urspoulsen/www/Mewi/includes/installer/DatabaseUpdater.php(171): ExtensionRegistry->readFromQueue(array)

#1 /users/urspoulsen/www/Mewi/includes/installer/DatabaseUpdater.php(133): DatabaseUpdater->loadExtensions()

#2 /users/urspoulsen/www/Mewi/includes/installer/DatabaseUpdater.php(200): DatabaseUpdater->__construct(Wikimedia\Rdbms\DatabaseMysqli, boolean, NULL)

#3 /users/urspoulsen/www/Mewi/includes/installer/DatabaseInstaller.php(387): DatabaseUpdater::newForDB(Wikimedia\Rdbms\DatabaseMysqli)

#4 /users/urspoulsen/www/Mewi/includes/installer/WebInstallerUpgrade.php(64): DatabaseInstaller->doUpgrade()

#5 /users/urspoulsen/www/Mewi/includes/installer/WebInstaller.php(270): WebInstallerUpgrade->execute()

#6 /users/urspoulsen/www/Mewi/mw-config/index.php(80): WebInstaller->execute(array)

#7 /users/urspoulsen/www/Mewi/mw-config/index.php(38): wfInstallerMain()

#8 {main}


used Software on Server:

Software Version
MediaWiki 1.33.2
PHP 7.3.7 (cgi-fcgi)
MariaDB 10.3.18-MariaDB-1:10.3.18+maria~stretch
ICU 57.1

because the Update 1.30 --> 1.34 fails i tried step by step:

update 1.30 to 1.31.6 --> no Problem,

update 1.31.6 to 1.33.2 --> no Problem,

update 1.33.2 to 1.34 --> fail with same Error as 1.30 --> 1.34.


Update was made with Webinterface .../mw-config/index.php i have no Shell access on server

Any Ideas what is going on there? My PHP skills are very limited


Regards

Rubberduck2020 Rubberduck2020 (talk) 19:36, 15 January 2020 (UTC)

You should disable `SyntaxHighlight` extension from your LocalSettings and retry. – Ammarpad (talk) 02:14, 16 January 2020 (UTC)
Hi Ammarpad
great job , everything works fine.
Regards
Rubberduck2020 Rubberduck2020 (talk) 18:29, 16 January 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Pivot Skin in Mediawiki 1.34.0 displays as blank 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.


I installed the Pivot skin in the skins folder as described in the Mediawiki documentation. I added the wfLoadSkin( 'Pivot' ); line to LocalSettings.php.


When I check for special pages versions I see that Pivot is listed as an installed skin.

When I change my user preference to pivot or I just preview, I get a blank page.


I added:

error_reporting( E_ALL );

ini_set( 'display_errors', 1 );

and I get:

Fatal error: Uncaught Error: Call to undefined function wfSuppressWarnings() in /var/www/Mediawiki-1.34.0/Pivot/Pivot.skin.php:63 192.75.88.130 (talk) 20:09, 15 January 2020 (UTC)

The global function `wfSuppressWarnings` was deprecated since 1.26 and now removed. The skin must be updated to use `Wikimedia\AtEase\AtEase::suppressWarnings()`

There's already a patch to fix this at https://github.com/Hutchy68/pivot/pull/90, but the owner is not responsive. You can either wait for it to be fixed or copy these changes to your skin files in the meantime. – Ammarpad (talk) 01:47, 16 January 2020 (UTC)
We have this skin working fine on our site by downloading the newest version of the skin. Make sure you have the most recent version which had the patch integrated after it was submitted as an issue on their github page. Also, it is:
wfLoadSkin( 'pivot' );
(Notice no capital, per its manual page) TiltedCerebellum (talk) 00:47, 3 November 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Bir sanatçı sayfası açmak istiyorum. Yardım Lütfen!

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.


Bir sanatçı sayfası açmak istiyorum. Yardım Lütfen! Cengiz Özdemir TWD (talk) 22:48, 15 January 2020 (UTC)

Trans: "I want to open an artist page. Help please!"

Please read the article creation help page on Turkish Wikipedia. – Ammarpad (talk) 01:36, 16 January 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Sitenotice at el.wiktionary

Hello, for the last two hours we have lost https://el.wiktionary.org/wiki/MediaWiki:Sitenotice Was it our fault? Nothing unusual happened. Would someone know anything about it? Thank you. Sarri.greek@el.wiktionary - talk Sarri.greek (talk) 00:54, 16 January 2020 (UTC)

What do you mean by "lost"? not displayed? I am seeing the notice when I just followed the link, (the displayed notice, not only that source message) – Ammarpad (talk) 01:23, 16 January 2020 (UTC)
It is not displayed at all. e.g. see page https://el.wiktionary.org/wiki/play It is supposed to show up. I apologize for being complete ignorant about computen stuff. Sarri.greek (talk) 01:27, 16 January 2020 (UTC)
No, it's displayed. Probably you've clicked the upper right "dismiss" button that's why you're no longer seeing it. This is because a cookie is now set to store your preference. If you want see it again you've to delete that cookie. You should search for how to delete cookie on the browser you're using and look for "dismissSiteNotice" cookie and delete it. – Ammarpad (talk) 02:04, 16 January 2020 (UTC)
Ο! you are so clever Ammarpad. Thank you! -it was noticed by other users too- so: we are all very grateful. Yes, I opened now a different browser and I can see it!! Sarri.greek (talk) 02:07, 16 January 2020 (UTC)

Support for Google Chrome on Windows 7

I read Google's blog post saying that Google Chrome will be continually supported on Windows 7 until July 2021. Would the MediaWiki support Chrome's final version for Windows 7 when Chrome's next version for other OSes comes out? George Ho (talk) 09:14, 16 January 2020 (UTC)

See Compatibility#Browser support matrix . OS is irrelevant. Malyacko (talk) 09:23, 16 January 2020 (UTC)
What does "current and previous version[s]" mean? The last two versions, or all versions? Or does it mean the listed browsers supported for grade-A matrix? George Ho (talk) 10:44, 16 January 2020 (UTC)
To me, "version" is singular so it does not mean "all". But asking on that page itself might make more sense. Malyacko (talk) 14:30, 16 January 2020 (UTC)
This answer concerns me still. Can Wikipedia still work well, even after Google will end support for Chrome on Windows 7? George Ho (talk) 05:47, 17 January 2020 (UTC)
@George Ho: This has been already answered in https://www.mediawiki.org/w/index.php?title=Talk%3ACompatibility/Flow%20export#c-Jdforrester_%28WMF%29-2020-01-16T21%3A25%3A00.000Z-George_Ho-2020-01-16T19%3A39%3A00.000Z and https://www.mediawiki.org/w/index.php?title=Talk%3ACompatibility/Flow%20export#c-Jdforrester_%28WMF%29-2020-01-17T00%3A52%3A00.000Z-George_Ho-2020-01-16T19%3A39%3A00.000Z. It says: ""Grade X" is probable, untested JS functionality, which is unsupported." Malyacko (talk) 09:00, 17 January 2020 (UTC)

Delete page

Please contact these websites for content on these websites. We do not run these websites.

Please erase this page, I want to delete everything related to that name in google Iváns (talk) 10:16, 16 January 2020 (UTC)

You should ask for deletion on those wikis (forums, putting a deletion template on that page...). This website (mediawiki.org) doesn't have control over those sites, they're only using the same wiki software. Ciencia Al Poder (talk) 10:30, 16 January 2020 (UTC)
When I give help at https://wiki.openstreetmap.org/ I was redirected to this site Iváns (talk) 15:41, 16 January 2020 (UTC)
I don't see in your contributions where did you ask for help... Ciencia Al Poder (talk) 21:51, 16 January 2020 (UTC)
Where do I ask for help? on the help button redirects me to this page Iváns (talk) 07:12, 23 January 2020 (UTC)
In all wikis there should be a {{delete}} template you can put on your won userpage to request its deletion.
Another option is to access Special:ListUsers/sysop on that wiki and ask directly to one of them in the talk page (check before its contributions to see if the sysop made recent edits) Ciencia Al Poder (talk) 10:39, 23 January 2020 (UTC)

Delete my 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.


I just created a new account ... but I mis-spelled my user name! Rather than try to rename my user name (a bit of a tricky procedure), I simply created a new new account with the "correct" user name.


Now I want to go back & delete that mis-spelled account.


I'm logged into it right now. I'm pretty sure I need an administrator. Bid Bad Buzzard (talk) 00:19, 17 January 2020 (UTC)

We cannot delete accounts, but if you have created a new account that you want to use, just abandon the current one (i.e. stop using it and forget about it) DannyS712 (talk) 00:20, 17 January 2020 (UTC)
OK, will do. Bye Bid Bad Buzzard (talk) 00:23, 17 January 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

"MySQL server has gone away" error on PostGreSQL install

Hi,


I've been experiencing an issue with the installation wizard : I've been trying to install MediaWiki on a AWS EC2 instance (from docker), supported by a AWS RDS PostgreSQL database (I cannot switch to another db type) .

When arriving to the "Connect to database" step in the installation wizard, I get the following error message :

Cannot access the database: :real_connect(): (HY000/2006): MySQL server has gone away. Check the host, username and password and try again. If using "localhost" as the database host, try using "127.0.0.1" instead (or vice versa).


Using RDS Endpoint as hostname (with :XXXX suffix for port), I am able to see the connection on the db via the AWS monitoring, but still I get this error.

I've tried to increase all db *timeout* parameters to their maximum as a test, but still I get the same error message.


One thing that strikes me is that the only two options I have on the menu are :

Database type :

  • MariaDB, MySQL, or compatible
  • SQLite

Although the wizard itself mentions PostGreSQL as a compatible db.


I'm running MediaWiki 1.34.0, & PostGreSQL 9.6.11 (the administration manual requires 9.2+).

Can you help please ? 165.225.77.126 (talk) 09:12, 17 January 2020 (UTC)

It's compatible, but in order to use PostGreSQL, your PHP needs to have the phsql php extension installed/enabled on php.ini: https://www.php.net/manual/en/pgsql.installation.php Ciencia Al Poder (talk) 10:20, 17 January 2020 (UTC)
Thank you Ciencia Al Poder 165.225.77.126 (talk) 09:22, 21 January 2020 (UTC)

upgraded to Mediawiki 1.34 exception error

I upgraded to Mediawiki 1.34 and everything seemed to work fine but when I try to run the site now I'm getting the following error:


Notice: "" is not a valid magic word for "ev" [Called from Language::getMagic in /home/ftri_org/support.ftri.org/languages/Language.php at line 3114] in /home/ftri_org/support.ftri.org/includes/debug/MWDebug.php on line 333

[XiICa3Q8eI2r65h95k8xPAAAAAc] /index.php?title=FTRI_Support_Home MWException from line 183 of /home/ftri_org/support.ftri.org/includes/MagicWord.php: Error: invalid magic word 'ev'

Backtrace:

#0 /home/ftri_org/support.ftri.org/includes/MagicWordFactory.php(222): MagicWord->load(string)

#1 /home/ftri_org/support.ftri.org/includes/parser/Parser.php(5288): MagicWordFactory->get(string)

#2 /home/ftri_org/support.ftri.org/includes/StubObject.php(112): Parser->setFunctionHook(string, string)

#3 /home/ftri_org/support.ftri.org/includes/StubObject.php(138): StubObject->_call(string, array)

#4 /home/ftri_org/support.ftri.org/extensions/EmbedVideo/EmbedVideo.hooks.php(24): StubObject->__call(string, array)

#5 /home/ftri_org/support.ftri.org/extensions/EmbedVideo/EmbedVideo.hooks.php(17): EmbedVideo::addMagicWord(string, string, string)

#6 /home/ftri_org/support.ftri.org/includes/Hooks.php(174): EmbedVideo::setup(Parser)

#7 /home/ftri_org/support.ftri.org/includes/Hooks.php(202): Hooks::callHook(string, array, array, NULL)

#8 /home/ftri_org/support.ftri.org/includes/parser/Parser.php(476): Hooks::run(string, array)

#9 /home/ftri_org/support.ftri.org/includes/cache/MessageCache.php(1189): Parser->firstCallInit()

#10 /home/ftri_org/support.ftri.org/includes/cache/MessageCache.php(1165): MessageCache->getParser()

#11 /home/ftri_org/support.ftri.org/includes/language/Message.php(1280): MessageCache->transform(string, boolean, LanguageEn, Title)

#12 /home/ftri_org/support.ftri.org/includes/language/Message.php(884): Message->transformText(string)

#13 /home/ftri_org/support.ftri.org/includes/language/Message.php(944): Message->toString(string)

#14 /home/ftri_org/support.ftri.org/includes/OutputPage.php(888): Message->text()

#15 /home/ftri_org/support.ftri.org/includes/OutputPage.php(937): OutputPage->setHTMLTitle(Message)

#16 /home/ftri_org/support.ftri.org/includes/page/Article.php(638): OutputPage->setPageTitle(string)

#17 /home/ftri_org/support.ftri.org/includes/actions/ViewAction.php(63): Article->view()

#18 /home/ftri_org/support.ftri.org/includes/MediaWiki.php(511): ViewAction->show()

#19 /home/ftri_org/support.ftri.org/includes/MediaWiki.php(302): MediaWiki->performAction(Article, Title)

#20 /home/ftri_org/support.ftri.org/includes/MediaWiki.php(900): MediaWiki->performRequest()

#21 /home/ftri_org/support.ftri.org/includes/MediaWiki.php(527): MediaWiki->main()

#22 /home/ftri_org/support.ftri.org/index.php(44): MediaWiki->run()

#23 {main}


Thanks! Liquifusiondoug (talk) 18:57, 17 January 2020 (UTC)

Have you tried running Manual:RebuildLocalisationCache.php ? Malyacko (talk) 21:45, 17 January 2020 (UTC)
sounds like something wrong with how embed video is registering magic words. Try removing it from localsettings.php, browse to a couple pages, and re-add it. If that doesnt fix it, i think its likely a bug in the extension. Bawolff (talk) 13:57, 18 January 2020 (UTC)
I removed the embed video extension and I was then able to move forward with the upgrade. However, when I got to the "Upgrade existing installation" step and it tried to upgrade the database (of our existing mediawiki) I got the following error (any suggestions?):
There was an error while upgrading the MediaWiki tables in your database. For more information look into the log above, to retry click Continue.
The end of the log had this error:
Dropping usertext_timestamp index from table archive ...done.
Table logging contains log_user field. Dropping ...
An error occurred:
A database query error has occurred. Did you forget to run your application's database schema updater after upgrading?
Query: ALTER TABLE `image`
DROP INDEX img_user_timestamp,
DROP INDEX img_usertext_timestamp,
DROP COLUMN img_user,
DROP COLUMN img_user_text,
ALTER COLUMN img_actor DROP DEFAULT
Function: Wikimedia\Rdbms\Database::sourceFile( /home/ftri_org/support.ftri.org/maintenance/archives/patch-drop-user-fields.sql )
Error: 1091 Can't DROP 'img_user_timestamp'; check that column/key exists (mysql.ftri.org) Liquifusiondoug (talk) 20:32, 22 January 2020 (UTC)
I tried to continue in the process and I'm still getting database errors:
An error occurred:
A database query error has occurred. Did you forget to run your application's database schema updater after upgrading?
Query: ALTER TABLE `archive`
DROP COLUMN ar_user,
DROP COLUMN ar_user_text,
ALTER COLUMN ar_actor DROP DEFAULT
Function: Wikimedia\Rdbms\Database::sourceFile( /home/ftri_org/support.ftri.org/maintenance/archives/patch-drop-user-fields.sql )
Error: 1091 Can't DROP 'ar_user'; check that column/key exists (mysql.ftri.org) Liquifusiondoug (talk) 20:53, 22 January 2020 (UTC)
Try to execute those statements directly on the database, and run the update.php script again Ciencia Al Poder (talk) 10:44, 23 January 2020 (UTC)

update to 1.33.1

I am trying to move my wiki to another server and upgrade to 1.33.1 from version 1.23.6- I downloaded mediawiki version 1.33.1 to my new server, created a new database, and moved the old database back up to the new wiki database using

mysql -u wikidb_user -p wikidb < dump_of_wikidb.sql

I also moved LocalSettings.php from the old wiki to the new wiki and changed the

$wgDBtype       

$wgDBserver     

$wgDBname     

$wgDBuser       

$wgDBpassword 

fields to match the new database.

When I try and run update.php, I get a MediaWiki internal error:

[9ec31f1099e6c45e34cc8d47] [no req]   Wikimedia\Rdbms\DBConnectionError from line 1213 of /tmp/mediawiki-1.33.1/includes/libs/rdbms/loadbalancer/LoadBalancer.php: Cannot access the database: Unknown error (10.34.33.155)

Backtrace:

#0 /tmp/mediawiki-1.33.1/includes/libs/rdbms/loadbalancer/LoadBalancer.php(758): Wikimedia\Rdbms\LoadBalancer->reportConnectionError()

#1 /tmp/mediawiki-1.33.1/includes/GlobalFunctions.php(2637): Wikimedia\Rdbms\LoadBalancer->getConnection(integer, array, boolean)

#2 /tmp/mediawiki-1.33.1/maintenance/Maintenance.php(1375): wfGetDB(integer, array, boolean)

#3 /tmp/mediawiki-1.33.1/maintenance/update.php(147): Maintenance->getDB(integer)

#4 /tmp/mediawiki-1.33.1/maintenance/doMaintenance.php(96): UpdateMediaWiki->execute()

#5 /tmp/mediawiki-1.33.1/maintenance/update.php(275): require_once(string)

#6 {main}


Why is connection not working? I am able to connect through mysql manually with the fields I put in LocalSettings.php 136.49.134.179 (talk) 22:48, 17 January 2020 (UTC)

you're sure you are using the exact same info when connecting manually? (Mysql can be tricky, access can be per host so connecting from a different server is not the same thing. For that matter, connecting to localhost is considered different than connecting to 127.0.0.1, and so on) Bawolff (talk) 13:54, 18 January 2020 (UTC)
yes, using the same info - the info in LocalSettings.php is
$wgDBtype           = "mysql";
$wgDBserver         = "10.34.33.155";
$wgDBname           = "wikidb";
$wgDBuser           = "wikidb_user";
and the command I use to connect with mysql is:
mysql -h 10.34.33.155 -u wikidb_user -p
and I use the password specified in LocalSettings.php. But when I run SELECT DATABASE() after connecting through mysql, it returns null unless I connect with mysql -h 10.34.33.155 -u wikidb_user -p wikidb 136.49.134.179 (talk) 21:35, 18 January 2020 (UTC)
The issue was in the version of mysql that I am using - version 8.0.4 has a new authentication plugin : caching_sha2_password, which was not present in earlier versions. To connect you can downgrade mysql version or run
ALTER USER 'wikidb_user'@'10.34.33.155' IDENTIFIED WITH mysql_native_password BY 'password'; 170.248.143.23 (talk) 20:26, 20 January 2020 (UTC)

Database error with ReplaceText

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 there. I am encountering the following issue with ReplaceText when trying to use regex: https://pastebin.com/ryT2Qf3s I am not sure why, because I've definitely run update.php as it's mentioned in the error. Anyone might know what's causing it? │Star-Warden19:19, 18 January 2020 (UTC)

Form the error you've: Query: SELECT page_title,page_namespace FROM `dmlw_page`,`dmlw_categorylinks` WHERE (page_title REGEXP '(.*?)_Advertisement.jpg')...
The error is from your regex. You cannot use question mark as a non-greedy modifier with the star and plus quantifiers. The '*?' part in your regex is not supported in MySQL. – Ammarpad (talk) 05:15, 19 January 2020 (UTC)
Thanks! That solved it. │Star-Warden12:49, 19 January 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

On-page SEO and Transclusions

Are the parts of text that appear on a wiki page as a result of Transclusion considered for that page's on-page SEO? Or for purposes of on-page SEO would it only appear as {{:Example_article}}. Thank you. River5000 (talk) 20:45, 18 January 2020 (UTC)

Transclusion displays the contents of another page or template where they're used. That has nothing to do with SEO (if by SEO do you mean Search Engine Optimization, of course) Ciencia Al Poder (talk) 10:23, 20 January 2020 (UTC)
So when search engine crawlers are checking a page for keywords they will not see the keywords in transcluded text, and will instead see "{{:Example_article}}"? River5000 (talk) 17:41, 20 January 2020 (UTC)
Search engines see rendered text, not wikitext, just like your visitors. Ciencia Al Poder (talk) 18:34, 20 January 2020 (UTC)
Perfect. Thank you! :) River5000 (talk) 18:57, 20 January 2020 (UTC)

unable to use content translation extension in mediawiki 1.35.0 alpha

load.php?lang=en&modules=startup&only=scripts&raw=1&skin=vector:2 Error: Unknown module: easy-deflate.deflate

    at sortDependencies (load.php?lang=en&modules=startup&only=scripts&raw=1&skin=vector:8)

    at sortDependencies (load.php?lang=en&modules=startup&only=scripts&raw=1&skin=vector:9)

    at sortDependencies (load.php?lang=en&modules=startup&only=scripts&raw=1&skin=vector:9)

    at resolveStubbornly (load.php?lang=en&modules=startup&only=scripts&raw=1&skin=vector:9)

    at Object.load (load.php?lang=en&modules=startup&only=scripts&raw=1&skin=vector:20)

    at load.php?lang=en&modules=startup&only=scripts&raw=1&skin=vector:52

    at load.php?lang=en&modules=startup&only=scripts&raw=1&skin=vector:52


link tewiki.iiit.ac.in Ramu ummadishetty (talk) 05:22, 19 January 2020 (UTC)

@Ramu ummadishetty Please always use the "debug=true" URL parameter - the output above is not helpful except for the first line but the first line still does not show what exactly is trying to load that module or why you think that this has anything to do with ContentTranslation. The listed module dependency was removed more than three months ago from ContentTranslation in I1a8669a40ebacb724aa2c3d9eeeaeaca9690b19. Please don't use outdated software parts. Also, if you don't want to develop yourself then please use stable software instead of random alpha versions. Malyacko (talk) 12:21, 19 January 2020 (UTC)

Upgrade from 1.21 at 1.34

Hey everyone,

I want to upgrade my old Mediaiwki (V.1.21) at the newest version (V.1.34). (I use a DebianLinux where I install the new version). I searched on the site of mediawiki for upgrade my wiki (Manual:Upgrading/fr) and i found the patch.

I think it's the best solution for this upgrade ! But.. it will be so long to do every patch manually.

So Is someone know a script for make all install or another solution, please ? 185.183.60.158 (talk) 09:08, 20 January 2020 (UTC)

If for patch do you mean a patch file (differencies between one version and other), don't do that. The patch is only available to upgrade from one minor version to another.
Instead, you should download the new version (full), extract on a new empty directory, copy LocalSettings.php from the old one, download any missing extensions you had from the old install, and then make that directory your current published wiki. If your uploads are on a directory outside the installation files you don't have to worry about them, otherwise move it to the new location.
Don't forget to run the "update.php" script Ciencia Al Poder (talk) 10:18, 20 January 2020 (UTC)
oh... Okay ?
My idea was to create a Debian with the old version and past step by step the patch (until the version 1.34). After, create an other Debian with the last version and make a dump of the old database in the newest... it's really not possible to do it like that ?
I try you're idea !
Thanks ! 185.183.60.158 (talk) 13:11, 20 January 2020 (UTC)
*your
sorry, my bad 185.183.60.158 (talk) 13:13, 20 January 2020 (UTC)
Possible? Yes, but there's no benefit in doing that. The entire contents of the wiki are on the database, and the uploaded files. You don't need a working MediaWiki installation to migrate it to a new server. Just take a backup of the database and restore it on the new server, transfer the uploads, and install/upgrade on the new server. See Manual:Moving a wiki Ciencia Al Poder (talk) 21:34, 20 January 2020 (UTC)
Hi Ciencia AL Poder,
  1. I want to upgrade my wiki from 1.32 to 1.34. Please help me. as you advice above. I will extract 1.34 to new directory and copy paste LocalSettings.php from Old to new.
And im using Mariadb on different server. So Wiki in 1a server and db on 2a Server.
Can I create path like this. ?
/ storage/storagewiki/wiki => This is 1.32 Version Path.
/storage/wiki => Can I create like this for 1.34 Version.
Please help me. Raghavendragk (talk) 08:33, 1 March 2020 (UTC)
Yes, you can use those paths if that makes sense to you. Note that if you change paths from the previous version, in case you had some hardcoded paths in LocalSettings.php from the old location, or apache rules, you'll need to update those configurations too Ciencia Al Poder (talk) 21:39, 1 March 2020 (UTC)
Thank you very much. need one help, need to clear be vernability .
Vulnerability CVE IDs = CVE-2019-19910
MediaWiki: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') (CVE-2019-19910).
Already I have upgrade wiki to 1.34. still I see this VA. Any advice please. Raghavendragk (talk) 10:18, 12 March 2020 (UTC)
This is apparently fixed phab:T240487. I'm not seeing how 1.34 can be affected, since the code that introduced the bug was included on the 1.35 branch Ciencia Al Poder (talk) 10:31, 12 March 2020 (UTC)

VirsualEditor & error 500

- OS: NethServer-7.6.1810

● MediaWiki 1.31.6 (c168a3f)

● PHP 7.2.26 (fpm-fcgi) (from nethserver-php-scl)

● MariaDB 10.2.22-MariaDB (from nethserver-rh-mariadb102)

● ICU 62.1

● Semantic MediaWiki 3.1.1

● CharInsert - (b5f34be)

● MsUpload 12.0 (d854ddf)

● ParserFunctions 1.6.0 (a28ad04)

- node v6.17.1

- npm 3.10.10

- parsoid 0.11.0 / 2019-12-20

- VisualEditor 0.1.0 (c3c9140)


MediaWiki and Semantic are working correctly, create, edit etc...


- I installed and adjusted VisualEditor according to: https://www.howtoforge.com/tutorial/how-to-install-visualeditor-for-mediawiki-on-centos-7/


● Why VisualEditor can starts correctly when I create a new file but gives  when I want to save it: HTTP 500?


● When I edit a file, VisualEditor does’t start "Error loading data from server: apierror-visualeditor-docserver-http: HTTP 500. Would you like to retry?"?


● Jan 19 01:32:59 server-name node: {"name":"parsoid","hostname":"server-name/domain-name","pid":2621,"level":60,"err":{"message":"","name":"lib/index.js","stack":"AccessDeniedError: Your wiki requires a logged-in account to access the API.\n    at AccessDeniedError (/opt/parsoid/lib/mw/ApiRequest.js:214:3)\n    at ConfigRequest._handleJSON (/opt/parsoid/lib/mw/ApiRequest.js:920:13)\n    at ConfigRequest.ApiRequest._logWarningsAndHandleJSON (/opt/parsoid/lib/mw/ApiRequest.js:447:7)\n    at ConfigRequest.ApiRequest._handleBody (/opt/parsoid/lib/mw/ApiRequest.js:483:7)\n    at ConfigRequest.ApiRequest._requestCB (/opt/parsoid/lib/mw/ApiRequest.js:420:8)\n    at Request.request [as _callback] (/opt/parsoid/lib/mw/ApiRequest.js:332:35)\n    at Request.self.callback (/opt/parsoid/node_modules/request/request.js:185:22)\n    at emitTwo (events.js:106:13)\n    at Request.emit (events.js:191:7)\n    at Request.<anonymous> (/opt/parsoid/node_modules/request/request.js:1157:10)\n    at emitOne (events.js:96:13)\n    at Request.emit (events.js:188:7)\n    at IncomingMessage.<anonymous> (/opt/parsoid/node_modules/request/request.js:1079:12)\n    at IncomingMessage.g (events.js:292:16)\n    at emitNone (events.js:91:20)\n    at IncomingMessage.emit (events.js:185:7)\n    at endReadableNT (_stream_readable.js:978:12)\n    at _combinedTickCallback (internal/process/next_tick.js:80:11)\n    at process._tickCallback (internal/process/next_tick.js:104:9)","httpStatus":401,"levelPath":"fatal/request"},"msg":"Your wiki requires a logged-in account to access the API.","time":"2020-01-19T06:32:59.867Z","v":0}


● What user should I create? // "Your wiki requires a logged-in account to access the API."


Michel-André Michelandre (talk) 19:09, 20 January 2020 (UTC)

https://www.mediawiki.org/wiki/Extension:VisualEditor#Linking_with_Parsoid_in_private_wikis Bawolff (talk) 17:20, 21 January 2020 (UTC)

How do I hide IPs from a [view edits] page?

Sorry, first time on media wiki so I'm not too sure. Nyawdawdawd (talk) 20:23, 20 January 2020 (UTC)

If you meant "View History": You don't. :) Which underlying problem would be solved by hiding IPs? Malyacko (talk) 07:17, 21 January 2020 (UTC)
you could require everyone to log in first (take away edit rights from logged out users). Then no ips would be publicly shown. Bawolff (talk) 17:17, 21 January 2020 (UTC)
You could put .mw-anonuserlink {display:none} into Mediawiki:Common.css
That would hide it from the history page (though it'd still be in the HTML page source). Jonathan3 (talk) 20:23, 21 January 2020 (UTC)
It seems this is an ongoing debate, e.g. T95144.
Maybe you could find hooks which would let you change the IP address of every "anonymous" user to 0.0.0.0 or something, if this wouldn't cause you other problems. Jonathan3 (talk) 20:30, 21 January 2020 (UTC)
Hooks/HtmlPageLinkRendererBegin was mentioned in Project:Support desk/Flow/2018/06#h-Hide_user_IP_address_in_anonymous_editing-2018-06-20T07:38:00.000Z. AhmadF.Cheema (talk) 02:20, 22 January 2020 (UTC)

Wiki trouble

Hello. I am having trouble setting up my own wiki. I have downloaded MediaWiki and when it was fully downloaded, it came with files like Vendors, images, skins, which I can't understand. Can someone at least create the wiki for me, or at least give me clear, basic instructions. I would like to create a wiki called Factpedia- the free encyclopedia. factpedia.org Auri1230 (talk) 06:20, 21 January 2020 (UTC)

For the start, please provide a link to the installation guide which you are following, and tell us at which exact sentence you are stuck and why. It's hard to help if nobody knows the problem. :)
For "can someone create the wiki for me", see Professional development and consulting.

Malyacko (talk) 07:16, 21 January 2020 (UTC)
I downloaded this version: mediawiki-134.0. It just comes in weird files that doesn't tell you to create a wiki. Auri1230 (talk) 07:45, 21 January 2020 (UTC)
The front page of https://www.mediawiki.org/ has links called "Download", "install" and "configure". Have you followed them? If yes, where exactly are you stuck? Malyacko (talk) 08:48, 21 January 2020 (UTC)
you need to install php. The weird files are for php to read, which then shows you the wiki. You may want to find a tutorial on how php and web servers work. Bawolff (talk) 17:16, 21 January 2020 (UTC)

what is the fastest way to import dump ?

I am using Mediawiki 1.34.0 stable , as of now i am using this method ---php importDump.php < dumpfile.xml for importing is there any way i can import dump of size 1.5 GB or greater with in less time ? Ramu ummadishetty (talk) 11:01, 21 January 2020 (UTC)

manual:MWDumper would be the main way, but its finicky and more complicated. It also requires importing on an older version and then using builtin upgrader. But it is the only fast option i am aware of. Bawolff (talk) 17:12, 21 January 2020 (UTC)

How to show categories at the top of every page?

Title says it: How can I tell my site to show categories at the top of every page (below the page title for example), instead of at the bottom (default)?

Thanks, Stefan Stefahn (talk) 12:27, 21 January 2020 (UTC)

Not sure about the categories part, but maybe Extension:BreadCrumbs2's navigation links can achieve what you need? AhmadF.Cheema (talk) 18:43, 21 January 2020 (UTC)
You could probably edit your skin's index.php page - find the relevant part and move it up.
I wonder if it's possible to move the categories div using jQuery.
You could do a DPL3 query to show all categories, and put it at the top of the page using SiteNotice. Is there a system message that puts text under the heading (I thought so but can't remember)?
Maybe one of these might help:
. Jonathan3 (talk) 20:10, 21 January 2020 (UTC)
Thanks for your suggestions.
I think I'll try the jQuery approach someday. Stefahn (talk) 08:31, 23 January 2020 (UTC)

Help setting up LDAP in the new version

Hi,

I'm frustrated by trying to figure out what's wrong with my configuration.

The LDAP setup is way more complicated now and I can't figure out what's wrong.

Debug doesn't create any file, in LDAP server's log I see that the auth was successful...

Anyone has a working configuration or a tutorial?


I don't need specific group restrictions or anything.. Mirosgold (talk) 18:45, 21 January 2020 (UTC)

For the start, which documentation link are you following? How do you "debug" exactly? Which MediaWiki version? Which extension and version? Malyacko (talk) 22:59, 21 January 2020 (UTC)

New User --Help with template concept.

Hi,

New user here to MediaWiki. I created my first Wiki today and trying to learn as much a I can. I'm caught up a bit on how the template concept works. The wiki I'm trying to build hopes to help my fellow touring professionals have a central location to see and add current technical and logistical info about music venues.


https://wiki.soundnerdsunite.org/index.php?title=Main_Page


I created a "template" page that has s structure that has sections for the information needed. I'd like to allow users to "copy" that template, add their own specific details about a venue without disrupting the template.


Then users would create a new article for the venue based on the formatting of the template.


I may be asking the wrong question, but thank you for any advice or guidance.


Thank you!

Nicholas


2600:2B00:7208:5500:D068:29C7:D9F9:3193 (talk) 21:50, 21 January 2020 (UTC)

Looks like Extension:MultiBoilerplate should help. AhmadF.Cheema (talk) 02:25, 22 January 2020 (UTC)
You could do this using Extension:Page Forms (i.e. use forms to help people structure the information they put on the pages) but you could go the whole hog and turn it into a database by using Extension:Cargo as well. Then you could display all your venues on a map, search for all venues with certain facilities etc. Jonathan3 (talk) 20:44, 22 January 2020 (UTC)

Is there a possibility to suggest improvements to Wikipedia, and if yes how?

Thank you for your support. Daniel Papenburg (talk) 00:51, 22 January 2020 (UTC)

Yes, most Wikipedias have community forums or "Village Pumps". Malyacko (talk) 09:41, 22 January 2020 (UTC)

LDAPGroup: Sync won't remove user_groups from database

Hi all,


first of all thanks for the great extension, it works like a charm. The only issue I have is that the Group mapping only works for adding LDAP users to local wiki groups, but it appears not for removing the link, if the user was removed from the LDAP group. Is that a feature or am I doing something wrong?


Here is my config:



"groupsync" => [

                               "mechanism" => "mappedgroups",

                               "mapping" => [

                                       "sysop" => "LDAP_ADMIN_GROUP",

                                       "LOCALGRP1" => "LDAP_GROUP_1",

                                       "LOCALGRP2" => "LDAP_GROUP_2",

                                       "LOCALGRP3" => "LDAP_GROUP_3",

                                       "LOCALGRP4" => "LDAP_GROUP_4"

                               ]

                       ]



The mapping works fine as I said, but after I still have every mapping for my user in the database for each group I was in before.


Thanks in advance. 85.22.137.50 (talk) 12:42, 22 January 2020 (UTC)

Error in the sequence of orders: the "label" function does not exist.

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 Label template throws me an error saying that the "label" function does not exist. How can i fix this?

MW version 1.34.0

Thank you Jomagalo (talk) 13:24, 22 January 2020 (UTC)

@Jomagalo Please explain what "the Label template" is and provide clear steps to reproduce that leave no room for interpretation. Malyacko (talk) 15:18, 22 January 2020 (UTC)
@Malyacko This link leads directly to the indicated template and shows the mentioned error.
https://www.dontv.es/wiki/Plantilla:Label Jomagalo (talk) 20:00, 22 January 2020 (UTC)
After importing the module from English Wikipedia, you made this edit where you attempted translating it to Spanish. That's where your problem originated. You renamed (among others) the 'label' function to 'enlace' and then in the Template you invoked the now non-existent 'label' function. You have to invoke 'enlace' now, and for all other functions you changed, you've to invoke only the new name too and forget the older English ones. – Ammarpad (talk) 04:17, 23 January 2020 (UTC)
@Ammarpad Thank you very much, I have been able to solve it with your help. Jomagalo (talk) 12:22, 23 January 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Sciencemadness Wiki--HELP!

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 trying to edit a page on the Sciencemadness Wiki but am not able to. That Wiki won't even allow me to create an account, and I keep getting directed to MediaWiki when I try to. What is going on? Why is the Sciencemadness Wiki no longer accessible or operational? Briansal1 (talk) 20:48, 22 January 2020 (UTC)

Hi, you've to contact Sciencemadness through their usual channels. But remember that they have the absolute right to decide who edit/create account on their wiki. If there are procedures for requesting account creation, follow that. If there's none find another wiki to edit. – Ammarpad (talk) 03:56, 23 January 2020 (UTC)
Deleted

124.248.185.74 (talk) 09:21, 23 January 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Shared Host Mediawiki install v1.23.9: Editing Common:CSS has no effect.

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 have a wiki on a shared hosting server that was auto installed via cpanel, it's an older version of media wiki version 1.23.9. I wish I had known that to start off with, I assumed they were using the latest version, would have saved me some headaches when trying to install extensions.

In any case I've been making due because it does everything I want it to do for the most part and I'm not experience enough to try to manually update it.

The only thing I do wish to change are colors (would like a dark theme) however when I attempt to do so by editing the common:css and reloading the page with shift+f5 I see no effect. I took a look at my wiki in edge and also saw no effect.

I've been goggling this problem for the last two weeks I think I just lack some fundamental knowledge that's causing me to over look the root issue. I've tried copping tutorial changes onto the page and no effect, I've delete the vector.css and common.css pages and tried again and no effect.

I've reduced my css to the simplest of changes in order to eliminate variables. An example of what I've trying now is bellow.

body {background-color: #000000;}

I may just be entering entirely the wrong code, I've tried adding the !important tag after reading some things about css priority and no change.

The only other things I've changed about my wiki is that I've added tinyMCE and tried to add some 1.31 extensions before I realized that I was on 1.23.9. Maybe some of the poking around I did broke the common.css function? I'm not sure. I deleted all of the old

I also tried disabling tinyMCE and running the above code without it enabled in localsettings.php but still no effect.

Any how, this is a long shot but if any one has any insight that would be amazing. Thank you!

-Karl KarlDrive (talk) 22:48, 22 January 2020 (UTC)

the page you need to edit to adjust css is named MediaWiki:Common.css not common:css Bawolff (talk) 08:12, 23 January 2020 (UTC)
Yeah that worked *sucks air through teeth and sighs* god damn it, I knew it was some thing obvious. Thank you so much man! KarlDrive (talk) 19:21, 23 January 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Deleted from Wikipedia?

The I was showing off to my parents that I was on Wikipedia, my file had been deleted, they said that this person is "not important enough". I was the bassist for the Animals for 5 years, there has never been female members of the british invasion. I have 4 records of my own and have played with Eric Mcfadden for 22 years. Not important enough? I was inSan Pedro at the time and this fellow tells me that there is a guy who trolls wikipedia and protests any woman accomplishments in Rock. He wiped me right off. If I could do it my self I would but I don't know what to do? I certainly have enough published cred. Butpowers in your company say there is nothing anyone can do. Paula O'Rourke Paulamouse (talk) 05:59, 23 January 2020 (UTC)

what is a label template

Paulamouse (talk) 06:00, 23 January 2020 (UTC)
? I guess nobody wants to answer that question

Paulamouse (talk) 06:01, 23 January 2020 (UTC)
you are asking in the wrong place. This website is not wikipedia. Try asking at w:WP:Teahouse.
As an additional note, w:WP:MUSIC has the official guidelines for who is and is not important enough to have an article. Referencing how you meet that page might help you win the argument. But also be advised when writing about yourself of w:WP:COISELF. Best of luck. Bawolff (talk) 08:09, 23 January 2020 (UTC)

Problems with composer in a new (clean) install of MW 1.34 (or 1.33)

I'm looking for some help with Composer on a new (clean) install of Mediawiki and SMW.

As background, I've been using SMW for 5+ years. Like many - I suspect - my use of Composer is pretty much limited to what's needed to install and maintain SMW. My installation is at MW 1.28 and SMW 3.0.1. There was a pretty significant problem with MW 1.30+, PHP 7 and Sphinx Search, so I haven't been able to consider upgrading in some time. At this point, the challenges of going from MW 1.28 -> 1.34 and PHP 5.6 to PHP 7.2 have made upgrading my current wiki a dubious proposition.

Instead, I am creating a new MW 1.34 wiki on a new server, installing my extensions and planning to export my pages from the current wiki and import them into the new wiki. That's the plan, anyway....

When I install MW 1.34 (on a cPanel-based server, so cPanel does the installation), there is no composer.json file in the root directory of the wiki. I can't put SMW in a composer.local.json file and have it recognized.

I can create a minimal composer.json with one or two extensions. However, when the update script is later run and I'm prompted to run composer to create a lock file, a whole bunch of libraries required by MW are removed. It took me the better part of a day to realize what was happening (since the first symptom was a HTTP 500 error). My research uncovered some of the syntax required in composer.json to look for the composer.local.json file and to look for other composer.json files in the MW directory structure, but it's not clear what I need to have in composer.json to ensure that everything MW needs to run is accounted for along with SMW.

I looked back at my current MW 1.28 implementation, and the composer.json file has a lot of statements that were clearly provided by MW, along with my additions for SMW. Somewhere between my first implementation and this, that seems to have changed.


I've been trying to forensically recreate a composer.json that would at least not blow away my MW but that is proving difficult and doesn't make a lot of sense to me.  Why should I re-create a file that MW absolutely must have to operate once composer is used? I may be missing something, but I'm at a loss to understand what.


Any help would be appreciated! Mgreis (talk) 06:22, 23 January 2020 (UTC)

honestly,my main advice would be to not use cpanel to install mediawiki but use the official tarball. Bawolff (talk) 08:01, 23 January 2020 (UTC)
That's the next step I'm trying.
But can you or anyone tell me, am I correct that there should be a composer.json in the base directory after I've unzipped and installed it? That's the rub. If I can use composer to install SMW and my other extensions without destroying the installation, I should be good to go.
And if not, how do I get/create a composer.json to install extensions without wrecking the installation?
Thanks, @Bawolff Mgreis (talk) 17:50, 23 January 2020 (UTC)
afaik the tarball should have a composer.json. mw core dependencies are preinstalled but its there just in case. I think. I havent looked at the tarball recently.
The whole installing extensions via composer isnt really officially reccomended but the smw people seem very insistent on it :S Bawolff (talk) 21:29, 23 January 2020 (UTC)
Oh, dear. I don't want to get into the middle of one of those conversations. To your first point, the core dependencies are pre-installed. The problem is that the creation of a minimal composer.json file for one or more of these extensions is eventually followed by having to run either a composer update or a maintenance/update.php script. That results in the removal of those pre-installed, required libraries because they are not referenced in the minimal composer.json. Removing the libraries results in a non-functional wiki and a reinstall.
That, in a nutshell, is my problem. I'm having this conversation in parallel now on the semediawiki-user mailing and hoping that one of these sources helps me find a way out of this mess.

Mgreis (talk) 15:36, 24 January 2020 (UTC)
whats the library that is missing after composer update? The included composer.json should list all the dependencies needed to run mediawiki Bawolff (talk) 02:28, 27 January 2020 (UTC)
User:Mgreis - just chipping in to add that this thread was a total lifesaver! I'd installed Mediawiki via cpanel and was stuck at Install Dependencies at Wikibase/Installation because there was no composer.json in there. After failing around for a bit, I stumbled across this thread, which then prompted me to do a local install to see if that has a composer.json and it did! Super weird that the cpanel version is missing that. Anyway, all working now. Jwbaker-dr (talk) 17:04, 20 July 2021 (UTC)

Language of 'contents' in ToC changes randomly on its own

Hey. We have the following issue on our wiki where the word 'Contents' in the table of contents translates itself automatically and randomly to a random language. Here are some examples:

What could be the cause behind this? It doesn't matter if I am logged in or not, nor the language chosen for the wiki's interface.

Later Edit: It seems 'Contents' changes back and forth randomly, so the above links might not reproduce the error, but the screenshot is an example. │Star-Warden14:06, 23 January 2020 (UTC)

generally this sounds like language parser cache pollution. It can be caused if an extension is using the wrong language object (e.g. not the one for the current page)
That said, i havent looked in detail Bawolff (talk) 21:32, 23 January 2020 (UTC)
Thanks for the reply. So, how can I tell which extension is doing this and how to fix said pollution? │Star-Warden13:05, 24 January 2020 (UTC)
another possibility is it might be the skins fault. Bawolff (talk) 09:35, 26 January 2020 (UTC)
All right, but what steps do I need to take to find and fix the error? │Star-Warden11:56, 27 January 2020 (UTC)
All I could find was old (bug 27634) TOC title appears in wrong language. Long standing, don’t know how to read the comments there to understand what they did or didn’t do for resolution https://www.mediawiki.org/wiki/Release_notes/1.17, or if checking Localisation#Caching will help in attempting to understand previous references. Can’t understand the suggestions provided on this talk page. To my knowledge the problem existed without any extensions enabled on a basic clone with the default MW theme and others but retesting would be needed. Not feasibile on the production site but on a clone yes. I know I found other references to this issue on other sites in the recent past, just can’t recall how it was worded to turn up those results. TiltedCerebellum (talk) 18:32, 31 January 2020 (UTC)
bug 27634 (In the new numbering scheme that is https://phabricator.wikimedia.org/T29634 ) is long ago resolved. Literally resolved 9 years ago. If you're experiencing a similar bug its probably different from that one.
The only way to try and figure out the cause is to try and find a minimal test case. Disable all customizations until you find the customization that is causing it. Bawolff (talk) 09:17, 6 February 2020 (UTC)

How to pull the number of daily edits on wikipedia?

I want to pull the number of daily edits on Wikipedia, going back a year. Is there a way to do that with the API? 199.20.44.50 (talk) 14:19, 23 January 2020 (UTC)

possibly, but it would be easier via quarry.wmflabs.org (you can use the revision table) Bawolff (talk) 21:30, 23 January 2020 (UTC)

Wikipedia App., can't login.

I just downloaded the App., don't remember my password, as I auto login on my Browser. When I try to say that I FORGOT MY PASSWORD for the App., it bring's me to another screen, that say's due to protocol it won't let me do that function. I keep trying. It's very frustrating... Zeeebear (talk) 17:45, 23 January 2020 (UTC)

Since your password is saved on your desktop browser, you should try to retrieve it from there locally or request change of password through the desktop password reset page.
For the Mobile app, my best guess is that you're under IP address that's blocked globally, unfortunately password reset is currently not possible from such IPs.
If you can't do all that, please post the full error message here. – Ammarpad (talk) 13:52, 24 January 2020 (UTC)
I had the app for a while and recently I've successfully changed my username. However, for some reason everytime I try to log in to the app both the username and password vanish and a yellow notification pops up saying "Wikipedia is made by people like you. Log in to contribute." No matter how many times I put in my username and password the same things happens, however, if I log in by Google then it goes through without any issues and it seems to be a problem with the app. Saffi Potentate (talk) 19:05, 30 November 2023 (UTC)
I was able to fix the issue by just uninstalling and reinstalling the app. Saffi Potentate (talk) 19:23, 30 November 2023 (UTC)

Help setting up ShortURL with Nginx subdomain

Hi All,

Could someone help me please? I'm tearing my hair out trying to get this working!

So I have the nginx letsencrypt docker container from LinuxServer.io, set up to serve a number of applications from different subdomains. This all works perfectly.

I have recently added a mediawiki container, this also works absolutely fine.

I'm now trying to shorten the url, using the tool at https://shorturls.redwerks.org/ - trying to integrate the nginx config it gives me with my existing subdomains setup, and I just can't get it to work. It displays a basic 'File not found' page.

Here is what I have so far:

https://gist.github.com/MarkAdamson/e7195e6ed1822733d61a3e038ac88add

It includes an example of an existing subdomain that does work, my wiki subdomain that doesn't work, and the supporting include files.

Please let me know if any more information is needed - I'm grateful for any help at all. Satknave (talk) 08:44, 24 January 2020 (UTC)

You have $wgArticlePath = "/r/$1"; but I can't find anywhere in your nginx config a translation between /r and your actual MediaWiki installation path.
You may want to check out Manual:Short URL/Nginx for a working example. Ciencia Al Poder (talk) 17:39, 24 January 2020 (UTC)

partial upload

How do I create a ged file for a selected list of entries? RogerWindsor (talk) 15:09, 24 January 2020 (UTC)

Can you elaborate? What is a ged file? What is the purpose? Ciencia Al Poder (talk) 16:18, 24 January 2020 (UTC)

API access

How can I open API access only to logged users? So to prevent anonymous users from access to API query? Thank you. PereslavlFoto (talk) 20:23, 24 January 2020 (UTC)

Update from 1.30 to 1.34 failed with no explicit error

I think i was close to the end of the update:

...Update 'PopulateChangeTagDef' already logged as completed. Use --force to run it again.

done.

...index change_tag_rc_tag_id already set on change_tag table.

...have ipb_sitewide field in ipblocks table.

...ipblocks_restrictions table already exists.

...change_tag table does not contain ct_tag field.

...valid_tag doesn't exist.

...tag_summary doesn't exist.

...protected_titles table does not contain pt_reason field.

...ar_usertext_timestamp key doesn't exist.

...usertext_timestamp key doesn't exist.

...logging table does not contain log_user field.

...index un_user_ip already set on user_newtalk table.

...site_stats is populated...done.

Purging caches...

An error occurred:

Invalid module info for "0": expected array, got NULL


Is this possible to have a more explicit message ?


Thanks PiNgOo (talk) 23:59, 24 January 2020 (UTC)

Help

I’m looking for a page that is no longer available. Can you help please? Rexcall (talk) 00:15, 25 January 2020 (UTC)

not unless you tell us more details about the situation (like what page) Bawolff (talk) 03:25, 25 January 2020 (UTC)
Ok, so I’m trying to get some information on Michael Rodden the bass player from the band “Hinder”. There use to be a page on him but it’s no longer available. How can that page be retrieved? Rexcall (talk) 02:10, 26 January 2020 (UTC)
I suspect you're referring to Wikipedia? Unfortunately this is not the page to ask questions regarding it. See Project:About. Leaderboard (talk) 05:36, 26 January 2020 (UTC)
Thank you Rexcall (talk) 22:12, 26 January 2020 (UTC)

Help

I forgot the password of my old account so I had to -create a new one. How can I transfer my edits and history to this new one? Shawarmaji (talk) 03:17, 25 January 2020 (UTC)

you cant.
At the very least you would have to prove possesion of the old one. If you could have done that you could have just got your password reset.
(This answer assumes wikimedia website. If its your own wiki there may be a way) Bawolff (talk) 03:24, 25 January 2020 (UTC)
thanks

Shawarmaji (talk) 03:46, 25 January 2020 (UTC)

Wikipedia.org Portal

Wikipedia.org Portal

Hello. lv.wikipedia now has 100 000 articles and must move to that group of wikipedias. But I don't know where to add the request. Xaris333 (talk) 10:18, 25 January 2020 (UTC)

You don't need to make any request. The portal is being updated recurringly. This is tracked at phab:T128546Ammarpad (talk) 14:21, 25 January 2020 (UTC)

There seems to be a problem with your login session; this action has been canceled as a precaution against session hijacking. Please resubmit the form. - again, but on a local 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.


Hello, I have installed MediaWiki on a local host, but this message appeared while logging in to the MediaWiki account: "There seems to be a problem with your login session; this action has been canceled as a precaution against session hijacking. Please resubmit the form." I'm using XAMPP to launch the local host. C.Ezra.M (talk) 20:24, 25 January 2020 (UTC)

try setting $wgSessionCacheType = CACHE_DB;
This issue usually means something is wrong with cache config (e.g. apcu). It will likely also make your wiki be slow.
Check also you have cookies enabled Bawolff (talk) 23:04, 25 January 2020 (UTC)
But then, I got the following (in Polish):
[acc7e29f297d1335de199a15] 2020-01-26 08:07:31: Krytyczny wyjątek typu „InvalidArgumentException”
I refreshed the page and got:
[894563b0ab7719a1d0e77f99] 2020-01-26 08:07:57: Krytyczny wyjątek typu „InvalidArgumentException”
I copied the coding and placed in LocalSettings.php, with quote marks around "CACHE_DB". I ended up removing the quote marks. The login works. C.Ezra.M (talk) 08:16, 26 January 2020 (UTC)
yes, not having quote marks is important. CACHE_DB is a constant not a string. Bawolff (talk) 08:37, 26 January 2020 (UTC)
Hi all, I was having the exact same issue. No recent install or upgrade. Things were running fine and than, all of the sudden, I could not login on my browser of choice (Chrome). I could, however, login using an incognito window on Chrome or a different browser (tryed Firefox).
I solved it by clearing my browser cache and deleting all cookies, heading back to the login page, clicking on the "forgot password" link and changing my password. Now things are back to normal.
Hope this helps Rbirmann (talk) 14:32, 21 June 2021 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

formatting help

i have been having a few issues lately. My first is that my page formatting is coming up plain text

the site is ditwiki.com

MediaWiki 1.25.1
PHP 7.3.13 (cgi-fcgi)
MySQL 5.5.62-log

any help is appreciated
RyanKunk (talk) 22:00, 25 January 2020 (UTC)

See the "Console" and the "Network" tab of your web browser's developer tools for information: "The resource from “http://ditwiki.com/load.php?debug=false&lang=en&modules=startup&only=scripts&skin=vector&*” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff)." Malyacko (talk) 00:12, 26 January 2020 (UTC)
check your php error log for "headers already sent" error. Bawolff (talk) 02:21, 27 January 2020 (UTC)
ok so it seems like my wiki links are pointing to /wiki/ThisPage instead of /ThisPage i know this is a simple fix but i cant remember how to do it RyanKunk (talk) 20:13, 28 January 2020 (UTC)
ah i found it. changed $wgArticlePath to "/$1" RyanKunk (talk) 20:16, 28 January 2020 (UTC)
but now when i try to go to the login page i get this error

=Index.php=
Jump to navigationJump to search
There is currently no text in this page. You can search for this page title in other pages, [index.php?title=Special:Log&page=Index.php search the related logs], or [index.php?title=Index.php&action=edit create this page]. RyanKunk (talk) 20:17, 28 January 2020 (UTC)
RyanKunk (talk) 20:56, 28 January 2020 (UTC)
that seems like a combination of rewrite rules being wrong and $wgServer (and maybe $wgScriptPath) being wrong. Bawolff (talk) 22:07, 28 January 2020 (UTC)
Does this help? these are my settings currently
$wgScriptPath = ".";
$wgScriptExtension = ".php";
$wgArticlePath = "/$1";
$wgServer = "localhost";
here is my htaccess
RewriteEngine On
AddType x-mapp-php5 .php
DirectoryIndex index.php
RewriteRule ^(.*)\&(.*)$ $1\%26$2
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) /index.php?title=$1 [L,QSA]
RewriteRule ^$ /Main_Page [R] RyanKunk (talk) 19:37, 29 January 2020 (UTC)
well for starters, wgServer should include a protocol (http://localhost or https://localhost
wgScriptPath should not be ".". Just make it be the empty string ""
Im not sure what RewriteRule ^(.*)\&(.*)$ $1\%26$2 does in practise but i suspect that might cause problems Bawolff (talk) 10:39, 30 January 2020 (UTC)
If you set $wgServer = "localhost";, your wiki will only be accessible from "localhost" (the own server) and not from external clients.
You should set $wgServer to the public accessible URL of the wiki (probably ditwiki.com). Ciencia Al Poder (talk) 10:46, 30 January 2020 (UTC)
Looks like you've already fixed that. You should look at Manual:Combating spam, since it seems your wiki is being attacked by spambots. Ciencia Al Poder (talk) 10:47, 30 January 2020 (UTC)

MediaWiki Photo usage on QNAP

I have been trying to find a way to use Photos jpg files already stored in a Multimedia folder on the QNAP NAS where I am also hosting my MediaWiki. I propose to use the Mediawiki only on my local network.

I want to avoid having to import a duplicate of the photos into the Mediawiki Folder. on the same NAS.

If it is possible to achieve this, if so can you tell me how to achieve it. AnotherAdrius42 (talk) 22:35, 25 January 2020 (UTC)

would probably need to implement a custom foreign file repo. Not really easy...
Edit: appearently https://www.mediawiki.org/wiki/Manual:$wgForeignFileRepos#Using_files_from_a_local_folder_:_FileRepo is a thing. Never tried it but that might work Bawolff (talk) 22:58, 25 January 2020 (UTC)

Table of contents broken?

http://designation.wiki/CFA/index.php?title=Test


It was working months ago and I don't know why it's showing up like that. Could anyone help? thank you! 192.222.183.167 (talk) 00:02, 26 January 2020 (UTC)

Everything looks correct here, so if something is "broken" please explain what is broken and how and how someone else could see that. Malyacko (talk) 00:08, 26 January 2020 (UTC)

Problem entering Database Information while installing MediaWiki

Hey,

when i try to install MediaWiki on my server i do have a weird problem. I run through the installation and then enter my database information which is definitely correct. When i click to proceed i get an error saying:

Cannot access the database: :real_connect(): (HY000/1045): Access denied for user 'testuser@'122.144.21.22' (using password: YES).

I see in this line that the installer tried to connect to 122.144.21.22 which i did not enter into the "Databaseserver" field. I entered the ip 176.119.22.77 into the field. The IP 122.144.21.22 is the IP of the server itself. Somehow the installation process is ignoring my userinput and taking the current server IP.


Can anyone tell my why this is? The Setup just wont take my Databaseserver IP when i input it and instead always falls back to the actual server ip where the wiki itself is stored.

P.S.: The IP-Adresses and other data used is just an example because i do not want to give away my real serverdata of course.


Thank you very much in advance! Xalomoph (talk) 06:31, 26 January 2020 (UTC)

you are misreading the error message.
In mysql access is controlled by both username and what server the user is connected from. The error is saying that testuser connecting from 122.144.21.22 is not authorized. Bawolff (talk) 08:35, 26 January 2020 (UTC)
Thank you so much, you are right. I will keep on searching the error then and update this post as soon as i have the solution Thank you, that helped a lot. Xalomoph (talk) 09:22, 26 January 2020 (UTC)

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 entered a lot of additional information to the page of past-Swiss-counsellor [[Dumeni Columberg]] .

When - after a couple of hours of editing - I wanted to publish the changes, the system refused and asked me to contact an administrator.

I then checked the source code and took out Link-Text<! becuase I do not understand what it does. Thereupon I was able to publish and everything looks fine.

Did I corrupt something? Bonu (talk) 10:24, 26 January 2020 (UTC)

The edit was blocked by Abuse filter. You probably inserted the markup by unintentionally clicking somewhere on the editor toolbar, as that's what the filter seems to prevent. There's nothing to worry about. – Ammarpad (talk) 20:25, 26 January 2020 (UTC)
Great - thanks for the fast reply - have fun Bonu (talk) 22:53, 26 January 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

2 Wiki errors

  1. wfLoadExtension( 'PdfHandler' ); gives me an error while uploading PDF file.
  2. wfLoadExtension( 'LastUserLogin' ); gives me an error to change or confirm email address. 2610S (talk) 11:32, 26 January 2020 (UTC)
What's the error? You have to give enough information about the kind of error you saw, otherwise no one can give you informed response. – Ammarpad (talk) 15:02, 26 January 2020 (UTC)
@Ammarpad
  1. PdfHandler = Unable to run external programs, proc_open() is disabled
  2. LastUserLogin = CAS update failed on user_touched. The version of the user to be saved is older than the current version
When I delete them from LocalSetting I do not have these error

2610S (talk) 23:16, 26 January 2020 (UTC)
for the first one - seems pretty self explanatory. Fix your php.ini if you want to use pdfhandler.
For the second one, not sure, i would guess maybe that extension only works on older mediawiki. Bawolff (talk) 02:19, 27 January 2020 (UTC)

Can't login to my wiki

Hi,


I don't know what is causing this but I can't login to my wiki anymore. Sort of.

After I type in my username and password and after I hit login button, website takes me back to Main Page without remembering my login. When I go back to Login page there is a + sign between my first and last name (instead of space) in the username field, for example Gil+Borlin.

I also noticed that this login error only persists with usernames which have multiple words (spaces inside username). Users with usernames without spaces (single word usernames) can login successfully.

Any ideas what might be causing this?


Thanks,

Gil Gil Borlin (talk) 19:46, 26 January 2020 (UTC)

This issue is tracked at phab:T243667. There's a workaround in the phab task which you can use pending resolution of the issue. – Ammarpad (talk) 20:39, 26 January 2020 (UTC)
Also this intermittent time-out error phab:T243713 caused me to post reply 5 times here. – Ammarpad (talk) 21:06, 26 January 2020 (UTC)
Yes, I've noticed that. But I think everything is working fine now. Gil Borlin (talk) 22:17, 26 January 2020 (UTC)
Thank you for helping me out. Gil Borlin (talk) 22:15, 26 January 2020 (UTC)

donations

I received a "receipt" from my wiki donations for 2019. I don't remember donating a fixed amount each month. I normally give a set amount once a year - which I did in 2019.

How can I cancel an automatic monthly donation?

I cannot log into wikipedia. My normal user name is in use, but none of my standard passwords work. I also cannot reset the password, for whatever reason.


2601:58C:4080:CD50:BC2E:340C:757C:8655 (talk) 22:33, 26 January 2020 (UTC)

hi. This forum is only for mediawiki support. We cant help you with donation related queries (or any sort of question that needs to be answered officially). Plesse contact donate@wikimedia.org instead. Bawolff (talk) 02:17, 27 January 2020 (UTC)

Rounding in "expr" function

Is there any way to force a number to display a fixed number of decimal points, as in the "%.1f" formatter in C, Python etc. (or "%.2f" for 2 decimal places, and so on)? So I have a table where I want every number to display to 1 decimal point of precision, but e.g. {{#expr:701/100 round 1}} displays as 7, but what I want is 7.0. More detail at https://en.wikipedia.org/wiki/User:Adpete/sandbox#Rounding Adpete (talk) 00:10, 27 January 2020 (UTC)

if using lua there is string.format() which is a lot like c's printf Bawolff (talk) 02:15, 27 January 2020 (UTC)
So it seems I have to either write a Lua module, or use something like LuaCall? Anyway, the best I could come up with was {{#invoke:LuaCall|main|p=%.1f|a={{#expr:701/100}}|string.format(p,a)}}, which works on Wikipedia (see my Sandbox at https://en.wikipedia.org/wiki/User:Adpete/sandbox#Rounding ) but not here. I feel that is way more complicated than it needs to be... any better suggestions are welcome. Adpete (talk) 03:42, 27 January 2020 (UTC)
You can certainly do it with expr (if you can repeat what you're rounding or put it in a template), but there's no specific operator in the expression syntax to do that if that's what you are asking.
{{#expr:trunc(701/100)}}.{{#expr:((701/100)*10) mod 10}} Bawolff (talk) 06:52, 27 January 2020 (UTC)
I think that solution is less satisfactory, because it would be expecting other Wikipedia editors to put in the source numbers twice, and would almost certainly give rise to more errors. Adpete (talk) 09:43, 27 January 2020 (UTC)
you're already doing it wrong if you expect the average wikipedian to type out any of this. There is a reason templates exist. Bawolff (talk) 10:11, 27 January 2020 (UTC)
Fair point; I guess the takeaway is that a template is the only feasible solution due to the limitations of the expr function (which appears to be based on PHP, which explains a lot :). Do you by any chance know if such a template exists? Adpete (talk) 11:37, 27 January 2020 (UTC)
I did an internet search for "wikipedia template for one decimal place" and the following was the first result :-)
w:Template:Round
e.g.
{{round|{{#expr:701/100}}|1}} displays 7.0
{{round|7.012345|1}} also displays 7.0 Jonathan3 (talk) 14:15, 27 January 2020 (UTC)
Thanks, that seems to be exactly what I want. The first expression is possibly still a little clumsy for Wikipedia use, so maybe there is a project for me in the future :) Adpete (talk) 21:56, 27 January 2020 (UTC)

host information?

don't know what i am supposed to put for host in the filzilla software. i've spent hours trying different things and i've read a lot but i still can't figure it out. please help me. thank you very much for your help...i really appreciate it. Valurlink (talk) 09:12, 27 January 2020 (UTC)

host is another word for your domain name.
Sometimes the ftp server is under a different domain, in which case your hosting provider would tell you. Otherwise its probably just your domain name (e.g. mywiki.com ) Bawolff (talk) 10:13, 27 January 2020 (UTC)

error upgrading from 1.29 to 1.34

in site i see this error:

Fatal error: Uncaught Error: Class 'FormatJson' not found in /w/includes/exception/MWExceptionHandler.php:640


update.php doesnt seem to have worked properly. i unpacked using command line, and then tired the update script, but i dont think it did anything, how can i resolve the above error? is there something i missed in the upgrade process?


using php 7.3 83.130.65.121 (talk) 11:33, 27 January 2020 (UTC)

im thinking maybe the tar didnt unzip to the correct location? how can i check that i was downloaded and unzipped to where it needs to be? 83.130.65.121 (talk) 11:34, 27 January 2020 (UTC)
oh found it in sub folder w/mediawiki-1.34.0/.
how can i move it and all subfolders with command line to /w/ without deleting current files?

83.130.65.121 (talk) 11:36, 27 January 2020 (UTC)
ok, sorry to bother, i fixed the location of the updated files, now a different error:
[3f4df69dfa0b9297f1acf776] /w/index.php InvalidArgumentException from line 490 of /home/wikisexco/public_html/w/includes/libs/rdbms/database/Database.php: Wikimedia\Rdbms\Database::getClass no viable database extension found for type 'mysql'
Backtrace:
#0 /home/wikisexco/public_html/w/includes/libs/rdbms/database/Database.php(371): Wikimedia\Rdbms\Database::getClass(string, NULL)
anyone know what i missed? 83.130.65.121 (talk) 11:58, 27 January 2020 (UTC)
ok i managed to change the php mysql extension and i passed this stage. thanks anyways 83.130.65.121 (talk) 12:54, 27 January 2020 (UTC)

Limit read permissions for anonymous users (or by group)

Hi,

I am trying to protect some pages on my wiki so they can only be read by users that are connected. I've tried using this :

$wgGroupPermissions['*']['read'] = false;

$wgWhitelistRead =  [ "Accueil", "Help:Contents" ];

Which block everything, but the "whitelist" does not work.


Alternatively, I've tried to use the access control extension, but again the exceptions only seem to work for sysop. for example :

<accesscontrol>sysop, DMD</accesscontrol> only gives permission to sysop, even though "DMD" user group exists and I can assign people to it.


I'm happy to do this through any other means (creating namespaces for example): as long as I can selectively not show / not show the content of some pages to some users (that are not syspo). Does anyone have a solution?


Thank you! Euge385 (talk) 12:13, 27 January 2020 (UTC)

$wgWhitelistRead should've been enough. Which MediaWiki version are you using? Otherwise, Extension:Lockdown should work adequately too. AhmadF.Cheema (talk) 15:25, 27 January 2020 (UTC)

Force same system message for all users

Hello. How could I force the same system message (in en - English) (e.g. uploadtext) to be shown for all languages, not just for en - English? I've tried using Manual:$wgForceUIMsgAsContentMsg ($wgForceUIMsgAsContentMsg = array( 'uploadtext' );), but to no avail. It simply does not display the en - English message for other languages, even though the site's language code is $wgLanguageCode = "en";. 92.38.148.10 (talk) 13:14, 27 January 2020 (UTC)

My understanding of $wgForceUIMsgAsContentMsg is that, the message in the array is to be shown in the user language NOT content language. You misunderstood what it does. You're actually looking for opposite of what that variable does. I don't know how to achieve that now, however. – Ammarpad (talk) 14:31, 27 January 2020 (UTC)
@Ammarpad You actually understood it wrong. $wgForceUIMsgAsContentMsg forces messages to always display on the conteng language, not user language.
Therefore, what the anon says, it should work. You should check if $wgForceUIMsgAsContentMsg is defined somewhere after that line in LocalSettings.php that may be overwriting what you configured. Ciencia Al Poder (talk) 10:36, 28 January 2020 (UTC)
You're right. I should have paid more attention to the variable name than the less than clear documentation. – Ammarpad (talk) 13:56, 28 January 2020 (UTC)
Hey, @Ciencia Al Poder. Thanks for the answer. However, this isn't the case, as the variable appears only once in localsettings, and I honestly don't see what could break it. What should I pay close attention to? 92.38.148.65 (talk) 20:15, 28 January 2020 (UTC)
@Ammarpad Okay, looks like I messed up and you were correct. $wgForceUIMsgAsContentMsg is actually forcing a content message to be a UI message... I'm totally confused about that name
I've found T24833 which actually does the opposite: Adding uploadtext to $wgForceUIMsgAsContentMsg to make the upload form have variants for each language.
This means that you should actually do nothing about it, since uploadtext should be displayed with the wiki's default language to all users! Ciencia Al Poder (talk) 10:29, 29 January 2020 (UTC)
No problem. That's why I said the documentation is less than clear. I believe it can be improved to say things more clearly without compromising accuracy. – Ammarpad (talk) 03:06, 30 January 2020 (UTC)
@Ciencia Al Poder Well, it's disabled and it still doesn't show up, even though MediaWiki:Uploadtext is modified. What could be breaking it? 198.147.27.2 (talk) 14:42, 29 January 2020 (UTC)

"Notice: fwrite(): write of 656 bytes failed with errno=22 Invalid argument in C:\xampp\htdocs\wiki\includes\shell\Command.php on line 474" on the common CSS page

Hello, I see the following content on MediaWiki:Common.css:

Notice: fwrite(): write of 656 bytes failed with errno=22 Invalid argument in C:\xampp\htdocs\wiki\includes\shell\Command.php on line 474

The CSS page has the following content:

/* Umieszczony tutaj kod CSS zostanie zastosowany we wszystkich skórkach */

/* Resetowanie stylu "display" */
div {display: block}
span {display: inline}
table {display: table}
tr {display: table-row}
th, td {display: table-cell}

.mainpage-top
{
	border: 1px solid #7c5a43;
	background: white;
	-webkit-border-radius: 20px;
	-moz-border-radius: 20px;
	border-radius: 20px;
	display: table;
	width: 100%;
	padding: 5px
}

/* .page-Strona_główna #firstHeading,
.page-Strona_główna .siteSub
{
	display: none
} */

.page-Strona_główna .mw-body
{
	background: #F7C9AB;
}

/* .mw-body-content
{
	font-family: 'Fira Sans', Verdana, Arial, sans-serif
} */

Please help me. C.Ezra.M (talk) 13:32, 27 January 2020 (UTC)

i suspect this is a big that only shows up in windows and people test windows less.
Be helpful to know the stacktrace for the failed fwrite Bawolff (talk) 01:02, 28 January 2020 (UTC)
This seems related to pygmentize.exe. MarkAHershberger(talk) 22:05, 11 March 2020 (UTC)
i got
Notice: fwrite(): write of 3189 bytes failed with errno=22 Invalid argument in C:\Laragon\www\Localwiki\includes\shell\Command.php on line 493
Notice: Failed to invoke Pygments: Der Befehl ""C:\Laragon\www\Localwiki\extensions\SyntaxHighlight_GeSHi\includes/../pygments/pygmentize"" ist entweder falsch geschrieben oder konnte nicht gefunden werden. [Called from SyntaxHighlight::highlight in C:\Laragon\www\Localwiki\extensions\SyntaxHighlight_GeSHi\includes\SyntaxHighlight.php at line 356] in C:\Laragon\www\Localwiki\includes\debug\MWDebug.php on line 430
just comment '''SyntaxHighlight_GeSHi''' out, it calls the pygmentize and returns the error if phyton for the script is not available. commenting out or delete the corresponding line of this extension. Its needless, since you didn't used them. Gunnar.offel (talk) 18:28, 13 November 2020 (UTC)

QT GUI Bercurve sink

Hello. How can I connect the QT GUI Bercurve sink to the rest of the blocks? I need a graph of the probability of error for several types of modulation. Can i implement this? 176.59.52.213 (talk) 14:55, 27 January 2020 (UTC)

Wrong support forum.🤔 AhmadF.Cheema (talk) 15:18, 27 January 2020 (UTC)

Configuration: Fresh Install using: MW1.33.2, SMW 3.1.3, PHP 7.3.14-1+ubuntu18.04.1, MariaDB 10.1.43-MariaDB-0ubuntu0.18.04.1.

Context: I have a page where its category name is coming from a Semantic Property on Another page. Eg doing something like:

[[Category:{{#show:Another page | ?Category Name}}]]

Issue: The category is displayed correctly on the page. But following the category link on the page to the actual category shows it as empty. No Jobs are remaining in the queue and no amount of page refreshes fixes the problem. Only running refreshLinks.php fixes the problem.

Otherwise categories are displaying and being updated as expected (eg when set statically, like [[Category:Test]]).

This used to work on MW 1.27.0 with SMW 2.5.

After refreshing the page, I can see the following in the error log:

[DBPerformance] Expectation (writes <= 0) by MediaWiki::restInPeace not met (actual: 3):
query-m: UPDATE `page` SET page_touched = 'X') [TRX#...

Any thoughts on how to debug/resolve? Please. :)

Yes I might be able to rework the code to the page category via other means. Sparkau (talk) 19:42, 27 January 2020 (UTC)

the dbperformance logs can mostly be ignored. They are for debugging performance,not actual errors.
(I dont know the answer to your question) Bawolff (talk) 01:00, 28 January 2020 (UTC)
Have a look at the Cargo talk pages for ideas. This sounds the same or similar to a problem with Cargo which I think was resolved recently. I guess it's the same underlying problem with SMW. Jonathan3 (talk) 16:08, 28 January 2020 (UTC)
Possibly this is what you are referring to:
Yes, similiar issue. No applicable solution for SMW/MW that I can see.
Thanks. Sparkau (talk) 17:27, 28 January 2020 (UTC)

Wikibase Language Errors upon Special:NewItem

Hello!


I am getting the following error when trying to verify installation of wikibase.


Wikibase is REL1_31 https://github.com/wikimedia/mediawiki-extensions-Wikibase.git

MediaWiki is 1.33.1, installed via CPanel on Reclaim Hosting. 1.34 is not yet supported as PHP hasn't updated yet. In order to install wikibase I also had down download all of the vendor/resources/test/etc files manually and overwrite them as the CPanel Mediawiki doesn't come with everything needed.


[Xi@Ul1eb0V3vzI1nHjsrSQAAABc] /wiki/Special:NewItem Error from line 263 of /home/SITEURL/public_html/wiki/extensions/Wikibase/repo/includes/SummaryFormatter.php: Call to undefined method LanguageEn::truncate()

Backtrace:

#0 /home/SITEURL/public_html/wiki/extensions/Wikibase/repo/includes/SummaryFormatter.php(279): Wikibase\SummaryFormatter->assembleSummaryString(string, string, string)

#1 /home/SITEURL/public_html/wiki/extensions/Wikibase/repo/includes/Specials/SpecialWikibaseRepoPage.php(183): Wikibase\SummaryFormatter->formatSummary(Wikibase\Summary)

#2 /home/SITEURL/public_html/wiki/extensions/Wikibase/repo/includes/Specials/SpecialNewEntity.php(161): Wikibase\Repo\Specials\SpecialWikibaseRepoPage->saveEntity(Wikibase\DataModel\Entity\Item, Wikibase\Summary, string, integer)

#3 /home/SITEURL/public_html/wiki/includes/htmlform/HTMLForm.php(660): Wikibase\Repo\Specials\SpecialNewEntity->Wikibase\Repo\Specials\{closure}(array, OOUIHTMLForm)

#4 /home/SITEURL/public_html/wiki/includes/htmlform/HTMLForm.php(552): HTMLForm->trySubmit()

#5 /home/SITEURL/public_html/wiki/extensions/Wikibase/repo/includes/Specials/SpecialNewEntity.php(105): HTMLForm->tryAuthorizedSubmit()

#6 /home/SITEURL/public_html/wiki/includes/specialpage/SpecialPage.php(569): Wikibase\Repo\Specials\SpecialNewEntity->execute(NULL)

#7 /home/SITEURL/public_html/wiki/includes/specialpage/SpecialPageFactory.php(558): SpecialPage->run(NULL)

#8 /home/SITEURL/public_html/wiki/includes/MediaWiki.php(288): MediaWiki\Special\SpecialPageFactory->executePath(Title, RequestContext)

#9 /home/SITEURL/public_html/wiki/includes/MediaWiki.php(865): MediaWiki->performRequest()

#10 /home/SITEURL/public_html/wiki/includes/MediaWiki.php(515): MediaWiki->main()

#11 /home/SITEURL/public_html/wiki/index.php(42): MediaWiki->run()

#12 {main} Brimwats (talk) 03:22, 28 January 2020 (UTC)

Issue with redirect titles (not sure if this is a Miraheze specific issue or if it's a known MediaWiki issue)

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 understand that this may be an issue that is specific to Miraheze, so this may not be the best place to post. If it turns out that the issue is Miraheze specific then I'll repost there.

I have this issue where certain redirect titles don't display, instead they get overidden with the name of the page the redirects point to. Which is rather annoying because there are certain pages that are negatively affected by this issue.

If you look here, there are certain links that display the names of the pages that the redirects point to, rather than the names that were intended to be shown.

Not sure if this is an issue that is specific to Miraheze, an issue that is specific to later versions of MediaWiki, or an issue that has been known to happen. ― C.Syde (talk | contribs) 05:08, 28 January 2020 (UTC)

There's indeed a problem, or feature on Miraheze that cause redirects to display the redirect target title instead of it's own. You should ask Miraheze to disable that feature if you don't like it. Ciencia Al Poder (talk) 10:32, 28 January 2020 (UTC)
Yeah, I have tried before. But I don't think they could figure out what the issue was. Either that or they haven't gotten around to it. I suppose I should try asking again. ― C.Syde (talk | contribs) 11:20, 28 January 2020 (UTC)
I've just discovered that The Sims Wiki isn't affected by this problem. But C.Syde's Wiki is. I'm starting to think that it might be one of the system messages that I've edited that's causing the problem. But if it is one of the system messages, I have no idea which one might be causing the problem. ― C.Syde (talk | contribs) 04:23, 1 February 2020 (UTC)
Apparently the culprit was the Display Title extension. The issue has been fixed. But I'm a bit concerned that it will prevent the DISPLAYTITLE magic word from working altogether. ― C.Syde (talk | contribs) 03:03, 2 February 2020 (UTC)
The DISPLAYTITLE magic word is core functionality and will continue to work Ciencia Al Poder (talk) 10:04, 2 February 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Creating a wiki

Is there any way I can get help with creating a wiki? I have a hard time with the instructions. 50.68.172.46 (talk) 05:11, 28 January 2020 (UTC)

You can hire someone from Professional development and consulting Ciencia Al Poder (talk) 10:24, 28 January 2020 (UTC)

still in Beta - Citing different parts of the same source

This feature is in beta: Help:Cite#Citing different parts of the same source

It would be incredibly useful to me. When is it going to be available? Ingewertwijn (talk) 06:50, 28 January 2020 (UTC)

If you're talking about Wikimedia wikis, you can follow the project updates at m:WMDE_Technical_Wishes/Book_referencing. – Ammarpad (talk) 14:21, 28 January 2020 (UTC)
It only says they are going ahead, nothing else. That I already knew. The point is, I am doing a major update of my wiki at the moment, and I am wondering if it worth waiting for this to come out of beta? Ingewertwijn (talk) 15:30, 28 January 2020 (UTC)
The Wikimedia page also mentions: "Deployment on first wikis planned for January/ February (for wikitext)". However, this would probably be limited only to wmf branches of MediaWiki; likely going to take even more months to finally reach stable branches. AhmadF.Cheema (talk) 16:04, 28 January 2020 (UTC)
its experimental, so use at your own risk, but you could download the master branch of the cite extension, and enable the $wg variable right now if you want. Ymmv of course with experimental features and mixing newer cite ext with older mw Bawolff (talk) 21:57, 28 January 2020 (UTC)

Text table storage size seems unusually large?

I have a mediawiki installation with 731 content pages and only a single user (there are no talk pages used, for example).

Given each page of text can only be in the order of up to 50kb at most, I cannot understand why the size of my “text” table shows as 116 MiB in phpMyAdmin??

I understand that the large size of text tables can often be down to the number of old revisions — and it turns out the number of page edits since I began my wiki is indeed 29,697.  So I ran all the following scripts, including deleting all the old revisions, and yet the “text” table remains stubbornly at 116 MiB…

  • deleteOldRevisions.php --delete
  • deleteArchivedRevisions.php --delete
  • purgeOldText.php (I realise this is invoked as part of the above scripts but I ran it again just in case — 0 inactive text records were found, just as expected)
  • php refreshLinks.php --dfn-only
  • rebuildall.php (this massively reduced size of the “searchindex” and “revision” tables)

Can anyone help?  Or does 116 MiB sound about right for a wiki with 731 content pages?

(I did previously have a spam attack from bots when my wiki was first set-up but since then I have deleted all the user accounts and external links they spammed my wiki with)


Thanks Grahamstewart (talk) 13:54, 28 January 2020 (UTC)

try running OPTIMIZE TABLE text; sql command . Mysql doesnt automatically resize tables after deleting things.
Also you may want to enable $wgCompressRevisions Bawolff (talk) 21:51, 28 January 2020 (UTC)
I tried OPTIMIZE TABLE text; but this only resulted in my table increasing in size from 116.6MiB to 123.6MiB!!! :-( Grahamstewart (talk) 00:08, 29 January 2020 (UTC)

MobileFrontend Extension not working

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 installed MobileFrontend and set this in LocalStettings.php:


wfLoadSkin('Vector');

$wgDefaultSkin = 'Vector';

wfLoadExtension('MobileFrontend');

//wfLoadSkin('MinervaNeue');

$wgMFDefaultSkinClass = 'SkinMinerva';


Yet, Vector skin is shown in mobile view. How can this be set to SkinMinerva for mobile, and have Vector for desktop?


Thanks 83.130.65.121 (talk) 18:22, 28 January 2020 (UTC)

never mind, i found MinervaNeue wasnt installed =\ i have no idea how it got deleted after upgrade. oh well. 83.130.65.121 (talk) 18:32, 28 January 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

[XjCF9p7vwB-k56-Vax96IwAAAcg] ...: "UnexpectedValueException"...

I have a problem with my wiki. Editing is not available. The error is displayed: [XjCF9p7vwB-k56-Vax96IwAAAcg] ...: "UnexpectedValueException"...

Can You Help? Thanks in advance. Tofiq Kərimli (talk) 19:09, 28 January 2020 (UTC)

Please see Manual:How to debug and provide version information etc. Malyacko (talk) 19:21, 28 January 2020 (UTC)
Thanks for the reply. But the reason was different. In the localseting.php file: wfLoadExtension ('AutoSitemap'). I deleted it and now everything is in order. Tofiq Kərimli (talk) 00:24, 29 January 2020 (UTC)
Unfortunately, in the end it was bad. I moved my site from another folder. I was cloned. I didn't need the previous site. I deleted it completely. As a result, my new site disappeared. :) Tofiq Kərimli (talk) 20:49, 28 January 2020 (UTC)

Problemas de inicio de sesión en chorme

hola uso mediawiki y tengo problemas con el logueo de los usuarios solo en chorme, ya he hecho de todo he cambiado el archivo localsetting.php de todas las formas:


1.- $wgMainCacheType de CACHE_ACCEL a CACHE_ANYTHING

2.- $ wgSessionCacheType = CACHE_DB;

3.- $wgMainCacheType = CACHE_NONE;

$wgMemCachedServers = [];


he ejecutado y agregado depuracio y tampoco me funciona. Esta es la primera wiki con la que trabajo, el mensaje que me sale es este : "Parece que hay un problema con tu sesión; se ha cancelado esta acción como medida de precaución contra el robo de sesiones. Envía el formulario otra vez" pero luego de buscar el link de la wiki en favoritos logro acceder.


ademas revise que tuvieras los cookies habilitados en chorme y estan funcionando bien.si alguien puede ayudarme, no se si sea un tema de la zona horario o de que seria??



190.0.132.194 (talk) 19:58, 28 January 2020 (UTC)

if its only chrome and not other browsers, this suggests something wrong with chrome more than mediawiki.do you have any authentication extensions enabled or is it just normal mediawiki.
¿Tiene alguna extensión de autenticación habilitada o es solo mediawiki normal? Bawolff (talk) 21:55, 28 January 2020 (UTC)
Es unicamente en chorme y en algunos caso me pasa en IE, pero como haria para solucionar me pudiera indicar los pasos 190.0.132.194 (talk) 16:24, 29 January 2020 (UTC)
la version que tengo instalada es $wgVersion = '1.32.0';y el error da solo desde que migre todo a otro servidor 190.0.132.194 (talk) 16:27, 29 January 2020 (UTC)
ademas quisiera poder cambiar las contraseñas de mis usuarios wiki , si me indican un procedimiento que me ayude a configurarlo por el LADAP ya que por correo no tiene salida ainternet mi servidor ya que es una wiki local. si pueden ayudarme a detalle como recuperar contraseñas ya que el mail no sale y no tengo un usuario de correo habilitado para poder recuperar la contraseña. 190.0.132.194 (talk) 20:35, 29 January 2020 (UTC)
Manual:Resetting_passwords/es Bawolff (talk) 23:15, 29 January 2020 (UTC)
Recomiendo que pongas $wgSessionCacheType = CACHE_DB;
Después de esto, para probar deberías borrar primero todas las cookies del navegador (o probar abriendo una ventana en modo incógnito), para descartar problemas con cookies antiguas. Ciencia Al Poder (talk) 10:44, 30 January 2020 (UTC)
ya he probado con esto $wgSessionCacheType = CACHE_DB; y he eliminado cache y cookies cada vez que hago un cambio y aun no me funciona! 190.0.132.194 (talk) 11:42, 30 January 2020 (UTC)
he probado de modo incognito e igual me siguen sin cargar y me sale este mensaje "Parece que hay un problema con tu sesión; se ha cancelado esta acción como medida de precaución contra el robo de sesiones. Envía el formulario otra vez". tambien e probado en modo incognito y el mismo resultado 190.0.132.194 (talk) 11:45, 30 January 2020 (UTC)
yo lo tengo configurado asi: Pon atención a la ultima variable que parce ser que no la tienes establecida:
$wgMainCacheType = CACHE_MEMCACHED;
$wgParserCacheType = CACHE_MEMCACHED; # optional
$wgMessageCacheType = CACHE_MEMCACHED; # optional
$wgMemCachedServers = [ "127.0.0.1:11211" ];
#$wgSessionsInObjectCache = true; # optional ## Removed for 1.33
$wgSessionCacheType = CACHE_MEMCACHED; # optional Jomagalo (talk) 11:52, 30 January 2020 (UTC)
configurándolo de esta manera me sigue saliendo este mensaje:
Parece que hay un problema con tu sesión; se ha cancelado esta acción como medida de precaución contra el robo de sesiones. Envía el formulario otra vez. 190.0.132.194 (talk) 12:33, 30 January 2020 (UTC)
ya he configurado todo eso dentro del archivo de configuracion de LocalSettings.php Pero no se si deberia cambiar algunas configuraciones dentro del archivo defaultSettings.php? y si fuera cierto indicarme? 190.0.132.194 (talk) 13:43, 30 January 2020 (UTC)
estos archivos de configuracion los tengo en defaultsetting.php :
$wgCookieExpiration = 180 * 86400;
$wgExtendedLoginCookieExpiration = 180 * 86400;
$wgCookieDomain = '';
$wgCookiePath = '/';
$wgDisableCookieCheck = false;
$wgCookiePrefix = false;
$wgCacheVaryCookies = [];
$wgSessionName = false;
$wgCookieSetOnAutoblock = false;
$wgCookieSetOnIpBlock = false;
no se si deban estar asi o si debo modificar algo para que pueda inciar session desde chorme 190.0.132.194 (talk) 14:51, 30 January 2020 (UTC)
No pongas nada de MEMCACHED si NO usas Memcached, pues no tendrá donde guardar la sesión.
El DefaultSettings.php no se toca. Solo debes editar LocalSettings.php. Si hay alguna configuración que debas cambiar, debes hacerlo en LocalSettings.php
Deberías activar temporalmente un log de depuración para registrar lo que sucede (consulta Manual:How_to_debug#Setting_up_a_debug_log_file), crear una nueva cuenta de usuario, y volverlo a deasctivar. Digo crear una cuenta para evitar exponer tus credenciales en el log. Luego lo puedes poner aquí (idealmente, pégalo en https://dpaste.de/ y pasas aquí solo el enlace). Ciencia Al Poder (talk) 22:44, 30 January 2020 (UTC)
Buenos dias,
¿como resolvisteis este tema? acabo de intalar mediawiki y con el usuario preconfigurado me da el mismo error, en todos los navegadores. Intento tambien crear uno y me dice lo mismo. "Parece que hay un problema con tu sesión; se ha cancelado esta acción como medida de precaución contra el robo de sesiones. Envía el formulario otra vez." Mangel365 (talk) 09:18, 1 June 2022 (UTC)

My account activation

My account has not been activated, is there a reason?

frasim1960@gmail.com

user:frasim1960 115.70.22.138 (talk) 02:53, 29 January 2020 (UTC)

we dont have an account activation system here (?) Bawolff (talk) 06:09, 29 January 2020 (UTC)

how importDump.php works ? why it takes so much time to import article?

. Ramu ummadishetty (talk) 05:08, 29 January 2020 (UTC)

importDump works much like manually performing every edit of the xml dump, but manually. This means, parsing every revision you import to update all related tables (links, template links, categories, tags, etc). And for every revision, also update and potentially reparse any other pages that link to it.
You can opt to pass --no-updates to it, and once you've imported everything, run refreshLinks.php, which will also take a while but at least will reparse each page once, and not once for every revision imported! Ciencia Al Poder (talk) 10:38, 29 January 2020 (UTC)

logging on

hello,

i have tried to log in but unable. i have not accessed my account for 2 years, but at log-on it accepts my user name but not my password. has it been too log unactivated???

anton aussie rocker atkinson


2001:8003:D1E1:3600:BC87:30B6:A3B2:38B3 (talk) 06:05, 29 January 2020 (UTC)

Which websites (complete address) is this about? Malyacko (talk) 18:13, 29 January 2020 (UTC)

Hello every time I am tying to save my Main Page it will not save the page and instead give me a index.php file that has following content:


<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">

<html><head>

<title>503 Service Unavailable</title>

</head><body>

<h1>Service Unavailable</h1>

<p>The server is temporarily unable to service your

request due to maintenance downtime or capacity

problems. Please try again later.</p>

</body></html>


Any leads? KallarDuskwood (talk) 09:49, 29 January 2020 (UTC)

If this happens only when saving external links, I'd say it's caused by ModSecurity Ciencia Al Poder (talk) 10:34, 29 January 2020 (UTC)
So if thats the Problem what would I do? Im quite new to MediaWiki KallarDuskwood (talk) 10:56, 29 January 2020 (UTC)
If you're using a shared hosting or similar (you did not set up the server, but instead you bought a web space and simply upload your files through ftp), you should ask your hosting about this, describing your problem. Many hosts implement ModSecurity to prevent spambots from posting links in their hosted forums, blogs, etc Ciencia Al Poder (talk) 18:42, 29 January 2020 (UTC)
Check also your apache error log (if you have access to it) Bawolff (talk) 23:39, 29 January 2020 (UTC)

Mediawiki 1.33.0 - user can not save a page with any external addresses like http://google.de but admin's still can do it

Hello,


we have installed a Mediawiki with the version 1.33.0.


Our user are unable to save a page with any external addresses like e.g. http://google.de or https://google.de.

There is no error message or something linke that, just a empty page.


As admin user there is no problem in doing that, so i believe that is a permission problem.


But I don't know, where I can change it.


Any idea's to solve my problem? Kretak (talk) 10:13, 29 January 2020 (UTC)

This may be caused by ModSecurity, although it's strange that admins can save them (unless admins connect through localhost) Ciencia Al Poder (talk) 10:35, 29 January 2020 (UTC)
i don't use the ModSecurity.
I just have the following extensions:
wfLoadExtension( 'CodeEditor' );
wfLoadExtension( 'ConfirmEdit' );
wfLoadExtension( 'InputBox' );
wfLoadExtension( 'PdfHandler' );
wfLoadExtension( 'WikiEditor' );
wfLoadExtension('MsUpload');
wfLoadExtension( 'PageForms' );
wfLoadExtension( 'PDFEmbed' );
wfLoadExtension( 'AdvancedSearch' );
As admin, I use the same connection to the medaiwiki like the users.

Kretak (talk) 11:14, 29 January 2020 (UTC)
My medaiwiki is installed on a debian in hyper-v virtual machine in a local network. So there is no hostre who can block anything… Kretak (talk) 20:43, 29 January 2020 (UTC)
What kind of "empty page" do your users get when this happens? You should take a log at the webserver's error logs when this happens and see if that gives more details. Ciencia Al Poder (talk) 22:30, 29 January 2020 (UTC)
Try enable error reporting.
I think most likely is ConfirmEdit is causing a fatal error. Its probably only showing up for non-admins, because admins bypass captchas. There was an issue like this on an older version of ConfirmEdit, so try downloading a new version of that extension.
That said, to confirm, please also enable php error reporting so we can see the actual error message. See manual:How to debug. Bawolff (talk) 23:37, 29 January 2020 (UTC)
thanks. I'll take a look and report you the result. Kretak (talk) 13:37, 30 January 2020 (UTC)

Scribunto/Lua extension: run Lua code locally by simulating frame object

I have a question regarding the Scribunto/Lua extension used in MediaWiki software.

I'm doing research about open-source software and scripting extensions, like Scribunto with Lua. Now I would like to run some Lua modules locally, but most of them refer to the frame object.

I'm interested where this frame object is generated when modules are invoked from a page and whether it's possible to simulate/create this frame object locally with Lua code.

An example of a module I have looked at is a Witkionary module for generating Latin verb conjugations (https://en.wiktionary.org/wiki/Module:la-verb). The frame object is used at the main entry point, function export.show(frame).

Is there information about this? 195.169.119.74 (talk) 10:51, 29 January 2020 (UTC)

Its mostly a wrapper around foreign function calls into the php runtime. See also https://github.com/wikimedia/mediawiki-extensions-Scribunto/blob/master/includes/engines/LuaCommon/lualib/mw.lua#L144 Bawolff (talk) 23:35, 29 January 2020 (UTC)

Nesting of the second and more levels in Extension: CategoryTree

Good afternoon!

I use Extension: CategoryTree

It is not possible to create subcategories of the second or more levels. What needs to be registered in categories to display such nesting

1.

  1.1.

   1.1.1 OCaflash (talk) 12:45, 29 January 2020 (UTC)

Maybe $wgCategoryTreeMaxDepth? See the extension's page for details. Jonathan3 (talk) 23:24, 29 January 2020 (UTC)
Try adding the following to LocalSettings.php
$wgExtensionFunctions[] = function () {
 global $wgCategoryTreeMaxDepth;
 $wgCategoryTreeMaxDepth = [10 => 20, 20 => 20, 0 => 20, 100 => 20];
};
(The wgExtensionFunction is needed for a bug on some versions of category tree. It won't be needed in future versions) Bawolff (talk) 23:33, 29 January 2020 (UTC)
I've just checked my LocalSettings.php, and it has the following:
#See https://phabricator.wikimedia.org/T152294 and https://www.mediawiki.org/wiki/Extension%20talk%3ACategoryTree/Archive%2006/2017#h-Setting_%24wgCategoryTreeMaxDepth_doesn%27t_work_as_expected-2017-08-19T20%3A19%3A00.000Z "Setting $wgCategoryTreeMaxDepth doesn't work as expected"
#$wgCategoryTreeMaxDepth = array(CT_MODE_PAGES => 3, CT_MODE_ALL => 3, CT_MODE_CATEGORIES => 3);
#$wgCategoryTreeMaxDepth = [ 10 => 3, 20 => 3, 0 => 3 ];
$wgCategoryTreeMaxDepth = 3;
I must have had difficulty, but the final line must have worked. I guess when I upgrade (from MW 1.31.1 and CategoryTree c24e5ed) I'll have to use Bawolff's function above. Thanks. Jonathan3 (talk) 23:12, 30 January 2020 (UTC)

Mobile Infobox styling

Hello,

I've noticed on wikimedia sites that infoboxes on mobile have a distinct style from the desktop view. Can anyone point me to where the mobile infobox style is defined, on say WikiBooks? I can't find it for the life of me, and my infoboxes look rubbish on mobile.

Thanks Satknave (talk) 14:30, 29 January 2020 (UTC)

The mobile CSS rules normally used to be defined in MediaWiki:Mobile.css, but after Extension:TemplateStyles those rules might have been migrated to a subpage of the template with .css at the end of its name. AhmadF.Cheema (talk) 00:36, 30 January 2020 (UTC)

Limit user account creation to domain

I am on version 1.34 and I am trying to set it up so that users can only create accounts from a specific email domain like "@test.com" but I can not seem to figure this out. Everything I am seeing is from the AbortNewAccount hook or the EmailDomainCheck extension, both of which are unavailable for 1.34. Can anyone point me in the right direction for setting this up? 129.21.199.175 (talk) 15:02, 29 January 2020 (UTC)

I think you might want to try to create a pre-authentication provider Manual:SessionManager_and_AuthManager#PreAuthenticationProvider.
I guess an alternative is to use manual:hooks/isValidEmailAddr so that only that domain is valid (That will apply to the entire system, not just accounts).
Extension:SpamBlacklist also has an email blacklist feature, you could use that, or check to see how it is implemented. Bawolff (talk) 23:31, 29 January 2020 (UTC)

Did MFC make changes on Jan. 28, 2020, to the way the models sites open

My model page opens up with her picture taking up about 25% of the screen, the rest is filled mostly with chat... You can make her picture bigger if you use the stretch arrows and you can make her the normal size showing customers, chat in from user smaller but still see it.

Question, did the MFC Programmers change the program or did I screw up and change something without knowing it... I am pretty computer illiterate so this could have happened.


173.186.229.146 (talk) 18:41, 29 January 2020 (UTC)

Wrong support forum. No idea what MFC is, but this is not the place to ask. Bawolff (talk) 23:25, 29 January 2020 (UTC)

Hook in LocalSettings.php

Hi, I am trying to use this hook in LocalSettings.php:

function disableSomeSpecialPages(&$list) {

global $wgUser;
   #If not sysop disable other pages

   if (!in_array('sysop', $wgUser->getGroups())){
       unset($list['Version']);
   }

   return true;
}

$wgHooks['SpecialPage_initList'][] = 'disableSomeSpecialPages';

from Project:Support desk/Flow/2013/11#h-[RESOLVED]_Make_Special:Version_only_visible_to_Admins?-2013-11-27T11:43:00.000Z, but i get an error:


line 826 of /includes/session/SessionManager.php: Sessions are disabled for this entry point

#0 /includes/session/SessionManager.php(196): MediaWiki\Session\SessionManager->getSessionFromInfo(MediaWiki\Session\SessionInfo, WebRequest)

#1 /includes/WebRequest.php(806): MediaWiki\Session\SessionManager->getSessionForRequest(WebRequest)

#2 /includes/user/User.php(1258): WebRequest->getSession()

#3 /includes/user/User.php(371): User->loadFromSession()

#4 /includes/user/User.php(3311): User->load()

#5 /LocalSettings.php(184): User->getGroups()

#6 /includes/Hooks.php(174): disableSomeSpecialPages(array) 83.130.65.121 (talk) 21:26, 29 January 2020 (UTC)

+ any idea how to fix this? MW 1.34, php 7.3. it worked before with MW 1.29. 83.130.65.121 (talk) 21:27, 29 January 2020 (UTC)
So the error is because, you can't always check what groups the current user is in, if you're viewing an entrypoint like load.php that doesn't know what the current user is.
I guess you could change the if statement to something like:
if (!defined( 'MW_NO_SESSION' ) && !in_array('sysop', $wgUser->getGroups()))
[This would default enable if no user info is available. Which might be risky, but things might break if you did it the other way around, especially javascript even for admins]
Generally speaking though, you should try to use permissions to control special pages, rather then disabling them based on groups. e.g. Special:Unwatchedpages is only available to people with the 'unwatchedpages' user right. Not all special pages have rights associated with them, but if they do, that's a much better way to disable special pages. Bawolff (talk) 23:23, 29 January 2020 (UTC)
Addendum, i see specifically you are disabling Special:Version. Just be advised, that version info is also available in other places, like the generator meta tag, or the api. Bawolff (talk) 23:25, 29 January 2020 (UTC)
Thanks, the Version is an example, i tried to disable view for most special pages, how can i do it with permissions as you suggested? 83.130.65.121 (talk) 08:09, 30 January 2020 (UTC)
i meant mostly for specialpages that have builtin permission checks already, which is not all of them. But for those that do, see $wgGroupPermissions Bawolff (talk) 10:34, 30 January 2020 (UTC)

Install Visual Editor Fail with Nodejs, npm and Parsoid

Hey everyone I tried to install Visual Editor : Extension:VisualEditor

But when i install Node.js and npm, Node.js is in version 10.15.2 and i can't upgrade it with the newest version (version 12.14) and it's the same for npm...

The versions isn't compatible so i can't do nothing with parsoid...

Please, i need some help


185.183.60.158 (talk) 10:17, 30 January 2020 (UTC)

You can download nodejs from https://nodejs.org/en/download/ Ciencia Al Poder (talk) 10:31, 30 January 2020 (UTC)
Yeah i try but it's not working for me 185.183.60.158 (talk) 10:37, 30 January 2020 (UTC)
You should ask on a specialized forum of NodeJS or search for installation instructions for your specific OS Ciencia Al Poder (talk) 10:50, 30 January 2020 (UTC)
okay, i try this thanks 185.183.60.158 (talk) 10:59, 30 January 2020 (UTC)

I am experiencing some issues regarding the upload of images, they do not appear on their pages

and I receive this error: Error creating thumbnail: Unable to save thumbnail to destination 31.201.194.246 (talk) 11:18, 30 January 2020 (UTC)

See Manual:Errors and symptoms#Unable to save thumbnail to destination Malyacko (talk) 18:21, 30 January 2020 (UTC)

The content model 'Json.JsonConfig' is not registered on this wiki.

I am trying to make a copy of mediawiki to have the information available locally. When importing the dump through importDump I throw the following error:

The content model 'Json.JsonConfig' is not registered on this wiki.


I understand that the JsonConfig extension has to be configured in some way in LocalSettings.php.

Could you help me with that?


Thank you Jomagalo (talk) 11:24, 30 January 2020 (UTC)

The extension is Extension:JsonConfig. The installation instructions are there on the description page. – Ammarpad (talk) 06:38, 31 January 2020 (UTC)

Database compatability between releases

I am running an old [release 1.22.6] version of mediawiki which I am finally being forced to upgrade or replace. I am considering creating a new subdomain using the 1.32.0 release of mediawiki. And then I intend to restore a backup of my old version databases and image files to the new version.

My main concern is about database changes between the versions. Will the backups be compatible with the new wiki version?

I also have the same concern about my modified LocalSettings.php file.

My mysql server version is 5.7.25


Richpri46 (talk) 17:16, 30 January 2020 (UTC)

Database schemes change and some extensions that you might have installed might not be maintained and hence might fail. I'd say this is covered by Manual:Upgrading? Malyacko (talk) 18:18, 30 January 2020 (UTC)
the update.php script will convert your db to the new version Bawolff (talk) 21:48, 30 January 2020 (UTC)

Adding HTML to log in page Special:UserLogin

Hi


I am looking to add some HTML to the Special:UserLogin page is this possible with out an extension if so which page.


Kind Regards AlgorithmGG (talk) 17:29, 30 January 2020 (UTC)

Either https://phabricator.wikimedia.org/source/mediawiki/browse/master/includes/specials/SpecialUserLogin.php or editing and expanding existing messages (see https://yoururl/Special:UserLogin?uselang=qqx ) Malyacko (talk) 18:17, 30 January 2020 (UTC)
It says there used to be a message. is it still possible to turn the message back on with the $extramessages function?
protected function successfulAction( $direct = false, $extraMessages = null ) { AlgorithmGG (talk) 23:26, 2 February 2020 (UTC)
Are there any historical SpecialUserLogin.php archived pages available to cross reference? AlgorithmGG (talk) 01:49, 5 February 2020 (UTC)
Nice one ~@Malyacko AlgorithmGG (talk) 00:44, 20 February 2020 (UTC)
Thanks bit of a silly question I found the special userLogin.php page. I have previously read the page that prints the html on the createaccount special page but I have forgotten which page it is, So I am looking again. Any idea which page it is? or is an extension required to perform this task? (adding HTML to the log in page) AlgorithmGG (talk) 20:43, 30 January 2020 (UTC)

What is in abrecovery.fn.list?

I'm trying to use classify.otus() but it (and several other) commands require abrecovery.fn.list as an input. What is in this list and how do I generate it? Jeremysutherland (talk) 20:27, 30 January 2020 (UTC)

i think you are in the wrong place. We can only answer questions about mediawiki software Bawolff (talk) 21:46, 30 January 2020 (UTC)

"ERR_EMPTY_RESPONSE" when attempting to save changes.

I've been writing a few articles on a wiki my friend recently installed on a Godaddy-hosted site. The wiki is fairly new and we haven't customized it much outside of some CSS and a few basic extensions. Recently I've been having trouble saving any changes I've made to articles. About nine times out of ten I get the Google Chrome error "324", or "ERR_EMPTY_RESPONSE", "((the name of our wiki site)) didn’t send any data.".

I noticed that usually when this happens, other parts of the site begin messing up as well - things like the CSS not loading on pages or some pages giving me the same error. Also I should probably note that some of our articles are fairly long and contain a lot of HTML, so maybe that is causing some sort of issue? I'm not really familiar with the technical side of things when it comes to this sort of stuff. Is this a common issue, and if so is there any fix?

MediaWiki 1.33.1
PHP 7.2.20 (litespeed)
MySQL 5.6.44-cll-lve

Theboyboy (talk) 20:32, 30 January 2020 (UTC)

check your php error log, and enable php error reporting. See manual:How to debug Bawolff (talk) 21:45, 30 January 2020 (UTC)

Multiple Folder Wiki Family Setup

Hi folks,


I am trying to setup a second MediaWiki on our server. I've been attempting to follow the instructions here: Manual:Wiki family


As the second MediaWiki is for a subsidiary which will be moving off in its own direction but using the existing Mediawiki as its foundation I have done the following:


  1. Duplicated the folder xampp\htdocs\wiki1\ to create xampp\htdocs\wiki2\ as a complete copy.
  2. Renamed htdocs\wiki1\LocalSettings.php and htdocs\wiki2\LocalSettings.php to htdocs\wiki1\LocalSettings_wiki1.php and htdocs\wiki2\LocalSettings_wiki2.php respectively.
  3. Created a new htdocs\wiki1\LocalSettings.php with the following code:
    1. <?php // <translate><!--T:180--> Include common settings to all wikis before this line (eg. database configuration)</translate> $callingurl = strtolower( $_SERVER['REQUEST_URI'] ); // <translate><!--T:181--> get the calling url</translate> if ( strpos( $callingurl, '/wiki1' )  === 0 ) {         require_once 'LocalSettings_wiki1.php'; } elseif ( strpos( $callingurl, '/wiki2' ) === 0 ) {         require_once 'LocalSettings_wiki2.php'; } elseif ( strpos( $callingurl, '/wikiN' ) === 0 ) {         require_once 'LocalSettings_wikiN.php'; } else {         header( 'HTTP/1.1 404 Not Found' );         echo "This wiki (\"" . htmlspecialchars( $callingurl ) . "\") is not available. Check configuration.";         exit( 0 ); }
  4. Duplicated the wiki1 database in phpmyadmin and identified the new database in LocalSettings_wiki2.php.


I am probably missing 100 steps; but this continues to allow me access wiki1 but when I change the url to wiki2 I get the following error:

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


Any help on the matter would be appreciated!


Cheers,


Steven

PS: media wiki version 1.27.1 / PHP 7.0.9 / MariaDB 10.1.16-MariaDB Stevenblanc (talk) 21:10, 30 January 2020 (UTC)

Can you enable full error messages (see manual:how to debug Bawolff (talk) 21:44, 30 January 2020 (UTC)
Not sure if I replied in the right spot! Stevenblanc (talk) 15:45, 31 January 2020 (UTC)
Thanks Bawolff:
This is the error: Error: 1146 Table 'ltlm_wiki.page' doesn't exist (localhost)
I'm assuming this has something to do with the duplicated database and folder structure; this is the backtrace:
#0 C:\xampp\htdocs\ltlmmanual\includes\db\Database.php(901): DatabaseBase->reportQueryError('Table 'ltlm_wik...', 1146, 'SELECT page_id...', 'WikiPage::pageD...', false)
#1 C:\xampp\htdocs\ltlmmanual\includes\db\Database.php(1234): DatabaseBase->query('SELECT page_id...', 'WikiPage::pageD...')
#2 C:\xampp\htdocs\ltlmmanual\includes\db\Database.php(1293): DatabaseBase->select('page', Array, Array, 'WikiPage::pageD...', Array, Array)
#3 C:\xampp\htdocs\ltlmmanual\includes\page\WikiPage.php(306): DatabaseBase->selectRow('page', Array, Array, 'WikiPage::pageD...', Array)
#4 C:\xampp\htdocs\ltlmmanual\includes\page\WikiPage.php(325): WikiPage->pageData(Object(DatabaseMysqli), Array, Array)
#5 C:\xampp\htdocs\ltlmmanual\includes\page\WikiPage.php(361): WikiPage->pageDataFromTitle(Object(DatabaseMysqli), Object(Title), Array)
#6 C:\xampp\htdocs\ltlmmanual\includes\page\WikiPage.php(444): WikiPage->loadPageData()
#7 C:\xampp\htdocs\ltlmmanual\includes\page\WikiPage.php(485): WikiPage->exists()
#8 C:\xampp\htdocs\ltlmmanual\includes\page\WikiPage.php(210): WikiPage->getContentModel()
#9 C:\xampp\htdocs\ltlmmanual\includes\page\WikiPage.php(196): WikiPage->getContentHandler()
#10 C:\xampp\htdocs\ltlmmanual\includes\actions\Action.php(96): WikiPage->getActionOverrides()
#11 C:\xampp\htdocs\ltlmmanual\includes\actions\Action.php(154): Action::factory('view', Object(WikiPage), Object(RequestContext))
#12 C:\xampp\htdocs\ltlmmanual\includes\MediaWiki.php(150): Action::getActionName(Object(RequestContext))
#13 C:\xampp\htdocs\ltlmmanual\includes\MediaWiki.php(662): MediaWiki->getAction()
#14 C:\xampp\htdocs\ltlmmanual\includes\MediaWiki.php(519): MediaWiki->main()
#15 C:\xampp\htdocs\ltlmmanual\index.php(43): MediaWiki->run()
#16 {main}

Stevenblanc (talk) 11:16, 31 January 2020 (UTC)
Also I don't know if this is relevant; but when I got into myphpadmin and take a look at the duplicated database; the original has about 49 tables while the duplicated db only has 16. Tables such as user and pagelinks dont copy by default. Stevenblanc (talk) 11:22, 31 January 2020 (UTC)
Yeah, that will be a problem. page is the main table that stores what pages are in your wiki, so its pretty critical in order for MediaWiki to work. Bawolff (talk) 21:58, 31 January 2020 (UTC)

How to use Template:Cite web

I just installed MediaWiki, but cant seem to get <ref>Some text{{cite web | url=example.com}}</ref>to work. The citiation just shows up as:

"Some text.Template:Cite web"

instead of giving me a clickable link.

What am I missing? 122.62.205.193 (talk) 08:52, 31 January 2020 (UTC)

If not already, you'll need to enable Extension:Cite.
You'll also have to export, en:Template:Cite web into your Wiki (remember to check the Include templates option). After this, you can import the created XML file into your own Wiki. AhmadF.Cheema (talk) 14:40, 31 January 2020 (UTC)

MediaWiki Site Not showing Styles - LocalSettings.php

Hey guys, new to the forum and the WikiMedia Project, glad to be here!

So I finally set up MediaWiki 1.27.1 (I know it's not the latest heh) and setup through initial configuration.

However, when I put the LocalSettings.php file in /var/www/mediawiki and access the main wiki page, CSS styles are not applied and the page looks bad, I will upload screenshots showing this, also showing the "inspect element" errors on the browser, and the local settings php file content. I know through other threads I've seen, that it has something to do with this :).

[1]

[2]

[3]

[4]


Edit: I edited the $wgServer variable on LocalSettings.php file for the hostname instead of the IP address (I created a local DNS A Record as well) and still no luck. I also read this: Manual:Errors and symptoms#The wiki appears without styles applied and images are missing and found load.php shows "In this request, no modules were requested. Max made me put this here. */" so it says there might be problems with .htaccess file, but at this point I need some guidance. Mhuartamendia (talk) 14:48, 31 January 2020 (UTC)

Open the URL of the stylesheets that give those MIME type errors (you can click on the URL at the developer console) and see if the page is an error page. Ciencia Al Poder (talk) 16:40, 31 January 2020 (UTC)
Thanks for the reply!
So I have three clickable links on the developer console on the browser and each one of them returns a page stating "Exception encountered, of type "Error" (it takes me to mediawiki.mydomain/mediawiki.load.php.) Any ideas? HTAccess are not created on the path of the MediaWiki, so rewrites may have nothing to do with this. At this point, I'm suspecting permissions might have to do with it. Mhuartamendia (talk) 16:45, 31 January 2020 (UTC)
Set $wgShowExceptionDetails = true; in LocalSettings.php . This will give you more detailed error messages.
I think its unlikely to be permission related. Bawolff (talk) 21:56, 31 January 2020 (UTC)
Ok, so this is what it throws when enabling exception details:
Exception encountered, of type "Error"
[XjhNg6So5dm0pad9ZKwy-QAAAAY] /mediawiki/load.php?debug=false&lang=en&modules=startup&only=scripts&skin=modern Error from line 663 of /var/www/html/mediawiki/includes/exception/MWExceptionHandler.php: Class 'FormatJson' not found
Backtrace:
#0 /var/www/html/mediawiki/includes/exception/MWExceptionHandler.php(242): MWExceptionHandler::logError(ErrorException, string)
#1 /var/www/html/mediawiki/includes/AutoLoader.php(81): MWExceptionHandler::handleError(integer, string, string, integer, array)
#2 /var/www/html/mediawiki/includes/AutoLoader.php(81): require()
#3 [internal function]: AutoLoader::autoload(string)
#4 /var/www/html/mediawiki/includes/cache/MessageBlobStore.php(243): spl_autoload_call(string)
#5 /var/www/html/mediawiki/includes/cache/MessageBlobStore.php(163): MessageBlobStore->generateMessageBlob(ResourceLoaderFileModule, string)
#6 /var/www/html/mediawiki/includes/cache/MessageBlobStore.php(116): MessageBlobStore->recacheMessageBlob(string, ResourceLoaderFileModule, string)
#7 /var/www/html/mediawiki/includes/resourceloader/ResourceLoader.php(152): MessageBlobStore->getBlobs(array, string)
#8 /var/www/html/mediawiki/includes/resourceloader/ResourceLoaderStartUpModule.php(397): ResourceLoader->preloadModuleInfo(array, DerivativeResourceLoaderContext)
#9 /var/www/html/mediawiki/includes/resourceloader/ResourceLoaderStartUpModule.php(379): ResourceLoaderStartUpModule->getAllModuleHashes(DerivativeResourceLoaderContext)
#10 /var/www/html/mediawiki/includes/resourceloader/ResourceLoaderModule.php(707): ResourceLoaderStartUpModule->getDefinitionSummary(DerivativeResourceLoaderContext)
#11 /var/www/html/mediawiki/includes/resourceloader/ResourceLoader.php(622): ResourceLoaderModule->getVersionHash(DerivativeResourceLoaderContext)
#12 [internal function]: ResourceLoader->{closure}(string)
#13 /var/www/html/mediawiki/includes/resourceloader/ResourceLoader.php(623): array_map(Closure, array)
#14 /var/www/html/mediawiki/includes/resourceloader/ResourceLoader.php(675): ResourceLoader->getCombinedVersion(ResourceLoaderContext, array)
#15 /var/www/html/mediawiki/load.php(47): ResourceLoader->respond(ResourceLoaderContext)
#16 {main}
I tried verifying JSON module is active on my PHP 7.3 installation and it is. However the error is not fixed yet.
Remember my version of mediawiki is 1.27, there might be incompatibility issues with this version? Mhuartamendia (talk) 16:45, 3 February 2020 (UTC)
It seems I resolved this issue by adding this line to LocalSettings.php:
require_once("$IP/includes/json/FormatJson.php");
The error 500 is gone. So this works, but why??? Mhuartamendia (talk) 17:01, 3 February 2020 (UTC)
MediaWiki 1.27 is not compatible with PHP 7.3. It's not the first report of this problem with MediaWiki 1.27 on PHP 7.3 https://phabricator.wikimedia.org/T90430#5236940
Please upgrade to a supported MediaWiki version, since your version is obsolete and with potential security vulnerabilities. Ciencia Al Poder (talk) 10:25, 4 February 2020 (UTC)

MW 1.34 internal error search engine crash

Anyone encountered this error on mw 1.34 my database is struggling I am working on tweaks to improve the performance. I am getting queries lasting 400 secs.


mediawiki internal error.


Original exception: [XjRAlO5aftEaLsO-kqRPrAAAABk] /index.php?search=bvn&title=Special%3ASearch&go=Go Wikimedia\Rdbms\DBQueryDisconnectedError from line 1601 of /home/dgo/public_html/includes/libs/rdbms/database/Database.php: A connection error occurred during a query.

Query: SELECT page_id,page_namespace,page_title FROM `page`,`searchindex` WHERE (page_id=si_page) AND ( MATCH(si_title) AGAINST('+bvn ' IN BOOLEAN MODE) ) AND page_namespace = '0' ORDER BY MATCH(si_title) AGAINST('+bvn ' IN NATURAL LANGUAGE MODE) DESC LIMIT 21

Function: SearchMySQL::searchInternal

Error: 2006 MySQL server has gone away (localhost)


Backtrace:

#0 /home/dgo/public_html/includes/libs/rdbms/database/Database.php(1574): Wikimedia\Rdbms\Database->getQueryExceptionAndLog(string, integer, string, string)

#1 /home/dgo/public_html/includes/libs/rdbms/database/Database.php(1152): Wikimedia\Rdbms\Database->reportQueryError(string, integer, string, string, boolean)

#2 /home/dgo/public_html/includes/libs/rdbms/database/Database.php(1807): Wikimedia\Rdbms\Database->query(string, string)

#3 /home/dgo/public_html/includes/libs/rdbms/database/DBConnRef.php(68): Wikimedia\Rdbms\Database->select(array, array, array, string, array, array)

#4 /home/dgo/public_html/includes/libs/rdbms/database/DBConnRef.php(315): Wikimedia\Rdbms\DBConnRef->__call(string, array)

#5 /home/dgo/public_html/includes/search/SearchMySQL.php(193): Wikimedia\Rdbms\DBConnRef->select(array, array, array, string, array, array)

#6 /home/dgo/public_html/includes/search/SearchMySQL.php(179): SearchMySQL->searchInternal(string, boolean)

#7 /home/dgo/public_html/includes/search/SearchDatabase.php(73): SearchMySQL->doSearchTitleInDB(string)

#8 /home/dgo/public_html/includes/search/SearchEngine.php(143): SearchDatabase->doSearchTitle(string)

#9 /home/dgo/public_html/includes/search/SearchEngine.php(172): SearchEngine->{closure}()

#10 /home/dgo/public_html/includes/search/SearchEngine.php(144): SearchEngine->maybePaginate(Closure)

#11 /home/dgo/public_html/includes/specials/SpecialSearch.php(355): SearchEngine->searchTitle(string)

#12 /home/dgo/public_html/includes/specials/SpecialSearch.php(179): SpecialSearch->showResults(string)

#13 /home/dgo/public_html/includes/specialpage/SpecialPage.php(575): SpecialSearch->execute(NULL)

#14 /home/dgo/public_html/includes/specialpage/SpecialPageFactory.php(611): SpecialPage->run(NULL)

#15 /home/dgo/public_html/includes/MediaWiki.php(296): MediaWiki\Special\SpecialPageFactory->executePath(Title, RequestContext)

#16 /home/dgo/public_html/includes/MediaWiki.php(900): MediaWiki->performRequest()

#17 /home/dgo/public_html/includes/MediaWiki.php(527): MediaWiki->main()

#18 /home/dgo/public_html/index.php(44): MediaWiki->run()

#19 {main}


Exception caught inside exception handler: [XjRAlO5aftEaLsO-kqRPrAAAABk] /index.php?search=bvn&title=Special%3ASearch&go=Go InvalidArgumentException from line 58 of /home/dgo/public_html/includes/libs/rdbms/database/DBConnRef.php: Missing lazy connection arguments.

Backtrace:

#0 /home/dgo/public_html/includes/libs/rdbms/loadbalancer/LoadBalancer.php(1043): Wikimedia\Rdbms\DBConnRef->__construct(Wikimedia\Rdbms\LoadBalancer, boolean, integer)

#1 /home/dgo/public_html/includes/GlobalFunctions.php(2576): Wikimedia\Rdbms\LoadBalancer->getMaintenanceConnectionRef(integer, array, string)

#2 /home/dgo/public_html/includes/cache/localisation/LCStoreDB.php(56): wfGetDB(integer)

#3 /home/dgo/public_html/includes/cache/localisation/LocalisationCache.php(422): LCStoreDB->get(string, string)

#4 /home/dgo/public_html/includes/cache/localisation/LocalisationCache.php(325): LocalisationCache->loadSubitem(string, string, string)

#5 /home/dgo/public_html/languages/Language.php(2545): LocalisationCache->getSubitem(string, string, string)

#6 /home/dgo/public_html/includes/cache/MessageCache.php(970): Language->getMessage(string)

#7 /home/dgo/public_html/includes/cache/MessageCache.php(928): MessageCache->getMessageForLang(Language, string, boolean, array)

#8 /home/dgo/public_html/includes/cache/MessageCache.php(870): MessageCache->getMessageFromFallbackChain(Language, string, boolean)

#9 /home/dgo/public_html/includes/language/Message.php(1297): MessageCache->get(string, boolean, Language)

#10 /home/dgo/public_html/includes/language/Message.php(852): Message->fetchMessage()

#11 /home/dgo/public_html/includes/language/Message.php(944): Message->toString(string)

#12 /home/dgo/public_html/includes/exception/MWExceptionRenderer.php(130): Message->text()

#13 /home/dgo/public_html/includes/exception/MWExceptionRenderer.php(53): MWExceptionRenderer::reportHTML(Wikimedia\Rdbms\DBQueryDisconnectedError)

#14 /home/dgo/public_html/includes/exception/MWExceptionHandler.php(121): MWExceptionRenderer::output(Wikimedia\Rdbms\DBQueryDisconnectedError, integer)

#15 /home/dgo/public_html/includes/exception/MWExceptionHandler.php(195): MWExceptionHandler::report(Wikimedia\Rdbms\DBQueryDisconnectedError)

#16 /home/dgo/public_html/includes/MediaWiki.php(558): MWExceptionHandler::handleException(Wikimedia\Rdbms\DBQueryDisconnectedError)

#17 /home/dgo/public_html/index.php(44): MediaWiki->run()

#18 {main} AlgorithmGG (talk) 15:10, 31 January 2020 (UTC)

"Error: 2006 MySQL server has gone away" means mysql has dropped the conenction before completion. This may indicate a bug in MySQL, or corrupted tables. Look at the MySQL error logs for more information Ciencia Al Poder (talk) 16:41, 31 January 2020 (UTC)
This has been repaired since, what is the best way to deal with corrupt tables? AlgorithmGG (talk) 16:50, 31 January 2020 (UTC)
Best way to improve performance is to use CirrusSearch instead.
If that's not an option, you can try using InnoDB as the database engine for the searchindex table. It may or may not improve performance, but it might be worth experimenting with. Bawolff (talk) 21:55, 31 January 2020 (UTC)
Thanks again @Bawolff any reading suggestions for tips on installing Java and Elasticsearch on centOS (MW 1.34) my research so far it doesn't seems so straight forward. AlgorithmGG (talk) 06:35, 2 February 2020 (UTC)
its certainly an additional thing to manage. There should at least be packages in the system package manager (centos uses yum i think) Bawolff (talk) 09:58, 2 February 2020 (UTC)
From my research It doesn't look like the recommended versions are available from Yum.
Java - 1.8.0 (openjdk) I can find this in the Yum repository but I think I need atleast version 8 or 11.
and it says the recommended Elasticsearch version is 6.5.4 AlgorithmGG (talk) 16:27, 2 February 2020 (UTC)
"Java - 1.8.0" is actually "Java 8". The Elastic Search compatible version depends on your MediaWiki version. The extension documentation page has a compatibility table for that. Ciencia Al Poder (talk) 21:50, 2 February 2020 (UTC)
the one i can find is elasticsearch-1.7.3
the one Mw 1.34 nreccommends is version is 6.5.4 can I work with 1.7.3? AlgorithmGG (talk) 00:04, 3 February 2020 (UTC)
No. That's a release from 2015.
You can download it from https://www.elastic.co/downloads/past-releases/elasticsearch-6-5-4 Ciencia Al Poder (talk) 10:22, 3 February 2020 (UTC)
Nice one, Thanks for the info.

AlgorithmGG (talk) 23:17, 2 February 2020 (UTC)

API feedrecentchanges

Please, try this:

What am I doing wrong here? Any hints appreciated. AnonymusGdpr (talk) 18:21, 31 January 2020 (UTC)

What's the issue? Bawolff (talk) 21:53, 31 January 2020 (UTC)
Oh sorry, I thought you'd see the issue. What I see looks like this:
Mit dieser XML-Datei sind anscheinend keine Style-Informationen verknüpft. Nachfolgend wird die Baum-Ansicht des Dokuments angezeigt.
<feed xml:lang="en">
<id>
https://www.mediawiki.org/w/api.php?hidebots=1&hidecategorization=1&hideWikibase=1&translations=filter&urlversion=1&days=7&limit=50&action=feedrecentchanges&feedformat=atom
</id>
<title>MediaWiki - Recent changes [en]</title>
<link rel="self" type="application/atom+xml" href="https://www.mediawiki.org/w/api.php?hidebots=1&hidecategorization=1&hideWikibase=1&translations=filter&urlversion=1&days=7&limit=50&action=feedrecentchanges&feedformat=atom"/>
<link rel="alternate" type="text/html" href="https://www.mediawiki.org/wiki/Special:RecentChanges"/>
<updated>2020-02-01T10:11:58Z</updated>
<subtitle>
Track the most recent changes to the wiki in this feed.
</subtitle>
<generator>MediaWiki 1.35.0-wmf.16</generator>
<entry>
<id>
https://www.mediawiki.org/w/index.php?title=Manual:Installation_guide/hu&diff=3646081&oldid=3646077
</id>
<title>Manual:Installation guide/hu</title>
<link rel="alternate" type="text/html" href="https://www.mediawiki.org/w/index.php?title=Manual:Installation_guide/hu&diff=3646081&oldid=3646077"/>
<updated>2020-02-01T10:05:56Z</updated>
<summary type="html">

<col class="diff-marker" /> <col class="diff-content" /> <col class="diff-marker" /> <col class="diff-content" /> <td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf
... and so on. Why do I only see raw XML? AnonymusGdpr (talk) 10:15, 1 February 2020 (UTC)
because atom is an xml format?
Firefox used to display rss/atom specially, but stopped
https://support.mozilla.org/en-US/kb/feed-reader-replacements-firefox Bawolff (talk) 21:11, 1 February 2020 (UTC)
Yabba dabba ... that's what I have been looking for. Thanks a lot and sorry for the silly question. I'd better have tried another browser before asking. AnonymusGdpr (talk) 21:20, 1 February 2020 (UTC)
no worries. Honestly its kind of sad. I remember when live bookmarks was the killer feature of firefox. Bawolff (talk) 03:27, 2 February 2020 (UTC)

Location of ServiceWiring.php

I upgraded from 1.22.6 to 1.34.0 (from .tar.gz file) and adapted a new LocalSettings from DefaultSettings.php and copied all necessary variables.

Using command 'php74 update.php' I got an error 'Fatal error: require(): Failed opening required '/home/xxx/public_html/mediawiki-1.34.0/ServiceWiring.php' but the update was succesful when using Web browser/mw-config.

After that the same error repeated. I am able to get site working when copying file ServiceWiring.php to the root directory of mediawiki.

I have an another 1.34.0 installed to same public_html and there is not that issue at all. ServiceWiring.php is only in /includes. Anybody could give any explanation and how to fix this? Thanks.


PHP 7.4.2

MySQL 5.6.40-84.0-log Sop160910 (talk) 20:54, 31 January 2020 (UTC)

Copying everything from DefaultSettings.php and changing what you want is something you should not do. In particular, some paths are relative to DefaultSettings.php (using php __DIR__ magic word) and they will be wrong if you directly copy to LocalSettings.php.
You should use the same LocalSettings.php as from 1.22.6, adding additional things if necessary, but don't copy anything from DefaultSettings if you want to use the default value for the setting. Bawolff (talk) 21:49, 31 January 2020 (UTC)