Project:Support desk/Flow/2022/09
This page used the Structured Discussions extension to give structured discussions. It has since been converted to wikitext, so the content and history here are only an approximation of what was actually displayed at the time these comments were made. |
This page is an archive. |
Please ask questions on the current support desk. |
Special:LanguageStats request a stricter filter on messages to translate
When i ask the messages to be translated in Fr through link 'Translate contents' of the side bar, i actually have a proposal for
Translations:Manual:Installation on Uniform Server (Windows)/67/fr
Once the translation is done i get server response:
Échec de la publication de la traduction : Translation of this page to this language has been prevented by a translation administrator.
Question : so why do you ask me to translate this message ?
Also other similar cases follow.
Christian 🇫🇷 FR (talk) 08:07, 1 September 2022 (UTC)
- Hi, please provide full and complete steps which will allow someone else to see some problem somewhere. Thanks! Malyacko (talk) 11:07, 1 September 2022 (UTC)
- Set in preferences :
Internationalization > language > french
- Open URL :
https://www.mediawiki.org/w/index.php?title=Special:Translate&group=agg-Manual_pages&language=fr&filter=%21translated&action=page
- Set double equal in the filter box to reduce the report length:
==
- Locate in this stuff (Ctrl F):
Installation on Uniform
- Messages of this family start with message ...
Translations:Manual:Installation on Uniform Server (Windows)/Page display title/fr
- This is sufficient to show that messages are proposed here for translation in FR although the administrator has specified a set of languages where FR does not belong to.
- Christian 🇫🇷 FR (talk) 13:18, 1 September 2022 (UTC)
Transclusion of WhatLinksHere without redirects
Using
{{Special:WhatLinksHere/{{FULLPAGENAME}}}}
will transclude the links including redirects. Is there a way not to include redirects? Spiros71 (talk) 14:27, 1 September 2022 (UTC)
- You can add url parameters after a | as if they were template arguments. Bawolff (talk) 18:07, 1 September 2022 (UTC)
- I cannot find parameters documentation, what would it be? Something like:
{{Special:WhatLinksHere/{{FULLPAGENAME}}|hideredirs=1}}
Spiros71 (talk) 07:10, 2 September 2022 (UTC)- Yes.
- If there is any documentation pages you think should be updated let me know (or feel free to edit yourself) Bawolff (talk) 21:14, 2 September 2022 (UTC)
- Done. https://en.wikipedia.org/w/index.php?title=Help:What_links_here&type=revision&diff=1108239284&oldid=1049457366&diffmode=source Spiros71 (talk) 08:08, 3 September 2022 (UTC)
- You could use the DynamicPageList3 extension.
- In the version I still use there's a bug stopping eliminate from working.
- I made a note of a fix in the extension's talk page.
- Maybe it's been fixed by now.
- Jonathan3 (talk) 18:36, 1 September 2022 (UTC)
{{#dpl: | linksto = {{PAGENAME}} | noresultsheader=No pages | eliminate = all }}
- I misunderstood your question. My answer would avoid backlinks. I'm not sure about redirect listing - there's probably a DPL3 parameter for that too. Jonathan3 (talk) 07:53, 2 September 2022 (UTC)
With Formatting is there an easy way to have your info displayed without a lot of formatting
I cut and paste info into Wiki and it displays normally. Usually I need to add a space between each item to display my list of information which sometimes iit s a long list to do that every time before I save it. Is there an easier way to accomplish this?
If I was to save this now it would show up as all jumbled together. unless I added a space between each item ans shown below.
df -h Filesystem Size Used Avail Use% Mounted on
devtmpfs 63G 0 63G 0% /dev
tmpfs 63G 18M 63G 1% /dev/shm
tmpfs 63G 45M 63G 1% /run
tmpfs 63G 0 63G 0% /sys/fs/cgroup
/dev/sda1 792G 68G 684G 10% /
All Jumbled
df -h Filesystem Size Used Avail Use% Mounted on devtmpfs 63G 0 63G 0% /dev tmpfs 63G 18M 63G 1% /dev/shm tmpfs 63G 45M 63G 1% /run tmpfs 63G 0 63G 0% /sys/fs/cgroup /dev/sda1 792G 68G 684G 10% / ScottG55 (talk) 15:22, 1 September 2022 (UTC)
REST V1 mobile API returning very old version of page
This call to the REST V1 mobile-html returns a very old version of the page, which last existed in March of this year (see the lead section for comparison). Does anyone know why? Other REST V1 calls, for example the page summary, return the latest version. Thanks Brycehughes (talk) 08:04, 2 September 2022 (UTC)
- I assume it relates to this. I'll follow up there. Brycehughes (talk) 09:15, 2 September 2022 (UTC)
- Was reported in 2019 and no action on it in over three years :/ Brycehughes (talk) 09:21, 2 September 2022 (UTC)
403 Error when clicking on Username
Hi, I`m running Mediawiki on Plesk via Ubuntu 22.04
Just installed it, everything is in it`s standard config.
When I try to click on my Username in the header, I get the Error 403 by Plesk: https://wiki.steamdeck.community/index.php?title=User:Compi
Can you tell me where I should start searching for the problem? I never used MediaWiki before so I`m kinda confused :)
Thanks! Realcompi (talk) 10:06, 2 September 2022 (UTC)
- Check for apache mod_securuty or other WAF.
- Check your webserver error log. Bawolff (talk) 17:43, 2 September 2022 (UTC)
- You are using PHP 8 which is not yet fully supported by MediaWiki. Downgrading to PHP 7.3.19+/7.4.3+ should fix this issue. 197.207.134.51 (talk) 11:36, 6 September 2022 (UTC)
- A php compatibility error would not normally cause a 403 error.
- A php8 issue might potentially cause a 500 error, however i dont believe that any of the known issues with php8 fit the description of what is described here, so its not a conclusion i would jump to. However if it does turn out to be a php 8 issue, please file a bug so we can add it to the list of known issues (and fix). In any case, if it is a php8 issue, there would be something in your php error logs. Bawolff (talk) 06:26, 7 September 2022 (UTC)
Problems to connect to ssl://commons.wikimedia.org:443
RESOLVED | |
The problem was an outdated certificate. Updating it solved the problem. |
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'm using Wikimate v1.0.0, released on September 5, 2021 in a web-project to communicate via API with commons.wikimedia.org. By this I do (half-)automated uploads of (radiological) images and I get suggestions for categories for them. This worked without problems for some years now (also with earlier versions of Wikimate).
Now, since 2 or 3 days I get an error in establishing the connect:
OpenSSL Error messages: error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed stream_socket_client(): Failed to enable crypto stream_socket_client(): unable to connect to ssl://commons.wikimedia.org:443 (Unknown error)
I din't change my code or the one of wikimate. I do not have an idea what causes the new error. Do you have any idea?
Any help is welcome! If this is not the right place to ask, please help me find the experts.
Thank You very much
Paul Hellerhoff Hellerhoff (talk) 14:06, 2 September 2022 (UTC)
- Try updating your certificate store. E.g. on debian/ubuntu do apt upgrade ca-certificates Bawolff (talk) 17:42, 2 September 2022 (UTC)
- Ok. Thank You. Unfortunately the system runs at the webspace-provider. I hope I can do that on that machine.... test ... No. I have to be root. But I can contact the provider that they do it. Thanks again! Hellerhoff (talk) 08:42, 3 September 2022 (UTC)
- Yes. It was an outdated certificate. Problem is solved. Thanks again! Hellerhoff (talk) 18:15, 6 September 2022 (UTC)
Insert php based table at documents
I wrote a php script that reads data from DB and creates a table.
(Link: https://poopki.kr/scwiki/ship_cooler_search.php)
I want to insert this php script into the document and print it out.
Is there a related manual or solution? 121.139.169.252 (talk) 08:33, 3 September 2022 (UTC)
Want SQL to output the page title and latest content
Something that I assumed would be very simple but I have spent 2-3 hours on this and I am getting nowhere.
I've tried to use this query:
SELECT
p.page_id AS "page_id",
CAST(p.page_title AS CHAR(10000) CHARACTER SET utf8) AS "page_title",
r.rev_text_id AS "revision_id",
t.old_id AS "text_id"
FROM
page p
INNER JOIN revision r
ON p.page_latest = r.rev_id
INNER JOIN text t
ON r.rev_text_id = t.old_id
(from https://mediawiki.org/wiki/Manual:Page_table), which I have tried to modified as my table and column names are different for some reason. I think the three tables concerned are:
DESCRIBE soft_text
old_id int(10) unsigned NO PRI
NULL
auto_increment
old_text mediumblob NO
NULL
old_flags tinyblob NO
NULL
DESCRIBE soft_revision
rev_id int(10) unsigned NO PRI
NULL
auto_increment
rev_page int(10) unsigned NO MUL
NULL
rev_comment_id bigint(20) unsigned NO 0
rev_actor bigint(20) unsigned NO MUL 0
rev_timestamp binary(14) NO MUL
NULL
rev_minor_edit tinyint(3) unsigned NO 0
rev_deleted tinyint(3) unsigned NO 0
rev_len int(10) unsigned YES
NULL
rev_parent_id int(10) unsigned YES
NULL
rev_sha1 varbinary(32) NO
DESCRIBE soft_page
page_id int(10) unsigned NO PRI
NULL
auto_increment
page_namespace int(11) NO MUL
NULL
page_title varbinary(255) NO
NULL
page_restrictions tinyblob YES
NULL
page_is_redirect tinyint(3) unsigned NO MUL 0
page_is_new tinyint(3) unsigned NO 0
page_random double unsigned NO MUL
NULL
page_touched binary(14) NO
NULL
page_links_updated varbinary(14) YES
NULL
page_latest int(10) unsigned NO
NULL
page_len int(10) unsigned NO MUL
NULL
page_content_model varbinary(32) YES
NULL
page_lang varbinary(35) YES
NULL
Really, all I need is what I'm asking for in my post title: the SQL to output the page title in the first column, and the page text in the second column. The purpose is to output it to a text document (for reasons I do not wish to elaborate on).
Many thanks... 8420 De Haan (talk) 17:27, 3 September 2022 (UTC)
- I think the code you have is for a much earlier version of mediawiki. Now a days you would have to take the slots table into account Bawolff (talk) 18:49, 3 September 2022 (UTC)
- What are the tables and columns I should use for my version? 8420 De Haan (talk) 17:39, 18 October 2022 (UTC)
- Manual:slots table and manual:content table in addition to manual:page table, manual:revision table and manual:text table Bawolff (talk) 22:02, 18 October 2022 (UTC)
- Many thanks. Will work on that in a 3-4 days. 8420 De Haan (talk) 18:55, 20 October 2022 (UTC)
- You probably want something like:
select page_id, page_namespace, page_title, page_latest "rev_id", old_text "text" from
page inner join slots on page_latest = slot_revision_id inner join slot_roles on slot_role_id = role_id and role_name = 'main' inner join content on slot_content_id = content_id inner join text on substring( content_address, 4 ) = old_id and left( content_address, 3 ) = "tt:" and old_flags = "utf-8" limit 50;
Bawolff (talk) 21:36, 20 October 2022 (UTC)- Oh wow. Was about to try to figure out what columns to join on, and you've done it! (And it works!)
- This has all saved me a whole lot of time.
- Very much appreciated. 8420 De Haan (talk) 16:20, 25 October 2022 (UTC)
I'm getting Parsoid/RESTBase server (HTTP 401) setting VisualEditor on my private Wiki.
Hello, friends.
All help is appreciated as I am far from an expert.
- Using https
- Private wiki (password on main)
I have tried this and this on my LocalSettings.php as per similar threads on this forum but haven't gotten anywhere. None of these worked.
I cannot turn off my password for privacy reasons, and I am not very tech-savvy, but 100% open to learning! ElectricFruit (talk) 03:28, 4 September 2022 (UTC)
Lua errors in Modules on imported pages
RESOLVED | |
Wikibase was added.
For Fokebox: An important command for adding Wikibase: php ~/composer.phar install |
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.
MediaWiki version 1.38.2, Russian
PHP 7.4.30 (apache2handler)
MySQL 5.7.38-41-log
URL https://zpedia.ru
Error on pages imported from en.wikipedia.org (Page example: Mariupol):
- Ошибка Lua в Модуль:Other_uses на строке 57: attempt to call field '_hatnote' (a nil value).
Errors on pages imported from ru.wikipedia.org (Page example: Сватово):
- Ошибка Lua в Модуль:Wikidata на строке 288: attempt to index field 'wikibase' (a nil value).
- Ошибка Lua в Модуль:Coordinates на строке 377: attempt to index field 'wikibase' (a nil value). RocknRollArchivist (talk) 09:17, 4 September 2022 (UTC)
- На сколько я знаю, эти модули требуют подключения к WikiBase - полез в руководство и что-то мозгов не хватило, как это сделать, как-то всё сложно - в итоге отказался от этих модулей и делал всё своими силами через обычные шаблоны. Fokebox (talk) 14:26, 6 September 2022 (UTC)
- Resolved after Wikibase added. Thanks to Fokebox! RocknRollArchivist (talk) 06:14, 9 September 2022 (UTC)
- Can you let me know how you have added Wikibase? Fokebox (talk) 21:35, 9 September 2022 (UTC)
- Using all recommended pages of MediaWiki.org (Composer, Wikibase, etc.) step by step. Also, I received a support from my provider. Sorry, I can't reproduce this process now... RocknRollArchivist (talk) 14:19, 10 September 2022 (UTC)
Wikimedia\Rdbms\DBQueryError
Hello can someone help with this error I am getting please? i have been trying to fix it for hours...no luck..
[YxTnYCwiuwRvgEPQIaqIuAAAAYg] 2022-09-04 17:58:56: Fatal exception of type Wikimedia\Rdbms\DBQueryError Michaelsima (talk) 18:20, 4 September 2022 (UTC)
- www.educationisourbuffalo.com Michaelsima (talk) 18:22, 4 September 2022 (UTC)
- www.educationisourbuffalo.com/wiki is the link Michaelsima (talk) 18:23, 4 September 2022 (UTC)
- HELP! Michaelsima (talk) 19:03, 4 September 2022 (UTC)
- Often means you need to run update.php
- Set $wgShowExceptionDetails=true; in LocalSettings.php to see the full error message. Bawolff (talk) 22:46, 4 September 2022 (UTC)
Wiki Crashed (Error 500) After Update to MW 1.38.2
I now get an internal server error (500) after updating MW from 1.24.x to 1.38.2, and updating my php to 7.4.29. HELP!
So I run a 500+ article wiki on a subdomain of my main website (wiki.bullleague.org) and it had been at 1.24.0 for a long time. Today I happened to be on the cPanel and noticed that my hosting provider (GoDaddy) offers an automated upgrade for MediaWiki. Having had trouble manually installing an update previously, I decided to use it.
Well, over the next several hours, the site was intermittently available as GoDaddy upgraded it version by version. At one point, at MW 1.30, the site seemed to be fully functional and the sidebar that had disappeared after my php update had returned! Success!
Not to last, however, the site finished updating to 1.38.2 and now it does not function at all. I checked the LocalSetting.php file, but I cannot see any immediate cause for the error from there.
Any help would be appreciated, I am happy to give someone FTP access to help fix this. I am in over my head, it seems! Bullleague (talk) 04:23, 5 September 2022 (UTC)
- Please enable php error reporting (see How to debug) Bawolff (talk) 18:18, 5 September 2022 (UTC)
- Ok, so I learned something. The php error reporting enabled did not do anything, at least, on screen, when I attempted to load the wiki. That led me to check the error log. It's 19MB large -- the entries go back to 2018!
- Here are the most recent entries, abbreviated to really just the last few:
- [06-Sep-2022 00:19:13 UTC] PHP Fatal error: Uncaught Error: Interface 'Stringable' not found in /home/bull1991/public_html/wiki/includes/Settings/Source/SettingsSource.php:16
- Stack trace:
- #0 /home/bull1991/public_html/wiki/includes/AutoLoader.php(116): require()
- #1 [internal function]: AutoLoader::autoload('MediaWiki\\Setti...')
- #2 /home/bull1991/public_html/wiki/includes/Settings/Source/PhpSettingsSource.php(13): spl_autoload_call('MediaWiki\\Setti...')
- #3 /home/bull1991/public_html/wiki/includes/AutoLoader.php(116): require('/home/bull1991/...')
- #4 [internal function]: AutoLoader::autoload('MediaWiki\\Setti...')
- #5 /home/bull1991/public_html/wiki/includes/Setup.php(163): spl_autoload_call('MediaWiki\\Setti...')
- #6 /home/bull1991/public_html/wiki/includes/WebStart.php(93): require_once('/home/bull1991/...')
- #7 /home/bull1991/public_html/wiki/index.php(44): require('/home/bull1991/...')
- #8 {main}
- thrown in /home/bull1991/public_html/wiki/includes/Settings/Source/SettingsSource.php on line 16
- [06-Sep-2022 00:19:29 UTC] PHP Fatal error: Uncaught Error: Interface 'Stringable' not found in /home/bull1991/public_html/wiki/includes/Settings/Source/SettingsSource.php:16
- Stack trace:
- #0 /home/bull1991/public_html/wiki/includes/AutoLoader.php(116): require()
- #1 [internal function]: AutoLoader::autoload('MediaWiki\\Setti...')
- #2 /home/bull1991/public_html/wiki/includes/Settings/Source/PhpSettingsSource.php(13): spl_autoload_call('MediaWiki\\Setti...')
- #3 /home/bull1991/public_html/wiki/includes/AutoLoader.php(116): require('/home/bull1991/...')
- #4 [internal function]: AutoLoader::autoload('MediaWiki\\Setti...')
- #5 /home/bull1991/public_html/wiki/includes/Setup.php(163): spl_autoload_call('MediaWiki\\Setti...')
- #6 /home/bull1991/public_html/wiki/includes/WebStart.php(93): require_once('/home/bull1991/...')
- #7 /home/bull1991/public_html/wiki/api.php(43): require('/home/bull1991/...')
- #8 {main}
- thrown in /home/bull1991/public_html/wiki/includes/Settings/Source/SettingsSource.php on line 16
- [06-Sep-2022 00:19:29 UTC] PHP Fatal error: Uncaught Error: Interface 'Stringable' not found in /home/bull1991/public_html/wiki/includes/Settings/Source/SettingsSource.php:16
- Stack trace:
- #0 /home/bull1991/public_html/wiki/includes/AutoLoader.php(116): require()
- #1 [internal function]: AutoLoader::autoload('MediaWiki\\Setti...')
- #2 /home/bull1991/public_html/wiki/includes/Settings/Source/PhpSettingsSource.php(13): spl_autoload_call('MediaWiki\\Setti...')
- #3 /home/bull1991/public_html/wiki/includes/AutoLoader.php(116): require('/home/bull1991/...')
- #4 [internal function]: AutoLoader::autoload('MediaWiki\\Setti...')
- #5 /home/bull1991/public_html/wiki/includes/Setup.php(163): spl_autoload_call('MediaWiki\\Setti...')
- #6 /home/bull1991/public_html/wiki/includes/WebStart.php(93): require_once('/home/bull1991/...')
- #7 /home/bull1991/public_html/wiki/api.php(43): require('/home/bull1991/...')
- #8 {main}
- thrown in /home/bull1991/public_html/wiki/includes/Settings/Source/SettingsSource.php on line 16
- [06-Sep-2022 00:21:54 UTC] PHP Fatal error: Uncaught Error: Interface 'Stringable' not found in /home/bull1991/public_html/wiki/includes/Settings/Source/SettingsSource.php:16
- Stack trace:
- #0 /home/bull1991/public_html/wiki/includes/AutoLoader.php(116): require()
- #1 [internal function]: AutoLoader::autoload('MediaWiki\\Setti...')
- #2 /home/bull1991/public_html/wiki/includes/Settings/Source/PhpSettingsSource.php(13): spl_autoload_call('MediaWiki\\Setti...')
- #3 /home/bull1991/public_html/wiki/includes/AutoLoader.php(116): require('/home/bull1991/...')
- #4 [internal function]: AutoLoader::autoload('MediaWiki\\Setti...')
- #5 /home/bull1991/public_html/wiki/includes/Setup.php(163): spl_autoload_call('MediaWiki\\Setti...')
- #6 /home/bull1991/public_html/wiki/includes/WebStart.php(93): require_once('/home/bull1991/...')
- #7 /home/bull1991/public_html/wiki/index.php(44): require('/home/bull1991/...')
- #8 {main}
- thrown in /home/bull1991/public_html/wiki/includes/Settings/Source/SettingsSource.php on line 16 Bullleague (talk) 00:26, 6 September 2022 (UTC)
- So i think the most likely cause of something like this is having the vendor directory of mediawiki be for the wrong version of mediawiki (especially symfony/polyfill-php80). Are you sure that all the mediawiki files were updated correctly? Bawolff (talk) 00:56, 6 September 2022 (UTC)
- Not really, as I said it was GoDaddy running a script on the server end. It updated through several versions. I can try to reinstall the 1.24 backup perhaps, and then try updating to a lower version. 1.30 seemed to be working fine. But I don't know if that will fix it. Bullleague (talk) 03:34, 6 September 2022 (UTC)
Visual Editor does not work with errors
When I try to edit in Visual Editor, I get the following error.
Error contacting the Parsoid/RESTBase server: (curl error: 60) Peer certificate cannot be authenticated with given CA certificates
I have looked at other topics, websites, etc. and still no solution. I am on a shared host and cannot change php.ini or OS settings.
The software versions are as follows MediaWiki: 1.38.2 PHP: 7.4.30 (cgi-fcgi) MariaDB: 10.3.32-MariaDB ICU: 69.1 Lua: 5.1.5 Pygments: 2.11.2
Wiki URL:https://tcmb.ie-t.net/wiki/Sample Do you have any solutions? GensokyoKenken (talk) 09:22, 5 September 2022 (UTC)
- Parsoid is trying to reach mediawiki, but the server does not answer at the address that it is attempting to reach it at (or in this case, it is presenting an https certificate which cannot be validated).
- Quite often when you have a setup, the server can only be reached from the external address by connecting to it from external. As MediaWiki connects to itself internally, you might require some additional configuration.
- Just look in the debug logs and find the connection strings that are failing and make sure you adapt your webserver config so that they don't fail. —TheDJ (Not WMF) (talk • contribs) 12:33, 6 September 2022 (UTC)
Display TOC numbers in the print output.
I have header numbering switched on for a page and the wiki numbers the TOC also. Thats fine so far. I'd like this in the print output also.
But when I try to print the numbering of the TOC dismisses in the output. Headings are still numbered in the print.
I tried some variants of #tocnumber in Mediawiki:Print.css but with no success.
#tocnumber { display:inherit; } #tocnumber { display:inline; }
Carchaias (talk) 14:00, 5 September 2022 (UTC)
- It'll likely not answer your question, but tocnumber seems to be a class rather than an id, so you could try .tocnumber Jonathan3 (talk) 12:49, 6 September 2022 (UTC)
- That doesnot make any difference. Carchaias (talk) 15:13, 21 September 2022 (UTC)
- What skin are you using?
- I've looked at this on Foreground and Medik - default settings for both I think - and both have numbered TOC on screen and in print. Maybe you could look at whatever they are doing for inspiration. Jonathan3 (talk) 22:29, 21 September 2022 (UTC)
Code Samples with Line Numbers
I've been trying to get my MediaWiki instance to display code samples with line numbers. I am creating a repository of common code snippets and it looks to me like this capability may now simply come by default, built into the current disto of MediaWiki. I've gone over the following page Template:Codesample numerous times but still no luck. The rest of my mediawiki functionality seems to be working great.
Can anyone give me a good place to start or tutorial to get me pointed in the right direction? Gregpaskal (talk) 21:17, 5 September 2022 (UTC)
- You probably need extension:syntaxhighlight. See especially the line parameter.
- If you want to do line numbers without the extension, see https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Counter_Styles/Using_CSS_counters Bawolff (talk) 22:31, 5 September 2022 (UTC)
- @Bawolff have you implemented sample code with line numbering? I'm trying to get experienced advice on this topic so I am hopeful you have. If so, can you share a page with me where you have implemented it? Gregpaskal (talk) 19:38, 6 September 2022 (UTC)
- ive used the line parameter with syntax highlight. I have never personally used css counters to make line numbers Bawolff (talk) 00:41, 7 September 2022 (UTC)
can't save changes on page!!
Hello, I have media wiki on a Synology DS118. I Installed it already the second time but it always says: " [4ef3dc211b38a28b97cba158] Caught exception of type Error" if I use the visual editor. I am frustrated. Is there any easy walk around?
thanks
Frank 2003:C6:A72F:1800:6CDE:1D33:6B88:E97D (talk) 09:30, 6 September 2022 (UTC)
- There's some information here about getting a better error message: Manual:How_to_debug. Jonathan3 (talk) 12:44, 6 September 2022 (UTC)
CentralAuth not logging me into other wikis
I've got CentralAuth set up on a number of wikis, all on the same top-level domain, in this isntance, domain.com
. My centralauth database wiki is "meta.domain.com", and when I log in at one wiki, lets say wiki1.domain.com, it redirects to meta.domain.com and logs me in, and redirects me to wiki1.domain.com, but then when I visit another wiki, wiki2.domain.com, it doesn't log me in. This is the code:
'wgCentralAuthAutoCreateWikis' => [ 'default' => [ 'metawiki', ], ], 'wgCentralAuthAutoNew' => [ 'default' => true, ], 'wgCentralAuthAutoMigrate' => [ 'default' => true, ], 'wgCentralAuthAutoMigrateNonGlobalAccounts' => [ 'default' => true, ], 'wgCentralAuthCookies' => [ 'default' => true, ], 'wgCentralAuthCookiePrefix' => [ 'default' => 'centralauth_', ], 'wgCentralAuthCreateOnView' => [ 'default' => true, ], 'wgCentralAuthDatabase' => [ 'default' => 'centralauth', ], 'wgCentralAuthDryRun' => [ 'default' => false, ], 'wgCentralAuthEnableGlobalRenameRequest' => [ 'default' => false, 'metawiki' => true, ], 'wgCentralAuthLoginWiki' => [ 'default' => 'metawiki', ], 'wgUseSameSiteLegacyCookies' => [ 'default' => true, ], 'wgCentralAuthPreventUnattached' => [ 'default' => true, ], 'wgCentralAuthSilentLogin' => [ 'default' => true, ], if ( preg_match( '/domain\.com$/', $wi->server ) ) { $wgCentralAuthCookieDomain = '.domain.com'; $wgMFStopRedirectCookieHost = '.domain.com'; } else { $wgCentralAuthCookieDomain = $wi->hostname; $wgMFStopRedirectCookieHost = $wi->hostname; }
And these are the requests that are made (from the network tab), when I log in:
https://meta.domain.com/wiki/Special:CentralAutoLogin/checkLoggedIn?type=script&wikiid=wiki1&proto=https&return=1&returnto=Main+Page https://meta.domain.com/wiki/Special:CentralLogin/start?token=TOKEN https://ocean.domain.com/wiki/Special:CentralLogin/complete?token=TOKEN https://meta.domain.com/wiki/Special:CentralAutoLogin/refreshCookies?type=1x1&wikiid=wiki1&proto=https
And these are the cookies set
centralauth_Session centralauth_ss0-User centralauth_User
When I visit another wiki, wiki2.domain.com, no requests are made. I'm expecting to see something like:
https://meta.domain.com/wiki/Special:CentralAutoLogin/checkLoggedIn?type=script&wikiid=wiki2&proto=https
But it doesn't make that request, so it's not logging me in. Does anyone have any idea why that request isn't being made, and how I can fix this so it automatically logs me in? ArrakisMiner (talk) 19:26, 6 September 2022 (UTC)
If behavior switch exists
Hello,
I need to check if the behavior switch "__TOC__" exists in the current page or not, but I do not know how. I thought: "Maybe I can count section headings and, if it returns > 3, it is the same". But I do not know either this way. Could you help me, please?
Thanks,
When will Mediawiki be compatible with PHP 8?
My provider is forcing me to switch to PHP 8 in a few days.
I'm working stable with MW 1.32 on PHP 7.4.30 until now and I thought it would be a good occasion to go to MW 1.35 LTS. However, I was shocked to discover that neither the MW 1.35 LTS version nor a higher version are compatible with PHP 8.
Now my distress is great, time is running out and the new PHP 8 is approaching with great strides.
Who knows advice or has a solution? Hagord (talk) 13:57, 7 September 2022 (UTC)
- You should be able to use the latest version of 1.35 (1.39.12), which should be more or less fine on PHP 8.0. The lack of official support mostly pertains to Extension:CirrusSearch and ElasticSearch as well as some more obscure MediaWiki features mostly used by WMF or in tests. The actual progress is tracked in phab:T266583. Note that support for PHP 8.1 is more involved, so unless you have PHP configured not to log deprecation notices, log files might contain a lot of deprecation notices still. —Mainframe98 talk 14:23, 7 September 2022 (UTC)
Vector 2022 on my wiki looks different
RESOLVED | |
I tried installing MediaWiki version 1.4 (alpha), applying the alpha "vector-2022" skin, and got the exact look and feel of the French Wikipedia. |
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 MediaWiki version 1.38.2 (latest) to my local server, applied "vector-2022" skin in LocalSettings.php. But I'm not getting the floating Table of Contents on the sidebar as seen on https://fr.wikipedia.org/wiki/Premi%C3%A8re_Renaissance and https://www.mediawiki.org/wiki/Skin:Vector/2022. My version of Vector 2022 looks different in multiple places straight out of the box. I have a screenshot to show but don't know how to upload here.
What do I do to get the vector-2022 version that French Wikipedia is using? My goal is to make my wiki look as close as possible to the French Wikipedia. Is there a guide for this? I looked up documentation and Google but couldn't find any information.
Any help would be greatly appreciated. Blahbleh001 (talk) 18:53, 7 September 2022 (UTC)
- Please disregard this question as it has already been resolved.
- I tried installing MediaWiki version 1.4 (alpha), applying the alpha "vector-2022" skin, and got the exact look and feel of the French Wikipedia. Blahbleh001 (talk) 20:41, 7 September 2022 (UTC)
Not Creating Thumbnails
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 trying to upload files to my website nedefenses.com and when I upload them through MediaUploader extension they will not create. I have tried a lot of methods and none have worked. The images I am uploading are large and it is too much trouble to downsize them all.
Thanks
I forgot to put this in my mediawiki account so there are two versions of the topic. JulianMalcolm08 (talk) 00:32, 8 September 2022 (UTC)
- Does it work with the builtin special:upload uploader?
- What stage does it fail at? Uploading the file or just displaying it.
- Are there any error messages.
- Are the images bigger than $wgMaxImageArea? You could also try increasing $wgMaxShellMemory Bawolff (talk) 03:24, 8 September 2022 (UTC)
- Uploading the file. It says the thumbnail cannot be created. JulianMalcolm08 (talk) 22:38, 8 September 2022 (UTC)
- Some images will load and not others and they are from the same camera. 2601:18C:8100:9730:48CD:325F:87E8:A1E1 (talk) 22:14, 9 September 2022 (UTC)
Fresh install and Liuggio
Trying to rebuild development workstation from scratch. I'm trying to solve long standing I18N errors with character sets, but probably not relevant to issue. When I navigate to home page for first time, I'm not seeing any of the configuration wizard, just some warnings, which cascade to errors.
Platform:
OS: Win10 x64
PHP: 7.4.16
MW: 1.38.2
Not getting to install wizard.
Web UI displays:
Warning: include(C:\Users\Public\Documents\website\RTWWiki\vendor\composer/../liuggio/statsd-php-client/src/Liuggio/StatsdClient/Factory/StatsdDataFactoryInterface.php): failed to open stream: No such file or directory in C:\Users\Public\Documents\website\RTWWiki\vendor\composer\ClassLoader.php on line 571
I don't intend to use the stat functionality, just want Wiki to do the basics.
Thanks Iowajason (talk) 01:02, 8 September 2022 (UTC)
- This is often caused when using a program to decompress tar archives that doesn't support long filenames. 7zip in particular is known to be bad, although i think it got fixed in the newest version.
- Try a different decimpression program or try the .zip version instead. Bawolff (talk) 03:15, 8 September 2022 (UTC)
- Worked with new version of 7zip. Thanks. Iowajason (talk) 14:53, 8 September 2022 (UTC)
Missing part in SVG
There is an issue with SVG rendering. Actually the SVG looks likes this:https://marketingunited.org/mediawiki/images/6/69/Digistore24.svg
But for some reason ImageMagick renders it like this (missing icon): https://marketingunited.org/wiki/Datei:Digistore24.svg
I use MW 1.35.7 and the default value in my LocalSettings.php:
$wgSVGConverter = 'ImageMagick';
Can anyone tell me how to fix this? Stefahn (talk) 07:59, 8 September 2022 (UTC)
EntityId not an interface?
When trying to upgrade to Mediawiki 1.38 from 1.36, I'm getting a fatal error:
Fatal error: Wikibase\DataModel\Entity\SerializableEntityId cannot implement Wikibase\DataModel\Entity\EntityId - it is not an interface in /var/www/vhosts/mediawiki_1_38/w/extensions/Wikibase/lib/packages/wikibase/data-model/src/Entity/SerializableEntityId.php on line 11
I have tried running composer update --no-dev multiple times, I have made sure that all extensions are included in the root composer.local.json, I have tried running git submodule update --init --recursive, but nothing seems to be helping. Arghhh. Lwangaman (talk) 09:27, 8 September 2022 (UTC)
- In September 2021, EntityId became an interface, instead of an abstract class: https://github.com/wmde/WikibaseDataModel/commit/b79abc69c6d3b524a354ca395554c4dabeafcf08#diff-9864105673f0094bd8bd3b3b1b6e33088e93a96b5fc8d2297d869e1facb1a13d .
- I have verified in my Wikibase source code that EntityId is in fact defined as an interface. I don't see why SerializableEntityId is tripping up on this... Lwangaman (talk) 09:35, 8 September 2022 (UTC)
- I found the problem, thanks to a heads up on phabricator. I had run composer update --no-dev in each extension's folder other than in the root directory. I had to remove any vendor folders under the extension folders, and make sure composer update --no-dev was ONLY run in the root folder. Lwangaman (talk) 17:00, 12 September 2022 (UTC)
All mediawiki sites in firefox zoomed out
This is kinda weird but within a day, my firefox browser just suddenly renders all sites that use mediawiki smaller and zoomed out (wikipedia, miraheze, wikia, countless other self-hosted wikis out there). I'm not sure if this is an issue of firefox itself (i'm also querying this up to them) but I've used inspect element and turned off font size and styles. It went back to normal. Mediawiki sites are also not zoomed out on other browsers.
I'm not sure whether this is a problem of firefox, my OS or something involving mediawiki itself, but if this is indeed a browser issue, I hope the software gets to adapt to these changes. Rajavlitra (talk) 14:56, 8 September 2022 (UTC)
How to change wiki name font in vector 2022 skin or how to change the text into an image?
the title says it all. 41.35.150.234 (talk) 03:13, 9 September 2022 (UTC)
- See this page. 41.200.141.48 (talk) 16:13, 9 September 2022 (UTC)
Forcing a preload on an existing page with an existing content
Hi. I've already asked on Manual talk:Creating pages with preloaded text#Forcing a preload on an existing page with an existing content, but after couple of days I still couldn't receive an answer there, so I figured out to shed a light here. Polda18 [✉] 06:41, 9 September 2022 (UTC)
- There is no way to do that right now —TheDJ (Not WMF) (talk • contribs) 09:04, 9 September 2022 (UTC)
- Thanks. Could that function be added therefore? Like adding a support for an additional parameter, like this:
https://en.wikipedia.org/w/index.php?title=User:Polda18/sandbox/article_1&action=edit&preload=User:Polda18/sandbox/article_preload&summary=Sandbox%20cleared&forcepreload=yes
? Polda18 [✉] 09:41, 9 September 2022 (UTC) - If that sounds like something that could be somehow misused by malicious editors, then first of all history does already exist, so it's nothing that couldn't be reverted, and of course misuse would be a reason for blocking the user that misused it, right? Polda18 [✉] 10:08, 9 September 2022 (UTC)
- Another option would be to use parameter
replacecontent=yes
. Eighterforcepreload=yes
orreplacecontent=yes
seem reasonable for this addition. Polda18 [✉] 12:48, 9 September 2022 (UTC) - Possible yes - although its unlikely we would do so unless there was a really good usecase. We'd worry that people might use such a feature in order to accidentally trick other users into replacing pages. Bawolff (talk) 00:01, 10 September 2022 (UTC)
- I understand your concerns. Yes, there is such possibility. Malicious editors misusing this to trick other users into replacing pages will be blocked as well I guess. One of the good examples is an easy sandbox reset. And I'm not talking about the user sandbox, I'm talking about the main Wikipedia sandbox (such as en:Wikipedia:Sandbox). Just click a button and it replaces the contents of the page with default contents. Polda18 [✉] 07:26, 11 September 2022 (UTC)
- Although, there is a workaround, which is an
oldid
. Polda18 [✉] 07:27, 11 September 2022 (UTC)
Impossible to add extension from Window. Alternatives to 7-zip?
Hi, I am trying to add the DiscussionTools extension [and others] to my wiki via cpanel without success.
As to instructions I import files (use 7-zip because I am on Window, download file from mediawiki, unpack and then zip and import it to cPanel and unzip).
Folder DiscussionTools is in extensions directory, I added wfLoadExtension( 'DiscussionTools' ); to LocalSettings.php and also added $wgFragmentMode set in html5.
However when this is done, my site gives error 500
It is worth to say that when I import extensions in files that do not require 7-zip, I can successfully complete the process and extensions work well.
Anyone can help? Lmdg2000 14:06, 9 September 2022 (UTC)
- Can you set the setting $wgShowExceptionDetails = true; Its possible your issue has nothing to do with 7zip.
- Also, can you try updating your copy of 7zip to the latest? Older versions of 7zip have an issue where it doesn't work properly with extracting files with long names from tar archives. Bawolff (talk) 23:59, 9 September 2022 (UTC)
- Btw, tried adding $wgShowExceptionDetails = true and have error 500
- 7zip is the latest version Lmdg2000 13:31, 11 September 2022 (UTC)
- Can you also check your php error log? (See How to debug) Bawolff (talk) 18:21, 11 September 2022 (UTC)
- hi Bawolff, thanks for the debug tip. In the meantime I discovered that DiscussionTools requires the new version of MediaWiki (I am 1.38) , seems I can't have it so will postpone this extension.In any case I tryed adding
- $wgShowExceptionDetails = true and have error 500
- and this is what came up ..Curious because I run the mw-config/ but nothing showed up. Actually the extension DonateBoxInsidebar doesn't work. Any suggestion for solving the issue below?
- Deprecated: Non-static method DonateBoxInSidebar::onDonateBoxInSidebar() should not be called statically in /home/qpidiaah/public_html/includes/HookContainer/HookContainer.php on line 338 Lmdg2000 19:57, 11 September 2022 (UTC)
- Usually "deprecated" warnings arent the cause of the problem and safe to ignore (although they may indicate extension is buggy or outdated) Bawolff (talk) 19:01, 13 September 2022 (UTC)
How To Create a Nested Collapsible Table?
Essentially I'm looking for what's shown here:
However, I can't seem to work out the code.
Could someone please advise?
Any help with this would be greatly appreciated! 92.3.185.216 (talk) 17:30, 9 September 2022 (UTC)
Cirrus search ElasticaWrite job failed
That is what I thought so. After providing enough space, watermark notices disappeared but runJobs.php still has error messages
ElasticaWrite job failed: Requeued
and an increasing number of jobs are delayed/requeued.
But this time there are no indicating messages in the Elasticsearch log to hint anything.
The last step is to tell Elasticsearch to allow writing to indexes after it was frozen due to hitting the high watermark:
curl -X PUT -H "Content-Type: application/json" \ http://localhost:9200/_all/_settings \ -d '{"index.blocks.read_only_allow_delete": null}'Now even runJobs.php is processing new updates/edits without issue. The question is how to make those delayed jobs to go back to queue.
Elastic search has been working fine since install. Suddenly, two days ago the delayed jobs started to appear and now they seem to appear after each new page is added or page updated.
cirrusSearchElasticaWrite: 0 queued; 0 claimed (0 active, 0 abandoned); 32 delayed cirrusSearchIncomingLinkCount: 0 queued; 0 claimed (0 active, 0 abandoned); 28 delayed
and error messages started to appear in runjobs log
2022-09-09 17:38:21 cirrusSearchElasticaWrite Special: method=sendData arguments=["content",[{"data":{"version":37144,"wiki":"....","namespace":0,"namespace_text":"","title":"....","timestamp":"....","create_timestamp":"2022-09-07T20:04:46Z","redirect":[],"incoming_links":0},"params":{"_id":"6309","_type":"","_index":"","_cirrus_hints":{"BuildDocument_flags":0,"noop":{"version":"documentVersion","incoming_links":"within 20%"}}},"upsert":true}]] cluster=default createdAt=1662745101 errorCount=0 retryCount=0 requestId=bfca08d3df0945870a8e9f4c namespace=-1 title= (uuid=fae3faef720547c5afce97a7f131619b,timestamp=1662745101) STARTING 2022-09-09 17:38:21 cirrusSearchElasticaWrite Special: method=sendData arguments=["content",[{"data":{"version":37144,"wiki":"....","namespace":0,"namespace_text":"","title":"....","timestamp":"2022-09-07T20:04:46Z","create_timestamp":"2022-09-07T20:04:46Z","redirect":[],"incoming_links":0},"params":{"_id":"6309","_type":"","_index":"","_cirrus_hints":{"BuildDocument_flags":0,"noop":{"version":"documentVersion","incoming_links":"within 20%"}}},"upsert":true}]] cluster=default createdAt=1662745101 errorCount=0 retryCount=0 requestId=bfca08d3df0945870a8e9f4c namespace=-1 title= (uuid=fae3faef720547c5afce97a7f131619b,timestamp=1662745101) t=41 error=ElasticaWrite job failed: Requeued
There are no error messages appearing anywhere else so what might be the reason for this sudden appearance?
Environment: MediaWiki 1.38.2 PHP 7.4.30 (fpm-fcgi) MariaDB 10.8.3-MariaDB ICU 71.1 LilyPond 2.22.2 Elasticsearch 6.8.23, there was no environmental change since Cirrus search deployment.
For anyone encountering similar problem. Check elasticsearch.log wherever it may reside. Even if there is enough space on partition, elasticsearch checks its own high disk watermark and freezes indexing. Solution: move indexes to partition with more space. Resolved. Pspviwki (talk) 18:09, 9 September 2022 (UTC)
- Thanks for this. I had a sinking feeling in my stomach when I noticed my CirrusSearch indexes were not being updated anymore, because I lacked the time to troubleshoot properly. However, your solution came up ranked near the top of web search results, and—fortunately—I had seen and dealt with this problem before in the context of some different software that uses Elasticsearch (GitLab). Cheers. --Ernstkm (talk) 13:09, 4 June 2024 (UTC)
Beginners
hello , I am new to open source just guide me how to contribute 2409:4064:2D1A:3478:A8F9:D4AB:8D:DC05 (talk) 06:19, 10 September 2022 (UTC)
- Welcome, see How to contribute Malyacko (talk) 13:58, 10 September 2022 (UTC)
Error in database after adding Wikibase
RESOLVED | |
I omitted to run the command from 'maintenance' folder: php update.php |
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.
MediaWiki version 1.38.2, Russian
PHP 7.4.30 (apache2handler)
MySQL 5.7.38-41-log
URL https://zpedia.ru
The command "Edit code" doesn't work.
Error page:
[Yxyeg1aHvijWdrsQOwU2LwAAAAM] /index.php?title=%D0%97%D0%B0%D0%B3%D0%BB%D0%B0%D0%B2%D0%BD%D0%B0%D1%8F_%D1%81%D1%82%D1%80%D0%B0%D0%BD%D0%B8%D1%86%D0%B0&action=edit Wikimedia\Rdbms\DBQueryError: A database query error has occurred. Did you forget to run your application's database schema updater after upgrading or after adding a new extension?
Please see https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Upgrading and https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:How_to_debug for more information.
Error 1146: Table 'host1847779.wbc_entity_usage' doesn't exist (localhost)
Function: Wikibase\Client\Usage\Sql\EntityUsageTable::queryUsages
Query: SELECT eu_aspect,eu_entity_id FROM `wbc_entity_usage` WHERE eu_page_id = 1
Backtrace: .............
Any idea? RocknRollArchivist (talk) 14:59, 10 September 2022 (UTC)
How do I make certain pages only be able to be viewed by me but later be able to be viewed by everyone?
Odd question but I'm thinking of one day making my wiki public, for my story's and stuff, but I also use it to take notes and stuff, mainly for said story's. So I was wandering if it's possible to make specific pages only accessible and viewable by me, or specific users, but later make them be able to be viewed by everyone.
I'm fine with extentions. As long as it's not something I have to go into the code and type every single page, which would take far to long and be far to tedious. Do to the sheer amount I plan to add. Preferably a toggle, button or a tag I add to the page. Dark gundam (talk) 18:04, 10 September 2022 (UTC)
- Mediawiki doesn't have great options for this, but perhaps putting your private pages in specific namespace (you can move after) and using extension:Lockdown Bawolff (talk) 22:58, 10 September 2022 (UTC)
- Stupid question, how would I go about doing that, setting up namespaces i mean? To be honest I haven't heard of namespaces until now. Dark gundam (talk) 23:22, 4 December 2022 (UTC)
- help:Namespaces and manual:Using custom namespaces has some information. Bawolff (talk) 01:06, 5 December 2022 (UTC)
How to revert content-model 'lapses'?
I have a namespace with a plain-text content model. After an upgrade to MW 1.35.7, however, pages in this namespace have changed their appearance to wikitext and direct editing fails with the error message
You cannot edit this revision because its content model is wikitext, which differs from the current content model of the page text.
action=info
confirms the page content model is plain text)- The page history does not record a change to the wikitext model. Special:Log/contentmodel is also silent.
What to do? Is there a maintenance script I can run to fix this (update.php doesn't help)? Cavila 09:40, 11 September 2022 (UTC)
- Do you still have $wgNamespaceContentModels set for that namespace?
- Otherwise i guess you could try overriding with Special:ChangeContentModel to chanfe it back to plaintext. Bawolff (talk) 16:11, 11 September 2022 (UTC)
- `$wgNamespaceContentModels` is set for the NS, although there may have been a moment during the upgrade when it wasn't (possibly when other errors occurred and parts of the settings were commented out to isolate the issue). I'm afraid that Special:ChangeContentModel isn't of much help because the page content model is already set to `text`. The error message above seems to complain about the latest revision having become incompatible with that page content model. Cavila 19:45, 11 September 2022 (UTC)
- I'm not sure how this situation would arise (At least in my tests on 1.39. Maybe 1.35 is different). Normally this error would only happen if editing an old revision that has a different content model then the current revision. It should never happen when editing the current revision.
- Maybe somehow there is some DB inconsistency between page.page_content_model and content.content_model.
- Maybe converting the page with Special:ChangeContentModel to wikitext and then back to plaintext might fix things. Otherwise, I'm not sure, short of mucking around in the database. Bawolff (talk) 03:52, 14 September 2022 (UTC)
- It is quite unexpected, yes. I later noticed that an unknown number of pages in the same namespace did get converted to using the wikitext page model, as if the conversion was in progress but got aborted at some point, leaving a part of the database in limbo. Without further info, that's just speculation on my part, of course.
- Unfortunately, Special:ChangeContentModel works for single pages at a time only, not hundreds, which is why I was hoping there would be a maintenance script to batch-fix everything.
- Anyway, I'll dig further. Thanks for taking the effort to reply, Brian. Much appreciated! Cavila 07:51, 14 September 2022 (UTC)
The searching doesn't work
MediaWiki version 1.38.2, Russian
PHP 7.4.30 (apache2handler)
MySQL 5.7.38-41-log
URL https://zpedia.ru
Initially, when entering at least one letter in the search field, the options offered by the search appeared in the column below. When typing the full title of the article, it remained in this lower field, and it was highlighted in bold. You can click on it to go to the article.
Composer and Wikibase have been installed.
After that, the search does not offer anything even when typing the name of a known existing article, the field below is constantly highlighted in red with the inscription "No matches found". And only with a complete (exact) match of the text typed in the search field with the title of the article and then clicking the magnifying glass icon to the right of the search bar, the transition to this article occurs. RocknRollArchivist (talk) 10:30, 11 September 2022 (UTC)
Problems about Semantic MediaWiki installation
After I installed Mediawiki, I tried to add the extension Semantic MediaWiki. First, I followed the instruction of the SMW help pages. Then when I visited MW, the error information as follows appeared:
Fatal error: Uncaught Error: SMW\Setup::initExtension(): Argument #1 ($vars) cannot be passed by reference in D:\XAMPP\htdocs\mediawiki\extensions\SemanticMediaWiki\includes\SemanticMediaWiki.php:46 Stack trace: #0 D:\XAMPP\htdocs\mediawiki\includes\registration\ExtensionRegistry.php(574): SemanticMediaWiki::initExtension(Array) #1 D:\XAMPP\htdocs\mediawiki\includes\registration\ExtensionRegistry.php(258): ExtensionRegistry->exportExtractedData(Array) #2 D:\XAMPP\htdocs\mediawiki\includes\Setup.php(252): ExtensionRegistry->loadFromQueue() #3 D:\XAMPP\htdocs\mediawiki\includes\WebStart.php(93): require_once('D:\\XAMPP\\htdocs...') #4 D:\XAMPP\htdocs\mediawiki\index.php(44): require('D:\\XAMPP\\htdocs...') #5 {main} thrown in D:\XAMPP\htdocs\mediawiki\extensions\SemanticMediaWiki\includes\SemanticMediaWiki.php on line 46
What should I do to fix this problem? Or any suggestions? Adrian75493 (talk) 11:38, 11 September 2022 (UTC)
- Hi Adrian. For help with SMW, it is usually recommended to sign up to the mailing list (https://sourceforge.net/projects/semediawiki/lists/semediawiki-user) and present your issue through that route. In your description, don't forget to provide more specifics, e.g. what version of MediaWiki and SMW are you using, or do you intend to use? Cavila 12:56, 11 September 2022 (UTC)
- Sounds like https://github.com/SemanticMediaWiki/SemanticMediaWiki/issues/5202 Bawolff (talk) 16:07, 11 September 2022 (UTC)
How to sort by alphabet of page title name, when using search bar?
When you search something, with "Search for pages containing X"
like so as example: https://en.wikipedia.org/w/index.php?fulltext=1&search=test&title=Special%3ASearch&ns0=1
By default it sorts it by "Relevance"
You can click on it to change it, but it doesn't show you more, however the info icon shows you that there are more, maybe. Which would be here: Help:CirrusSearch#Explicit sort orders
But I don't see any sort order that would sort it by alphabet based on the page titles. So where is that? Karl-police (talk) 14:21, 11 September 2022 (UTC)
- Presumably its not a choice. Bawolff (talk) 16:05, 11 September 2022 (UTC)
- Yeah, it could be a good useful feature though. Karl-police (talk) 15:16, 1 October 2022 (UTC)
- How to request it as a feature? Karl-police (talk) 15:16, 1 October 2022 (UTC)
- You could at https://phabricator.wikimedia.org although keep in mind that feature requests are not always acted upon. Bawolff (talk) 17:31, 1 October 2022 (UTC)
Farnborough Hall page
Hello, my aunt, Caroline Bedall just committed suicide on the grounds of Farnborough Hall in the UK. Out of respect for our family, we ask that the page be taken down. It is woefully inaccurate with regard to nearly every sentence. Caroline Bedall didn't grow up there. My mother-in-law did and she's part of the de Beaufort family, which owns the home. Caroline Bedall's father had dementia and lived in the Grange. No one sold any paintings. They were stolen in the 1930s while the family was away in France! With the Queen's death, my aunt was charged, put in prison, and her assets frozen because Wikipedia claimed we sold paintings that were supposed to return to the crown upon the end of the reign of Elizabeth II 2601:14D:8600:8030:2103:8701:6A73:3AD7 (talk) 20:54, 11 September 2022 (UTC)
Hersteld apostolisch genootschap bestaat niet
De hersteld apostolische zending gemeente (HAZEA) is opgesplitst in officieel 1951 na een gerechtelijke uitspraak in Het apostolisch genootschap en de Nieuw apostolische kerk.
Dit is verkeerd vermeld in de locaties Delft en Hilversum.
mvg Remi Lucassen 92.66.105.210 (talk) 07:42, 12 September 2022 (UTC)
Connection timed out (HY000/2002) on installation with correct parameter
Hello, I am using the bitnami helm chart for mediawiki. While debugging a failed installation I found out that it calls the maintenance script
php install.php 'My Wiki' REAL_USER --pass REAL_PASS --dbserver mariadb --dbport 13306 #custom port# --dbuser bn_mediawiki --dbpass REAL_PASS
I get a connection timeout. However when I connect using the "mysql" tool with the same parameters, I can connect with no problems Yonatan rubin (talk) 11:07, 12 September 2022 (UTC)
- Is that the literal command line? Because # comments extend to end of line and you are commenting out half the line.
- Is the mysql commandline on the same server as your server? If not, are you sure "maiadb" resolves to the same host.
- Do you have selinux or other sandboxing installed? Bawolff (talk) 18:31, 12 September 2022 (UTC)
Downloading ImageMagick for MediaWiki error: failed dependencies
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 install ImageMagick for MediaWiki on my website and have run into some errors. Here is some information about the things that I'm using:
Bluehost server using cpanel, as well as a Linux x86_64 system (From what I've read Bluehost uses CentOS).
My current version of MediaWiki is 1.38.1
The convert folder that I used is, well, well, under usr/bin/convert
Per what I got from the instructions from the ImageMagick website I downloaded the rpm file: ImageMagick-7.1.0-48.x86_64.rpm
. I then put uploaded the file to the convert folder. I then ran this command as instructed from the website: $ rpm -Uvh ImageMagick-7.1.0-48.x86_64.rpm
. When I ran it it gave me this error:
error: Failed dependencies:
ImageMagick-libs(x86-64) = 7.1.0-48 is needed by ImageMagick-7.1.0-48.x86_64
libMagickCore-7.Q16HDRI.so.10()(64bit) is needed by ImageMagick-7.1.0-48.x86_64
libMagickWand-7.Q16HDRI.so.10()(64bit) is needed by ImageMagick-7.1.0-48.x86_64
libMagickWand-7.Q16HDRI.so.10(VERS_10.0)(64bit) is needed by ImageMagick-7.1.0-48.x86_64
libc.so.6(GLIBC_2.34)(64bit) is needed by ImageMagick-7.1.0-48.x86_64
rpmlib(PayloadIsZstd) <= 5.4.18-1 is needed by ImageMagick-7.1.0-48.x86_64
libMagickCore.so.5()(64bit) is needed by (installed) ea-ruby24-rubygem-rmagick-2.16.0-1.el6.eig.x86_64
libMagickCore.so.5()(64bit) is needed by (installed) rubygem-rmagick-2.15.4-1.el6.hg.x86_64
libMagickCore.so.5()(64bit) is needed by (installed) ea-php72-php-imagick-3.4.3-4.el6.eig.x86_64
libMagickCore.so.5()(64bit) is needed by (installed) ea-php73-php-imagick-3.4.3-4.el6.eig.x86_64
libMagickCore.so.5()(64bit) is needed by (installed) ea-php74-php-imagick-3.4.3-4.el6.eig.x86_64
libMagickCore.so.5()(64bit) is needed by (installed) ImageMagick-perl-6.7.2.7-7.el6.x86_64
libMagickWand.so.5()(64bit) is needed by (installed) ea-php72-php-imagick-3.4.3-4.el6.eig.x86_64
libMagickWand.so.5()(64bit) is needed by (installed) ea-php73-php-imagick-3.4.3-4.el6.eig.x86_64
libMagickWand.so.5()(64bit) is needed by (installed) ea-php74-php-imagick-3.4.3-4.el6.eig.x86_64
ImageMagick = 6.7.2.7-7.el6 is needed by (installed) ImageMagick-perl-6.7.2.7-7.el6.x86_64
I then eventually figured out that I might have to download ImageMagick-libs-7.1.0-48.x86_64.rpm
and run that first, as the command: $ rpm -Uvh ImageMagick-libs-7.1.0-48.x86_64.rpm
. However that also gave me an error:
error: Failed dependencies:
libc.so.6(GLIBC_2.14)(64bit) is needed by ImageMagick-libs-7.1.0-48.x86_64
libc.so.6(GLIBC_2.17)(64bit) is needed by ImageMagick-libs-7.1.0-48.x86_64
libc.so.6(GLIBC_2.25)(64bit) is needed by ImageMagick-libs-7.1.0-48.x86_64
libc.so.6(GLIBC_2.33)(64bit) is needed by ImageMagick-libs-7.1.0-48.x86_64
libc.so.6(GLIBC_2.34)(64bit) is needed by ImageMagick-libs-7.1.0-48.x86_64
libgomp.so.1(GOMP_4.5)(64bit) is needed by ImageMagick-libs-7.1.0-48.x86_64
libgs.so.9()(64bit) is needed by ImageMagick-libs-7.1.0-48.x86_64
liblcms2.so.2()(64bit) is needed by ImageMagick-libs-7.1.0-48.x86_64
liblzma.so.5()(64bit) is needed by ImageMagick-libs-7.1.0-48.x86_64
liblzma.so.5(XZ_5.0)(64bit) is needed by ImageMagick-libs-7.1.0-48.x86_64
libm.so.6(GLIBC_2.29)(64bit) is needed by ImageMagick-libs-7.1.0-48.x86_64
libm.so.6(GLIBC_2.35)(64bit) is needed by ImageMagick-libs-7.1.0-48.x86_64
libpng16.so.16()(64bit) is needed by ImageMagick-libs-7.1.0-48.x86_64
libpng16.so.16(PNG16_0)(64bit) is needed by ImageMagick-libs-7.1.0-48.x86_64
libraw_r.so.20()(64bit) is needed by ImageMagick-libs-7.1.0-48.x86_64
libtiff.so.5()(64bit) is needed by ImageMagick-libs-7.1.0-48.x86_64
libtiff.so.5(LIBTIFF_4.0)(64bit) is needed by ImageMagick-libs-7.1.0-48.x86_64
rpmlib(PayloadIsZstd) <= 5.4.18-1 is needed by ImageMagick-libs-7.1.0-48.x86_64
So then I saw that the site said that if there are failed dependencies, I should go to the EPEL website and download it. So then I went on there and downloaded epel-release-latest-9.noarch.rpm
, and uploaded it to the convert folder. Then I tried the rpm -Uvh epel-release-latest-9.noarch.rpm
, and it gave me this error:
error: Failed dependencies:
/usr/bin/bash is needed by epel-release-9-4.el9.noarch
rpmlib(PayloadIsZstd) <= 5.4.18-1 is needed by epel-release-9-4.el9.noarch
rpmlib(RichDependencies) <= 4.12.0-1 is needed by epel-release-9-4.el9.noarch
If anyone could help that'd be great, thanks Guillaume Taillefer (talk) 11:31, 12 September 2022 (UTC)
- Is there a particular reason why you don't use the ImageMagick package and version provided by CentOS? See https://docs.fedoraproject.org/en-US/epel
- This is a great question for a CentOS support forum, as the problem is about third-party packages and their dependencies in CentOS. Malyacko (talk) 12:21, 12 September 2022 (UTC)
- Again I wasn't exactly sure if it is CentOS or not but I'll have to see. Also if it is CentOS then shouldn't the downloaded MediaWiki come with ImageMagick in the convert folder? I remember through SSH seeing a convert folder of some sort but I for some reason couldn't access or do anything with it, and through the cpanel website it didn't show that one was there (even though again through shell there was). But thanks for directing to me where I should ask. Guillaume Taillefer (talk) 20:25, 12 September 2022 (UTC)
- If you installed the MediaWiki package packaged by CentOS via rpm then it should have its package dependencies set by the CentOS packagers. If you installed the MediaWiki package from MediaWiki.org then it's up to you to install required package dependencies as we do not bundle package dependencies for no good reasons. Malyacko (talk) 09:11, 13 September 2022 (UTC)
- I forgot to reply to this thread that I had the problem resolved. Apparently ImageMagick was there (in some form) and was actually working, as when I did the which gs convert pdfinfo pdftotext command it returned showing that there was indeed a convert folder being used, and so I tried to use UploadWizard and it was working just fine. My apologies for the time and thank you for responding Guillaume Taillefer (talk) 22:24, 13 September 2022 (UTC)
Not creating Thumbnail
Hi,
I am trying to upload files to my website nedefenses.com and when I upload them through MediaUploader extension they will not create. I have tried a lot of methods and none have worked. The images I am uploading are large and it is too much trouble to downsize them all. It says it
Thanks JulianMalcolm08 (talk) 20:40, 12 September 2022 (UTC)
- You asked this question before and never did answer if you tried adjusting $wgMaxImageArea and $wgMaxShellMemory Bawolff (talk) 23:05, 12 September 2022 (UTC)
- Sorry. I am all set now. I appreciate your help! JulianMalcolm08 (talk) 00:30, 24 September 2022 (UTC)
Upgrade broke my MediaWiki install
RESOLVED | |
issue with 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.
Where is the best place to find advice on how to restore a failed upgrade?
-M- Andorithian (talk) 00:21, 13 September 2022 (UTC)
- we need more details. How did it fail? How far along in the update process? Are there any errors? Etc. Bawolff (talk) 05:54, 13 September 2022 (UTC)
- Please see "Post a new question" in the sidebar, plus Manual:How_to_debug Malyacko (talk) 09:09, 13 September 2022 (UTC)
- I didn't provide the details yet as I wasn't sure if this was the right place to post. The error reported seemed to point to the skin "Anisa" I removed that from my default in LocalSettings then reinstalled the new skin and that seems to have resolved the issue.
- Thank you for the response and also for the link to debugging. Andorithian (talk) 17:19, 13 September 2022 (UTC)
Using API to render page content for iFrame embedding
I having been using English Wikiversity for ~15 years and am a bureaucrat there.
I would like to know how I could use the API to embed Wikiversity page content into an html page within university learning management systems.
Currently, I use iFrame, but the content renders with Wikiversity navigation bars etc. I just want styled page content.
I have discussed this on the Wikiversity colloquium: https://en.wikiversity.org/wiki/Wikiversity:Colloquium/archives/May_2022#iframe_embeds_of_Wikiversity_pages
and proposed via phrabricator: https://phabricator.wikimedia.org/T307462
where the suggestion was to use the API and come here for support. -- Jtneill - Talk 08:28, 13 September 2022 (UTC)
- You could easily pull the content from Wikiversity; see API:Parsing wikitext to see how to do this.
- It isn't clear to me what the "university learning management systems" are capable of. Can you create web apps with them? Are you restricted to client-side programming? ☠MarkAHershberger☢(talk)☣ 01:09, 15 September 2022 (UTC)
mw.notify or notification to certain group
I have two types of users in my wiki. One is group1 and another is group2. I want to give a notification or reminder message to group1 only whenever the user uses my wiki page. I can only provide a message to all my special pages to all user groups using mw.notify by setting it on my module js page. but that's not what I want.
Any suggestion about how to do this? Misty-2409 (talk) 20:38, 13 September 2022 (UTC)
API Token request gives 301 error "Document has moved here"
RESOLVED | |
"So just changed the wgServer value to have www and all sorted!" |
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'm on 1.38 of Mediawiki.
I've just enabled https on the website and suddenly the API.php, which was working fine, is failing to give a login token on step 1 of API:Edit#PHP (unchanged from the sample code)
Instead a 301 error is returned "The document has moved here". The link, when displayed in a browser https://domain.com/api.php?action=query&meta=tokens&type=login&format=json which displays the login token.
Any ideas why this might have happened?
I've updated wgServer and wgCanonicalServer to be https.
Thanks! Bigtallduck (talk) 22:48, 13 September 2022 (UTC)
- Is your original request https? Bawolff (talk) 22:55, 13 September 2022 (UTC)
- Thanks for the response - in order to answer your question I checked again both the original request and the forward request and this time spotted that the server had added 'www' prefix. So just changed the wgServer value to have www and all sorted! Bigtallduck (talk) 07:07, 14 September 2022 (UTC)
HTTP Error 500 from Cognitive Process Designer
RESOLVED | |
"When I download [and install Page Forms], the web is running." |
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.
Excuse me.
I want to install Cognitive Process Designer. However, when I put the unzip file in the true path and code 'wfLoadExtension( 'CognitiveProcessDesigner' );' , Wiki will show the HTTP Error 500 page.
Which steps are also wrong?
OS: Ubuntu 22.04 LTS
MediaWiki: 1.37.4
SMW: 4.0.2
PHP: 7.4.3
Apache:2 Accs77131 (talk) 06:23, 14 September 2022 (UTC)
- @Accs77131 What is "Cognitive Process Designer"? What do your Apache error logs show? Malyacko (talk) 07:30, 14 September 2022 (UTC)
- Thanks for answer first.
- Cognitive is an extension which need SMW. I follow the page Extension:Cognitive Process Designer.
- Thanks again. Accs77131 (talk) 08:33, 14 September 2022 (UTC)
- Thanks for answer.
- I read the Apache error log, find I didn't install the package 'Extension:Page Forms'. When I download it , the web is running.
- Thaks a lot~ Accs77131 (talk) 08:41, 14 September 2022 (UTC)
Page/Revision Deletion
=Let's say I have a new mediawiki installation, and let's say there's a page, for example let's just take "Main_Page" as the example. Let's say a user uploads something that's not just spam or whatever, but is something that I don't want in my revision history or on my server. Let's say it's a link to copyrighted material, or copyrighted material. I don't want that link on my server, even in a "deleted" log, how do I truly effectively delete those revisions to "Main_Page" without losing the entirety of the revision history of "Main_Page"?= Guptaxpn (talk) 16:27, 14 September 2022 (UTC)
- See https://www.mediawiki.org/wiki/Help:RevisionDelete and https://www.mediawiki.org/wiki/GDPR_(General_Data_Protection_Regulation)_and_MediaWiki_software as well as https://www.mediawiki.org/wiki/Manual:DeleteArchivedRevisions.php. ☠MarkAHershberger☢(talk)☣ 17:00, 14 September 2022 (UTC)
- Thank you! Guptaxpn (talk) 17:27, 14 September 2022 (UTC)
Updating from mediawiki 1.25.1 to current (1.38.2)
I'm planning on updating my work's mediawiki site from version 1.25.1 to the most recent stable release 1.38.2. I've read a lot of the update and compatibility pages but before I begin I want to ask more experienced people on the best update method since it will be a multi-step process.
I'm currently running version 1.25.1 with PHP 5.6.9 and MySQL database 5.6.24 on a virtual machine running windows server 2012 R2 standard
Am I correct in thinking that since version 1.38.2 requires PHP 7.3.19+ I will need to update versions in the following order: first wiki to V1.27-1.30, then update PHP to 7.0-7.1, then update wiki to V1.32, then update PHP to 7.3.19+, then finally wiki to 1.38.2?
Also during this process is it advisable to progressively update installed extensions with each wiki version and ensure they are all stable and running or update them all at the end? in particular Semantic MediaWiki (current version 2.2.1) will need to be updated.
I'm new to MediaWiki so any advice on the correct upgrade pathways and methods is greatly appreciated Ziplach (talk) 20:27, 14 September 2022 (UTC)
- A multi-step process like you've described seems the wisest. I would stick with LTS releases, though. So 1.31 would be a better choice than 1.30. After that, 1.35 would be a better choice than 1.32.
- SMW is different than MediaWiki, but a similar step-wise upgrade would be safest. ☠MarkAHershberger☢(talk)☣ 01:00, 15 September 2022 (UTC)
- thanks for the advice, ill try and stick to the LTS releases if possible. on that note, there is a PHP dependency difference between 1.30 (requires PHP 5.6.x) and 1.31 (requires PHP 7.0 or greater). When updating between these versions do I need to stagger the updates so the php version is always compatible or can i simply update both at the same time? Ziplach (talk) 19:18, 15 September 2022 (UTC)
- You could probably update both at the same time. If you want to be really careful, you can go to 1.27 (another LTS) before continuing to 1.31. ☠MarkAHershberger☢(talk)☣ 00:13, 16 September 2022 (UTC)
Cognitive Process Designer can't save.
Excuse me.
I want to use "Extension:Cognitive Process Designer". However, I use MediaWiki 1.38.2, the apache said "Got error 'PHP message: PHP Deprecated: Use of AbstractContent::getParserOutput was deprecated in MediaWiki 1.38."
I use 1.37.4 and 1.35.7 , the CPD will run , but when I push 'save' button, HTML will lag and say messages
"Uncaught TypeError: Cannot read load.php?lang=zh-tw&modules=ext.cognitiveProcessDesigner.editor%7Cext.cognitiveProcessDesignerEdit.bpmn-js%7Cjquery%2Coojs-ui-core%2Coojs-ui-widgets&skin=vector&version=1byrv:31 properties of null (reading 'open')
at Object.saveBPMN (load.php?lang=zh-tw&modules=ext.cognitiveProcessDesigner.editor%7Cext.cognitiveProcessDesignerEdit.bpmn-js%7Cjquery%2Coojs-ui-core%2Coojs-ui-widgets&skin=vector&version=1byrv:31:337)
at HTMLButtonElement.<anonymous> (load.php?lang=zh-tw&modules=ext.cognitiveProcessDesigner.editor%7Cext.cognitiveProcessDesignerEdit.bpmn-js%7Cjquery%2Coojs-ui-core%2Coojs-ui-widgets&skin=vector&version=1byrv:30:890)
at HTMLButtonElement.dispatch (load.php?lang=zh-tw&modules=ext.cognitiveProcessDesigner.editor%7Cext.cognitiveProcessDesignerEdit.bpmn-js%7Cjquery%2Coojs-ui-core%2Coojs-ui-widgets&skin=vector&version=1byrv:580:214)
at elemData.handle (load.php?lang=zh-tw&modules=ext.cognitiveProcessDesigner.editor%7Cext.cognitiveProcessDesignerEdit.bpmn-js%7Cjquery%2Coojs-ui-core%2Coojs-ui-widgets&skin=vector&version=1byrv:576:848)
saveBPMN @ load.php?lang=zh-tw&modules=ext.cognitiveProcessDesigner.editor%7Cext.cognitiveProcessDesignerEdit.bpmn-js%7Cjquery%2Coojs-ui-core%2Coojs-ui-widgets&skin=vector&version=1byrv:31
(anonymous) @ load.php?lang=zh-tw&modules=ext.cognitiveProcessDesigner.editor%7Cext.cognitiveProcessDesignerEdit.bpmn-js%7Cjquery%2Coojs-ui-core%2Coojs-ui-widgets&skin=vector&version=1byrv:30
dispatch @ load.php?lang=zh-tw&modules=ext.cognitiveProcessDesigner.editor%7Cext.cognitiveProcessDesignerEdit.bpmn-js%7Cjquery%2Coojs-ui-core%2Coojs-ui-widgets&skin=vector&version=1byrv:580
elemData.handle @ load.php?lang=zh-tw&modules=ext.cognitiveProcessDesigner.editor%7Cext.cognitiveProcessDesignerEdit.bpmn-js%7Cjquery%2Coojs-ui-core%2Coojs-ui-widgets&skin=vector&version=1byrv:576"
What can I do to repair? Accs77131 (talk) 07:45, 15 September 2022 (UTC)
- Is your wiki public? Otherwise, this looks like a bug to post on the talk page for the extension. ☠MarkAHershberger☢(talk)☣ 14:05, 15 September 2022 (UTC)
- Oh..Sorry to bother. My wiki is private and I look for the message. Thanks for help. Accs77131 (talk) 01:37, 16 September 2022 (UTC)
- Please do remember to contact the developer of the extension. ☠MarkAHershberger☢(talk)☣ 11:52, 16 September 2022 (UTC)
Error in widget Iframe: unable to write file
Hi,
I am having trouble embedding an external webpage within MediaWiki using iframe. I have installed the latest version via MediaWiki guides and given apache full access to all the folders and files needed.
However, I am getting the below error and am unable to figure out how to get this working.
Error in widget Iframe: unable to write file /var/www/html/mediawiki/extensions/Widgets/compiled_templates/wrt6321ecd81a75b7_08119488
Does anyone have any idea as to what may be causing this? Any help would be very much appreciated.
Best Regards
Jamie JamieTalbot5 (talk) 13:26, 15 September 2022 (UTC)
- I have [...] given apache full access to all the folders and files needed.
- This is not the right thing to do. Apache should only be able to have write access to the directories where it is needed. Otherwise it should be restricted in what it can write.
- The directory /var/www/html/mediawiki/extensions/Widgets/compiled_templates needs to be made writable by the webserver. This would be done using chmod a+w /var/www/html/mediawiki/extensions/Widgets/compiled_templates from the command line. If you've already done that, then you are probably be blocked by SELinux and you would need to tell SELinux to relabel that directory. Let me know if you need those commands. ☠MarkAHershberger☢(talk)☣ 14:11, 15 September 2022 (UTC)
- Hi,
- Thank you for your reply.
- I have ran the chmod a+w /var/www/html/mediawiki/extensions/Widgets/compiled_templates command in my environment and still no look unfortunately.
- I'm not to familiar with Linux so how would I go about getting unblocked by SELinux?
- Best Regards
- Jamie JamieTalbot5 (talk) 15:25, 15 September 2022 (UTC)
- Hi,
- @MarkAHershberger I was just wondering if you have any ideas on getting unblocked be SELinux?
- Best Regards
- Jamie JamieTalbot5 (talk) 09:43, 21 September 2022 (UTC)
- Thanks for the reminder.
- Here is what I've done that works for me:
sudo semanage fcontext -a -t httpd_sys_rw_content_t "DIR(/.*)?" sudo restorecon -RF DIR
- This would mean the following two commands for you:
- ☠MarkAHershberger☢(talk)☣ 15:13, 21 September 2022 (UTC)
sudo semanage fcontext -a -t httpd_sys_rw_content_t "/var/www/html/mediawiki/extensions/Widgets/compiled_templates(/.*)?" sudo restorecon -RF /var/www/html/mediawiki/extensions/Widgets/compiled_templates
Notification by Extension:FlaggedRevs
Dear ∀,
Is there a way to get notifications if there is something to do (viz. Special:PendingChanges, Special:ProblemChanges or Special:UnreviewedPages are not empty)?
Thank you in advance,
Ciciban (talk) 14:32, 15 September 2022 (UTC)
setting common css to different font for headings and body text
Hi - i am trying to create this effect: Headings should be in a sans-serif font, and body text in a serif font. I have managed to get the whole wiki into serif, and the whole wiki into sans-serif, but i can't get it do do both! I am not good at coding: can someone tell me what I am doing wrong?
I have this, which makes everything serif:
* {font-family: georgia }
When I add this, it converts everything into sans-serif:
# firstHeading{ font-family: arial, sans-serif; } .mw-body-content h2, .mw-body-content h3, .mw-body-content h4, .mw-body-content h5 { font-family: arial, sans-serif; }
As far as I know that should only change headings?
any help gratefully received. Thanks in advance!
ElectricRay (talk) 13:33, 16 September 2022 (UTC)
- There probably should not be a space between # and firstHeading, but beyond that this looks correct.
- You could try and use your web browsers dev tools to see which css statement is causing the change (via inspector). Otherwise you could link to your site. Bawolff (talk) 22:02, 16 September 2022 (UTC)
- hi thanks Bawolff - apologies i should have thought of that! https://jollycontrarian.com/index.php?title=MediaWiki:Common.css
- So now it has fixed the H1 (article heading) level, but not H2-6, which are still in Georgia.
- ElectricRay (talk) 17:40, 17 September 2022 (UTC)
- Well in the current one, you are missing the # sign before the word content. Bawolff (talk) 22:01, 17 September 2022 (UTC)
- I have changed it now so all mentions of the word "content" are preceded by a #, but still the headings are in serif?
* {font-family: georgia }
#firstHeading{ font-family: arial, sans-serif; }
#content h2, #content h3, #content h4, #content h5 { font-family: arial, sans-serif; }
ElectricRay (talk) 23:39, 17 September 2022 (UTC)- Wait it is working!! Thank you, Bawolff! It looks great! Tell me is there a way if ensuring that formatting stays serif too? ie if i have a wikilink or italic font in a heading, it reverts to georgia. what would be causing that? ElectricRay (talk) 11:08, 18 September 2022 (UTC)
- Hi user:Bawolff sorry to trouble you it seems to have stopped working again. The main heading of the page is fine but the other headings are now all in serif again. Any ideas? ElectricRay (talk) 20:12, 20 September 2022 (UTC)
- The * rule is overriding the other rules. The way * works in CSS can be confusing (In this case, the h1 gets overriden, but * overrides all descendents).
- Anyways, instead of
* { font-family: georgia }
try doingbody.mediawiki { font-family: georgia }
which should get overriden in the ways you expect. Bawolff (talk) 08:06, 21 September 2022 (UTC) - THAT'S IT! FIXED!! THANKS SO MUCH! ElectricRay (talk) 13:31, 21 September 2022 (UTC)
Newbie problem can't reach specialpages
RESOLVED | |
Did a completely new installation on the local machine and redumped database and xml. So some variable in Mediawiki that didn't work with just moving to a new server. |
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.
Moved my mediawiki from hosted service to my local desktop. MacOS12.6
Installed latest version MAMP 6.6
Dumped mysql tables to a .sql file.
FTP'd the full directory from host and installed in htdocs MAMP
Now I can browse my wiki BUT when I try to login I get an error.
I can see there is something wrong with the filepath, but I can't figure out where to change it. I've dribbled a little with the $wg parameters in localsettings, but can't see anything wrong in it.
The strange thing is all browsing on the site seems to work fine...
Dump of error from screen.
[f92ff4829fbad0baead4c272] /index.php?title=Special:Inloggning&returnto=Kategori%3AFeedback Error from line 382 of /Applications/MAMP/htdocs/includes/specialpage/SpecialPageFactory.php: Class 'SpecialUserLogin' not found
Backtrace:
#0 /Applications/MAMP/htdocs/includes/MediaWiki.php(255): SpecialPageFactory::getPage(string)
#1 /Applications/MAMP/htdocs/includes/MediaWiki.php(861): MediaWiki->performRequest()
#2 /Applications/MAMP/htdocs/includes/MediaWiki.php(524): MediaWiki->main()
#3 /Applications/MAMP/htdocs/index.php(42): MediaWiki->run()
#4 {main} Puttetradbanan (talk) 16:04, 16 September 2022 (UTC)
- Typically this would mean that some of mediawiki's php files are missing. Maybe try redownloading mediawiki from an official source (just follow the steps for upgrading to a new version) Bawolff (talk) 21:59, 16 September 2022 (UTC)
- I'll try that first thing monday and get back. Should thought of trying that first of course! Puttetradbanan (talk) 08:51, 17 September 2022 (UTC)
- Nope,
- Pretty much the same problem.
- I've added latest version "over" previous but get the "same" error.
- Is there some dir variable I'm missing here?
- Error message from webbrowser after access /mw-config
- ________________________
- [d79966e00ffcc75911e97084] /mw-config/?page=ExistingWiki Exception: Unable to open file /Applications/MAMP/htdocs/extensions/NewestPages/extension.json: filemtime(): stat failed for /Applications/MAMP/htdocs/extensions/NewestPages/extension.json
- Backtrace:
- from /Applications/MAMP/htdocs/includes/registration/ExtensionRegistry.php(182)
- #0 /Applications/MAMP/htdocs/includes/GlobalFunctions.php(52): ExtensionRegistry->queue(string)
- #1 /Applications/MAMP/htdocs/LocalSettings.php(154): wfLoadExtension(string)
- #2 /Applications/MAMP/htdocs/includes/installer/Installer.php(695): require(string)
- #3 /Applications/MAMP/htdocs/includes/installer/WebInstallerExistingWiki.php(29): Installer::getExistingLocalSettings()
- #4 /Applications/MAMP/htdocs/includes/installer/WebInstaller.php(270): WebInstallerExistingWiki->execute()
- #5 /Applications/MAMP/htdocs/mw-config/index.php(82): WebInstaller->execute(array)
- #6 /Applications/MAMP/htdocs/mw-config/index.php(40): wfInstallerMain()
- #7 {main} Puttetradbanan (talk) 09:29, 17 September 2022 (UTC)
- That's a different error. Its just saying the NewestPages extension is being loaded in LocalSettings.php but it doesnt exist. Bawolff (talk) 22:04, 17 September 2022 (UTC)
URL Strangeness after migration
Some weird issues with our Mediawiki behavior; it's a bit difficult coming up with a succinct problem statement. Hope this is clear enough:
This URL works: "https://[our_FQDN]/wiki/index.php/Main_Page"
Just typing "http://[our_FQDN]" (not HTTPS obviously) redirects to the above URL; the file 000-default.conf has "DocumentRoot /var/www/wiki" if that matters.
But: the URL "https://[our_FQDN]" returns "Not found".
default-ssl.conf has "DocumentRoot /var/www". But after setting it to "/var/www/wiki" it also returns "Not found", however manually changing the URL in the address bar to "https://[our_FQDN]/index.php/Main_Page" (notice the missing "wiki" in the middle) does display the main page, but text only; no formatting, and none of the hyperlinks work.
LocalSettings.php has the following:
$wgScriptPath = "/wiki";
Changing this to just "/" doesn't work.
$wgServer is set to "https://[our_FQDN]";
Kinda lost here; I'm obviously missing a config somewhere. We would like our basic URL/FQDN to work with both HTTP and HTTPS.
p.s. there are no rewrites going on in default-ssl.conf. Hominid999 (talk) 19:15, 16 September 2022 (UTC)
- So first off, if you want both https and http to work without redirecting to each other, you want $wgServer = "//[fqdn]" and $wgCanonicalServer= "https://[fqdn]"
- Beyond that, it seems clear that you have different apache configs between your https and plain http virtual hosts. (Possibly in different config files than the ones you are looking at). You need to make them the same for all this to work. Without knowing what's in your config files its impossible to say more. Bawolff (talk) 21:57, 16 September 2022 (UTC)
- Thanks for your quick response Bawolff. So, following your suggestions results in all URLs coming back with "Not found", so something else is going on here!
- I'm curious what config files other than LocalSettings.php, 000-default.conf, and default-ssl.conf we could be talking about here. Something, somewhere is inserting the trailing "wiki" in the redirected URL (see second sentence in my question above). I'm guessing it's a PHP/SQL thing...? Hominid999 (talk) 04:12, 17 September 2022 (UTC)
- It's a kludge, and doesn't really address the root cause but I created the behavior I want with the following addition to the default-ssl.conf file:
- RewriteEngine On
- RewriteRule "^/$" "https://%5BFQDN]/wiki/index.php/Main_Page" [R] Hominid999 (talk) 12:36, 17 September 2022 (UTC)
VisualEditor Insert Media/Image
When using insert Media/Image it does not show any of the uploaded files that have been uploaded onto my wiki. Why is the search empty? I thought it would show a list of the images I've uploaded so I can choose to insert one of them. Supur4555 (talk) 21:55, 16 September 2022 (UTC)
- I haven't used the upload recently, but my recollection is that you are right, it should show your uploads.
- What version of MediaWiki are you using? When did you install it? Where you able to see your uploads as you expected before? ☠MarkAHershberger☢(talk)☣ 16:29, 18 September 2022 (UTC)
I have been unable to login with my preferred browser, and it is NOT a cookie problem, or a javascript disabled problem
I have been unable to login with my preferred browser, and it is NOT a cookie issue (which is the only problem the error page mentions), or a javascript disabled "problem", although i prefer using wiki* pages with it disabled.
Can you make Wiki* pages work again with Firefox 52 version, or later ones? 2804:14C:5B87:8477:0:0:0:1 (talk) 16:20, 17 September 2022 (UTC)
- Unable to log in on which exact website (full URL)? With which error message? Which MediaWiki version? Please see "Post a new question" in the sidebar. MediaWiki works with recent Firefox versions. See also Manual:How to debug/Login problems Malyacko (talk) 17:37, 17 September 2022 (UTC)
- Any language wikipedia or sister projects. Recent Firefox versions are unusable, and they have NOTHING that is needed to make wikipedia work, that FF 52 does not have. The message (which anyone should know, for what i have wrote above) is: "You must have cookies enabled to log in to Wiktionary." (if i try to log in any wiktionary, obviously). For the sister projects, the messages are guessabled. (right??) And the message continues: "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." The message is absolutely wrong. Cookies are enabled when this is shown. And resubmitting the form changes absolutely nothing. 2804:14C:5B87:8477:0:0:0:1 (talk) 00:37, 18 September 2022 (UTC)
- its still likely something specific to you, since nobody else using firefox seems to have this problem.
- Are you sure cookies really are enabled? You dont have any extensions that block them selectively for privacy reasons or something like that? Bawolff (talk) 02:31, 18 September 2022 (UTC)
- Which PHP version are you using? 105.105.107.34 (talk) 06:37, 18 September 2022 (UTC)
How to add add and assign 100s of icons to my Mediawiki site?
For example:
On Wikipedia - {{ flagicon|Singapore }} will create a small icon of Singapore flag, how can I do the same for logos in my mediawiki site? 157.46.90.196 (talk) 21:14, 17 September 2022 (UTC)
- Does Manual:Importing Wikipedia infoboxes tutorial and manual:$wgUseInstantCommons help? Bawolff (talk) 10:42, 18 September 2022 (UTC)
Timeless skin doesnt load stylesheet (502)
Hey,
every skin is working expect Timeless. I tried everything: Reinstallations, other versions, removing all extentions, ... but it will not work. https://wiki.plopgroep.ga/load.php?lang=de&modules=ext.translate.tag.languages%7Cext.uls.pt%7Cext.visualEditor.desktopArticleTarget.noscript%7Cskins.timeless&only=styles&skin=timeless is a 502 server error, for all other skins its working.
Anyone know how to fix it? Php debug and stuff like that isnt showing anything
Thanks for help :) ~ KatastrophenKommando (talk) 09:29, 18 September 2022 (UTC)
- Does your web server log show anything (this is usually a seperate file than your php error log). Sometimes php segfaulting can cause errors like this. Bawolff (talk) 10:40, 18 September 2022 (UTC)
- Hey,
- i checked it but theres nothing KatastrophenKommando (talk) 11:19, 18 September 2022 (UTC)
- Its also not the Firewall KatastrophenKommando (talk) 11:31, 18 September 2022 (UTC)
- I found a ngnix error: upstream sent too big header while reading response header from upstream, i dont know if its connected. When i am for example loading an other load.php which doesnt exist it just says there are no modules but there is no 502, its strange. KatastrophenKommando (talk) 13:11, 18 September 2022 (UTC)
- Interesting.
- If I remove the %7Cskins.timeless portion of your url, but leave everything else the same--even the &skin=timeless part--it works.
- You don't give any indication of the how you've installed Timeless or MediaWiki, but looking at your Special:Version page, I'm going to guess tarball of 1.38.2, right? ☠MarkAHershberger☢(talk)☣ 16:27, 18 September 2022 (UTC)
- Ohh, you are right! Yeah its 1.38.2. Do you have an idea how to fix it? Can i edit it in a timeless file that
%7Cskins.timeless
will be removed always? KatastrophenKommando (talk) 17:19, 18 September 2022 (UTC) - You could, but then you would be missing the CSS for the skin. ☠MarkAHershberger☢(talk)☣ 21:34, 18 September 2022 (UTC)
- You need to find your php error log and see what it says when you hit the load.php url that has the problem. ☠MarkAHershberger☢(talk)☣ 21:36, 18 September 2022 (UTC)
- Its saying "upstream sent too big header while reading response header from upstream"
- I already have a big proxy buffer size and stuff like that (that cant be the problem) KatastrophenKommando (talk) 21:44, 18 September 2022 (UTC)
- That does not sound like a PHP error. It sounds like an nginx error.
- Still, assuming you are looking at an nginx error log, I found this suggestion on StackOverflow:
- Add the following to your conf file
- fastcgi_buffers 16 16k;
- fastcgi_buffer_size 32k;
- Add the following to your conf file
- Have you done that? Otherwise, you need to find your php-fpm error log. ☠MarkAHershberger☢(talk)☣ 21:58, 18 September 2022 (UTC)
- Hey, i dont have the permissions to change that, i will try to ask someone KatastrophenKommando (talk) 06:38, 19 September 2022 (UTC)
Whole webserver working except MediaWiki [SOLVED]
RESOLVED | |
self-solved. |
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I tried to access my webserver from another computer (not on my network), When suddenly, the engine stopped working. I checked the entire webserver hosting my wiki, and everything was just fine. Only that the route leading to the the wiki did not work. The time that it happened, my $wgServer was set to this: $wgServer = "https://my.wiki.com";
(obviously that is not my host) I have changed it to everything I know, I do not know if this is useful, but when I change it to localhost, it actually connects, But when I change it to above or access the wiki from my connected domain, it stops working. Can someone tell me what happened here please? I am using MediaWiki 1.38.2 with PHP 8.1.6 and MariaDB 10.4.24. 60.242.117.245 (talk) 09:47, 18 September 2022 (UTC)
Trouble importing SQL through phpmyadmin
I am trying to import a SQL data dump from a wiki that is going defunct soon, but I am having issues importing it through phpmyadmin and through dreamhost.
When I tried the latter, I got "Error 1146: Table 'frostedbutts.page' doesn't exist (mysql.aldmcc1.dreamhosters.com)
Function: MediaWiki\Page\PageStore::getPageByNameViaLinkCache
Query: SELECT"
Has anyone ever had any issues like this before? Aldrich Mccool (talk) 19:22, 18 September 2022 (UTC)
- Is the entire message
- Error 1146: Table 'frostedbutts.page' doesn't exist (...)
- Function: MediaWiki\Page\PageStore::getPageByNameViaLinkCache
- Query: SELECTIf so, it looks like something is getting cut off. Can you check the very end of your SQL dump file to make sure it ends normally? ☠MarkAHershberger☢(talk)☣ 21:52, 18 September 2022 (UTC)
- In addition to what mark said, you might have imported it into the wrong db name or something like that Bawolff (talk) 01:13, 19 September 2022 (UTC)
I want to delete the photos I uploaded, can I get support on this?
RESOLVED | |
See Deletion of images. |
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.
Yüklediğim fotoğrafları silmek istiyorum, bu konuda destek alabilir miyim? Murat Dağaslan (talk) 21:20, 18 September 2022 (UTC)
- From Google translate's efforts on Turkish: I want to delete the photos I uploaded, can I get support on this?
- See Deletion of images. ☠MarkAHershberger☢(talk)☣ 22:03, 18 September 2022 (UTC)
$wgWhitelistReadRegexp does not work with action=raw (Version 1.39.0-beta (7144323), did not test 1.38, Article path /index.php?title=$1)
Example for the LocalSettings.php entry:
$wgWhitelistReadRegexp [] = '/^Public:/';
Whitelisting for a Namespace e.g. "Public" works fine.
If you try to access a page with the additional URL parameter "action=raw", no access is permitted. This is an undesirable behavior.
How can this problem be fixed? Can you tell me the file in which I can do a workaround.
Thanks in advance. 31.10.132.21 (talk) 22:41, 18 September 2022 (UTC)
- It sounds like a bug. You can file a bug in phabricator. ☠MarkAHershberger☢(talk)☣ 21:09, 20 September 2022 (UTC)
TimedMediaHandler/video file and upload file error
Hello, I'm trying to install TimedMediaHandler for viewing video files on my wiki, however I've encountered some errors doing so.
Info about what I'm using:
MediaWiki 1.38.1
Bluehost Shared Hosting
The first is that whenever I go to the page of an uploaded .mov file, it doesn't even display any kind of thumbnail, empty thumbnail or anything like that, just a link of the file, the file size, etc next to that, and everything else under.
The second is that now whenever I upload a mp4 file, it won't fully do it, and will give me the following error (I'm not sure if the fact that I'm using UploadWizard has anything to do with it, since the mp4 file I'm about to talk about was uploaded before I started implementing UploadWizard) : [Yyejt1lK0tcYiJXiKcatHgAB9Qk] Exception caught: $'"2
Then finally I have an already uploaded mp4 file, to which when I go to its page, I get the following error (I replaced the name of my website in with "site"):
[YyelHwLRDs84ipZZ_Y_LTgAAlRE] /index.php/File:MemeFeedBot.mp4 Wikimedia\Rdbms\DBQueryError: A database query error has occurred. Did you forget to run your application's database schema updater after upgrading or after adding a new extension?
Please see https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Upgrading and https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:How_to_debug for more information.
Error 1146: Table 'site_mw19172.mwct_transcode' doesn't exist (localhost)
Function: WebVideoTranscode::getTranscodeState
Query: SELECT * FROM `mwct_transcode` WHERE transcode_image_name = 'MemeFeedBot.mp4' LIMIT 100
Backtrace:
from /home/site/public_html/includes/libs/rdbms/database/Database.php(1606)
#0 /home/site/public_html/includes/libs/rdbms/database/Database.php(1590): Wikimedia\Rdbms\Database->getQueryException(string, integer, string, string)
#1 /home/site/public_html/includes/libs/rdbms/database/Database.php(1564): Wikimedia\Rdbms\Database->getQueryExceptionAndLog(string, integer, string, string)
#2 /home/site/public_html/includes/libs/rdbms/database/Database.php(1173): Wikimedia\Rdbms\Database->reportQueryError(string, integer, string, string, boolean)
#3 /home/site/public_html/includes/libs/rdbms/database/Database.php(1810): Wikimedia\Rdbms\Database->query(string, string, integer)
#4 /home/site/public_html/includes/libs/rdbms/database/DBConnRef.php(69): Wikimedia\Rdbms\Database->select(string, string, array, string, array)
#5 /home/site/public_html/includes/libs/rdbms/database/DBConnRef.php(319): Wikimedia\Rdbms\DBConnRef->__call(string, array)
#6 /home/site/public_html/extensions/TimedMediaHandler/includes/WebVideoTranscode/WebVideoTranscode.php(752): Wikimedia\Rdbms\DBConnRef->select(string, string, array, string, array)
#7 /home/site/public_html/extensions/TimedMediaHandler/includes/WebVideoTranscode/WebVideoTranscode.php(709): WebVideoTranscode::getTranscodeState(LocalFile)
#8 /home/site/public_html/extensions/TimedMediaHandler/includes/WebVideoTranscode/WebVideoTranscode.php(891): WebVideoTranscode::isTranscodeReady(LocalFile, string)
#9 /home/site/public_html/extensions/TimedMediaHandler/includes/WebVideoTranscode/WebVideoTranscode.php(693): WebVideoTranscode::addSourceIfReady(LocalFile, array, string, array)
#10 /home/site/public_html/extensions/TimedMediaHandler/includes/WebVideoTranscode/WebVideoTranscode.php(574): WebVideoTranscode::getLocalSources(LocalFile, array)
#11 /home/site/public_html/extensions/TimedMediaHandler/includes/TimedMediaTransformOutput.php(584): WebVideoTranscode::getSources(LocalFile)
#12 /home/site/public_html/extensions/TimedMediaHandler/includes/TimedMediaTransformOutput.php(355): TimedMediaTransformOutput->getMediaSources()
#13 /home/site/public_html/extensions/TimedMediaHandler/includes/TimedMediaTransformOutput.php(188): TimedMediaTransformOutput->getHtmlMediaTagOutput(array)
#14 /home/site/public_html/includes/page/ImagePage.php(474): TimedMediaTransformOutput->toHtml(array)
#15 /home/site/public_html/includes/page/ImagePage.php(141): ImagePage->openShowImage()
#16 /home/site/public_html/includes/actions/ViewAction.php(80): ImagePage->view()
#17 /home/site/public_html/includes/MediaWiki.php(544): ViewAction->show()
#18 /home/site/public_html/includes/MediaWiki.php(321): MediaWiki->performAction(ImagePage, Title)
#19 /home/site/public_html/includes/MediaWiki.php(910): MediaWiki->performRequest()
#20 /home/site/public_html/includes/MediaWiki.php(564): MediaWiki->main()
#21 /home/site/public_html/index.php(53): MediaWiki->run()
#22 /home/site/public_html/index.php(46): wfIndexMain()
#23 {main}
Any help would be great thanks Guillaume Taillefer (talk) 23:31, 18 September 2022 (UTC)
- As the error message suggests, did you run update.php? (If you dont have cli access you can run the web installer in upgrade mode) Bawolff (talk) 01:11, 19 September 2022 (UTC)
- I tried running php update.php but it gave me this error message: Could not open input file: update.php
- I am able to log into my SSH via terminal and thats how I do things from there. How would I be able to run the web installer in upgrade mode? Guillaume Taillefer (talk) 02:26, 19 September 2022 (UTC)
- Were you in the correct directory (maintenance)? Bawolff (talk) 06:19, 19 September 2022 (UTC)
- I found and changed the directory to maintenance (for me under public_html), and ran it and it worked! Thanks. Although I'm still unable to get it to display.mov files, if you have a solution to that let me know but I'll try to find one and when I do I'll write it here for anyone with the same problem Guillaume Taillefer (talk) 23:22, 22 September 2022 (UTC)
- Im not sure if it supports .mov files. It doesnt support all file types. Bawolff (talk) 02:39, 23 September 2022 (UTC)
- Also this only works for mp4 files. I tried a webm file and on the File page, it only displayed the audio portion (unless if I click on the file then it leads me to the actual file). The mov files don't display at all (not even audio thing). At that point do I need to add a setting or value to a variable in LocalSettings to what types of files can be played (because I also want to add wmv files as well if possible). Thanks again Guillaume Taillefer (talk) 02:48, 23 September 2022 (UTC)
- TimedMediaHandler was generally developed for websites that have certain political views when it comes to file formats. I think its unlikely to work with wmv.
- It should work well with webm. Ensure the file is encoded correctly. Bawolff (talk) 05:33, 23 September 2022 (UTC)
Guillaume Taillefer (talk) 11:16, 23 September 2022 (UTC)
- Nevermind the webm does actually work, I guess the other one wasn't indeed encoded correctly. Thanks Guillaume Taillefer (talk) 11:35, 23 September 2022 (UTC)
blocked IP and not guilty
Hi all, I am connected to a provider who changes periodically my IP address. A while ago a received an address which falled in a range of blocked adresses and prevent from me to act on en.wikipedia.org (see https://en.wikipedia.org/wiki/User_talk:Wladek92 ) although I did nothing wrong. How can we avoid such situations ? Thanks.
Christian 🇫🇷 FR (talk) 14:13, 19 September 2022 (UTC)
- it happens. You can request ipblock exemption https://en.wikipedia.org/wiki/Wikipedia:IP_block_exemption —TheDJ (Not WMF) (talk • contribs) 20:44, 19 September 2022 (UTC)
Keycloak does not log out the realm
I have several clients in the same realm as media wiki. When I log out from another client mediawiki doesnt see it and stays logged in. Same goes if I log out from media wiki, the other clients do not see that I logged out, I am assuming the key cloak log out end point is not called. Any help will be greatly appreciate it. How can I fix this? 63.157.240.210 (talk) 18:15, 19 September 2022 (UTC)
- This sounds like a Keycloak issue, doesn't it? Have you asked them for help? ☠MarkAHershberger☢(talk)☣ 21:06, 20 September 2022 (UTC)
Fatal exception of type "Error" when saving/creating new pages
After a recent upgrade to the server, MediaWiki is now giving the Fatal exception of type "Error" when attempting to save or create new pages. Pheobus~mediawikiwiki (talk) 19:01, 19 September 2022 (UTC)
- Backtrace:
- 0 /var/www/html/triwiki/includes/libs/rdbms/database/DatabaseMysqli.php(176): mysqli_result->free_result()
- 1 /var/www/html/triwiki/includes/libs/rdbms/database/DatabaseMysqlBase.php(234): Wikimedia\Rdbms\DatabaseMysqli->mysqlFreeResult()
- 2 /var/www/html/triwiki/includes/libs/rdbms/database/DBConnRef.php(68): Wikimedia\Rdbms\DatabaseMysqlBase->freeResult()
- 3 /var/www/html/triwiki/includes/libs/rdbms/database/DBConnRef.php(290): Wikimedia\Rdbms\DBConnRef->__call()
- 4 /var/www/html/triwiki/extensions/DynamicPageList3/includes/Parse.php(246): Wikimedia\Rdbms\DBConnRef->freeResult()
- 5 /var/www/html/triwiki/extensions/DynamicPageList3/DynamicPageListHooks.php(300): DPL\Parse->parse()
- 6 /var/www/html/triwiki/includes/parser/Parser.php(3340): DynamicPageListHooks::dplParserFunction()
- 7 /var/www/html/triwiki/includes/parser/Parser.php(3047): Parser->callParserFunction()
- 8 /var/www/html/triwiki/includes/parser/PPFrame_Hash.php(253): Parser->braceSubstitution()
- 9 /var/www/html/triwiki/includes/parser/PPTemplateFrame_Hash.php(89): PPFrame_Hash->expand()
- 10 /var/www/html/triwiki/includes/parser/Parser.php(3222): PPTemplateFrame_Hash->cachedExpand()
- 11 /var/www/html/triwiki/includes/parser/PPFrame_Hash.php(253): Parser->braceSubstitution()
- 12 /var/www/html/triwiki/includes/parser/Parser.php(3225): PPFrame_Hash->expand()
- 13 /var/www/html/triwiki/includes/parser/PPFrame_Hash.php(253): Parser->braceSubstitution()
- 14 /var/www/html/triwiki/includes/parser/Parser.php(2887): PPFrame_Hash->expand()
- 15 /var/www/html/triwiki/includes/parser/Parser.php(1556): Parser->replaceVariables()
- 16 /var/www/html/triwiki/includes/parser/Parser.php(651): Parser->internalParse()
- 17 /var/www/html/triwiki/includes/content/WikitextContent.php(374): Parser->parse()
- 18 /var/www/html/triwiki/includes/content/AbstractContent.php(590): WikitextContent->fillParserOutput()
- 19 /var/www/html/triwiki/includes/Revision/RenderedRevision.php(263): AbstractContent->getParserOutput()
- 20 /var/www/html/triwiki/includes/Revision/RenderedRevision.php(235): MediaWiki\Revision\RenderedRevision->getSlotParserOutputUncached()
- 21 /var/www/html/triwiki/includes/Revision/RevisionRenderer.php(215): MediaWiki\Revision\RenderedRevision->getSlotParserOutput()
- 22 /var/www/html/triwiki/includes/Revision/RevisionRenderer.php(152): MediaWiki\Revision\RevisionRenderer->combineSlotOutput()
- 23 [internal function]: MediaWiki\Revision\RevisionRenderer->MediaWiki\Revision\{closure}()
- 24 /var/www/html/triwiki/includes/Revision/RenderedRevision.php(197): call_user_func()
- 25 /var/www/html/triwiki/includes/Storage/DerivedPageDataUpdater.php(1315): MediaWiki\Revision\RenderedRevision->getRevisionParserOutput()
- 26 /var/www/html/triwiki/includes/Storage/PageUpdater.php(752): MediaWiki\Storage\DerivedPageDataUpdater->getCanonicalParserOutput()
- 27 /var/www/html/triwiki/includes/page/WikiPage.php(2015): MediaWiki\Storage\PageUpdater->saveRevision()
- 28 /var/www/html/triwiki/includes/EditPage.php(2457): WikiPage->doEditContent()
- 29 /var/www/html/triwiki/includes/EditPage.php(1724): EditPage->internalAttemptSave()
- 30 /var/www/html/triwiki/includes/EditPage.php(680): EditPage->attemptSave()
- 31 /var/www/html/triwiki/includes/actions/EditAction.php(71): EditPage->edit()
- 32 /var/www/html/triwiki/includes/actions/SubmitAction.php(38): EditAction->show()
- 33 /var/www/html/triwiki/includes/MediaWiki.php(527): SubmitAction->show()
- 34 /var/www/html/triwiki/includes/MediaWiki.php(313): MediaWiki->performAction()
- 35 /var/www/html/triwiki/includes/MediaWiki.php(940): MediaWiki->performRequest()
- 36 /var/www/html/triwiki/includes/MediaWiki.php(543): MediaWiki->main()
- 37 /var/www/html/triwiki/index.php(53): MediaWiki->run()
- 38 /var/www/html/triwiki/index.php(46): wfIndexMain()
- 39 {main} Pheobus~mediawikiwiki (talk) 19:04, 19 September 2022 (UTC)
- Have you tried disabling DynamicPageList3 and checked if it works then ? —TheDJ (Not WMF) (talk • contribs) 20:38, 19 September 2022 (UTC)
- Disabling it works, but breaks another functionality. Any idea on how to resolve the issues with DPL3? Pheobus~mediawikiwiki (talk) 21:17, 19 September 2022 (UTC)
- Make sure you have the right version installed (similar to the version of MW you are running) and if that’s not it, ask the author of the extension for assistance? —TheDJ (Not WMF) (talk • contribs) 09:21, 20 September 2022 (UTC)
Make Mediawiki work on older browsers?
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 noticed that Mediawiki cut off support for many legacy browsers. Is there any way with an extension or something to make the site basic html only when on an old browser.
Cheers! JulianMalcolm08 (talk) 23:12, 19 September 2022 (UTC)
- Mediawiki should work fine out of the box on legacy browsers. JS stuff wont work, and any browser specific hacks wont be there (so css might be messed up on really old browsers) but things like editing pages should work fine. When we say we've cut support we generally mean just JS.
- what issues are you experiencing and in what browser?
- If you want the old timey look, check out Skin:nostalgia Bawolff (talk) 23:59, 19 September 2022 (UTC)
- The page just wont load at all. JulianMalcolm08 (talk) 00:20, 20 September 2022 (UTC)
- I am not worried about the distortion but when the page does not load it is a problem. JulianMalcolm08 (talk) 00:21, 20 September 2022 (UTC)
- Well which specific browser and version are we talking about ? —TheDJ (Not WMF) (talk • contribs) 09:24, 20 September 2022 (UTC)
- @JulianMalcolm08 If something somehow doesn't work somewhere, then please provide clear and exact info what somehow, somewhere, and something are (and why you think so), without leaving room for interpretation. Jumping to incorrect conclusions ("MediaWiki doesn't work on older browsers") without any hints or proof doesn't help. Thanks. Malyacko (talk) 15:57, 20 September 2022 (UTC)
- Sorry. I was testing it on internet explorer 6. I know it is old but it is helpful for my tests. I was running it on Windows XP if that matters. JulianMalcolm08 (talk) 21:14, 21 September 2022 (UTC)
- That’s very old. For en.wp (Wmf services) that’s probably because the HTTPS support on that platform is no longer up to par. If you are running your own server and explicitly made it insecure to load on old platforms and it is still a problem, then possibly something with CSS or HTML5 isn’t compatible. However, by virtue of the platform not being supported, you are pretty much on your own trying to figure out what that issue would be. —TheDJ (Not WMF) (talk • contribs) 08:34, 23 September 2022 (UTC)
- Ok thanks. JulianMalcolm08 (talk) 00:30, 24 September 2022 (UTC)
Example of print.css to control display of elements?
Does anyone have a good example of a print.css page which controls when to print TOC or Div elements?
I have a use for printing pages with a TOC floated right, and it seems a bit of a trick to a) get the TOC to appear when printing and b) control text wrapping such that it goes around the TOC, but then on subsequent pages I'm not left with whitespace on the right where the TOC Div is floated on the first page... Tdsmart (talk) 06:04, 20 September 2022 (UTC)
- This is really not a MediaWiki-specific question, but maybe StackOverflow q&a would help:
- HTML/CSS printing page-break with float not working
- Div tags with float left not printing properly ☠MarkAHershberger☢(talk)☣ 21:04, 20 September 2022 (UTC)
144 Table wiki_1_31_0/page' is marked as crashed and last (automatic?) repair failed
RESOLVED | |
Looks like Repair a MySQL Database from WHM fixed it. |
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 get this error (I did nothing to cause it)
Backtrace: #0 public_html/includes/libs/rdbms/database/Database.php(1427): Wikimedia\Rdbms\Database->makeQueryException(string, integer, string, string) #1 public_html/includes/libs/rdbms/database/Database.php(1200): Wikimedia\Rdbms\Database->reportQueryError(string, integer, string, string, boolean) #2 public_html/includes/libs/rdbms/database/Database.php(1653): Wikimedia\Rdbms\Database->query(string, string) #3 public_html/includes/cache/MessageCache.php(504): Wikimedia\Rdbms\Database->select(string, array, array, string) #4 public_html/includes/cache/MessageCache.php(418): MessageCache->loadFromDB(string, NULL) #5 public_html/includes/cache/MessageCache.php(342): MessageCache->loadFromDBWithLock(string, array, NULL) #6 public_html/includes/cache/MessageCache.php(971): MessageCache->load(string) #7 public_html/includes/cache/MessageCache.php(899): MessageCache->getMsgFromNamespace(string, string) #8 public_html/includes/cache/MessageCache.php(868): MessageCache->getMessageForLang(LanguageEn, string, boolean, array) #9 public_html/includes/cache/MessageCache.php(808): MessageCache->getMessageFromFallbackChain(LanguageEn, string, boolean) #10 public_html/includes/Message.php(1290): MessageCache->get(string, boolean, LanguageEn) #11 public_html/includes/Message.php(1006): Message->fetchMessage() #12 public_html/extensions/CirrusSearch/includes/Hooks.php(214): Message->isDisabled() #13 public_html/includes/libs/objectcache/BagOStuff.php(159): CirrusSearch\Hooks::CirrusSearch\{closure}() #14 public_html/extensions/CirrusSearch/includes/Hooks.php(218): BagOStuff->getWithSetCallback(string, integer, Closure) #15 public_html/extensions/CirrusSearch/includes/Hooks.php(107): CirrusSearch\Hooks::overrideMoreLikeThisOptionsFromMessage() #16 public_html/extensions/CirrusSearch/includes/Hooks.php(68): CirrusSearch\Hooks::initializeForRequest(WebRequest) #17 public_html/includes/Hooks.php(177): CirrusSearch\Hooks::onBeforeInitialize(Title, NULL, OutputPage, User, WebRequest, MediaWiki) #18 public_html/includes/Hooks.php(205): Hooks::callHook(string, array, array, NULL) #19 public_html/includes/MediaWiki.php(187): Hooks::run(string, array) #20 public_html/includes/MediaWiki.php(818): MediaWiki->performRequest() #21 public_html/includes/MediaWiki.php(524): MediaWiki->main() #22 public_html/index.php(43): MediaWiki->run() #23 {main} Exception caught inside exception handler: [YyldVmQi2npt0CD7brnlggADEwc] /wiki/Special:RecentChanges Wikimedia\Rdbms\DBQueryError from line 1457 of public_html/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 page_title,page_latest FROM `page` WHERE page_is_redirect = '0' AND page_namespace = '8' AND (page_title NOT LIKE '%/%' ESCAPE '`' ) AND (page_len > 10000) Function: MessageCache::loadFromDB(en)-big Error: 144 Table './spiroslsj_wiki_1_31_0/page' is marked as crashed and last (automatic?) repair failed (localhost) Backtrace: #0 public_html/includes/libs/rdbms/database/Database.php(1427): Wikimedia\Rdbms\Database->makeQueryException(string, integer, string, string) #1 public_html/includes/libs/rdbms/database/Database.php(1200): Wikimedia\Rdbms\Database->reportQueryError(string, integer, string, string, boolean) #2 public_html/includes/libs/rdbms/database/Database.php(1653): Wikimedia\Rdbms\Database->query(string, string) #3 public_html/includes/cache/MessageCache.php(504): Wikimedia\Rdbms\Database->select(string, array, array, string) #4 public_html/includes/cache/MessageCache.php(418): MessageCache->loadFromDB(string, NULL) #5 public_html/includes/cache/MessageCache.php(342): MessageCache->loadFromDBWithLock(string, array, NULL) #6 public_html/includes/cache/MessageCache.php(971): MessageCache->load(string) #7 public_html/includes/cache/MessageCache.php(899): MessageCache->getMsgFromNamespace(string, string) #8 public_html/includes/cache/MessageCache.php(868): MessageCache->getMessageForLang(LanguageEn, string, boolean, array) #9 public_html/includes/cache/MessageCache.php(808): MessageCache->getMessageFromFallbackChain(LanguageEn, string, boolean) #10 public_html/includes/Message.php(1290): MessageCache->get(string, boolean, LanguageEn) #11 public_html/includes/Message.php(842): Message->fetchMessage() #12 public_html/includes/Message.php(934): Message->toString(string) #13 public_html/includes/OutputPage.php(902): Message->text() #14 public_html/includes/OutputPage.php(949): OutputPage->setHTMLTitle(Message) #15 public_html/includes/OutputPage.php(2424): OutputPage->setPageTitle(string) #16 public_html/includes/exception/MWExceptionRenderer.php(126): OutputPage->prepareErrorPage(string) #17 public_html/includes/exception/MWExceptionRenderer.php(54): MWExceptionRenderer::reportHTML(Wikimedia\Rdbms\DBQueryError) #18 public_html/includes/exception/MWExceptionHandler.php(75): MWExceptionRenderer::output(Wikimedia\Rdbms\DBQueryError, integer) #19 public_html/includes/exception/MWExceptionHandler.php(149): MWExceptionHandler::report(Wikimedia\Rdbms\DBQueryError) #20 public_html/includes/MediaWiki.php(551): MWExceptionHandler::handleException(Wikimedia\Rdbms\DBQueryError) #21 public_html/index.php(43): MediaWiki->run() #22 {main}Spiros71 (talk) 06:31, 20 September 2022 (UTC)
- Looks like Repair a MySQL Database from WHM fixed it. Spiros71 (talk) 06:48, 20 September 2022 (UTC)
How can I hide English "translations"?
RESOLVED | |
fixed with a template |
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
We're using the translation extension, the one that's used here too. But for some reason even though the original text is in English, an English translation is always created automatically. And they spam the category pages.
Just check out this category:
https://joinfediverse.wiki/Category:Beginners_guide
It always links to Pag x and Page x/en.
How can we stop this? PKFP (talk) 09:10, 20 September 2022 (UTC)
- @Nikerabbit: any ideas? ☠MarkAHershberger☢(talk)☣ 20:52, 20 September 2022 (UTC)
- That's intentional behavior to support page transclusions, mass message etc. use cases which cannot deal with the translation mark-up. The behavior is the same on this wiki too, but I think they may be categorizing pages differently. Nikerabbit (talk) 08:34, 22 September 2022 (UTC)
- Anybody know how they are categorizing pages differently? PKFP (talk) 08:53, 22 September 2022 (UTC)
- Okay I found a solution myself. Not sure if it's elegant.
- I created a template with
- [[Category:{{#ifeq: {{BASEPAGENAME}}|{{SUBPAGENAME}}|{{{category}}}|{{{category}}}/{{#titleparts: {{FULLPAGENAME}} | 1 | 2 }}}} ]] PKFP (talk) 09:32, 22 September 2022 (UTC)
unserialize() Error
Hello, I installed the Wiki and pointed the Mysql database to an internal server, but when I point to this server, it returns the following error:
backtrace |
---|
'''Notice''': unserialize(): Error at offset 983 of 7108 bytes in '''C:\xampp\htdocs\wiki\includes\cache\localisation\LCStoreDB.php''' on line '''66''' '''Notice''': unserialize(): Error at offset 983 of 7108 bytes in '''C:\xampp\htdocs\wiki\includes\cache\localisation\LCStoreDB.php''' on line '''66''' '''Warning''': foreach() argument must be of type array|object, bool given in '''C:\xampp\htdocs\wiki\includes\cache\localisation\LocalisationCache.php''' on line '''524''' '''Notice''': unserialize(): Error at offset 157 of 15559 bytes in '''C:\xampp\htdocs\wiki\includes\cache\localisation\LCStoreDB.php''' on line '''66''' MediaWiki internal error. Original exception: [6d593e71e98823ad3eaaaff6] /wiki/index.php/Plataforma_Wiki_-_LMS_Desenvolvimento_de_Sistemas MWException from line 129 of C:\xampp\htdocs\wiki\includes\MagicWord.php: Error: invalid magic word 'ns' Backtrace: #0 C:\xampp\htdocs\wiki\includes\MagicWordFactory.php(230): MagicWord->load(string) #1 C:\xampp\htdocs\wiki\includes\parser\Parser.php(4872): MagicWordFactory->get(string) #2 C:\xampp\htdocs\wiki\includes\parser\CoreParserFunctions.php(64): Parser->setFunctionHook(string, array, integer) #3 C:\xampp\htdocs\wiki\includes\parser\Parser.php(528): CoreParserFunctions::register(Parser) #4 C:\xampp\htdocs\wiki\includes\parser\Parser.php(477): Parser->firstCallInit() #5 C:\xampp\htdocs\wiki\includes\parser\ParserFactory.php(142): Parser->__construct(MediaWiki\Config\ServiceOptions, MagicWordFactory, Language, ParserFactory, string, MediaWiki\SpecialPage\SpecialPageFactory, MediaWiki\Linker\LinkRendererFactory, NamespaceInfo, MediaWiki\Logger\LegacyLogger, MediaWiki\BadFileLookup, MediaWiki\Languages\LanguageConverterFactory, MediaWiki\HookContainer\HookContainer) #6 C:\xampp\htdocs\wiki\includes\ServiceWiring.php(817): ParserFactory->create() #7 C:\xampp\htdocs\wiki\vendor\wikimedia\services\src\ServiceContainer.php(447): Wikimedia\Services\ServiceContainer->{closure}(MediaWiki\MediaWikiServices) #8 C:\xampp\htdocs\wiki\vendor\wikimedia\services\src\ServiceContainer.php(416): Wikimedia\Services\ServiceContainer->createService(string) #9 C:\xampp\htdocs\wiki\includes\MediaWikiServices.php(1000): Wikimedia\Services\ServiceContainer->getService(string) #10 C:\xampp\htdocs\wiki\includes\cache\MessageCache.php(1266): MediaWiki\MediaWikiServices->getParser() #11 C:\xampp\htdocs\wiki\includes\cache\MessageCache.php(1245): MessageCache->getParser() #12 C:\xampp\htdocs\wiki\includes\language\Message.php(1303): MessageCache->transform(string, boolean, Language, Title) #13 C:\xampp\htdocs\wiki\includes\language\Message.php(910): Message->transformText(string) #14 C:\xampp\htdocs\wiki\includes\language\Message.php(970): Message->toString(string) #15 C:\xampp\htdocs\wiki\includes\OutputPage.php(944): Message->text() #16 C:\xampp\htdocs\wiki\includes\OutputPage.php(993): OutputPage->setHTMLTitle(Message) #17 C:\xampp\htdocs\wiki\includes\page\Article.php(662): OutputPage->setPageTitle(string) #18 C:\xampp\htdocs\wiki\includes\actions\ViewAction.php(80): Article->view() #19 C:\xampp\htdocs\wiki\includes\MediaWiki.php(531): ViewAction->show() #20 C:\xampp\htdocs\wiki\includes\MediaWiki.php(313): MediaWiki->performAction(Article, Title) #21 C:\xampp\htdocs\wiki\includes\MediaWiki.php(947): MediaWiki->performRequest() #22 C:\xampp\htdocs\wiki\includes\MediaWiki.php(547): MediaWiki->main() #23 C:\xampp\htdocs\wiki\index.php(53): MediaWiki->run() #24 C:\xampp\htdocs\wiki\index.php(46): wfIndexMain() #25 {main} Exception caught inside exception handler: [6d593e71e98823ad3eaaaff6] /wiki/index.php/Plataforma_Wiki_-_LMS_Desenvolvimento_de_Sistemas MWException from line 129 of C:\xampp\htdocs\wiki\includes\MagicWord.php: Error: invalid magic word 'ns' Backtrace: #0 C:\xampp\htdocs\wiki\includes\MagicWordFactory.php(230): MagicWord->load(string) #1 C:\xampp\htdocs\wiki\includes\parser\Parser.php(4872): MagicWordFactory->get(string) #2 C:\xampp\htdocs\wiki\includes\parser\CoreParserFunctions.php(64): Parser->setFunctionHook(string, array, integer) #3 C:\xampp\htdocs\wiki\includes\parser\Parser.php(528): CoreParserFunctions::register(Parser) #4 C:\xampp\htdocs\wiki\includes\parser\Parser.php(477): Parser->firstCallInit() #5 C:\xampp\htdocs\wiki\includes\parser\ParserFactory.php(142): Parser->__construct(MediaWiki\Config\ServiceOptions, MagicWordFactory, Language, ParserFactory, string, MediaWiki\SpecialPage\SpecialPageFactory, MediaWiki\Linker\LinkRendererFactory, NamespaceInfo, MediaWiki\Logger\LegacyLogger, MediaWiki\BadFileLookup, MediaWiki\Languages\LanguageConverterFactory, MediaWiki\HookContainer\HookContainer) #6 C:\xampp\htdocs\wiki\includes\ServiceWiring.php(817): ParserFactory->create() #7 C:\xampp\htdocs\wiki\vendor\wikimedia\services\src\ServiceContainer.php(447): Wikimedia\Services\ServiceContainer->{closure}(MediaWiki\MediaWikiServices) #8 C:\xampp\htdocs\wiki\vendor\wikimedia\services\src\ServiceContainer.php(416): Wikimedia\Services\ServiceContainer->createService(string) #9 C:\xampp\htdocs\wiki\includes\MediaWikiServices.php(1000): Wikimedia\Services\ServiceContainer->getService(string) #10 C:\xampp\htdocs\wiki\includes\cache\MessageCache.php(1266): MediaWiki\MediaWikiServices->getParser() #11 C:\xampp\htdocs\wiki\includes\cache\MessageCache.php(1245): MessageCache->getParser() #12 C:\xampp\htdocs\wiki\includes\language\Message.php(1303): MessageCache->transform(string, boolean, Language, Title) #13 C:\xampp\htdocs\wiki\includes\language\Message.php(910): Message->transformText(string) #14 C:\xampp\htdocs\wiki\includes\language\Message.php(970): Message->toString(string) #15 C:\xampp\htdocs\wiki\includes\OutputPage.php(944): Message->text() #16 C:\xampp\htdocs\wiki\includes\OutputPage.php(993): OutputPage->setHTMLTitle(Message) #17 C:\xampp\htdocs\wiki\includes\OutputPage.php(2658): OutputPage->setPageTitle(string) |
But if I put the IP of the local machine where it is installed, it works normally, what can it be? 177.76.194.48 (talk) 18:46, 20 September 2022 (UTC)
- I'm confused. Do you mean that if you visit your wiki like http://IP/ you do not see the problem, but when you visit http://name/, you see the problem?
- Or do you mean that if you change $wgDBserver you the problem appears or goes away? ☠MarkAHershberger☢(talk)☣ 20:44, 20 September 2022 (UTC)
- Does running rebuildLocalisationCache.php --force
- Help? Bawolff (talk) 22:07, 20 September 2022 (UTC)
Images display on wrong side of page on WP-yi
Hi. Not sure if this is the right place to ask this.
When I'm signed in, images display on the opposite side of the page than the 'left' or 'right' that I put in. But images in boxes set as 'float left/right' display properly. When I sign out, all images display properly. I don't have any local CSS.
I was recently asked on WP-yi to stop putting images on the right side of the page, when I'd been trying to place them on the left.
This isn't a problem on WP-he or WP-ar. I've noticed the same problem on a few other RTL-script wikis, but most display correctly.
- MediaWiki: 1.40.0-wmf.2 (e31f436), 2022-09-20T00:35:53
- PHP: 7.4.30 (fpm-fcgi)
- MariaDB: 10.4.25-MariaDB-log
Please ping, Kwamikagami (talk) 19:03, 20 September 2022 (UTC)
- ping @Amire80 who may be able to help. ☠MarkAHershberger☢(talk)☣ 20:34, 20 September 2022 (UTC)
- @Amire80: Any ideas? Thanks. Kwamikagami (talk) 20:42, 20 September 2022 (UTC)
- To clarify what language do you have set in your user preferences?
- Does this still happen with the ?safemode=1 at end of url? E.g. https://yi.wikipedia.org/wiki/%D7%94%D7%95%D7%99%D7%A4%D7%98_%D7%96%D7%99%D7%99%D7%98?safemode=1 Bawolff (talk) 22:04, 20 September 2022 (UTC)
- My default language is English, and that's the language the WP-yi tabs and tools menu display in. The odd thing is that the same is true of WP-he, which uses the same Hebrew script: my tabs and tool menu are in English, but left and right work properly.
- Yes, safe mode fixes the problem. Kwamikagami (talk) 22:27, 20 September 2022 (UTC)
- So safemode fixing the issue means its most likely an issue with a gadget. Could you try dusabling all gadgets you have enabled in your preferences? Bawolff (talk) 23:48, 20 September 2022 (UTC)
- I don't have any gadgets enabled on WP-yi. I tried one I found there, "Directional editing control script", but it didn't help. Maybe it's something in my universal CSS? I commented out the one line I had active on my common.css (to get rid of some of the flood of pop-up messages), but it seemed to have no effect.
- I wish I'd kept track of problematic sites. I can run through all RTL sites and check, if that would help. And it's not by language: WP may display one way, and WK the other, for the same language. But it does seem to be the smaller sites that are affected, so perhaps this has been fixed by more recent software running on major sites like WP-he and WP-ar? Kwamikagami (talk) 23:52, 20 September 2022 (UTC)
- Also, is this the place I should ask about how to stay logged in? This past year, I've been finding myself repeatedly logged out. Not constantly, but several times a week, or even daily -- often enough that I sometimes can't find pages I edited because I was logged out when I edited them, and didn't notice. I'll be logged in on WP, then go to WK and find I'm logged out. Or go to another language WP and be logged out. This despite the fact that I hit 'remember me' whenever I log in. This didn't use to be a problem: logging in was robust until maybe a year ago. Don't know if it has anything to do with trying to block Wiki's flood of pop-up ads, which I started doing at about the same time (though I think more recently, if I remember correctly). Kwamikagami (talk) 02:29, 21 September 2022 (UTC)
- I did some digging, I suspect that the problem is in https://yi.wikipedia.org/wiki/%D7%9E%D7%A2%D7%93%D7%99%D7%A2%D7%B0%D7%99%D7%A7%D7%99:Vector.css#L-110 - I think what happens is that it gets flipped depending on user language set.
- I don't think the line does anything useful, so it maybe should just be deleted from common.css, but if it is important, it should be annotated with
/* @noflip */
to prevent flipping based on directionality ( https://www.mediawiki.org/wiki/ResourceLoader/Architecture#Flipping has more information ). - As for logging in - yes this is the right place, but I don't really have any good answers for that. Check to make sure you don't have any "privacy" extensions enabled that might make cookies have a shorter length. Bawolff (talk) 07:57, 21 September 2022 (UTC)
- I also suspect that these lines are not really useful, and should probably be removed. Poylisher (פוילישער) added them in 2010, and he's still an active sysop so I'll leave the decision to him and the Yiddish Wikipedia community. Amir E. Aharoni {{🌎🌍🌏}} 11:57, 21 September 2022 (UTC)
- Which lines do think should be deleted?
- (פוילישער) Redaktor (talk) 20:20, 17 November 2022 (UTC)
- line 110 to 130 Bawolff (talk) 20:46, 17 November 2022 (UTC)
- @Redaktor / @פוילישער, can you please do it?
- To test, see this page: https://yi.wikipedia.org/wiki/%D7%91%D7%90%D6%B7%D7%A0%D7%99%D7%A6%D7%A2%D7%A8:Amire80/left?uselang=en&useskin=vector
- Currently, it shows the first two images on the right and the last two images on the left. It's supposed to be the other way around. Amir E. Aharoni {{🌎🌍🌏}} 11:46, 12 December 2022 (UTC)
- I am barred from editing that page
- @Redaktor 2A01:6502:A56:5E68:794D:7667:A0F2:30E (talk) 13:41, 4 January 2023 (UTC)
- @Redaktor, if I understand correctly, you are the same person as @פוילישער, and פוילישער has administrator rights. With that account, you are supposed to be allowed to edit that page. Amir E. Aharoni {{🌎🌍🌏}} 14:49, 4 January 2023 (UTC)
- True, but on some wikis even those with administrator rights are blocked from editing certain pages
- It is quite frustrating! Redaktor (talk) 08:18, 5 January 2023 (UTC)
- @Redaktor / @פוילישער , this is quite strange. You are supposed to have a permission to edit it from an account that has administrator (sysop) rights. You should ask a separate question about this on Project:Support desk.
- I've used my global sysop permissions to make this change. If this is wrong in any way, please let me know, and I'll revert it. Amir E. Aharoni {{🌎🌍🌏}} 09:22, 5 January 2023 (UTC)
- Thank you. We shall see whether this works now Redaktor (talk) 09:30, 5 January 2023 (UTC)
- It does. Thanks! Kwamikagami (talk) 09:31, 5 January 2023 (UTC)
- That would only affect WP-yi. Shall I collect the other sites that have the same issue? I'm checking specifically 'frameless' images with 'left' and 'right' specified. The following are reversed:
- Farsi wikibooks, wikinews, wikiquote, wikisource & wikivoyage (but WP-fa and WK-fa are okay)
- Hebrew wikiquote
- Mazanderani WP-mzn (the only -mzn site)
- Punjabi WP-pnb (but WK is okay)
- Urdu WP and WB (but WK and WQ are okay)
- Yiddish WP (but WK and WS are okay)
- On the Kurdish sites, switching between Latin and Arabic script has no effect on placement if 'left' and 'right' are specified. But at least on WP-ku (I haven't checked the others), default frameless switches back and forth, but default thumb stays on the right. That strikes me as potentially problematic, as the orientation would only display well in the script it was designed for. (Note I'm not checking thumbs on other-language wikis, nor the default behaviour of frameless.)
- Kashmiri also has alt RTL and LTR scripts, but they're written on separate pages and linked, so placement presumably isn't a problem even though the default doesn't accommodate script direction. Ladino may be similar; I've only looked at it briefly.
- I'm connected to 750 wikis, and I believe I've checked all the WP, WK, WS, WQ, but probably not all of the WB, WN, WV or wikiversity. Certainly not the various country WM's, where I'm not connected to any that use RTL scripts. Kwamikagami (talk) 15:33, 21 September 2022 (UTC)
- Thanks. Can you please give a link to an example page in each of them? Amir E. Aharoni {{🌎🌍🌏}} 07:02, 22 September 2022 (UTC)
- I cannot reproduce it at q:he:User:Amire80/left, but maybe I'm misunderstanding the instructions. Amir E. Aharoni {{🌎🌍🌏}} 07:05, 22 September 2022 (UTC)
- Amire80, on your WQ-he test page, I see the top two images on the right, and the bottom two on the left, the opposite of where they're supposed to be. If I tack "?safemode=1" onto the URL, they swap places. But you speak Hebrew, so perhaps your local user language is set to Hebrew? Mine is set to English for all RTL wikis. But it is interesting that WQ is the only Hebrew wiki where this happens, so perhaps that will confirm what the problem is.
- For the list above, I previewed frameless images with 'left' and 'right' in them, mostly on my (blank) talk page. I didn't save anything, except early on as a test to be sure that the preview would reflect what would happen. There's some discussion on my talk on WP-yi about this, where User פוילישער first brought it to my attention (and on their talk).
- But if you want to see the kind of problem, on WP-mzn I made this edit with the maps set to 'left', then saw that they displayed on the right, so I "fixed" it with this edit, by changing 'left' to 'right' so that they would display on the left. But now, if I tack "?safemode=1" to the URL, they display on the right, which is correct but the opposite of what I intended. Kwamikagami (talk) 07:15, 22 September 2022 (UTC)
- Either I misunderstand something, or this problem is unique to your account. I see them on the right when it's frameless|right and I see them on the left when it's frameless|left. I see the same both logged in and logged out, and I see the same with and without uselang=en.
- Do you also experience this problem when you are logged out? Amir E. Aharoni {{🌎🌍🌏}} 07:28, 22 September 2022 (UTC)
- No, if I log out they display correctly, same as in safe mode.
- However, this is not something "unique" to my account. I've made a few tweeks, but they're all shared by other people (nothing I developed myself), and I haven't customized my WQ-he acct at all. And as I noted above, when I disable the single customization in my common.css, it makes no difference. There may be something buggy in a customization somewhere, but if so it's going to be more than just me who's affected. Kwamikagami (talk) 07:59, 22 September 2022 (UTC)
- @Amire80: I can reproduce both logged in and logged out:
- https://he.wikiquote.org/wiki/%D7%9E%D7%A9%D7%AA%D7%9E%D7%A9:Amire80/left?safemode=0&uselang=en with safemode off but interface langauge set to en: the first image appears on the right
- vs
- https://he.wikiquote.org/wiki/%D7%9E%D7%A9%D7%AA%D7%9E%D7%A9:Amire80/left?safemode=1&uselang=en
- safemode on, interface set to english: first image appears on the left. Bawolff (talk) 08:11, 22 September 2022 (UTC)
- Bawolff, just to confirm, what I see on those two links matches your description, and logging out makes no difference. Kwamikagami (talk) 08:49, 22 September 2022 (UTC)
- Thanks, I see it now, and I think I know the reason. I'll try to see what I can do—maybe I'll use my global sysop rights or contact local admins. Amir E. Aharoni {{🌎🌍🌏}} 09:03, 22 September 2022 (UTC)
- Status update:
- Hebrew wikiquote - fixed after notification from me on the talk page
- Mazanderani WP-mzn - I went bold, fixed it myself, and notified on the talk page
- Punjabi WP-pnb (but WK is okay) - I notified on the talk page
- Urdu WP - I notified on the talk page
- Urdu WB - I went bold, fixed it myself, and notified on the talk page
- Yiddish WP (but WK and WS are okay) - notified here above
- Persian (probably) still needs action.
- @Kwamikagami, can you please test? Amir E. Aharoni {{🌎🌍🌏}} 12:16, 12 December 2022 (UTC)
- Yes, everything you fixed displays correctly for me now:
- WQ-he: correct
- WP-mzn: correct
- WP-pnb: still broken
- WP-ur: still broken
- WB-ur: correct
- WP-yi: still broken
- That's for both 'frameless' and 'thumb', which haven't always been in sync. Kwamikagami (talk) 19:33, 12 December 2022 (UTC)
- Another update: The Persian projects are supposed to be fixed. Amir E. Aharoni {{🌎🌍🌏}} 22:56, 15 December 2022 (UTC)
- For me, Persian W-news, quote, source & voyage all appear to be fixed. Test frameless and thumbnails display to the left or right as instructed.
- Persian W-books is still broken: it works for frameless, but is reversed for thumbnails.
- WP-yi is reversed for both thumbs and frameless.
- WP-pnb and WP-ur are reversed for frameless; thumbs always display on the right, regardless of whether they're set for left or right. Kwamikagami (talk) 00:21, 16 December 2022 (UTC)
- I did a follow-up fix in Persian Wikibooks.
- If I understand correctly, all that's left are sites where I notified admins, but they haven't fixed it yet. Amir E. Aharoni {{🌎🌍🌏}} 11:38, 18 December 2022 (UTC)
- Yes, WB-fa now working properly. Thanks. That leaves our original WP-yi, plus pnb and Urdu. (Not counting a couple biscriptal sites, which have their own complications.) Kwamikagami (talk) 19:39, 18 December 2022 (UTC)
- Follow up: WP-yi now displaying properly. Pnb and ur left. Kwamikagami (talk) 09:25, 5 January 2023 (UTC)
Do you have a black and white format for your homepage?
I ask this-- because I assign students in my choral conducting class to explore this valuable site. Unfortunately, for a color-blind student-- your blue on green, makes it very difficult to read. 206.176.21.29 (talk) 20:41, 20 September 2022 (UTC)
HitCounters Extension Not Working
Hello everyone,
I have recently installed the Hitcounters extension and I am unable to see the counters in the footers of my pages and in the special page:popular pages. On the popular pages page, it does show a list of pages but instead of the number of visits it just says "⧼hitcounters-nviews⧽"
I am working with Mediawiki 1.34.1 and have tried multiple extension versions but am currently using REL1_31-v0.3.3.
I have also run the update.php in my maintenance directory.
Please let me know if you have run into the same or similar issue or have any advice for resolving. Thank you. MtnDewUser117 (talk) 21:08, 20 September 2022 (UTC)
- This sounds like a problem loading i18n files. Do you have any custom settings around localization cache?
- Does it help to remove the extension, load a few pages, then readd the extension? Bawolff (talk) 22:01, 20 September 2022 (UTC)
- Wow, so I commented out the extension and configs, loaded some pages like you said and then un-commented the extension and now the popular pages is working!
- Still don't see any values in the footer of the page but that may be related to some custom styling, not sure?
- Thank you so much!
- **Edit - When I remove the custom skin and use the default I can see the page views in the footer. Not sure how to get it working with the custom skin but at least I know it is there. MtnDewUser117 (talk) 20:30, 21 September 2022 (UTC)
My site name in google showing index of / help me to change this and also description showing other words
My site name in google showing index of / help me to change this and also description showing other words.I have installed media wiki with latest version. 203.115.68.201 (talk) 08:41, 21 September 2022 (UTC)
- Also http showing and not https i use cpanel and i set force https but not showing 203.115.68.201 (talk) 08:44, 21 September 2022 (UTC)
- Can you provide us with the url of your wiki? ☠MarkAHershberger☢(talk)☣ 15:27, 21 September 2022 (UTC)
- This is more a webserver question than a mediawiki question. If using apache you may need rewrite rules. Bawolff (talk) 21:00, 21 September 2022 (UTC)
Error in Search
Good Morning,
I have the following error and when I try to search my wiki and it returns the message of [YysUorC21fDMJvuUPNFSAAAAAEU] 2022-09-21 13:41:54: Fatal exception of type "Wikimedia\Rdbms\DBQueryError"
As I just started working with the wiki, I'm lost. Evandro Teixeira (talk) 13:43, 21 September 2022 (UTC)
- Can you access your php error logs? Is there anything in them?
- You don't say what version you're using. Is it freshly set up?
- Have you tried running update.php? ☠MarkAHershberger☢(talk)☣ 15:26, 21 September 2022 (UTC)
- Sorry, I'm new here.
- The versions:
- php 5.6.40
- perl 5.16.3
- mediawiki 1.26.2
- moon 5.1.4
- mysql 5.7.23
- This wiki was set up years ago, and some people passed without support, now it's fallen into my lap and I have no idea how to work with it. At first I want to correct this error and then migrate it, because where it is hosted is not legal.
- wikineo@wikineo.certi.org.br [~/public_html/maintenance]# php update.php
- MediaWiki 1.30.0 Updater
- Your composer.lock file is up to date with current dependencies!
- Going to run database updates for wikineo_mediawiki
- Depending on the size of your database this may take a while!
- Abort with control-c in the next five seconds (skip this countdown with --quick) ... 0
- Turning off Content Handler DB fields for this part of upgrade.
- ...have ipb_id field in ipblocks table.
- ...have ipb_expiry field in ipblocks table.
- ...already have interwiki table
- ...indexes seem up to 20031107 standards.
- ...have rc_type field in recentchanges table.
- ...index new_name_timestamp already set on recentchanges table.
- ...have user_real_name field in user table.
- ...querycache table already exists.
- ...objectcache table already exists.
- ...categorylinks table already exists.
- ...have pagelinks; skipping old links table updates
- ...il_from OK
- ...have rc_ip field in recentchanges table.
- ...index PRIMARY already set on image table.
- ...have rc_id field in recentchanges table.
- ...have rc_patrolled field in recentchanges table.
- ...logging table already exists.
- ...have user_token field in user table.
- ...have wl_notificationtimestamp field in watchlist table.
- ...watchlist talk page rows already present.
- ...user table does not contain user_emailauthenticationtimestamp field.
- ...page table already exists.
- ...have log_params field in logging table.
- ...logging table has correct log_title encoding.
- ...have ar_rev_id field in archive table.
- ...have page_len field in page table.
- ...revision table does not contain inverse_timestamp field.
- ...have rev_text_id field in revision table.
- ...have rev_deleted field in revision table.
- ...have img_width field in image table.
- ...have img_metadata field in image table.
- ...have user_email_token field in user table.
- ...have ar_text_id field in archive table.
- ...page_namespace is already a full int (int(11)).
- ...ar_namespace is already a full int (int(11)).
- ...rc_namespace is already a full int (int(11)).
- ...wl_namespace is already a full int (int(11)).
- ...qc_namespace is already a full int (int(11)).
- ...log_namespace is already a full int (int(11)).
- ...have img_media_type field in image table.
- ...already have pagelinks table.
- ...image table does not contain img_type field.
- ...already have unique user_name index.
- ...user_groups table exists and is in current format.
- ...have ss_total_pages field in site_stats table.
- ...user_newtalk table already exists.
- ...transcache table already exists.
- ...have iw_trans field in interwiki table.
- ...wl_notificationtimestamp is already nullable.
- ...index times already set on logging table.
- ...have ipb_range_start field in ipblocks table.
- ...no page_random rows needed to be set
- ...have user_registration field in user table.
- ...templatelinks table already exists
- ...externallinks table already exists.
- ...job table already exists.
- ...have ss_images field in site_stats table.
- ...langlinks table already exists.
- ...querycache_info table already exists.
- ...filearchive table already exists.
- ...have ipb_anon_only field in ipblocks table.
- ...index rc_ns_usertext already set on recentchanges table.
- ...index rc_user_text already set on recentchanges table.
- ...have user_newpass_time field in user table.
- ...redirect table already exists.
- ...querycachetwo table already exists.
- ...have ipb_enable_autoblock field in ipblocks table.
- ...index pl_namespace on table pagelinks includes field pl_from.
- ...index tl_namespace on table templatelinks includes field tl_from.
- ...index il_to on table imagelinks includes field il_from.
- ...have rc_old_len field in recentchanges table.
- ...have user_editcount field in user table.
- ...page_restrictions table already exists.
- ...have log_id field in logging table.
- ...have rev_parent_id field in revision table.
- ...have pr_id field in page_restrictions table.
- ...have rev_len field in revision table.
- ...have rc_deleted field in recentchanges table.
- ...have log_deleted field in logging table.
- ...have ar_deleted field in archive table.
- ...have ipb_deleted field in ipblocks table.
- ...have fa_deleted field in filearchive table.
- ...have ar_len field in archive table.
- ...have ipb_block_email field in ipblocks table.
- ...index cl_sortkey on table categorylinks includes field cl_from.
- ...have oi_metadata field in oldimage table.
- ...index usertext_timestamp already set on archive table.
- ...index img_usertext_timestamp already set on image table.
- ...index oi_usertext_timestamp already set on oldimage table.
- ...have ar_page_id field in archive table.
- ...have img_sha1 field in image table.
- ...protected_titles table already exists.
- ...have ipb_by_text field in ipblocks table.
- ...page_props table already exists.
- ...updatelog table already exists.
- ...category table already exists.
- ...category table already populated.
- ...have ar_parent_id field in archive table.
- ...have user_last_timestamp field in user_newtalk table.
- ...protected_titles table has correct pt_title encoding.
- ...have ss_active_users field in site_stats table.
- ...ss_active_users user count set...
- ...have ipb_allow_usertalk field in ipblocks table.
- ...change_tag table already exists.
- ...tag_summary table already exists.
- ...valid_tag table already exists.
- ...user_properties table already exists.
- ...log_search table already exists.
- ...have log_user_text field in logging table.
- ...l10n_cache table already exists.
- ...index change_tag_rc_tag already set on change_tag table.
- ...have rd_interwiki field in redirect table.
- ...transcache tc_time already converted.
- ...*_mime_minor fields are already long enough.
- ...iwlinks table already exists.
- ...index iwl_prefix_title_from already set on iwlinks table.
- ...have ul_value field in updatelog table.
- ...have iw_api field in interwiki table.
- ...iwl_prefix key doesn't exist.
- ...have cl_collation field in categorylinks table.
- ...categorylinks up-to-date.
- ...module_deps table already exists.
- ...ar_page_revid key doesn't exist.
- ...index ar_revid already set on archive table.
- ...ll_lang is up-to-date.
- ...user_last_timestamp is already nullable.
- ...index user_email already set on user table.
- ...up_property in table user_properties already modified by patch patch-up_property.sql.
- ...uploadstash table already exists.
- ...user_former_groups table already exists.
- ...index type_action already set on logging table.
- ...have rev_sha1 field in revision table.
- ...batch conversion of user_options: nothing to migrate. done.
- ...user table does not contain user_options field.
- ...have ar_sha1 field in archive table.
- ...index page_redirect_namespace_len already set on page table.
- ...have us_chunk_inx field in uploadstash table.
- ...have job_timestamp field in job table.
- ...index page_user_timestamp already set on revision table.
- ...have ipb_parent_block_id field in ipblocks table.
- ...index ipb_parent_block_id already set on ipblocks table.
- ...category table does not contain cat_hidden field.
- ...have rev_content_format field in revision table.
- ...have rev_content_model field in revision table.
- ...have ar_content_format field in archive table.
- ...have ar_content_model field in archive table.
- ...have page_content_model field in page table.
- Content Handler DB fields should be usable now.
- ...site_stats table does not contain ss_admins field.
- ...recentchanges table does not contain rc_moved_to_title field.
- ...sites table already exists.
- ...have fa_sha1 field in filearchive table.
- ...have job_token field in job table.
- ...have job_attempts field in job table.
- ...have us_props field in uploadstash table.
- ...ug_group in table user_groups already modified by patch patch-ug_group-length-increase-255.sql.
- ...ufg_group in table user_former_groups already modified by patch patch-ufg_group-length-increase-255.sql.
- ...index pp_propname_page already set on page_props table.
- ...index img_media_mime already set on image table.
- ...iwl_prefix_title_from index is already non-UNIQUE.
- ...index iwl_prefix_from_title already set on iwlinks table.
- ...have ar_id field in archive table.
- ...have el_id field in externallinks table.
- ...have rc_source field in recentchanges table.
- ...index log_user_text_type_time already set on logging table.
- ...index log_user_text_time already set on logging table.
- ...have page_links_updated field in page table.
- ...have user_password_expires field in user table.
- ...have pp_sortkey field in page_props table.
- ...recentchanges table does not contain rc_cur_time field.
- ...index wl_user_notificationtimestamp already set on watchlist table.
- ...have page_lang field in page table.
- ...have pl_from_namespace field in pagelinks table.
- ...have tl_from_namespace field in templatelinks table.
- ...have il_from_namespace field in imagelinks table.
- ...img_major_mime in table image already modified by patch patch-img_major_mime-chemical.sql.
- ...oi_major_mime in table oldimage already modified by patch patch-oi_major_mime-chemical.sql.
- ...fa_major_mime in table filearchive already modified by patch patch-fa_major_mime-chemical.sql.
- ...comment fields are up to date...hitcounter doesn't exist.
- ...site_stats table does not contain ss_total_views field.
- ...page table does not contain page_counter field.
- ...msg_resource_links doesn't exist.
- ...msg_resource doesn't exist.
- ...bot_passwords table already exists.
- ...have wl_id field in watchlist table.
- ...cl_collation key doesn't exist.
- ...index cl_collation_ext already set on categorylinks table.
- ...collations up-to-date.
- ...index rc_name_type_patrolled_timestamp already set on recentchanges table.
- ...rev_page_id index already non-unique.
- ...pl_namespace, tl_namespace, il_to indices are already non-UNIQUE.
- ...have ct_id field in change_tag table.
- ...have ts_id field in tag_summary table.
- ...rc_ip in table recentchanges already modified by patch patch-rc_ip_modify.sql.
- ...index usertext_timestamp already set on archive table.
- ...have el_index_60 field in externallinks table.
- ...ug_user_group key doesn't exist.
- ...have ug_expiry field in user_groups table.
- ...index img_user_timestamp already set on image table.
- ...img_media_type in table image already modified by patch patch-add-3d.sql.
- ...ip_changes table already exists.
- ...index PRIMARY already set on categorylinks table.
- ...index PRIMARY already set on templatelinks table.
- ...index PRIMARY already set on pagelinks table.
- ...index PRIMARY already set on text table.
- ...index PRIMARY already set on imagelinks table.
- ...index PRIMARY already set on iwlinks table.
- ...index PRIMARY already set on langlinks table.
- ...index PRIMARY already set on log_search table.
- ...index PRIMARY already set on module_deps table.
- ...index PRIMARY already set on objectcache table.
- ...index PRIMARY already set on querycache_info table.
- ...index PRIMARY already set on site_stats table.
- ...index PRIMARY already set on transcache table.
- ...index PRIMARY already set on user_former_groups table.
- ...index PRIMARY already set on user_properties table.
- ...comment table already exists.
- ...index PRIMARY already set on l10n_cache table.
- ...bot_passwords.bp_user is already unsigned int.
- ...change_tag.ct_log_id is already unsigned int.
- ...change_tag.ct_rev_id is already unsigned int.
- ...page_restrictions.pr_user is already unsigned int.
- ...tag_summary.ts_log_id is already unsigned int.
- ...tag_summary.ts_rev_id is already unsigned int.
- ...user_newtalk.user_id is already unsigned int.
- ...user_properties.up_user is already unsigned int.
- ...oathauth_users table already exists.
- ...oathauth_users table does not contain secret_reset field.
- ...site_stats is populated...done.
- ...Update 'populate rev_len and ar_len' already logged as completed.
- ...Update 'populate rev_sha1' already logged as completed.
- ...img_sha1 column of image table already populated.
- ...protocol-relative URLs in externallinks table already fixed.
- ...fa_sha1 column of filearchive table already populated.
- ...*_from_namespace column of backlink tables already populated.
- ...Update 'FixDefaultJsonContentPages' already logged as completed.
- Adding empty categories with description pages...
- --mode=both --begin=Documentos_do_grupo
- Removing empty categories without description pages...
- --mode=remove --begin=Treinamentos
- Category cleanup complete.
- Populating page_props.pp_sortkey...
- Updated 0 rows
- Populating page_props.pp_sortkey complete.
- Copying IP revisions to ip_changes, from rev_id 0 to rev_id 11924
- ...checking 42 revisions for IP edits that need copying, between rev_ids 201 and 401
- ...checking 43 revisions for IP edits that need copying, between rev_ids 402 and 602
- Attempted to insert 85 IP revisions, 85 actually done.
- Set the local repo temp zone container to be private.
- Purging caches...done. Evandro Teixeira (talk) 16:47, 21 September 2022 (UTC)
- Please set $wgShowExceptionDetails=true; in LocalSettings.php which should make the error more detailed. Bawolff (talk) 19:14, 21 September 2022 (UTC)
- This a new result:
- wikineo@wikineo.certi.org.br [~/mediawiki-1.26.2/maintenance]# php update.php
- MediaWiki 1.26.2 Updater
- Your composer.lock file is up to date with current dependencies!
- Going to run database updates for wikineo_mediawiki
- Depending on the size of your database this may take a while!
- Abort with control-c in the next five seconds (skip this countdown with --quick) ... 0
- Turning off Content Handler DB fields for this part of upgrade.
- ...have ipb_id field in ipblocks table.
- ...have ipb_expiry field in ipblocks table.
- ...already have interwiki table
- ...indexes seem up to 20031107 standards.
- ...have rc_type field in recentchanges table.
- ...index new_name_timestamp already set on recentchanges table.
- ...have user_real_name field in user table.
- ...querycache table already exists.
- ...objectcache table already exists.
- ...categorylinks table already exists.
- ...have pagelinks; skipping old links table updates
- ...il_from OK
- ...have rc_ip field in recentchanges table.
- ...index PRIMARY already set on image table.
- ...have rc_id field in recentchanges table.
- ...have rc_patrolled field in recentchanges table.
- ...logging table already exists.
- ...have user_token field in user table.
- ...have wl_notificationtimestamp field in watchlist table.
- ...watchlist talk page rows already present.
- ...user table does not contain user_emailauthenticationtimestamp field.
- ...page table already exists.
- ...have log_params field in logging table.
- ...logging table has correct log_title encoding.
- ...have ar_rev_id field in archive table.
- ...have page_len field in page table.
- ...revision table does not contain inverse_timestamp field.
- ...have rev_text_id field in revision table.
- ...have rev_deleted field in revision table.
- ...have img_width field in image table.
- ...have img_metadata field in image table.
- ...have user_email_token field in user table.
- ...have ar_text_id field in archive table.
- ...page_namespace is already a full int (int(11)).
- ...ar_namespace is already a full int (int(11)).
- ...rc_namespace is already a full int (int(11)).
- ...wl_namespace is already a full int (int(11)).
- ...qc_namespace is already a full int (int(11)).
- ...log_namespace is already a full int (int(11)).
- ...have img_media_type field in image table.
- ...already have pagelinks table.
- ...image table does not contain img_type field.
- ...already have unique user_name index.
- ...user_groups table exists and is in current format.
- ...have ss_total_pages field in site_stats table.
- ...user_newtalk table already exists.
- ...transcache table already exists.
- ...have iw_trans field in interwiki table.
- ...wl_notificationtimestamp is already nullable.
- ...index times already set on logging table.
- ...have ipb_range_start field in ipblocks table.
- ...no page_random rows needed to be set
- ...have user_registration field in user table.
- ...templatelinks table already exists
- ...externallinks table already exists.
- ...job table already exists.
- ...have ss_images field in site_stats table.
- ...langlinks table already exists.
- ...querycache_info table already exists.
- ...filearchive table already exists.
- ...have ipb_anon_only field in ipblocks table.
- ...index rc_ns_usertext already set on recentchanges table.
- ...index rc_user_text already set on recentchanges table.
- ...have user_newpass_time field in user table.
- ...redirect table already exists.
- ...querycachetwo table already exists.
- ...have ipb_enable_autoblock field in ipblocks table.
- ...index pl_namespace on table pagelinks includes field pl_from.
- ...index tl_namespace on table templatelinks includes field tl_from.
- ...index il_to on table imagelinks includes field il_from.
- ...have rc_old_len field in recentchanges table.
- ...have user_editcount field in user table.
- ...page_restrictions table already exists.
- ...have log_id field in logging table.
- ...have rev_parent_id field in revision table.
- ...have pr_id field in page_restrictions table.
- ...have rev_len field in revision table.
- ...have rc_deleted field in recentchanges table.
- ...have log_deleted field in logging table.
- ...have ar_deleted field in archive table.
- ...have ipb_deleted field in ipblocks table.
- ...have fa_deleted field in filearchive table.
- ...have ar_len field in archive table.
- ...have ipb_block_email field in ipblocks table.
- ...index cl_sortkey on table categorylinks includes field cl_from.
- ...have oi_metadata field in oldimage table.
- ...index usertext_timestamp already set on archive table.
- ...index img_usertext_timestamp already set on image table.
- ...index oi_usertext_timestamp already set on oldimage table.
- ...have ar_page_id field in archive table.
- ...have img_sha1 field in image table.
- ...protected_titles table already exists.
- ...have ipb_by_text field in ipblocks table.
- ...page_props table already exists.
- ...updatelog table already exists.
- ...category table already exists.
- ...category table already populated.
- ...have ar_parent_id field in archive table.
- ...have user_last_timestamp field in user_newtalk table.
- ...protected_titles table has correct pt_title encoding.
- ...have ss_active_users field in site_stats table.
- ...ss_active_users user count set...
- ...have ipb_allow_usertalk field in ipblocks table.
- Making pl_namespace, tl_namespace and il_to indices UNIQUE ...done.
- ...change_tag table already exists.
- ...tag_summary table already exists.
- ...valid_tag table already exists.
- ...user_properties table already exists.
- ...log_search table already exists.
- ...have log_user_text field in logging table.
- ...l10n_cache table already exists.
- Adding index ls_field_val to table log_search ...done.
- ...index change_tag_rc_tag already set on change_tag table.
- ...have rd_interwiki field in redirect table.
- ...transcache tc_time already converted.
- ...*_mime_minor fields are already long enough.
- ...iwlinks table already exists.
- ...index iwl_prefix_title_from already set on iwlinks table.
- ...have ul_value field in updatelog table.
- ...have iw_api field in interwiki table.
- ...iwl_prefix key doesn't exist.
- ...have cl_collation field in categorylinks table.
- ...categorylinks up-to-date.
- ...collations up-to-date.
- Creating msg_resource table ...done.
- ...module_deps table already exists.
- ...ar_page_revid key doesn't exist.
- ...index ar_revid already set on archive table.
- ...ll_lang is up-to-date.
- ...user_last_timestamp is already nullable.
- ...index user_email already set on user table.
- ...up_property in table user_properties already modified by patch patch-up_property.sql.
- ...uploadstash table already exists.
- ...user_former_groups table already exists.
- ...index type_action already set on logging table.
- ...have rev_sha1 field in revision table.
- ...batch conversion of user_options: nothing to migrate. done.
- ...user table does not contain user_options field.
- ...have ar_sha1 field in archive table.
- ...index page_redirect_namespace_len already set on page table.
- ...have us_chunk_inx field in uploadstash table.
- ...have job_timestamp field in job table.
- ...index page_user_timestamp already set on revision table.
- ...have ipb_parent_block_id field in ipblocks table.
- ...index ipb_parent_block_id already set on ipblocks table.
- ...category table does not contain cat_hidden field.
- ...have rev_content_format field in revision table.
- ...have rev_content_model field in revision table.
- ...have ar_content_format field in archive table.
- ...have ar_content_model field in archive table.
- ...have page_content_model field in page table.
- Content Handler DB fields should be usable now.
- ...site_stats table does not contain ss_admins field.
- ...recentchanges table does not contain rc_moved_to_title field.
- ...sites table already exists.
- ...have fa_sha1 field in filearchive table.
- ...have job_token field in job table.
- ...have job_attempts field in job table.
- ...have us_props field in uploadstash table.
- ...ug_group in table user_groups already modified by patch patch-ug_group-length-increase-255.sql.
- ...ufg_group in table user_former_groups already modified by patch patch-ufg_group-length-increase-255.sql.
- ...index pp_propname_page already set on page_props table.
- ...index img_media_mime already set on image table.
- ...iwl_prefix_title_from index is already non-UNIQUE.
- ...index iwl_prefix_from_title already set on iwlinks table.
- ...have ar_id field in archive table.
- ...have el_id field in externallinks table.
- ...have rc_source field in recentchanges table.
- ...index log_user_text_type_time already set on logging table.
- ...index log_user_text_time already set on logging table.
- ...have page_links_updated field in page table.
- ...have user_password_expires field in user table.
- ...have pp_sortkey field in page_props table.
- ...recentchanges table does not contain rc_cur_time field.
- ...index wl_user_notificationtimestamp already set on watchlist table.
- ...have page_lang field in page table.
- ...have pl_from_namespace field in pagelinks table.
- ...have tl_from_namespace field in templatelinks table.
- ...have il_from_namespace field in imagelinks table.
- ...img_major_mime in table image already modified by patch patch-img_major_mime-chemical.sql.
- ...oi_major_mime in table oldimage already modified by patch patch-oi_major_mime-chemical.sql.
- ...fa_major_mime in table filearchive already modified by patch patch-fa_major_mime-chemical.sql.
- ...user_id is already unsigned int.
- ...rc_comment in table recentchanges already modified by patch patch-editsummary-length.sql.
- ...hitcounter doesn't exist.
- ...site_stats table does not contain ss_total_views field.
- ...page table does not contain page_counter field.
- ...site_stats is populated...done.
- ...Update 'populate rev_len and ar_len' already logged as completed.
- ...Update 'populate rev_sha1' already logged as completed.
- ...img_sha1 column of image table already populated.
- ...protocol-relative URLs in externallinks table already fixed.
- ...fa_sha1 column of filearchive table already populated.
- ...*_from_namespace column of backlink tables already populated.
- ...Update 'FixDefaultJsonContentPages' already logged as completed.
- Set the local repo temp zone container to be private.
- Purging caches...done. Evandro Teixeira (talk) 20:20, 21 September 2022 (UTC)
- I mean, what is the error message when searching after changing that config. Bawolff (talk) 20:59, 21 September 2022 (UTC)
- Good Morning,
- Sorry I didn't understand.
- There was an error querying the database. This may indicate a bug in the software.[YyxF17xpMzyZqod5DbH-TgAAAUk] 2022-09-22 11:24:08: Fatal exception of type "Wikimedia\Rdbms\DBQueryError" Evandro Teixeira (talk) 11:25, 22 September 2022 (UTC)
- You may be able to find the stack trace in your php error log by looking for the YyxF17xpMzyZqod5DbH-TgAAAUk marker. ☠MarkAHershberger☢(talk)☣ 20:40, 22 September 2022 (UTC)
- Please provide a stacktrace of that error. See Manual:How to debug Malyacko (talk) 14:23, 22 September 2022 (UTC)
How do I change my wiki logo?
Simple question really. As usual the instructions provided are absolutely useless and out-of-date. 31.205.38.26 (talk) 16:45, 21 September 2022 (UTC)
- Please see "Post a new question" in the sidebar, and link to those instructions so someone could in theory improve them. Thanks. Malyacko (talk) 17:20, 21 September 2022 (UTC)
- Manual:$wgLogos. If something is incorrect tell us what. Bawolff (talk) 19:12, 21 September 2022 (UTC)
- To be fair, the logo situation is a lot more complicated than it used to be, and that page isn't very well written. The simplest answer might be to start off with just:
- Jonathan3 (talk) 22:19, 21 September 2022 (UTC)
$wgLogos = [ '1x' => "path/to/1x_version.png" ];
- I've tried doing this but nothing shows up where the logo's supposed to be. 31.205.38.26 (talk) 23:10, 21 September 2022 (UTC)
- Well can you paste exactly what you wrote for $wgLogos, and also link to your website?
- Nothing showing up usually means you got the url wrong. Bawolff (talk) 01:03, 22 September 2022 (UTC)
- Also it links to https://www.mediawiki.org/wiki/Manual:FAQ#How_do_I_change_the_logo? which refers to the unsupported Manual:$wgLogo.
- I suppose we need to know what version of MediaWiki is being used here. Jonathan3 (talk) 22:21, 21 September 2022 (UTC)
- Here's an idea. Upload the image to your wiki as a file (at Special:Upload) instead of uploading it to your server anywhere else. Then you know it will load and you will be sure of the URL. Then use that URL.
- What version of MediaWiki are you using? Jonathan3 (talk) 21:14, 22 September 2022 (UTC)
No " | character" in war infoboxes.
So i'm creating a war infobox but i noticed that theres no | character that seperates the site of conflict. which causes names and everything to be overcrowded. Do i not have a required extension or did i do something wrong? cheers. Golferjoe (talk) 22:42, 21 September 2022 (UTC)
- Your question seems related to a specific wiki rather than MediaWiki itself. Sometimes people end up here because they've followed the help link on a wiki.
- Try to find a place on the wiki you came from to ask for help. ☠MarkAHershberger☢(talk)☣ 20:56, 22 September 2022 (UTC)
MediaWiki not working after running update.php two times
I ran update.php for a extension after installing a extension that needed update.php
the extension that i was installing was Extension:Echo
MediaWiki internal error.
Original exception: [1b1a4d983a57c28d90a37107] /wiki/index.php/User:Lol TypeError: Argument 1 passed to MediaWiki\Extension\Notifications\Hooks::onResourceLoaderRegisterModules() must be an instance of MediaWiki\ResourceLoader\ResourceLoader, instance of ResourceLoader given, called in /var/www/html/wiki/includes/HookContainer/HookContainer.php on line 338
Backtrace:
from /var/www/html/wiki/extensions/Echo/includes/Hooks.php(186)
#0 /var/www/html/wiki/includes/HookContainer/HookContainer.php(338): MediaWiki\Extension\Notifications\Hooks::onResourceLoaderRegisterModules()
#1 /var/www/html/wiki/includes/HookContainer/HookContainer.php(137): MediaWiki\HookContainer\HookContainer->callLegacyHook()
#2 /var/www/html/wiki/includes/resourceloader/HookRunner.php(48): MediaWiki\HookContainer\HookContainer->run()
#3 /var/www/html/wiki/includes/ServiceWiring.php(1413): MediaWiki\ResourceLoader\HookRunner->onResourceLoaderRegisterModules()
#4 /var/www/html/wiki/vendor/wikimedia/services/src/ServiceContainer.php(447): Wikimedia\Services\ServiceContainer::{closure}()
#5 /var/www/html/wiki/vendor/wikimedia/services/src/ServiceContainer.php(416): Wikimedia\Services\ServiceContainer->createService()
#6 /var/www/html/wiki/includes/MediaWikiServices.php(294): Wikimedia\Services\ServiceContainer->getService()
#7 /var/www/html/wiki/includes/MediaWikiServices.php(1486): MediaWiki\MediaWikiServices->getService()
#8 /var/www/html/wiki/includes/OutputPage.php(3358): MediaWiki\MediaWikiServices->getResourceLoader()
#9 /var/www/html/wiki/includes/OutputPage.php(3135): OutputPage->getResourceLoader()
#10 /var/www/html/wiki/includes/OutputPage.php(3178): OutputPage->getRlClientContext()
#11 /var/www/html/wiki/includes/OutputPage.php(3269): OutputPage->getRlClient()
#12 /var/www/html/wiki/includes/skins/SkinMustache.php(63): OutputPage->headElement()
#13 /var/www/html/wiki/skins/Vector/includes/SkinVector.php(455): SkinMustache->generateHTML()
#14 /var/www/html/wiki/includes/skins/SkinTemplate.php(150): Vector\SkinVector->generateHTML()
#15 /var/www/html/wiki/includes/OutputPage.php(2807): SkinTemplate->outputPage()
#16 /var/www/html/wiki/includes/MediaWiki.php(926): OutputPage->output()
#17 /var/www/html/wiki/includes/MediaWiki.php(939): MediaWiki::{closure}()
#18 /var/www/html/wiki/includes/MediaWiki.php(563): MediaWiki->main()
#19 /var/www/html/wiki/index.php(53): MediaWiki->run()
#20 /var/www/html/wiki/index.php(46): wfIndexMain()
#21 {main}
Exception caught inside exception handler: [1b1a4d983a57c28d90a37107] /wiki/index.php/User:Lol TypeError: Argument 1 passed to MediaWiki\Extension\Notifications\Hooks::onResourceLoaderRegisterModules() must be an instance of MediaWiki\ResourceLoader\ResourceLoader, instance of ResourceLoader given, called in /var/www/html/wiki/includes/HookContainer/HookContainer.php on line 338
Backtrace:
from /var/www/html/wiki/extensions/Echo/includes/Hooks.php(186)
#0 /var/www/html/wiki/includes/HookContainer/HookContainer.php(338): MediaWiki\Extension\Notifications\Hooks::onResourceLoaderRegisterModules()
#1 /var/www/html/wiki/includes/HookContainer/HookContainer.php(137): MediaWiki\HookContainer\HookContainer->callLegacyHook()
#2 /var/www/html/wiki/includes/resourceloader/HookRunner.php(48): MediaWiki\HookContainer\HookContainer->run()
#3 /var/www/html/wiki/includes/ServiceWiring.php(1413): MediaWiki\ResourceLoader\HookRunner->onResourceLoaderRegisterModules()
#4 /var/www/html/wiki/vendor/wikimedia/services/src/ServiceContainer.php(447): Wikimedia\Services\ServiceContainer::{closure}()
#5 /var/www/html/wiki/vendor/wikimedia/services/src/ServiceContainer.php(416): Wikimedia\Services\ServiceContainer->createService()
#6 /var/www/html/wiki/includes/MediaWikiServices.php(294): Wikimedia\Services\ServiceContainer->getService()
#7 /var/www/html/wiki/includes/MediaWikiServices.php(1486): MediaWiki\MediaWikiServices->getService()
#8 /var/www/html/wiki/includes/OutputPage.php(3358): MediaWiki\MediaWikiServices->getResourceLoader()
#9 /var/www/html/wiki/includes/OutputPage.php(3135): OutputPage->getResourceLoader()
#10 /var/www/html/wiki/includes/OutputPage.php(3178): OutputPage->getRlClientContext()
#11 /var/www/html/wiki/includes/OutputPage.php(3269): OutputPage->getRlClient()
#12 /var/www/html/wiki/includes/skins/SkinMustache.php(63): OutputPage->headElement()
#13 /var/www/html/wiki/skins/Vector/includes/SkinVector.php(455): SkinMustache->generateHTML()
#14 /var/www/html/wiki/includes/skins/SkinTemplate.php(150): Vector\SkinVector->generateHTML()
#15 /var/www/html/wiki/includes/OutputPage.php(2807): SkinTemplate->outputPage()
#16 /var/www/html/wiki/includes/exception/MWExceptionRenderer.php(157): OutputPage->output()
#17 /var/www/html/wiki/includes/exception/MWExceptionRenderer.php(76): MWExceptionRenderer::reportHTML()
#18 /var/www/html/wiki/includes/exception/MWExceptionHandler.php(107): MWExceptionRenderer::output()
#19 /var/www/html/wiki/includes/exception/MWExceptionHandler.php(202): MWExceptionHandler::report()
#20 /var/www/html/wiki/includes/MediaWiki.php(585): MWExceptionHandler::handleException()
#21 /var/www/html/wiki/index.php(53): MediaWiki->run()
#22 /var/www/html/wiki/index.php(46): wfIndexMain()
#23 {main} Whatthedggdgdgd (talk) 13:40, 22 September 2022 (UTC)
- Make sure you have the correct version of Echo for your version of mediawiki. Bawolff (talk) 14:04, 22 September 2022 (UTC)
- I used the latest version 1.38 Whatthedggdgdgd (talk) 11:58, 23 September 2022 (UTC)
download a page?
I'm trying to download a table I've created in our wiki. It's not huge -- I could re-type the 20 or so rows, or paste cell contents, but I'd like to capture the current table, and take it offline. Is there a way other than print it and scrape it?
Version details:
Product | Version |
---|---|
MediaWiki | 1.35.7 |
PHP | 7.4.30 (fpm-fcgi) |
MariaDB | 10.3.34-MariaDB-0+deb10u1-log |
BHPphil (talk) 16:43, 22 September 2022 (UTC)
- Do you mean you want the HTML version of a wikitext table? Jonathan3 (talk) 17:27, 22 September 2022 (UTC)
- That would be fine. We want to give it to something like Excel or Google Sheets, turn it into a spreadsheet. BHPphil (talk) 21:12, 23 September 2022 (UTC)
- I searched for "import html into excel" and as it happens the first page talks about importing a table from Wikipedia! https://syntaxbytetutorials.com/excel-import-html-table/ Jonathan3 (talk) 00:58, 24 September 2022 (UTC)
- OK, that looks promising. I tried to log into our wiki, now getting this. I'll start a new thread. I don't see any answers already logged on this error.
- [2c54cfe70897692dd7533069] 2022-10-01 00:00:18: Fatal exception of type MWException BHPphil (talk) 00:03, 1 October 2022 (UTC)
- Yes start a new thread. You'll get asked to turn on debugging to get a better error :-) Jonathan3 (talk) 14:10, 1 October 2022 (UTC)
Moving MediaWiki FROM root folder to sub
Hello!
I was searching for information on how to remove "index.php/" from my URLs and stumbled upon this article Manual:Short URL, where I learned that it's bad practice to have your wiki installed in the root folder. My site/domain is only a wiki so it's ok from that point of view but apparently there are some bugs/server load related to having the installation in root as well, so I thought that maybe I should try to move it.
I have a shared hosting provider who did the MediaWiki install for me automatically (in root), so when viewing the directories in FTP the current path is "/domain.com/public_html" and I wanted to create a sub "/domain.com/public_html/w" to put the installation in instead. Then try to follow the manual for short URLs to do a virtual redirect to "/wiki", as I believe this to be best practice.
So I simply tried to create a sub through FTP called "/w", and moving all installation files there (including LocalSettings.php with $wgScriptPath = "/w";) but when visiting "domain.com" I am shown a "Forbidden" page. When visiting "domain.com/w" everything is fine.
The instructions in Manual Short URL is for changing directories from "/wiki" to "/w" and then I suppose that the infrastructure to do the redirect from root to a sub is already present, which it isn't in my case. So how do I make my website "get" that it should be looking in a subdirectory to view my content? Is this a change made through my hosting provider or can I address it myself through FTP/SSH?
Thanks in advance!
Best regards
EDIT: My hosting provider is running Unix/PHP8.1/Apache 2.4 and installed MediaWiki 1.34 for me, which I successfully updated to 1.37 myself. Klaugust (talk) 21:18, 22 September 2022 (UTC)
- I'm answering myself as I found something of a solution to my problem.
- I found this thread https://stackoverflow.com/questions/8860655/mediawiki-subdirectory-installation and modified Zack's answer from Jan 15, 2012 at 5:29 and created a .htaccess file with the following contents and placed it in root:
RewriteEngine on
RewriteCond %{REQUEST_URI} ^/$
RewriteRule ^.*$ https://www.domain.com/w/
- and now I am able to access my wiki just typing domain.com in the web browser.
- Now I will try the instructions in Manual:Short URL to get rid of index.php in my URLs. Please tell me if the solution above is bad practice in any way. Klaugust (talk) 21:55, 22 September 2022 (UTC)
- As I now am an increment smarter than I was an hour ago I am glad to announce that anyone trying this should forget my previous entries. The solution was right infront of me the whole time. Just follow the steps in the https://shorturls.redwerks.org/-tool (which is referred to in the Manual:Short URL).
- It will generate the .htaccess file that you need to do both the redirect from root to "physical" subfolder and then to the virtual short-URL-folder.
- So just follow the instructions on that page by the letter.
- If noone objects, I consider this topic answered. Klaugust (talk) 22:08, 22 September 2022 (UTC)
- It's good you found an answer - but I always feel the need to say that there isn't any really good reason not to have example.com/pagename short URLs :-) I've done it for over 15 years with no problems. Jonathan3 (talk) 22:47, 22 September 2022 (UTC)
- Yeah, some people dont like things in the root folder, but in my opinion the downside is really over blown. Bawolff (talk) 00:27, 23 September 2022 (UTC)
MediaWiki runtime error:: No such service: HookContainer
I have installed the very latest mediawiki 1.38.2 and I am running PHP version 8.0.13 under RedHat Linux 9. When I try to run MediaWiki on any brower AND when I try to run php update.php in the /maintenence directory, I get the following error.
PHP Fatal error: Uncaught Wikimedia\Services\NoSuchServiceException: No such service: HookContainer in /export/mediawiki-1.38.2/vendor/wikimedia/services/src/ServiceContainer.php:468
Stack trace:
#0 /export/mediawiki-1.38.2/vendor/wikimedia/services/src/ServiceContainer.php(416): Wikimedia\Services\ServiceContainer->createService()
#1 /export/mediawiki-1.38.2/includes/MediaWikiServices.php(294): Wikimedia\Services\ServiceContainer->getService()
#2 /export/mediawiki-1.38.2/includes/MediaWikiServices.php(1024): MediaWiki\MediaWikiServices->getService()
#3 /export/mediawiki-1.38.2/includes/MediaWikiServices.php(282): MediaWiki\MediaWikiServices->getHookContainer()
#4 /export/mediawiki-1.38.2/includes/exception/MWExceptionHandler.php(130): MediaWiki\MediaWikiServices::getInstance()
#5 /export/mediawiki-1.38.2/includes/exception/MWExceptionHandler.php(201): MWExceptionHandler::rollbackPrimaryChangesAndLog()
#6 /export/mediawiki-1.38.2/includes/exception/MWExceptionHandler.php(170): MWExceptionHandler::handleException()
#7 [internal function]: MWExceptionHandler::handleUncaughtException()
#8 {main}
thrown in /export/mediawiki-1.38.2/vendor/wikimedia/services/src/ServiceContainer.php on line 468
PLEASE HELP. Ewaszkow (talk) 16:22, 23 September 2022 (UTC)
- Can you enable the mediawiki debug log? (See manual:How to debug) Bawolff (talk) 04:17, 24 September 2022 (UTC)
- YES... all errors are ON.
- I added the following to /etc/php.ini and LocalSettings.php
- ini_set( 'display_startup_errors' , 1 );
- ini_set( 'display_errors, 1 );
- error_reporting ( -1 );
- The same errors I pasted above are showing up in my console window as well as in the web browser when I try to access my wiki.
- What specifically should I be looking for? Another log file somewhere? Ewaszkow (talk) 21:06, 25 September 2022 (UTC)
- I mean the part about $wgDebugLogFile https://www.mediawiki.org/wiki/Manual:How_to_debug#Setting_up_a_debug_log_file
- I suspect there are two errors happening here, and the other error might be more helpful Bawolff (talk) 06:28, 26 September 2022 (UTC)
- I did find the error log file and it contains the very same error I have pasted above.
- I don't know much about the /vendor/wikimedia/services / ServiceContainer.php and HookContainers.. is there a way I can reinstall this? Can this be installed individually or is this part of the core mediawiki package? Ewaszkow (talk) 21:16, 25 September 2022 (UTC)
- You can reinstall anything in the vendor directory by running
composer update
. You can also just reinstall mediawiki (follow the instructions for upgrading, just for same version). - That said i suspect that the vendor dependency is not the problem. If you have a mix of different versions of mediawiki, that might lead to something like this. Bawolff (talk) 06:31, 26 September 2022 (UTC)
MySQL binlog files filling up rapidly (sometimes)
Ubuntu 20.04, Apache 2.4, PHP 7.4.3, MySQL 8.0 & MediaWiki 1.35.7
Howdy,
usually the binlogs match (roughly) with the activities shown in the recent changes page. Sometimes within the last days I encountered a mysterious phenomenon; the binlog grows rapidly while there is only few activity in the wiki for some hours.
Example:
-rw-r----- 1 mysql mysql 3697808 Sep 22 01:25 mysql-bin.001100
-rw-r----- 1 mysql mysql 157288660 Sep 22 18:53 mysql-bin.001101
-rw-r----- 1 mysql mysql 157372133 Sep 22 20:50 mysql-bin.001102
-rw-r----- 1 mysql mysql 157311099 Sep 22 21:25 mysql-bin.001103
-rw-r----- 1 mysql mysql 157388609 Sep 22 21:50 mysql-bin.001104
-rw-r----- 1 mysql mysql 157291160 Sep 22 22:07 mysql-bin.001105
-rw-r----- 1 mysql mysql 157367584 Sep 22 22:34 mysql-bin.001106
-rw-r----- 1 mysql mysql 157343097 Sep 22 22:42 mysql-bin.001107
-rw-r----- 1 mysql mysql 157383979 Sep 22 22:50 mysql-bin.001108
-rw-r----- 1 mysql mysql 157354101 Sep 22 22:57 mysql-bin.001109
-rw-r----- 1 mysql mysql 157420107 Sep 22 23:17 mysql-bin.001110
-rw-r----- 1 mysql mysql 157487073 Sep 22 23:37 mysql-bin.001111
-rw-r----- 1 mysql mysql 157536460 Sep 22 23:55 mysql-bin.001112
-rw-r----- 1 mysql mysql 130376490 Sep 23 00:13 mysql-bin.001113
-rw-r----- 1 mysql mysql 157559320 Sep 23 00:35 mysql-bin.001114
-rw-r----- 1 mysql mysql 157322415 Sep 23 01:02 mysql-bin.001115
-rw-r----- 1 mysql mysql 72729153 Sep 23 01:25 mysql-bin.001116
On September 22th, from 0:01 am till 20:50 pm, I count approx. 130 changes. I don't quite understand why this few changes can produce 2 x 150 MB binlogs, but even worse: from 20:50 pm - 23:55 pm there are no more than 31 edits <-> 10 x 150 MB binlogs!?
Does anyone have any ideas WHAT the database is doing here? 2003:C2:3F12:5F00:4991:A98C:6259:6575 (talk) 21:36, 23 September 2022 (UTC)
- I would suggest looking in the binlogs and seeing which tables are being modified. Bawolff (talk) 04:16, 24 September 2022 (UTC)
- There are some initializations like
- # The proper term is pseudo_replica_mode, but we use this compatibility alias
- # to make the statement usable on server versions 8.0.24 and older.
- /*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
- /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
- DELIMITER /*!*/;
- # at 4
- #220926 18:39:36 server id 1 end_log_pos 126 CRC32 0x29358cf7 Start: binlog v 4, server v 8.0.30-0ubuntu0.20.04.2 created
- 220926 18:39:36
- BINLOG '
- yNUxYw8BAAAAegAAAH4AAAAAAAQAOC4wLjMwLTB1YnVudHUwLjIwLjA0LjIAAAAAAAAAAAAAAAAA
- ......
- /*!50718 SET TRANSACTION ISOLATION LEVEL READ COMMITTED*//*!*/;
- ......
- SET TIMESTAMP=1664210377/*!*/;
- SET @@session.pseudo_thread_id=1176709/*!*/;
- ...........
- BEGIN
- /*!*/;
- # at 320
- #220926 18:39:37 server id 1 end_log_pos 386 CRC32 0xf526a6b3 Table_map: `ppdb`.`objectcache` mapped to number 105
- # at 386
- #220926 18:39:37 server id 1 end_log_pos 318739 CRC32 0x5d08e762 Update_rows: table id 105 flags: STMT_END_F
- BINLOG '
- ydUxYxMBAAAAQgAAAIIBAAAAAGkAAAAAAAEABHBwZGIAC29iamVjdGNhY2hlAAMP/BIE/AMDAAYD
- after that, there are thousands of lines of unreadable hexcodes. Of course I cannot view the whole file.
- Is there a way to exclude the objectcache table from the binary log? 2003:C2:3F14:7B00:C10B:EF0C:21EA:45B1 (talk) 17:39, 27 September 2022 (UTC)
- It would probably be better to ask mysql specific questions on a mysql forum Bawolff (talk) 18:14, 27 September 2022 (UTC)
- Of course you're completely right. Only I thought you might have an idea why there is so much database activity on the objectcache table while there is nearly no activity within the wiki ...? 2003:C2:3F14:7B00:B0FB:6588:E0D2:9FAB (talk) 08:38, 28 September 2022 (UTC)
- Could be lots of reasons. Maybe you wiki isn't as inactive as you think it is. At the very least, it would be helpful to know the keyname field of the rows that are being updated. Bawolff (talk) 11:33, 28 September 2022 (UTC)
- The objectcache contains 100-300 records only with keyname like "ppdb:MWSession:pa7s5jqeu84bfnchcm5bh5i67jpb87fg". The contents of the value columns are like " 0x4D8EC10E82300C86DF654F ....." but only a few lines per record. Whatever the binlog is logging, it's something else and I cannot interpret it because actually the first objectcache entry within the binlog is thousands of lines. Awkward. I have disabled binary logging now, necessarily. 2003:C2:3F46:3D00:9438:E0CE:7315:414A (talk) 12:36, 13 October 2022 (UTC)
Google Login 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 am trying to add the ability to login to my wiki with google and I did all of the chrome developer stuff and ran the update scripts and the page nedefenses.com does not work still.
Cheers! JulianMalcolm08 (talk) 00:28, 24 September 2022 (UTC)
Getting the page tools and personal tools for a skin
I'm trying to create a skin in PHP for my wiki, and I'm having issues with getting the page tools (edit, view, history etc) and the user tools (login, watch, talk, contribs etc) to display properly. I've taken a look at some of the skins around, and it seems that the best way, and recommended way, to do this is via this snipped:
$personalTools = $this->getPersonalTools();
foreach ( $personalTools as $key => $item ) {
echo $this->makeListItem( $key, $item );
}
And for the namespace tools:
$pageNav = $this->data['content_navigation'];
foreach ( $pageNav['namespaces'] as $key => $tab ) {
echo $this->makeListItem( $key, $tab );
}
This is causing me issues, however, and both variants of the code, for either the page tools or the user tools, display in the top left of the screen and at the top of the skin code (when viewed in Inspect Element) irregardless of where they're placed in the code — how do I get them to respect the div they're placed into and not go to the top left of the page? ArrakisMiner (talk) 02:35, 24 September 2022 (UTC)
- echo outputs wherever the output position currently is. Perhaps you need to concatenate to a previously generated string variable ? It really depends. Its issues like these which are why we are switching to a mustache template based architecture for skins btw. —TheDJ (Not WMF) (talk • contribs) 09:28, 24 September 2022 (UTC)
- Hmm, maybe, I'm following the code here and here respectively, so I'm not entirely sure what I'm doing differently? ArrakisMiner (talk) 01:32, 25 September 2022 (UTC)
how to transclude automatically the translated page
If I want to transclude a translated subpage I can write:
{{Special:MyLanguage/User:Wladek92/save/doc}}
to transclude Special:MyLanguage/User:Wladek92/save/doc/fr for example but I only get the link to this page as => Special:MyLanguage/User:Wladek92/save/doc .
How can I make the transclusion effective ?
Christian 🇫🇷 FR (talk) 08:37, 25 September 2022 (UTC)
SQL Error
With the extension DataDump this error appears at php maintenance/update.php
:
Creating data_dump table...Wikimedia\Rdbms\DBQueryError from line 1606 of /home/web/mediawiki/includes/libs/rdbms/database/Database.php: Error 42601: ERROR: syntax error at or near "`" LINE 2: `dumps_completed` INT(1) NOT NULL,
Justman10000 (talk) 11:54, 25 September 2022 (UTC)
- @Justman10000 See "Post a new question" in the sidebar Malyacko (talk) 12:21, 25 September 2022 (UTC)
- Hmm, it seems like DataDump is designed for MySQL/MariaDB only! Here the file that causes the error... Justman10000 (talk) 13:13, 25 September 2022 (UTC)
- I have now transferred everything from MySQL to PostgreSQL using SQLines! Except for this content:
- ALTER TABLE /*$wgDBprefix*/data_dump
- MODIFY COLUMN dumps_size BIGINT unsigned NOT NULL DEFAULT 0;
- SQLines doesn't do anything about it, and PostgreSQL doesn't accept it either Justman10000 (talk) 13:24, 25 September 2022 (UTC)
- @Malyacko My wiki URL is https://mw.justman10000.de... You can find Version infos here... Justman10000 (talk) 12:53, 25 September 2022 (UTC)
UserGroups not react
The extension UserGroups does not react. Data on my wiki, found in the bottom thread of an answer Justman10000 (talk) 13:03, 25 September 2022 (UTC)
- See "Post a new question" in the sidebar what to provide *here*, plus describe which steps to perform plus what "does not react" mean. Thanks. Malyacko (talk) 14:55, 25 September 2022 (UTC)
- @Malyacko
- I already wrote:
- Data on my wiki, found in the bottom thread of an answer
- Justman10000 (talk) 15:16, 25 September 2022 (UTC)
- If you ask for help it would be a nice courtesy to readers to not make them have to click through random things and try to find other posts by you first. Malyacko (talk) 15:21, 25 September 2022 (UTC)
- @Malyacko
- My wiki URL is https://mw.justman10000.de... You can find Version infos here...
- Justman10000 (talk) 15:41, 25 September 2022 (UTC)
- I've already fixed a bug! The other is that group rights are not inherited... Justman10000 (talk) 15:42, 25 September 2022 (UTC)
no fallback key
Hell. I am running a bot on mrwiki since last few months. I tried to run another bot (different account) on enwiki. Under some particular scenarios, I can edit on enwiki from toolforge successfully. But under some scenarios, I get the error '''no fallback key found in lookup dict for en'''. I went through the comments of the source code of i18n.py but it did not make much sense. What is the exact meaning/reason of this error? Thanks a lot in advance. Usernamekiran (talk) 16:57, 25 September 2022 (UTC)
The supplied credentials could not be authenticated.
Dear community,
I know, that this error has already been reported several times, and I already read through all of them, but I cannot solve this error for my own. I've installed the base system, and afterwards I followed this article Manual:Active Directory Integration. Running
php ShowUserInfo.php --domain LDAP --username testuser
brings me a valid result with all user fields.
Chaning according parameters cause some changes. When I change a password from ldap.conf, then the ShwoUserInfo.php results in an error. But activating logs are only successful for $wgDebugLogGroups["ldap"]. And activating $LDAPAuthentication2AllowLocalLogin = true does not enable me to make a local login. I would appreciate any help to get this running. Maybe I do have a simpel misconfiguration, I mean, it is working for many others :/
Here is my ldap.conf, with greyed (confidential) data.
{
LDAP": {
"connection": {
"server": "domain.test.de",
"port": "3269",
"user": "CN=userwithreadpermission,OU=Users,OU=LM,OU=IAM,DC=domain,DC=test,DC=de",
"pass": "Passwort",
"enctype": "ssl",
"options": {
"LDAP_OPT_DEREF": 1
},
"basedn": "dc=domain,dc=test,dc=de",
"userbasedn": "dc=domain,dc=test,dc=de",
"groupbasedn": "dc=domain,dc=test,dc=de",
"searchattribute": "samaccountname",
"usernameattribute": "samaccountname",
"realnameattribute": "displayName",
"emailattribute": "mail",
"grouprequest": "MediaWiki\\Extension\\LDAPProvider\\UserGroupsRequest\\UserMemberOf::factory",
"presearchusernamemodifiers": [ "spacestounderscores", "lowercase" ]
},
"userinfo": [],
"authorization": [],
"groupsync": {
"mapping": {
"engineering": "CN=IT-GROUP,OU=F,OU=Groups,OU=some_ous,DC=domain,DC=test,DC=de",
"bureaucrat": "CN=IT-GROUP,OU=F,OU=Groups,OU=some_ous,DC=domain,DC=test,DC=de",
"interface-admin": "CN=IT-GROUP,OU=F,OU=Groups,OU=some_ous,DC=domain,DC=test,DC=de",
"sysop": "CN=IT-GROUP,OU=F,OU=Groups,OU=some_ous,DC=domain,DC=test,DC=de"
}
}
}
}
Here is my LocalSettings.php
<?php
# This file was automatically generated by the MediaWiki 1.38.2
# installer. If you make manual changes, please keep track in case you
# need to recreate them later.
#
# See docs/Configuration.md for all configurable settings
# and their default values, but don't forget to make changes in _this_
# file, not there.
#
# Further documentation for configuration settings may be found at:
# https://www.mediawiki.org/wiki/Manual:Configuration_settings
# Protect against web entry
if ( !defined( 'MEDIAWIKI' ) ) {
exit;
}
## Uncomment this to disable output compression
# $wgDisableOutputCompression = true;
$wgLDAPDebug = 3;
$wgDebugLogGroups["ldap"] = "/tmp/LDAP.log";
$LDAPAuthentication2AllowLocalLogin = true;
$wgGroupPermissions['*']['autocreateaccount'] = true;
$wgSitename = "ITWIKI";
## The URL base path to the directory containing the wiki;
## defaults for all runtime URL paths are based off of this.
## For more information on customizing the URLs
## (like /w/index.php/Page_title to /wiki/Page_title) please see:
## https://www.mediawiki.org/wiki/Manual:Short_URL
$wgScriptPath = "";
## The protocol and server name to use in fully-qualified URLs
$wgServer = "http://localhost";
## The URL path to static resources (images, scripts, etc.)
$wgResourceBasePath = $wgScriptPath;
## The URL paths to the logo. Make sure you change this from the default,
## or else you'll overwrite your logo when you upgrade!
$wgLogos = [
'1x' => "$wgResourceBasePath/resources/assets/change-your-logo.svg",
'icon' => "$wgResourceBasePath/resources/assets/change-your-logo.svg",
];
## UPO means: this is also a user preference option
$wgEnableEmail = true;
$wgEnableUserEmail = true; # UPO
$wgEmergencyContact = "apache@🌻.invalid";
$wgPasswordSender = "apache@🌻.invalid";
$wgEnotifUserTalk = false; # UPO
$wgEnotifWatchlist = false; # UPO
$wgEmailAuthentication = true;
## Database settings
$wgDBtype = "mysql";
$wgDBserver = "localhost";
$wgDBname = "wsit";
$wgDBuser = "root";
$wgDBpassword = "password";
# MySQL specific settings
$wgDBprefix = "";
# MySQL table options to use during installation or update
$wgDBTableOptions = "ENGINE=InnoDB, DEFAULT CHARSET=binary";
# Shared database table
# This has no effect unless $wgSharedDB is also set.
$wgSharedTables[] = "actor";
## Shared memory settings
$wgMainCacheType = CACHE_NONE;
$wgMemCachedServers = [];
## To enable image uploads, make sure the 'images' directory
## is writable, then set this to true:
$wgEnableUploads = false;
#$wgUseImageMagick = true;
#$wgImageMagickConvertCommand = "/usr/bin/convert";
# InstantCommons allows wiki to use images from https://commons.wikimedia.org
$wgUseInstantCommons = false;
# Periodically send a pingback to https://www.mediawiki.org/ with basic data
# about this MediaWiki instance. The Wikimedia Foundation shares this data
# with MediaWiki developers to help guide future development efforts.
$wgPingback = true;
# Site language code, should be one of the list in ./languages/data/Names.php
$wgLanguageCode = "en";
# Time zone
$wgLocaltimezone = "Europe/Berlin";
## Set $wgCacheDirectory to a writable directory on the web server
## to make your wiki go slightly faster. The directory should not
## be publicly accessible from the web.
#$wgCacheDirectory = "$IP/cache";
$wgSecretKey = "secret";
# Changing this will log out all existing sessions.
$wgAuthenticationTokenVersion = "1";
# Site upgrade key. Must be set to a string (default provided) to turn on the
# web installer while LocalSettings.php is in place
$wgUpgradeKey = "secret";
## For attaching licensing metadata to pages, and displaying an
## appropriate copyright notice / icon. GNU Free Documentation
## License and Creative Commons licenses are supported so far.
$wgRightsPage = ""; # Set to the title of a wiki page that describes your license/copyright
$wgRightsUrl = "";
$wgRightsText = "";
$wgRightsIcon = "";
# Path to the GNU diff3 utility. Used for conflict resolution.
$wgDiff3 = "/usr/bin/diff3";
# The following permissions were set based on your choice in the installer
$wgGroupPermissions['*']['createaccount'] = false;
$wgGroupPermissions['*']['edit'] = false;
## Default skin: you can change the default skin. Use the internal symbolic
## names, e.g. 'vector' or 'monobook':
$wgDefaultSkin = "vector";
# Enabled skins.
# The following skins were automatically enabled:
wfLoadSkin( 'MinervaNeue' );
wfLoadSkin( 'MonoBook' );
wfLoadSkin( 'Timeless' );
wfLoadSkin( 'Vector' );
# Enabled extensions. Most of the extensions are enabled by adding
# wfLoadExtension( 'ExtensionName' );
# to LocalSettings.php. Check specific extension documentation for more details.
# The following extensions were automatically enabled:
wfLoadExtension( 'CodeEditor' );
wfLoadExtension( 'VisualEditor' );
wfLoadExtension( 'WikiEditor' );
# End of automatically generated settings.
# Add more configuration options below.
// Safe IP or not (for bypassing external login via AD)
$safeIPs = array('127.0.0.1','localhost');
$ipsVars = array('HTTP_X_FORWARDED_FOR','HTTP_X_REAL_IP','REMOTE_ADDR');
foreach ($ipsVars as $ipsVar) {
if (isset($_SERVER[$ipsVar]) && mb_strlen($_SERVER[$ipsVar]) > 3 ) { $wikiRequestIP = $_SERVER[$ipsVar]; break; }
}
$wikiRequestSafe = ( isset($wikiRequestIP ) && ( in_array($wikiRequestIP,$safeIPs) ));
// Create Wiki-Group 'engineering' from default user group
$wgGroupPermissions['engineering'] = $wgGroupPermissions['user'];
// Private Wiki. External LDAP login. Default NS requires login.
$wgEmailConfirmToEdit = false;
$wgGroupPermissions['*']['edit'] = false;
$wgGroupPermissions['*']['read'] = false;
$wgGroupPermissions['*']['createaccount'] = false;
$wgGroupPermissions['sysop']['createaccount'] = true;
$wgGroupPermissions['*']['autocreateaccount'] = true;
$wgBlockDisablesLogin = true;
// Load LDAP Config from JSON
$ldapJsonFile = "$IP/ldap.json";
$ldapConfig = false;
if (is_file($ldapJsonFile) && is_dir("$IP/extensions/LDAPProvider")) {
$testJson = @json_decode(file_get_contents($ldapJsonFile),true);
if (is_array($testJson)) {
$ldapConfig = true;
} else {
error_log("Found invalid JSON in file: $IP/ldap.json");
}
}
// Activate Extension
if ( $ldapConfig ) {
wfLoadExtension( 'PluggableAuth' );
wfLoadExtension( 'LDAPProvider' );
wfLoadExtension( 'LDAPAuthentication2' );
wfLoadExtension( 'LDAPAuthorization' );
wfLoadExtension( 'LDAPUserInfo' );
wfLoadExtension( 'LDAPGroups' );
$LDAPProviderDomainConfigs = $ldapJsonFile;
$wgPluggableAuth_ButtonLabel = "Log In";
// Force LDAPGroups to sync by choosing a domain (e.g. first JSON object in ldap.json)
$LDAPProviderDefaultDomain = "LDAP";
if ($wikiRequestSafe) { $LDAPAuthentication2AllowLocalLogin = true; }
}
Best regards
Markus Vanfellseng (talk) 16:06, 26 September 2022 (UTC)
Error displayed: "Notice: Trying to access array offset on value of type null in ..."
Hello,
we have multiple instances of this error displayed on our wiki:
Notice: Trying to access array offset on value of type null in /var/www/vhosts/MediaWiki/includes/profiler/SectionProfiler.php on line 10x
Our wiki is here:
https://mediawiki.envri.eu/index.php/Main_Page
Any idea where this comes from?
Thanks in advance for the help.
Laurent
ENVRI-FAIR project 194.100.242.254 (talk) 07:12, 27 September 2022 (UTC)
- This is a bug that was fixed long ago (That said its a hramless warning that can probably be ignored). You're using a really old version of mediawiki (4 years old), i would suggest upgrading Bawolff (talk) 07:34, 27 September 2022 (UTC)
- Ok, problem solved. 85.76.100.219 (talk) 07:57, 27 September 2022 (UTC)
Problems with CNAME and CSS
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 Bitnami MediaWiki AMI on AWS EC2 and that works great when accessed directly through the IP address.
I then created a CloudFront distribution and added a CNAME entry to my domain to point to it. I also changed `$wgServer='//mydomain.com'` in `LocalSettings.php`.
The problem is that when the wiki is opened, there is no styling, just plain HTML. I tried to debug what's happening, and it's the following:
<link rel="stylesheet" href="/load.php?lang=sr-el&modules=mediawiki.ui.button%2Cicon%7Cskins.vector.icons%2Cstyles&only=styles&skin=vector-2022">
Instead of CSS, it just returns this:
/* This file is the Web entry point for MediaWiki's ResourceLoader: <https://www.mediawiki.org/wiki/ResourceLoader>. In this request, no modules were requested. Max made me put this here. */
So, any call to `https://mydomain.com/load.php?...` with any parameters just returns the comment above.
I don't know why this happens and what to do. Thanks for any hint! Lovro Asks (talk) 20:05, 27 September 2022 (UTC)
- That's weird. I would guess something is misconfigured in the cloudfront distribution causing url parameters to be dropped (or colesced). Can you double check your cloudfront settings? Bawolff (talk) 06:40, 28 September 2022 (UTC)
- Cloudflare has a caching level called "Ignore Query String", which you might have enabled. —TheDJ (Not WMF) (talk • contribs) 10:04, 28 September 2022 (UTC)
- Right, thank you so much, I was searching for the solution in all the wrong places! CloudFront indeed does not pass query parameters by default.
- Here's the answer how to enable it, for reference...
- https://stackoverflow.com/questions/54965779/how-to-configure-query-params-in-aws-cloudfront Lovro Asks (talk) 21:54, 28 September 2022 (UTC)
Determine caller (page request source) in parser hook
I need to make different output in my parser hook function (specific tag rendering) for page requested by the user on wiki and requested by external service via MW API. What can I use (on wiki server side of course)? 176.59.102.209 (talk) 22:29, 27 September 2022 (UTC)
- You probably need to call $parser->getOutput()->updateCacheExpiry(0) which disables caching. This is slow, but also means you can use things like RequestContext::getMain()->getRequest() to find out what url is being requested without causing cache pollution. Bawolff (talk) 06:38, 28 September 2022 (UTC)
Private methods cannot be final as they are never overridden by other classes in C:\xampp\htdocs\wiki\includes\actions\Action.php on line 67
Private methods cannot be final as they are never overridden by other classes in C:\xampp\htdocs\wiki\includes\actions\Action.php on line 67
Getting above errorr after the Xampp upgrade . Can anyone guide how do we resolve the warning message, 195.233.26.87 (talk) 05:21, 28 September 2022 (UTC)
Issue with LocalisationCache
I seem to be having a little trouble with my LocalisationCache, and I'm not entirely sure why, and how to solve it. Basically, I keep having to run <code>rebuildLocalisationCache.php</code> several times a day. If I don't, I get an error that certain magic words don't exist, and this prevents me from using certain extensions such as ParserFunctions etc as it basically crashes my wiki, throwing an exception. It also means that whenever I add a new extension, I need to run the script or the messages for the extension aren't registered — I'm not entirely sure what's causing this, but this is what I can see from the error log:
[localisation] LocalisationCache using store LCStoreNull [localisation] LocalisationCache::isExpired(en): cache missing, need to make one [localisation] LocalisationCache::recache: got localisation for en from source [DBConnection] Wikimedia\Rdbms\LoadBalancer::reuseConnection: freed connection 0/centralauth [session] SessionManager using store SqlBagOStuff [DBConnection] Wikimedia\Rdbms\LoadBalancer::getAnyOpenConnection: found 'foreignFree' connection to #0. [DBQuery] Wikimedia\Rdbms\DatabaseMysqlBase::open [0s] localhost: SET group_concat_max_len = 262144, sql_mode = '' [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: opened new connection for local/0 [DBQuery] Wikimedia\Rdbms\DatabaseMysqlBase::serverIsReadOnly [0s] localhost: SELECT @@GLOBAL.read_only AS Value [DBQuery] Wikimedia\Rdbms\DatabaseMysqlBase::getServerVersion [0s] localhost: SELECT VERSION() LIMIT 1 [DBQuery] Wikimedia\Rdbms\DatabaseMysqlBase::fieldInfo [0s] localhost: SELECT * FROM `change_tag` LIMIT 1 [DBQuery] DatabaseUpdater::doCollationUpdate [0s] localhost: SELECT COUNT(*) FROM `categorylinks` WHERE cl_collation != 'uppercase' LIMIT 1 [DBQuery] DatabaseUpdater::addField [0s] localhost: SHOW TABLES LIKE 'externallinks'
I assume from this error that the cache keeps expiring, or something of the sort? How can I stop this? ArrakisMiner (talk) 08:16, 28 September 2022 (UTC)
- The line:
- > [localisation] LocalisationCache using store LCStoreNull
- Sounds suspicious. What are your caching configs in LocalSettings.php? Bawolff (talk) 11:31, 28 September 2022 (UTC)
- These are the settings I'm using:ArrakisMiner (talk) 11:51, 28 September 2022 (UTC)
'wgSessionCacheType' => [ 'default' => CACHE_DB, ], 'wgMainCacheType' => [ 'default' => CACHE_ACCEL, ], 'wgSharedTables' => [ 'default' => ['objectcache'], ], $wgLocalisationCacheConf['storeClass'] = LCStoreCDB::class; $wgLocalisationCacheConf['storeDirectory'] = '/var/www/html/mw/mediawiki/cache/l10n'; if ( !file_exists( '/var/www/html/mw/mediawiki/cache/l10n/l10n_cache-en.cdb' ) ) { $wgLocalisationCacheConf['manualRecache'] = false; }
- Delete the last 3 lines (i.e. delete the line starting with if and everything after). Although it is confusing because manualRecache being false should be the default. Are you sure you dont have any additional
- $wgLocalisationCacheConf settings?
- Also verify that the cache directory and files in it are writable by the webserver. Bawolff (talk) 17:59, 28 September 2022 (UTC)
WimiMedia Gerrit - Clone Repos -> Not permissions
Hi, the error always appears
justman10000@gerrit.wikimedia.org: Permission denied (publickey). fatal: Could not read from remote repository.
Although I did everything the the tutorial says! Justman10000 (talk) 16:52, 29 September 2022 (UTC)
- Most commonly this is caused by git using a different pubkey then the one you submitted to gerrit or if your wikitech shell name is different from your username and you use the wrong
- If you do:
GIT_SSH_COMMAND="ssh -vvv" git clone ssh://justman1000@gerrit.wikimedia.org:29418/mediawiki/core.git
- It will give detailed info, which can help you figure out which key it is using.
- If you absolutely cannot figure it out, you can use https instead (
git clone https://justman1000@gerrit.wikimedia.org:29418/mediawiki/core.git
). However your password when using git over https is not your normal one but a diffferent one viewable in your gerrit preferences. Bawolff (talk) 17:52, 29 September 2022 (UTC)- Well, I created an SSH key via the Help tab in Git Gui and also registered it with Gerrit... Justman10000 (talk) 03:56, 30 September 2022 (UTC)
- Please always include a full exact command that creates some output. This thread has no steps to reproduce. Thanks. Malyacko (talk) 18:14, 29 September 2022 (UTC)