Project:Support desk/Flow/2020/06
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. |
(Read this message in a different language)
See also
Before you post
- Check the FAQ and Errors and symptoms .
- If your question is about a specific feature, check the relevant technical manual , end-user help or extension page and consider asking on its talk page .
- For issues about the mediawiki.org website, report to Village Pump instead.
- Ask technical questions about Wikimedia websites on meta:Tech instead.
Post a new question
- To help us answer your questions, please indicate which version of MediaWiki you are using, as found on your wiki's Special:Version page:
- If possible, add
$wgShowExceptionDetails = true;error_reporting( -1 );ini_set( 'display_errors', 1 );
to LocalSettings.php in order to make MediaWiki show more detailed error messages. - Please include the web address (URL) to your wiki if possible. It's often easier for us to identify the source of the problem if we can see the error directly.
- To start a new thread, click the box with the text "Add topic".
![]() |
---|
|
Pls Delete Extension:Plexcel
That extension has long since been discontinued and I do not want dead content associated with an otherwise very lively company. Miallen (talk) 01:49, 1 June 2020 (UTC)
How to call LTR templates in an RTL fashion?
I have an RTL (Hebrew) 1.34.0 principally all-core MediaWiki website with Cite extension and ParserFunctions extension loaded in LocalSettings.php.
In that website I have the following Template:Cite
which I use to create LTR (English) footnotes in English-only webpages:
<includeonly>{{#if:{{{refname|}}} | {{#tag:ref|{{{content|}}}|name={{{refname}}}}} | {{#tag:ref|{{{content|}}}}} }}</includeonly>
Credit for @Jonathan3 for developing this template.
- Examples for how I call this template in an LTR fashion (English) are available in this specific post.
- I have already created and redirected the webpage
תבנית:הערה
to that webpage (Template:Cite
). תבנית:הערה
means in Hebrew, in that case, Template:Cite.
My problem
I desire to call Template:Cite
(most likely by its תבנית:הערה
redirect) in an RTL fashion (Hebrew), as with:
בדיקה_ראשונה{{הערה|תוכן=בדיקה_ראשונה}} בדיקה_שנייה{{הערה|תוכן=בדיקה_שנייה|שם=שם_ראשון}} בדיקה שלישית{{הערה|שם=שם_ראשון}}
But I don't know how to do it.
My question
How to call Template:Cite
/ תבנית:הערה
in an RTL fashion (Hebrew)?
Calls should be only in Hebrew, otherwise I'll have various bidirectionality issues. 182.232.57.75 (talk) 02:29, 1 June 2020 (UTC)
- Bumping after a day with no activity 182.232.57.75 (talk) 07:38, 2 June 2020 (UTC)
- This post might have become redundant as I have managed to translate the template to Hebrew allegedly successfully:
- Project:Support desk/Flow/2020/05#h-My_question-2020-05-28T04:38:00.000Z 182.232.57.75 (talk) 10:12, 2 June 2020 (UTC)
Error when editing a wiki page
Hello, recently updated mediawiki version from 1.32 to 1.34
MediaWiki | 1.34.1 |
PHP | 7.3.12 (cgi-fcgi) |
SQLite | 3.28.0 |
ICU | 60.2 |
And get the following error when trying to save an edit to a page. Any help is appreciated
[XtR@vQ5dbJIQK@bFJ2rQagAAAAg] /wiki/index.php?title=Main_Page&action=submit Wikimedia\Rdbms\DBQueryError from line 1603 of /home/dergok1/futureproof.one/wiki/includes/libs/rdbms/database/Database.php: A database query error has occurred. Did you forget to run your application's database schema updater after upgrading?
Query: INSERT INTO revision (rev_page,rev_parent_id,rev_minor_edit,rev_timestamp,rev_deleted,rev_len,rev_sha1) VALUES ('1','1','0','20200601040622','0','736','0h2t4vw8fiw6eh7mao0k203v1t7j1iw')
Function: MediaWiki\Revision\RevisionStore::insertRevisionRowOn/single-row
Error: 19 NOT NULL constraint failed: revision.rev_text_id
Backtrace:
#0 /home/dergok1/futureproof.one/wiki/includes/libs/rdbms/database/Database.php(1574): Wikimedia\Rdbms\Database->getQueryExceptionAndLog(string, integer, string, string)
#1 /home/dergok1/futureproof.one/wiki/includes/libs/rdbms/database/Database.php(1152): Wikimedia\Rdbms\Database->reportQueryError(string, integer, string, string, boolean)
#2 /home/dergok1/futureproof.one/wiki/includes/libs/rdbms/database/Database.php(2140): Wikimedia\Rdbms\Database->query(string, string)
#3 /home/dergok1/futureproof.one/wiki/includes/libs/rdbms/database/DatabaseSqlite.php(682): Wikimedia\Rdbms\Database->insert(string, array, string, string)
#4 /home/dergok1/futureproof.one/wiki/includes/Revision/RevisionStore.php(757): Wikimedia\Rdbms\DatabaseSqlite->insert(string, array, string)
#5 /home/dergok1/futureproof.one/wiki/includes/Revision/RevisionStore.php(552): MediaWiki\Revision\RevisionStore->insertRevisionRowOn(Wikimedia\Rdbms\DatabaseSqlite, MediaWiki\Revision\MutableRevisionRecord, Title, integer)
#6 /home/dergok1/futureproof.one/wiki/includes/Revision/RevisionStore.php(490): MediaWiki\Revision\RevisionStore->insertRevisionInternal(MediaWiki\Revision\MutableRevisionRecord, Wikimedia\Rdbms\DatabaseSqlite, User, CommentStoreComment, Title, integer, integer)
#7 /home/dergok1/futureproof.one/wiki/includes/libs/rdbms/database/Database.php(3966): MediaWiki\Revision\RevisionStore->MediaWiki\Revision\{closure}(Wikimedia\Rdbms\DatabaseSqlite, string)
#8 /home/dergok1/futureproof.one/wiki/includes/libs/rdbms/database/DBConnRef.php(68): Wikimedia\Rdbms\Database->doAtomicSection(string, Closure)
#9 /home/dergok1/futureproof.one/wiki/includes/libs/rdbms/database/DBConnRef.php(635): Wikimedia\Rdbms\DBConnRef->__call(string, array)
#10 /home/dergok1/futureproof.one/wiki/includes/Revision/RevisionStore.php(498): Wikimedia\Rdbms\DBConnRef->doAtomicSection(string, Closure)
#11 /home/dergok1/futureproof.one/wiki/includes/Storage/PageUpdater.php(986): MediaWiki\Revision\RevisionStore->insertRevisionOn(MediaWiki\Revision\MutableRevisionRecord, Wikimedia\Rdbms\DBConnRef)
#12 /home/dergok1/futureproof.one/wiki/includes/Storage/PageUpdater.php(756): MediaWiki\Storage\PageUpdater->doModify(CommentStoreComment, User, integer)
#13 /home/dergok1/futureproof.one/wiki/includes/page/WikiPage.php(1930): MediaWiki\Storage\PageUpdater->saveRevision(CommentStoreComment, integer)
#14 /home/dergok1/futureproof.one/wiki/includes/EditPage.php(2341): WikiPage->doEditContent(WikitextContent, CommentStoreComment, integer, boolean, User, string, array, integer)
#15 /home/dergok1/futureproof.one/wiki/includes/EditPage.php(1617): EditPage->internalAttemptSave(array, boolean)
#16 /home/dergok1/futureproof.one/wiki/includes/EditPage.php(682): EditPage->attemptSave(array)
#17 /home/dergok1/futureproof.one/wiki/includes/actions/EditAction.php(55): EditPage->edit()
#18 /home/dergok1/futureproof.one/wiki/includes/actions/SubmitAction.php(38): EditAction->show()
#19 /home/dergok1/futureproof.one/wiki/includes/MediaWiki.php(511): SubmitAction->show()
#20 /home/dergok1/futureproof.one/wiki/includes/MediaWiki.php(302): MediaWiki->performAction(Article, Title)
#21 /home/dergok1/futureproof.one/wiki/includes/MediaWiki.php(900): MediaWiki->performRequest()
#22 /home/dergok1/futureproof.one/wiki/includes/MediaWiki.php(527): MediaWiki->main()
#23 /home/dergok1/futureproof.one/wiki/index.php(44): MediaWiki->run()
#24 {main} 162.156.114.189 (talk) 04:06, 1 June 2020 (UTC)
- did you run update.php? Were there any error messages? Bawolff (talk) 14:00, 2 June 2020 (UTC)
- That is right, I did, and it ran successfully. I am new to this, could it have something to do with the database? Thanks 162.156.114.189 (talk) 19:50, 9 June 2020 (UTC)
- If it's not solved already, does this comment help? It helped in my case! :)
> FWIW, I had the same problem in MacOS 10.15.1 MediaWiki 1.33.1 (upgrading from 1.31.0 and
> also ran update.php) and fixed it by running the following patch:
> cd ~/Sites/Wiki/maintenance
> sudo php ./patchSql.php sqlite/archives/patch-rev_text_id-default.sql
- Good luck! Evilninja (talk) 05:35, 28 June 2020 (UTC)
Exclude template text from search results
There is part of the template text that I do not want displayed in search results. Is that possible? I.e. I can imagine some sort of opening and closing tag defining the text not to be included.
Using MW 1.31 and Extension:CirrusSearch Spiros71 (talk) 09:21, 1 June 2020 (UTC)
Can't log in to discourse server
I tried to log in to the discourse server but it told me I needed to confirm my email. So I did. Then it keeps telling me I need to! I have also waited a day in case there's some kind of cache that could be invalidated. No luck. Boxed (talk) 12:40, 1 June 2020 (UTC)
- @Boxed Welcome to the MediaWiki support desk. MediaWiki is not Discourse. Can you please elaborate what makes you think that we could help? Malyacko (talk) 14:22, 1 June 2020 (UTC)
- https://discourse-mediawiki.wmflabs.org/t/accessing-a-commons-thumbnail-via-wikidata/499
- Because it links here, because it's using mediawiki for oauth login. Boxed (talk) 11:00, 2 June 2020 (UTC)
Unable to log in
I changed my email address a while back and I forgot to change it on here. As I've not logged in for some time, I've forgotten my password. Is there any way I can get my email address changed without me logging in? The username is r9rstokes 31.124.253.15 (talk) 14:33, 1 June 2020 (UTC)
- not unless you can prove beyond a shadow of doubt you are rightful owner of account. Bawolff (talk) 16:01, 1 June 2020 (UTC)
- My email address is basically the same as the old one, I use that username on nearly everything else 31.124.253.15 (talk) 16:54, 1 June 2020 (UTC)
Autoconfirmed User Group + LDAP Group Mapping not working
I want the majority of users who are authenticated by remote_auth to be able to read pages only, but not to be able to move/edit/create etc. I tired to edit 'auto confirmed' to have limited privileges, but I don't know what the short name is for the config file?
$wgGroupPermissions['autoconfirmedusers']['edit'] = false; ?
If I just remove that group does everyone just become a 'user'?
I also tried to use AD group mappings, but it doesn't seem to be adding any users to my custom group. MyAdmins is a security group, but I also tired the OU 'myuser'.
'groupsync' => [
"mechanism" => "mappedgroups",
"mapping" => [
“myusers" => "OU=MyUsers,DC=my,DC=domain,DC=com”,
“myadmins” => “CN=MyAdmins,OU=Test, DC=my,DC=domain,DC=com”,
]
]
]
Kittencorn (talk) 15:15, 1 June 2020 (UTC)
Required Email address field on Registration page
Hi Team,
I am new to WikiMedia and last week created a Private Wiki for my organization, however, on the registration page it's not asking for Email address.
Please help me to modify the create account page to list email address field also.
Wiki Details:
Product | Version |
---|---|
MediaWiki | 1.34.1 |
Aksharma3 (talk) 17:49, 1 June 2020 (UTC)
- Manual:$wgEmailConfirmToEdit Malyacko (talk) 18:51, 1 June 2020 (UTC)
Image caption with different mouse-over caption text
Is it possible to create a packed mode gallery with captions beneath each image and where different caption text appears when mousing over each image? Ebr44 (talk) 17:58, 1 June 2020 (UTC)
changing username
need to change user name TruckStop Rodeo 23:10, 1 June 2020 (UTC)
- See Changing username. AhmadF.Cheema (talk) 03:16, 2 June 2020 (UTC)
Monitor mode won't work
I'v downloaded MPI3508-3.5inch-Pi4-600x400-kali-linux-2020.1a.7z for my Raspberry pi 4 B+ and it works on my 3.5 screen case BUT everytime I want to use it on my monitor it get's stuck booting when the 3.5 LCD screen isn't plugged in and my monitor is. Is there a way to get monitor working (Connecting my HDMI cable to a screen) whlie being able to have the 3.5 touchscreen enabled so I can switch them out whenever? I'v been searching and trying diffrent methods and it's driving me nuts!
86.106.87.254 (talk) 02:23, 2 June 2020 (UTC)
- Wrong support forum.🤔 This place is for MediaWiki related queries. AhmadF.Cheema (talk) 03:14, 2 June 2020 (UTC)
Need Help Upgrading MediaWiki
Have been asked by my web host to upgrade MediaWiki from 1.24.0 to 1.27 for security reasons. The server has PHP 5.6.40 (litespeed) and MySQL 5.7.30. I have access to Softaculous but had problems using this last time I upgraded and I've read on here that it's not a good idea to upgrade in this way. Am looking for someone to effect the upgrade for me, please. Seedier Wiki (talk) 09:18, 2 June 2020 (UTC)
- What is "this way" exactly?
- Also, see Professional development and consulting. Malyacko (talk) 12:02, 2 June 2020 (UTC)
- "This way" referred to using the Softaculous script through my CPanel to upgrade Mediawiki. I was hoping to persuade someone on here to carry out the upgrade for me without using Softaculous. Seedier Wiki (talk) 13:32, 2 June 2020 (UTC)
- note: 1.27 is still insanely old and no longer recieving security updates.
- Lots of people are willing to do this work for you, but generally charge money. The free help is mostly limited to telling you what docs to read if you want to learn how to do it yourself and helping you interpret the docs if something in them is confusing to you. Bawolff (talk) 13:58, 2 June 2020 (UTC)
- Quite happy to pay. Just need offers of help. Seedier Wiki (talk) 14:27, 2 June 2020 (UTC)
- Also need to know which is the latest version of MediaWiki which can be supported by PHP 5.6.40 (litespeed) and MySQL 5.7.30 ?
Seedier Wiki (talk) 17:40, 2 June 2020 (UTC)- PHP 5.6 is abandonware. See https://en.wikipedia.org/wiki/PHP#PHP_5. There is no supported and secure MediaWiki version to support PHP 5.6 anymore. See https://en.wikipedia.org/wiki/MediaWiki_version_history and Compatibility#PHP Malyacko (talk) 19:01, 2 June 2020 (UTC)
- My error, sorry. The server uses PHP 7.3.6 NOT PHP 5.6.40
- Question becomes which is the latest version of MediaWiki which can be supported by PHP 7.3.6 and MySQL 5.7.30 ? Seedier Wiki (talk) 12:12, 3 June 2020 (UTC)
- the most recent version. Bawolff (talk) 15:44, 3 June 2020 (UTC)
User registration
Hello all. i see that some of the users create additional accounts. How can I disallow this option Fokebox (talk) 10:00, 2 June 2020 (UTC)
- Please elaborate how you identify users, which made you come to the conclusion that users created additional accounts. Malyacko (talk) 12:01, 2 June 2020 (UTC)
- if you mean the create account for another user option, you could adjust the permissions config of the wiki so that * has createaccoynt rights, but "user" has the right revoked, but im not sure why you would want to do that as people could just log out to create accounts. Bawolff (talk) 13:55, 2 June 2020 (UTC)
- This doesn't directly answer your question but it's maybe another way of looking at the problem: Extension:ConfirmAccount. Jonathan3 (talk) 15:56, 2 June 2020 (UTC)
Edit Links in the Footer
Hey,
Want to insert a link into the footer. I already read this page: Manual:Footer#Add links to the footer
I use Citizen Skin. Unfortunately, only the text defined in MediaWiki:Citizen-footer-desc seems to appear although I created all pages as advised in the tutorial above.
What am I doing wrong?
Best,
Max 80.81.28.101 (talk) 10:23, 2 June 2020 (UTC)
- That's a question for developers of that custom skin, I guess. Malyacko (talk) 12:00, 2 June 2020 (UTC)
- some skins dont support that hook. Bawolff (talk) 13:53, 2 June 2020 (UTC)
- Hi there! I'm the author of the skin and came by this by accident. The hook is supported and it should show in the footer. Tag me if you need help! Alistair3149 (talk) 08:06, 12 June 2020 (UTC)
account email no longer valid
Hello Support,
I would like to reconnect to my existing wiki account, but I seem to have forgotten the password to log in AND the email address that is listed is no longer valid. How can I log in with a temporary password that is NOT send to my old email address.
Many thanks and best regards
C Owala 2A02:908:113C:780:AD2F:B021:6B0F:88E (talk) 11:42, 2 June 2020 (UTC)
- How to proof that you are the person who owns an account and that you also owned that previous email address? Malyacko (talk) 11:59, 2 June 2020 (UTC)
- We generally only do that if you have iron-clad proof that you own the account, which is very difficult to prove. Bawolff (talk) 13:53, 2 June 2020 (UTC)
VisualEditor linked with (Parsoid over HTTPS) fails with HTML 500
RESOLVED | |
Using the logs we found that the root certificate had expired. |
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 from VisualEditor Talk page:
Thank you all for your assistance in this issue. Our Current Configuration is:
Component | Version |
---|---|
Mediawiki | 1.34.0 |
Parsoid | 11 |
VisualEditor | 0.1.1 (74116a7) 18:02, 23 December 2019 |
PHP | 7.2.31 (apache2handler) |
MariaDB | 5.5.65-MariaDB |
We installed VisualEditor with Parsoid over HTTPS using Stunnel. We have tested Parsoid over HTTPS through Stunnel using CURL. The correct response was received. We have also tested the VisualEditor using CURL. Also, a correct response is received.
Errors:
Our error is:
Error loading data from server: apierror-visualeditor-docserver-http: HTTP 500. Would you like to retry?
& in the mediawiki debug log.
[VisualEditor] ApiVisualEditor::requestRestbase: Received HTTP 500 from RESTBase (We do not have RESTBase installed. We are a private wiki)
Our current config for Stunnel, Parsoid and LocalSettings is below:
Stunnel:
cert = /etc/httpd/ssl/<domaincert.cer>
key = /etc/httpd/ssl/<domaincert.key>
CAfile = /etc/httpd/ssl/<CACert.cer
;Allow only TLS, thus avoiding SSL
sslVersion = TLSv1.2
chroot = /var/run/stunnel
setuid = nobody
setgid = nobody
pid = /stunnel.pid
socket = l:TCP_NODELAY=1
socket = r:TCP_NODELAY=1
[parsoid]
accept = 8143
connect = 8000
;TIMEOUTclose = 0
Parsoid:
mwApis - uri: 'https://<hostname.xxxx.xxx/api.php', domain: 'xxxx.xxx'
LocalSettings.php:
$wgDefaultUserOptions["visualeditor-enable"] = 1; $wgHiddenPrefs[] = "visualeditor-enable"; $wgVirtualRestConfig["modules"]["parsoid"] = array( "url" => "https://<hostname.xxxx.xxx:8143", "domain" => "xxxx.xxx", );
Thank you for your assistance in advance. Renegade04 (talk) 12:08, 2 June 2020 (UTC)
- do parsoid logs say anything? Bawolff (talk) 13:51, 2 June 2020 (UTC)
- The logs helped find the issue. The root certificate had expired. Renegade04 (talk) 18:51, 4 June 2020 (UTC)
Creation of new accounts
I am stuck with creating a new account.
I filled out the form and received a verification link. I followed this link which is where I am at. I did this about 24 hours ago. Is there something I am expected to do? How long does it take to get sent a password after verifying a new account? 2A00:23C5:E101:2700:A008:C489:9C27:694B (talk) 15:50, 2 June 2020 (UTC)
- are you talking about mediawiki?
- We do not send passwords after email verification. If your account was created by email (unlikely if you were doing it yourself) then you would be sent the email immediately. Otherwise you should have provided a password when creating the account.
- Note: if this is Wikipedia's ACC process, it might be different, i dknt know much about it. Bawolff (talk) 19:13, 2 June 2020 (UTC)
Is it a best practice to explicitly call all parameters in template-calls in MediaWiki templates?
In an RTL (Hebrew) MediaWiki 1.34.0 website with Cite extension and ParserFunctions extension loaded in LocalSettings.php I use the following template to create references for English text.
Template:Cite
<includeonly>{{#if:{{{name|}}} | {{#tag:ref|{{{content|}}}|name={{{name}}}}} | {{#tag:ref|{{{content|}}}}} }}</includeonly>
Credit for @Johnatan3 for essentially developing the above template.
Calling Template:Cite
Input
First check{{Cite|content=First check}} Second check{{Cite|content=Second check|name=First_name}} Third check {{Cite|name=First_name}} <references />
Output
First check Second check Third check
- ^ First check
- ^ לקפוץ מעלה אל:2.0 2.1 Second check
My problem
I don't know if it's a best practice to explicitly call parameters (or at least, all parameters) when calling a template in MediaWiki;
For example, in Hebrew Wikipedia I have seldom created references for articles and when these references were named (i.e contain a name
HTML attribute) I just wrote:
{{הערה|מידע_ההערה|שם=xyz}}
I didn't put a parameter call such as תוכן=
(content=
) before מידע_ההערה
(REFERENCE_INFORMATION) but rather, only before שם
("name").
If I would explicitly call all parameters in a the template call we would have:
{{הערה|תוכן=מידע_ההערה|שם=xyz}}
But Hebrew Wikipedia allows to omit the first parameter call somehow (perhaps based on the fact that it's the first parameter call).
My question
Is it a best practice to explicitly call all parameters in template-calls in MediaWiki templates?
@Johnatan3 wouldn't you prefer to make it redundant to call content=
(i.e תוכן=
) at least in cases were it is the first parameter? 182.232.57.75 (talk) 16:26, 2 June 2020 (UTC)
- It's just how the code developed in the other thread, but you could change it to:
<includeonly>{{#if:{{{name|}}} | {{#tag:ref|{{{1|}}}|name={{{name}}}}} | {{#tag:ref|{{{1|}}}}} }}</includeonly>
- Then you would call it as you suggest (i.e. the "name" parameter has to be stated as "name=" but the content parameter just has to be the first parameter). Jonathan3 (talk) 21:00, 4 June 2020 (UTC)
- This wouldn't work if you do it the wrong way round, e.g. {{cite | name = greetings | how do you do}}. I think that's because there is no {{{1 }}} parameter in that case. Jonathan3 (talk) 21:02, 4 June 2020 (UTC)
- @Jonathan3
- Your guidance inspires me; I thank you for coming to my aid in these graceful, didactic ways;
- I hope other users will take example from you !
- With great appreciation.
182.232.4.49 (talk) 10:57, 7 June 2020 (UTC)- Thank you very much - you're welcome :-) Jonathan3 (talk) 15:53, 9 June 2020 (UTC)
- P.S. I said:
- This wouldn't work if you do it the wrong way round, e.g. {{cite | name = greetings | how do you do}}. I think that's because there is no {{{1}}} parameter in that case.
- But I've just tried it again and it works all right either way... Jonathan3 (talk) 13:41, 17 June 2020 (UTC)
ads blocking content
Every time i look at a pokémon page (mobile), there's a huge video player ad blocking all the content below the pokemon photo. There's also no way to close out or report the ad for blocking it. Please fix this it's annoying. 2600:8803:2A00:338:807B:FDBC:12B2:CC7A (talk) 17:50, 2 June 2020 (UTC)
How to delete all discussions which had no main page?
I have many discussions on my wiki, but I want to delete all of them, which had no article for them.
How can I do that?
Thanks. 2A02:908:3111:7DA0:CCF9:36B7:CFCE:F7AD (talk) 20:49, 2 June 2020 (UTC)
- Please have a look at the maintenance scripts Manual:RevisionDelete and Manual:DeleteBatch.php. First you will probably have to compile a list of pages you want to delete. This could be done by using "Special:Allpages" with a proper namespace filter. Osnard (talk) 08:57, 3 June 2020 (UTC)
- I have installed DeleteBatch, but I dont understand how to give it the list with the articles names. I don't understand the manual. :( 2A02:908:3111:7DA0:5545:F124:EDE3:F6B1 (talk) 15:13, 4 June 2020 (UTC)
My wiki is for 2006 how can I make to dued for 2020
How can I change it to 2020 41.115.16.18 (talk) 21:31, 2 June 2020 (UTC)
DOUT via Server
RESOLVED | |
offtopic |
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.
Can I control the status of DOUT in my FMB via server? The AVL ID is 179. If possible how to proceed. 49.205.37.36 (talk) 07:43, 3 June 2020 (UTC)
- Can you please elaborate on how this question is related to the MediaWiki software? Maybe you are on the wrong helpdesk. Osnard (talk) 08:36, 3 June 2020 (UTC)
After upgrading my Wiki to 1.35, recent changes cannot be opened
its show
{
"error":
{
"code": "internal_api_error_Error",
"info": "[81dd619247a12c36a69dce4c] Exception caught: Class 'LightnCandy\\LightnCandy' not found",
"errorclass": "Error",
"*": "Error at /www/wwwroot/wiki/includes/TemplateParser.php(67)\n#0 /www/wwwroot/wiki/includes/changes/ChannelFeed.php(46): TemplateParser->__construct()\n#1 /www/wwwroot/wiki/includes/changes/ChangesFeed.php(63): ChannelFeed->__construct(string, string, string)\n#2 /www/wwwroot/wiki/includes/api/ApiFeedRecentChanges.php(116): ChangesFeed->getFeedObject(string, string, string)\n#3 /www/wwwroot/wiki/includes/api/ApiFeedRecentChanges.php(69): ApiFeedRecentChanges->getFeedObject(string, string)\n#4 /www/wwwroot/wiki/includes/api/ApiMain.php(1584): ApiFeedRecentChanges->execute()\n#5 /www/wwwroot/wiki/includes/api/ApiMain.php(524): ApiMain->executeAction()\n#6 /www/wwwroot/wiki/includes/api/ApiMain.php(495): ApiMain->executeActionWithErrorHandling()\n#7 /www/wwwroot/wiki/api.php(84): ApiMain->execute()\n#8 {main}"
}
}
what can i do?
MediaWiki | 1.35.0-alpha |
PHP | 7.2.31 (fpm-fcgi) |
MySQL | 5.6.48-log |
ICU | 50.2 |
skins is timeless Fmqwd (talk) 13:40, 3 June 2020 (UTC)
- MediaWiki 1.35 has not yet been released. You have probably cloned directly from the `master` branch of the development repository, which is not recommended. Please see Download for more information about how to get MediaWiki.
- If you really want to use `master` branch you will probably need to run `composer update` from the installation directory, so library dependencies like "LightnCandy" can be resolved. Osnard (talk) 15:13, 3 June 2020 (UTC)
Virtual Directory as Upload Target
RESOLVED | |
I can't use an external file directory as wikimedia needs to add items to the database via upload or a script. |
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I need to use a share as an upload directory so admins can directly add files and have them embedded into wiki pages. This is using CentOS and apache, and the share is mounted with autofs and owned by 'apache'.
I added a Virtual Directory:
<VirtualHost test.my.site.com:443>
ServerName test.my.site.com
ServerAlias test.my.site.com
DocumentRoot /var/www/test.my.site.com/html
SSLEngine on
SSLCertificateFile /path/cert.cer
SSLCertificateKeyFile /path/cert.key
Alias /share/ "mnt/share"
<Directory "/mnt/share">
Options +Indexes
AllowOverride None
Order allow,deny
Allow from all
Require all granted
</Directory>
</VirtualHost>
I tried browsing to :
https://test.my.site.com/share/
but it says that 'share' doesn't exist. I read that Options +Indexes should make the directory browsable, but I am obviously missing something.
LocalSettings:
$wgEnableUploads = true;
$wgUploadDirectory = "${IP}/share/";
$wgUploadPath = "${IP}/share/";
I tired to make it list the uploaded files, but none exist. I don't know if I am missing steps or it just cannot read those files?
Questions:
Should I manually create the /share/ directory under /var/www/test.my.site.com/html/share/ or is the alias enough?
Should I be able to directly browse to /share/?
Will wikimedia read files I have manually added to the share or does the upload feature do anything special?
How can I test my share directory is being seen by apache?
Is "${IP}/share/" the correct path?
I've been reading guides, but they all seem incomplete. Thanks! Kittencorn (talk) 18:25, 3 June 2020 (UTC)
- note, you cant directly add files to the filesystem and have them used in wiki as its missung database info. You have to use manual:importImages.php
- Other then that, using shares should be fine. NFS is commonly used in order to scale up mediawiki to multiple webservers.
- This is more an apache question than a mediawiki one, but first of all you probably need the alias to be to /mnt/share not mnt/share.
- In this config you would need wgUploadDirectory to be /mnt/share (the file system path) and $wgUploadPath to be the url that users access via the web ( "/share" ) Bawolff (talk) 19:55, 3 June 2020 (UTC)
- Thanks :) Kittencorn (talk) 15:36, 4 June 2020 (UTC)
How to create a Report for Change Management
I am using mediawiki for hosting our internal documentation and I want to use it to be able to create Change management reports. I want to be able to create a template where you click on a button and it creates the report with a different ID each time and date. Samrao79 (talk) 20:59, 3 June 2020 (UTC)
- try Extension:PageForms maybe.
- There is also extension:InputBox but might be too simple. Bawolff (talk) 04:30, 4 June 2020 (UTC)
Date format in citations to DD-MM-YYYY
Hi all, this is my first time here and I hope I'm right, I was wondering if anything could be done to chage the date format in the Visual Editor citations in Spanish from YYYY-MM-DD to DD-MM-YYYY which is the community's standard (see this discussion or this comment (in Spanish)). Silva Selva (talk) 05:52, 4 June 2020 (UTC)
- @Silva Selva I assume this is about Help:VisualEditor/User guide#Adding a new reference ? Where to enter a date format after which steps? This might be a better question for VisualEditor/Portal Malyacko (talk) 07:16, 4 June 2020 (UTC)
- It is about that, thanks for the hint @Malyacko, will write there :) Silva Selva (talk) 23:35, 4 June 2020 (UTC)
Please review my testing pages for this RTL (Hebrew) Cite footnotes template
I have an RTL (Hebrew) principally all-core 1.34.0 MediaWiki website with Cite extension and ParserFunctions extensions loaded in LocalSettings.php.
In that website I use the following RTLized Cite template to create RTL (Hebrew) Cite footnotes in a Scribunto/Lua-free way.
Template:Cite (תבנית:הערה
):
<includeonly>{{#תנאי:{{{שם|}}} | {{#תגית:ref|{{{תוכן|}}}|name={{{שם}}}}} | {{#תגית:ref|{{{תוכן|}}}}} }}</includeonly>
Please review my testing pages for this RTL (Hebrew) Cite footnotes template
The following two testing pages:
1) בדיקה:הערה עם קריאה לפרמטרים ללא שיום בעברית
2) בדיקה:הערה עם קריאה לפרמטרים עם שיום בעברית
are exampling the input by which I call the above template (תבנית:הערה
), as well as it's output;
Because this site (mediawiki.org) is LTR and biased by local scripts (all תבנית:הערה
appear is Template:הערה
), the source code isn't parsed correctly below but you could access it by viewing the source code of the current webpage.
If you don't speak Hebrew, using machine translation might be good enough when trying two review both testing pages.
Testing pages:
<div dir="rtl"> ==בדיקה:הערה עם קריאה לפרמטרים ללא שיום בעברית== ===ללא לינקים=== *בדיקת אותיות ומספרים ללא תווים מיוחדים{{הערה|תוכן=בדיקת אותיות ומספרים ללא תווים מיוחדים 12345678910 abcd efg hijklmnop qrst uvwxyz}} *בדיקת תווים מיוחדים (סימן שוויון בלבד){{הערה|תוכן= =}} *בדיקת תווים מיוחדים (קו אופקי בלבד){{הערה|תוכן={{!}}}} *בדיקת תווים מיוחדים למעט סימן שוויון{{הערה|תוכן= +_()*&^%$#@!~ :; '' "" ., <> /\ }} ===עם לינקים=== ====לינקים לא מקודדים==== *בדיקת לינק לא מקודד, אשר הונח בתוך סוגריים מרובעים, ללא טקסט-תיאור-קישור{{הערה|תוכן=[https://bing.com]}} *בדיקת לינק לא מקודד, אשר הונח בתוך סוגריים מרובעים, עם טקסט-תיאור-קישור בעברית{{הערה|תוכן=[https://bing.com מנוע_החיפוש_בינג]}} *בדיקת לינק לא מקודד, אשר הונח בתוך סוגריים מרובעים, עם טקסט-תיאור-קישור באנגלית{{הערה|תוכן=[https://bing.com bing_search_engine]}} ====לינקים מקודדים==== *בדיקת לינק מקודד, אשר לא הונח בתוך סוגריים מרובעים, ללא טקסט-תיאור-קישור{{הערה|תוכן=https://he.wikipedia.org/wiki/%D7%94%D7%A1%D7%A4%D7%A8%D7%99%D7%99%D7%94_%D7%94%D7%9C%D7%90%D7%95%D7%9E%D7%99%D7%AA_%D7%A9%D7%9C_%D7%A6%D7%A8%D7%A4%D7%AA}} *בדיקת לינק מקודד, אשר כן הונח בתוך סוגריים מרובעים, עם טקסט-תיאור-קישור בעברית{{הערה|תוכן=[https://he.wikipedia.org/wiki/%D7%94%D7%A1%D7%A4%D7%A8%D7%99%D7%99%D7%94_%D7%94%D7%9C%D7%90%D7%95%D7%9E%D7%99%D7%AA_%D7%A9%D7%9C_%D7%A6%D7%A8%D7%A4%D7%AA הספריה הלאומית של צרפת]}} *בדיקת לינק מקודד, אשר כן הונח בתוך סוגריים מרובעים, עם טקסט-תיאור-קישור בעברית{{הערה|תוכן=[https://he.wikipedia.org/wiki/%D7%94%D7%A1%D7%A4%D7%A8%D7%99%D7%99%D7%94_%D7%94%D7%9C%D7%90%D7%95%D7%9E%D7%99%D7%AA_%D7%A9%D7%9C_%D7%A6%D7%A8%D7%A4%D7%AA French national library]}} ===הערות שוליים=== {{הערות שוליים}} ==בדיקה:הערה עם קריאה לפרמטרים עם שיום בעברית== ===ללא לינקים=== *בדיקת אותיות ומספרים ללא תווים מיוחדים{{הערה|תוכן=בדיקת אותיות ומספרים ללא תווים מיוחדים 12345678910 abcd efg hijklmnop qrst uvwxyz|שם=בדיקת אותיות ומספרים ללא תווים מיוחדים}} *בדיקת תווים מיוחדים (סימן שוויון בלבד){{הערה|תוכן= =|שם=בדיקת תווים מיוחדים (סימן שוויון בלבד)}} *בדיקת תווים מיוחדים (קו אופקי בלבד){{הערה|תוכן={{!}}|שם=בדיקת תווים מיוחדים (קו אופקי בלבד)}} *בדיקת תווים מיוחדים למעט סימן שוויון{{הערה|תוכן= +_()*&^%$#@!~ :; '' "" ., <> /\ |שם=בדיקת תווים מיוחדים למעט סימן שוויון}} ===עם לינקים=== ====לינקים לא מקודדים==== *בדיקת לינק לא מקודד, אשר הונח בתוך סוגריים מרובעים, ללא טקסט-תיאור-קישור{{הערה|תוכן=[https://bing.com]|שם=x}} *בדיקת לינק לא מקודד, אשר הונח בתוך סוגריים מרובעים, עם טקסט-תיאור-קישור בעברית{{הערה|תוכן=[https://bing.com מנוע_החיפוש_בינג]|שם=y}} *בדיקת לינק לא מקודד, אשר הונח בתוך סוגריים מרובעים, עם טקסט-תיאור-קישור באנגלית{{הערה|תוכן=[https://bing.com bing_search_engine]|שם=z}} ====לינקים מקודדים==== *בדיקת לינק מקודד, אשר לא הונח בתוך סוגריים מרובעים, ללא טקסט-תיאור-קישור{{הערה|תוכן=https://he.wikipedia.org/wiki/%D7%94%D7%A1%D7%A4%D7%A8%D7%99%D7%99%D7%94_%D7%94%D7%9C%D7%90%D7%95%D7%9E%D7%99%D7%AA_%D7%A9%D7%9C_%D7%A6%D7%A8%D7%A4%D7%AA|שם=ס}} *בדיקת לינק מקודד, אשר כן הונח בתוך סוגריים מרובעים, עם טקסט-תיאור-קישור בעברית{{הערה|תוכן=[https://he.wikipedia.org/wiki/%D7%94%D7%A1%D7%A4%D7%A8%D7%99%D7%99%D7%94_%D7%94%D7%9C%D7%90%D7%95%D7%9E%D7%99%D7%AA_%D7%A9%D7%9C_%D7%A6%D7%A8%D7%A4%D7%AA הספריה הלאומית של צרפת]|שם=ט}} *בדיקת לינק מקודד, אשר כן הונח בתוך סוגריים מרובעים, עם טקסט-תיאור-קישור בעברית{{הערה|תוכן=[https://he.wikipedia.org/wiki/%D7%94%D7%A1%D7%A4%D7%A8%D7%99%D7%99%D7%94_%D7%94%D7%9C%D7%90%D7%95%D7%9E%D7%99%D7%AA_%D7%A9%D7%9C_%D7%A6%D7%A8%D7%A4%D7%AA French national library]|שם=ז}} ===קריאות כפי שם=== ===ללא לינקים=== *{{הערה|שם=בדיקת אותיות ומספרים ללא תווים מיוחדים}} *{{הערה|שם=בדיקת תווים מיוחדים (סימן שוויון בלבד)}} *{{הערה|שם=בדיקת תווים מיוחדים (קו אופקי בלבד)}} *{{הערה|שם=בדיקת תווים מיוחדים למעט סימן שוויון}} ===עם לינקים=== ====לינקים לא מקודדים==== *{{הערה|שם=x}} *{{הערה|שם=y}} *{{הערה|שם=z}} ====לינקים מקודדים==== *{{הערה|שם=ס}} *{{הערה|שם=ט}} *{{הערה|שם=ז}} ===הערות שוליים=== {{הערות שוליים}} </div>
182.232.1.159 (talk) 06:06, 4 June 2020 (UTC)
- Please be more specific what "review" means. Or why to review. Malyacko (talk) 07:12, 4 June 2020 (UTC)
- @Malyacko
- By "review" I mean to go through at least each input line in each of the two testing (
בדיקה
) namespace pages and impress if something is redundant (in the sense that it is already encapsulated in an adjacent test). - Beyond that, someone point out some crucial content structure/s I might have missed or just write something differently.
- It should be best to review in a similar RTL (Hebrew) MediaWiki installment as of mine (described in the opening passage of the first post).
- While all my tests came out fine and demonstrate that creating footnotes works, a review isn't urgent because I don't have much experience with source code testing in general, other people and myself might learn something from a review. 182.232.1.159 (talk) 11:26, 4 June 2020 (UTC)
- but because I don't have much* 182.232.7.53 (talk) 05:40, 5 June 2020 (UTC)
Help
RESOLVED | |
Long-term abuse |
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.
https://bn.quote.ganipediya.xyz/index.php/%E0%A6%AE%E0%A6%A1%E0%A6%BF%E0%A6%89%E0%A6%B2:Message_box please seen I want to solve this problem on my wiki~ SouravHalder2 (talk) 06:42, 4 June 2020 (UTC)
- @SouravHalder2 Then fix the fact that your Lua binary is not executable. :) Malyacko (talk) 07:17, 4 June 2020 (UTC)
- How to fix it SouravHalder2 (talk) 07:32, 4 June 2020 (UTC)
- https://bn.quote.ganipediya.xyz/index.php/%E0%A6%AE%E0%A6%A1%E0%A6%BF%E0%A6%89%E0%A6%B2:Message_box please check SouravHalder2 (talk) 07:36, 4 June 2020 (UTC)
- @SouravHalder2 Please read Manual:How to debug Malyacko (talk) 07:48, 4 June 2020 (UTC)
- Set $wgShowExceptionDetails = true; in LocalSettings.php Bawolff (talk) 07:46, 4 June 2020 (UTC)
- im use do not work and view
- [XtioXBEAwCePqQDEn1v3hgAAAUk] /index.php/%E0%A6%AE%E0%A6%A1%E0%A6%BF%E0%A6%89%E0%A6%B2:Message_box MWException from line 209 of /home/amargita/bn.quote.ganipediya.xyz/extensions/Scribunto/includes/engines/LuaStandalone/LuaStandaloneEngine.php: The lua binary (/home/amargita/bn.quote.ganipediya.xyz/extensions/Scribunto/includes/engines/LuaStandalone/binaries/lua5_1_5_linux_64_generic/lua) is not executable.
- Backtrace:
- #0 /home/amargita/bn.quote.ganipediya.xyz/extensions/Scribunto/includes/engines/LuaStandalone/LuaStandaloneEngine.php(104): Scribunto_LuaStandaloneInterpreter->__construct(Scribunto_LuaStandaloneEngine, array)
- #1 /home/amargita/bn.quote.ganipediya.xyz/extensions/Scribunto/includes/engines/LuaCommon/LuaCommon.php(121): Scribunto_LuaStandaloneEngine->newInterpreter()
- #2 /home/amargita/bn.quote.ganipediya.xyz/extensions/Scribunto/includes/engines/LuaStandalone/LuaStandaloneEngine.php(18): Scribunto_LuaEngine->load()
- #3 /home/amargita/bn.quote.ganipediya.xyz/extensions/Scribunto/includes/engines/LuaCommon/LuaCommon.php(224): Scribunto_LuaStandaloneEngine->load()
- #4 /home/amargita/bn.quote.ganipediya.xyz/extensions/Scribunto/includes/engines/LuaCommon/LuaCommon.php(953): Scribunto_LuaEngine->getInterpreter()
- #5 /home/amargita/bn.quote.ganipediya.xyz/extensions/Scribunto/includes/engines/LuaCommon/LuaCommon.php(940): Scribunto_LuaModule->getInitChunk()
- #6 /home/amargita/bn.quote.ganipediya.xyz/extensions/Scribunto/includes/common/Base.php(193): Scribunto_LuaModule->validate()
- #7 /home/amargita/bn.quote.ganipediya.xyz/extensions/Scribunto/includes/common/ScribuntoContent.php(30): ScribuntoEngineBase->validate(string, string)
- #8 /home/amargita/bn.quote.ganipediya.xyz/extensions/Scribunto/includes/common/ScribuntoContent.php(101): ScribuntoContent->validate(Title)
- #9 /home/amargita/bn.quote.ganipediya.xyz/includes/content/AbstractContent.php(555): ScribuntoContent->fillParserOutput(Title, integer, ParserOptions, boolean, ParserOutput)
- #10 /home/amargita/bn.quote.ganipediya.xyz/includes/Revision/RenderedRevision.php(267): AbstractContent->getParserOutput(Title, integer, ParserOptions, boolean)
- #11 /home/amargita/bn.quote.ganipediya.xyz/includes/Revision/RenderedRevision.php(236): MediaWiki\Revision\RenderedRevision->getSlotParserOutputUncached(ScribuntoContent, boolean)
- #12 /home/amargita/bn.quote.ganipediya.xyz/includes/Revision/RevisionRenderer.php(215): MediaWiki\Revision\RenderedRevision->getSlotParserOutput(string)
- #13 /home/amargita/bn.quote.ganipediya.xyz/includes/Revision/RevisionRenderer.php(152): MediaWiki\Revision\RevisionRenderer->combineSlotOutput(MediaWiki\Revision\RenderedRevision, array)
- #14 [internal function]: MediaWiki\Revision\RevisionRenderer->MediaWiki\Revision\{closure}(MediaWiki\Revision\RenderedRevision, array)
- #15 /home/amargita/bn.quote.ganipediya.xyz/includes/Revision/RenderedRevision.php(198): call_user_func(Closure, MediaWiki\Revision\RenderedRevision, array)
- #16 /home/amargita/bn.quote.ganipediya.xyz/includes/poolcounter/PoolWorkArticleView.php(196): MediaWiki\Revision\RenderedRevision->getRevisionParserOutput()
- #17 /home/amargita/bn.quote.ganipediya.xyz/includes/poolcounter/PoolCounterWork.php(125): PoolWorkArticleView->doWork()
- #18 /home/amargita/bn.quote.ganipediya.xyz/includes/page/Article.php(791): PoolCounterWork->execute()
- #19 /home/amargita/bn.quote.ganipediya.xyz/includes/actions/ViewAction.php(63): Article->view()
- #20 /home/amargita/bn.quote.ganipediya.xyz/includes/MediaWiki.php(511): ViewAction->show()
- #21 /home/amargita/bn.quote.ganipediya.xyz/includes/MediaWiki.php(302): MediaWiki->performAction(Article, Title)
- #22 /home/amargita/bn.quote.ganipediya.xyz/includes/MediaWiki.php(900): MediaWiki->performRequest()
- #23 /home/amargita/bn.quote.ganipediya.xyz/includes/MediaWiki.php(527): MediaWiki->main()
- #24 /home/amargita/bn.quote.ganipediya.xyz/index.php(44): MediaWiki->run()
- #25 {main}
SouravHalder2 (talk) 07:54, 4 June 2020 (UTC)- ...and we are back to the second comment on this thread. Malyacko (talk) 09:53, 4 June 2020 (UTC)
Template parameters in galleries
RESOLVED | |
use #tag |
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 create a navigation menu with addresses based on a template parameter. For this I created a gallery of icons, whose link address is calculated by passing a template parameter to a different template, which turns a given file path into a link in MediaWiki markup. However, this does not appear to work. I tried to place the parser functions of the second template into the first one directly, but that did not help at all. Placing the intended link into the gallery or the value of the parameter into the parser function work.
This is the markup:<!-- First Template --> <gallery mode="packed-hover" caption="Dokumente> Image:image.png|link=file://netdata1/... <!-- this works --> Image:image.png|link={{#if: \\netdata1\... | file:{{#replace: {{#replace: \\netdata1\...| |%20}} |\|/}} | No link!}} <!-- this works too --> Image:image.png|link={{#if: {{{Ordner|}}} | file:{{#replace: {{#replace: {{{Ordner|}}}| |%20}} |\|/}} | No link!}} <!-- this does not work when used in an article --> Image:image.png|link={{unc_raw | {{{ANKO-Folien|}}} }} <!-- neither does this --> </gallery> <!-- Second Template (unc_raw) --> <includeonly><onlyinclude> {{#if: {{{1}}} |file:{{#replace:{{#replace:{{{1}}}| |%20}} |\|/}} | No link!}} <!-- appends "file:" and replaces spaces with %20 and "\" with "/" --> </onlyinclude><includeonly>The third and fourth link always evaluate to "No link!" when I use the template. If I use the unc_raw outside of the gallery, it evaluates properly. I do not understand MediaWiki enough to have a concrete idea what is going on here. 153.96.98.7 (talk) 07:14, 4 June 2020 (UTC)
- You may have to use syntax like
{{#tag:gallery| File:Example.png{{!}}{{#if:{{{a|}}}|A|not a}} File:Example.svg{{!}}Another image |mode=packed-hover|caption=foo| }}
- If you want to use parser functions inside gallery tags. Bawolff (talk) 07:45, 4 June 2020 (UTC)
- Thanks, that solved the problem. 153.96.98.7 (talk) 08:07, 4 June 2020 (UTC)
how to set keep me logged in to true by default?
Currently im using Google Login extension and i configured my local settings for shared DB and session
Its working in default media wiki auth since i can click the `keep me logged in` to use the session from one wiki to the others as well
but using google login with $wgGLAuthoritativeMode = 'true';
i can't find a way to set `keep me logged in` to true 152.32.96.178 (talk) 08:18, 4 June 2020 (UTC)
Reflist tag strange behaviour
Hello, I am trying to add a reference list to an article in my wiki. However, when I do {{RefList|group=lower-alpha}} or simply {{RefList}} I get a link to a non existant page "Template: RefList" and although I do get a reference list after that link, I do not get the reference list grouped by lowercase letter, but by numbers instead. I can't figure out what's causing this. I would appreciate help.
Thank you very much. Sam sepia (talk) 10:42, 4 June 2020 (UTC)
- "Reflist" is a template not internal magic, so you have to create the template first. See English Wikipedia version: w:Template:Reflist. It's a bit complicated though. For the lower-alpha grouping, you've to create page similar to w:MediaWiki:Cite link label group-lower-alpha and make sure the template is set up to work with it correctly. Ammarpad (talk) 12:45, 4 June 2020 (UTC)
- Thanks. I understand now, however, when I check the English Wikipedia RefList template, I can't see the code that's being used to generate those templates, I just see a website with documentation and when I view the code is has this stuff starting with a <div>, yet when I paste that code into my template I get a scrambled output, not really a working RefList template. Thanks for the reply. Sam sepia (talk) 14:00, 4 June 2020 (UTC)
- https://www.mediawiki.org/wiki/Manual:Importing_Wikipedia_infoboxes_tutorial might be helpful (replace infobox with reflist throughout) Bawolff (talk) 16:02, 4 June 2020 (UTC)
How can I delete all discussion pages?
Want to delete all discussion pages on my wiki. All other pages should stay. 2A02:908:3111:7DA0:5545:F124:EDE3:F6B1 (talk) 14:53, 4 June 2020 (UTC)
- You'll have to take a look at Manual:DeleteBatch.php. AhmadF.Cheema (talk) 02:01, 5 June 2020 (UTC)
- See also Manual:nukeNS.php Ciencia Al Poder (talk) 09:32, 5 June 2020 (UTC)
- Ahmad, I installed the extension, but I don't know, how now to give it the list with the artciles, I want to delete. 2A02:908:3111:7DA0:F06F:ACE7:9FAE:17A (talk) 11:06, 7 June 2020 (UTC)
- Try NukeNS.php mentioned earlier, this is significantly simpler. AhmadF.Cheema (talk) 17:52, 7 June 2020 (UTC)
- Ok, but where is it to download? Or how do I install it NukeNS? 2A02:908:3111:7DA0:453A:68EA:93F3:7339 (talk) 10:05, 8 June 2020 (UTC)
- It is a PHP script file which should already be present inside your
<mediawiki_folder>/maintenance
directory. See Manual:Maintenance scripts for details on running such scripts. AhmadF.Cheema (talk) 10:27, 8 June 2020 (UTC)
Blocked by MediaWiki?
I tried to create an account on a wiiki (https://uncyclopedia.ca) that runs on MediaWiki and I saw this message:
Your username or IP address has been automatically blocked by MediaWiki. The reason given is:
Your IP address is listed as an open proxy in the SORBS DNSBL. Too bad for you. Ha!
How is this possible if I am able to log in and post this message here?
(If I'm asking in the wrong place, please let me know where I should go for help) DarklitShadow (talk) 17:54, 4 June 2020 (UTC)
- They have enabled Manual:$wgSorbsUrl and you get a message from https://uncyclopedia.ca/wiki/MediaWiki:Sorbsreason
- Uncyclopedia is totally different wiki than mediawiki.org (or any other Wikimedia website) so of course you can write here. Uncyclopedia only use the MediaWiki software. Stryn (talk) 18:02, 4 June 2020 (UTC)
- Is there anything I can do to get myself unblocked there or is this a warning sign of a bigger problem such as "Hey buddy, you email address is compromised"
- (I couldn't design a web site, let alone run an open proxy.
- This was the first time I attempted to access the site.
- I received the same message on https://uncyclopedia.co (first fork of Uncyclopedia) but I was able to successfully log in despite seeing the exact same message.
- The only thing that might be worth noting is that currently two other devices on my network are working from home. DarklitShadow (talk) 18:14, 4 June 2020 (UTC)
- It does not indicate anything about your email address. It may indicate that your machine is compromised and thus your IP has been used to send spam, but more than likely it indicates that either you are using VPN (and so all your traffic originates from a specific IP, which is or has been also used by spammers), or the IP range provided by your ISP has been used for spam by other people in that network range. In the former case try without the VPN or use a different exit point. In the latter case consider switching ISPs.
- The other solution is to contact an admin at the website and see if they are willing to create an account for you. Clump (talk) 19:46, 4 June 2020 (UTC)
- Hmmm... there are only three things I can think that can possibly be related but I have no idea if any of them could cause this:
- BitDefender sometimes warns me that a port scan was just blocked.
- BitDefender occasionally tells me that Microsoft Books has an out of date certificate.
- I have a second email which in the form "first.last AT [domain] and my last name contains two of the same letter sequentially. When it was created, I added a third and a month on a gmail forum trying to figure out why I wasn't getting email DarklitShadow (talk) 20:07, 4 June 2020 (UTC)
- None of that is relevant: it is your IP address. Either you need to change that at least long enough to create an account (e.g., try creating an account from work instead of home, or by using your phone (while using data, not wifi), asking a friend with a different ISP, ...), or you need to get someone at uncyclopedia to help. If they hard-block your IP range even for logged in users (unlikely, but dunno) then the latter may be your only solution. Clump (talk) 20:58, 4 June 2020 (UTC)
Have domain.tld/ show the domain.tld/Main_Page content
I have all my articles in the root like domain.tld/Main_Page and domain.tld/Special:SpecialPages. I know the pros and cons of this and I'm comfortable with them. Right now I'm trying to make it so domain.tld/Main_Page loads the domain.tld/Main_Page content, and if you go to domain.tld/Main_Page it takes you to domain.tld/. Is that possible?
My LocalSettings.php has:
$wgScriptPath = "/w";
$wgUsePathInfo = true;
$wgArticlePath = "/$1";
And my .htaccess has:
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*) /w/index.php/$1 [L,QSA] 144.51.12.18 (talk) 19:18, 4 June 2020 (UTC)
- set $wgMainPageIsDomainRoot = true; Bawolff (talk) 21:21, 4 June 2020 (UTC)
DISPLAYTITLE is not working and places articles in the "Pages with ignored display titles" category
I'd like to have my article urls to be all lower case, but I'd like to have my display title capitalized. All my articles have a slash in them and are in the format of numbers, slash, then letters. For example: "123/abc". In each article I have "{{DISPLAYTITLE:123/ABC}}". Unfortunately my display title is showing in lower case and the article is put in the category: Pages with ignored display titles. Am I doing something wrong?
In LocalSettings.php I have:
$wgCapitalLinks = false; 144.51.12.18 (talk) 19:29, 4 June 2020 (UTC)
- Maybe with $wgCapitalLinks = false it thinks 123/abc is the same as 123/ABC so ignores it... what happens with that set to true?
- Maybe add something to the new display title to get round that? E.g. an extra character. Jonathan3 (talk) 20:43, 4 June 2020 (UTC)
- It didn't make a difference with $wgCapitalLinks set to true or true. I also moved the page to remove the slash and I removed the slash in displaytitle too, but still no difference. (I cleared my cache each time.) 144.51.12.18 (talk) 20:50, 4 June 2020 (UTC)
- displaytitle only lets you change the name to a page thats equivalent. You can have separate articles 123/abc and 123/ABC so they are not considered equivalent.
- Set $wgRestrictDisplayTitle = false; to remove this restriction.
- P.s.
- $wgCapitalLinks only controls the case sensitivity of the first letter of title. Bawolff (talk) 21:16, 4 June 2020 (UTC)
- Sorry for sending you on a wild goose chase... Jonathan3 (talk) 21:56, 4 June 2020 (UTC)
- It is possible to disable that restriction with:
$wgRestrictDisplayTitle = false;
.- Manual:$wgAllowDisplayTitle
- OR, What about using a different extension to achieve a different display title?
- Extension:Display Title
- Also, why not just use css to override the first page header CSS to be all capitals if you want them all caps (by targeting the first header style and then using text-transform: capitalize )? Then you don’t even have to set a display title on every page, it’ll affect all first titles site-wide when set on the correct selector.
- https://www.w3schools.com/cssref/pr_text_text-transform.asp TiltedCerebellum (talk) 09:26, 29 June 2020 (UTC)
Internal Error after Updating from MW 1.27 to MW 1.33.1
After Updating from MW 1.27 to MW 1.33.1 I got the following message:
[ba7c45035fc5572d1943f1b7] /mediawiki/index.php?title=Hauptseite Wikimedia\Rdbms\DBQueryError from line 1587 of /volume1/web/mediawiki/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 rev_id,rev_page,rev_timestamp,rev_minor_edit,rev_deleted,rev_len,rev_parent_id,rev_sha1,comment_rev_comment.comment_text AS `rev_comment_text`,comment_rev_comment.comment_data AS `rev_comment_data`,comment_rev_comment.comment_id AS `rev_comment_cid`,actor_rev_user.actor_user AS `rev_user`,actor_rev_user.actor_name AS `rev_user_text`,temp_rev_user.revactor_actor AS `rev_actor`,page_namespace,page_title,page_id,page_latest,page_is_redirect,page_len,user_name FROM `revision` JOIN `revision_comment_temp` `temp_rev_comment` ON ((temp_rev_comment.revcomment_rev = rev_id)) JOIN `comment` `comment_rev_comment` ON ((comment_rev_comment.comment_id = temp_rev_comment.revcomment_comment_id)) JOIN `revision_actor_temp` `temp_rev_user` ON ((temp_rev_user.revactor_rev = rev_id)) JOIN `actor` `actor_rev_user` ON ((actor_rev_user.actor_id = temp_rev_user.revactor_actor)) JOIN `page` ON ((page_id = rev_page)) LEFT JOIN `user` ON ((actor_rev_user.actor_user != 0) AND (user_id = actor_rev_user.actor_user)) WHERE page_namespace = '8' AND page_title = 'Gadgets-definition' AND (rev_id=page_latest) LIMIT 1
Function: MediaWiki\Revision\RevisionStore::fetchRevisionRowFromConds
Error: 1146 Table 'entwiki.revision_actor_temp' doesn't exist (localhost:/run/mysqld/mysqld10.sock)
Backtrace:
#0 /volume1/web/mediawiki/includes/libs/rdbms/database/Database.php(1556): Wikimedia\Rdbms\Database->getQueryExceptionAndLog(string, integer, string, string)
#1 /volume1/web/mediawiki/includes/libs/rdbms/database/Database.php(1274): Wikimedia\Rdbms\Database->reportQueryError(string, integer, string, string, boolean)
#2 /volume1/web/mediawiki/includes/libs/rdbms/database/Database.php(1784): Wikimedia\Rdbms\Database->query(string, string)
#3 /volume1/web/mediawiki/includes/libs/rdbms/database/Database.php(1875): Wikimedia\Rdbms\Database->select(array, array, array, string, array, array)
#4 /volume1/web/mediawiki/includes/libs/rdbms/database/DBConnRef.php(53): Wikimedia\Rdbms\Database->selectRow(array, array, array, string, array, array)
#5 /volume1/web/mediawiki/includes/libs/rdbms/database/DBConnRef.php(311): Wikimedia\Rdbms\DBConnRef->__call(string, array)
#6 /volume1/web/mediawiki/includes/Revision/RevisionStore.php(2225): Wikimedia\Rdbms\DBConnRef->selectRow(array, array, array, string, array, array)
#7 /volume1/web/mediawiki/includes/Revision/RevisionStore.php(2154): MediaWiki\Revision\RevisionStore->fetchRevisionRowFromConds(Wikimedia\Rdbms\DBConnRef, array, integer)
#8 /volume1/web/mediawiki/includes/Revision/RevisionStore.php(1534): MediaWiki\Revision\RevisionStore->loadRevisionFromConds(Wikimedia\Rdbms\DBConnRef, array, integer, Title)
#9 /volume1/web/mediawiki/includes/Revision.php(138): MediaWiki\Revision\RevisionStore->getRevisionByTitle(Title, integer, integer)
#10 /volume1/web/mediawiki/extensions/Gadgets/includes/MediaWikiGadgetsDefinitionRepo.php(139): Revision::newFromTitle(Title)
#11 /volume1/web/mediawiki/extensions/Gadgets/includes/MediaWikiGadgetsDefinitionRepo.php(108): MediaWikiGadgetsDefinitionRepo->fetchStructuredList()
#12 /volume1/web/mediawiki/includes/libs/objectcache/WANObjectCache.php(1414): MediaWikiGadgetsDefinitionRepo->{closure}(boolean, integer, array, NULL)
#13 /volume1/web/mediawiki/includes/libs/objectcache/WANObjectCache.php(1275): WANObjectCache->doGetWithSetCallback(string, integer, Closure, array)
#14 /volume1/web/mediawiki/extensions/Gadgets/includes/MediaWikiGadgetsDefinitionRepo.php(115): WANObjectCache->getWithSetCallback(string, integer, Closure, array)
#15 /volume1/web/mediawiki/extensions/Gadgets/includes/MediaWikiGadgetsDefinitionRepo.php(31): MediaWikiGadgetsDefinitionRepo->loadGadgets()
#16 /volume1/web/mediawiki/extensions/Gadgets/includes/GadgetHooks.php(143): MediaWikiGadgetsDefinitionRepo->getGadgetIds()
#17 /volume1/web/mediawiki/includes/Hooks.php(174): GadgetHooks::registerModules(ResourceLoader)
#18 /volume1/web/mediawiki/includes/Hooks.php(202): Hooks::callHook(string, array, array, NULL)
#19 /volume1/web/mediawiki/includes/resourceloader/ResourceLoader.php(263): Hooks::run(string, array)
#20 /volume1/web/mediawiki/includes/ServiceWiring.php(444): ResourceLoader->__construct(GlobalVarConfig, MediaWiki\Logger\LegacyLogger)
#21 /volume1/web/mediawiki/includes/libs/services/ServiceContainer.php(430): Wikimedia\Services\ServiceContainer->{closure}(MediaWiki\MediaWikiServices)
#22 /volume1/web/mediawiki/includes/libs/services/ServiceContainer.php(414): Wikimedia\Services\ServiceContainer->createService(string)
#23 /volume1/web/mediawiki/includes/MediaWikiServices.php(771): Wikimedia\Services\ServiceContainer->getService(string)
#24 /volume1/web/mediawiki/includes/cache/localisation/LocalisationCache.php(1037): MediaWiki\MediaWikiServices->getResourceLoader()
#25 /volume1/web/mediawiki/includes/cache/localisation/LocalisationCache.php(458): LocalisationCache->recache(string)
#26 /volume1/web/mediawiki/includes/cache/localisation/LocalisationCache.php(332): LocalisationCache->initLanguage(string)
#27 /volume1/web/mediawiki/includes/cache/localisation/LocalisationCache.php(273): LocalisationCache->loadItem(string, string)
#28 /volume1/web/mediawiki/languages/Language.php(4537): LocalisationCache->getItem(string, string)
#29 /volume1/web/mediawiki/languages/Language.php(262): Language::getFallbacksFor(string)
#30 /volume1/web/mediawiki/languages/Language.php(223): Language::newFromCode(string)
#31 /volume1/web/mediawiki/includes/ServiceWiring.php(120): Language::factory(string)
#32 /volume1/web/mediawiki/includes/libs/services/ServiceContainer.php(430): Wikimedia\Services\ServiceContainer->{closure}(MediaWiki\MediaWikiServices)
#33 /volume1/web/mediawiki/includes/libs/services/ServiceContainer.php(414): Wikimedia\Services\ServiceContainer->createService(string)
#34 /volume1/web/mediawiki/includes/MediaWikiServices.php(508): Wikimedia\Services\ServiceContainer->getService(string)
#35 /volume1/web/mediawiki/includes/Setup.php(790): MediaWiki\MediaWikiServices->getContentLanguage()
#36 /volume1/web/mediawiki/includes/WebStart.php(77): require_once(string)
#37 /volume1/web/mediawiki/index.php(39): require(string)
#38 {main}
I tried to start the update.php script but I got a error in the Maintenance.php script line 882. The used system is a synology nas and the apps Maria DB 10 , Apache HTTP Server 2.2. and Web Station. Also PHP 7.0 and PHP 7.2
Any suggestions? Minic Space (talk) 20:05, 4 June 2020 (UTC)
- whats the error from update.php? Bawolff (talk) 21:12, 4 June 2020 (UTC)
- Hi everybody :-)
- Have the same issue here. Made the mistake to press the update button on the mediawiki app inside my synology nas. For all other servers and stuff this worked for years so I was confident to do so with mediawiki as well.
- how do i - run my application's database schema updater after upgrading - on my synology? googled for that, but suggesting "run update.php" did not help, because i cannot find update.php. Can someone please explain dumb synology useres like me what to do when getting this error? normaly we are just fine pressing an update button. In this case I am happy to extend my LocalSettings.php file too, to get this error messages:
- ---
- [fb713694079c120317039284] /mediawiki/index.php?title=Hauptseite Wikimedia\Rdbms\DBQueryError from line 1587 of /volume1/web/mediawiki/includes/libs/rdbms/database/Database.php: A database query error has occurred. Did you forget to run your application's database schema updater after upgrading?
- Query: SELECT user_id,user_name,user_real_name,user_email,user_touched,user_token,user_email_authenticated,user_email_token,user_email_token_expires,user_registration,user_editcount,user_actor.actor_id FROM `user` JOIN `actor` `user_actor` ON ((user_actor.actor_user = user_id)) WHERE user_id = '1' LIMIT 1
- Function: User::loadFromDatabase
- Error: 1146 Table 'mediawiki.actor' doesn't exist (localhost:/run/mysqld/mysqld10.sock)
- Backtrace:
- #0 /volume1/web/mediawiki/includes/libs/rdbms/database/Database.php(1556): Wikimedia\Rdbms\Database->getQueryExceptionAndLog(string, integer, string, string)
- #1 /volume1/web/mediawiki/includes/libs/rdbms/database/Database.php(1274): Wikimedia\Rdbms\Database->reportQueryError(string, integer, string, string, boolean)
- #2 /volume1/web/mediawiki/includes/libs/rdbms/database/Database.php(1784): Wikimedia\Rdbms\Database->query(string, string)
- #3 /volume1/web/mediawiki/includes/libs/rdbms/database/Database.php(1875): Wikimedia\Rdbms\Database->select(array, array, array, string, array, array)
- #4 /volume1/web/mediawiki/includes/user/User.php(1442): Wikimedia\Rdbms\Database->selectRow(array, array, array, string, array, array)
- #5 /volume1/web/mediawiki/includes/user/User.php(469): User->loadFromDatabase(integer)
- #6 /volume1/web/mediawiki/includes/user/User.php(411): User->loadFromId(integer)
- #7 /volume1/web/mediawiki/includes/session/UserInfo.php(89): User->load()
- #8 /volume1/web/mediawiki/includes/session/CookieSessionProvider.php(122): MediaWiki\Session\UserInfo::newFromId(string)
- #9 /volume1/web/mediawiki/includes/session/SessionManager.php(466): MediaWiki\Session\CookieSessionProvider->provideSessionInfo(WebRequest)
- #10 /volume1/web/mediawiki/includes/session/SessionManager.php(191): MediaWiki\Session\SessionManager->getSessionInfoForRequest(WebRequest)
- #11 /volume1/web/mediawiki/includes/WebRequest.php(748): MediaWiki\Session\SessionManager->getSessionForRequest(WebRequest)
- #12 /volume1/web/mediawiki/includes/session/SessionManager.php(130): WebRequest->getSession()
- #13 /volume1/web/mediawiki/includes/Setup.php(816): MediaWiki\Session\SessionManager::getGlobalSession()
- #14 /volume1/web/mediawiki/includes/WebStart.php(77): require_once(string)
- #15 /volume1/web/mediawiki/index.php(39): require(string)
- #16 {main}
- ---
84.181.188.126 (talk) 15:50, 7 June 2020 (UTC)- To update the schema you can use
php maintenance/update.php
. Taavi (talk!) 15:53, 7 June 2020 (UTC) - aehm.. jaaa... I got it. Here comes the simple solution for not so synology users facing the same problem after updating to Mediawiki 1.33.1 on a Synology Disk Station whith the error 'Wikimedia\Rdbms\DBQueryError from line 1587'
- Make backups from everything (database, files, all you have)
- Enable the ssh login inside Synology Disk Station (Terminal & SNMP Section)
- Download putty.exe for ssh access, open putty.exe and connect on port 22 to the ip address of your nas. (agree to the certificate if asked).
- Use the admin user with admin pw from your nas as login
- Enter 'sudo -i' and use the same password again.
- At the # prompt enter 'cd /volume1/web/mediawiki/maintenance' (maybe another volume name, whatever you use)
- There you enter 'php72 update.php'
- This now may run for 10-30 minutes or longer (depends on the size of your wiki). Look at the interesting things that will happen and wait until its's over.
- Enter 'exit' twice to leave ssh shell and try to open up the wiki again in the browser. In my case it worked. Hope this could help.
- Don't forget to disable the ssh login again, and if the wiki works now, make another backup from this newer version - backups can never be wrong :-)
- Good luck,
- Ulrich 84.181.188.126 (talk) 16:45, 7 June 2020 (UTC)
How do I export a wiki page to PDF when it's not an option on sidebar? Or any way to download all the pages at once
Browsing around and wanted to download to read offline, it has printable version under tools but no export to pdf 2606:A000:1321:4000:F09D:D214:C393:47AB (talk) 22:16, 4 June 2020 (UTC)
- export to pdf is part of extension:Collection
- Most browsers have an option during printing to save as pdf. Bawolff (talk) 00:19, 5 June 2020 (UTC)
Error on Echo after installation
Hey there,
I recently installed echo extension on my wiki and I get error like this:
[XtnxGA5HlhkDk-tPralCPwAAABI] /wiki/Main_Page MWException from line 588 of /home/vol5_4/epizy.com/epiz_25902755/htdocs/wiki/includes/cache/localisation/LocalisationCache.php: LocalisationCache::readJSONFile: Invalid JSON file: /home/vol5_4/epizy.com/epiz_25902755/htdocs/wiki/extensions/Echo/i18n/hi.json
Backtrace:
#0 /home/vol5_4/epizy.com/epiz_25902755/htdocs/wiki/includes/cache/localisation/LocalisationCache.php(918): LocalisationCache->readJSONFile(string)
#1 /home/vol5_4/epizy.com/epiz_25902755/htdocs/wiki/includes/cache/localisation/LocalisationCache.php(489): LocalisationCache->recache(string)
#2 /home/vol5_4/epizy.com/epiz_25902755/htdocs/wiki/includes/cache/localisation/LocalisationCache.php(363): LocalisationCache->initLanguage(string)
#3 /home/vol5_4/epizy.com/epiz_25902755/htdocs/wiki/includes/cache/localisation/LocalisationCache.php(304): LocalisationCache->loadItem(string, string)
#4 /home/vol5_4/epizy.com/epiz_25902755/htdocs/wiki/languages/Language.php(4413): LocalisationCache->getItem(string, string)
#5 /home/vol5_4/epizy.com/epiz_25902755/htdocs/wiki/languages/Language.php(265): Language::getFallbacksFor(string)
#6 /home/vol5_4/epizy.com/epiz_25902755/htdocs/wiki/languages/Language.php(225): Language::newFromCode(string)
#7 /home/vol5_4/epizy.com/epiz_25902755/htdocs/wiki/includes/ServiceWiring.php(163): Language::factory(string)
#8 /home/vol5_4/epizy.com/epiz_25902755/htdocs/wiki/includes/libs/services/ServiceContainer.php(458): Wikimedia\Services\ServiceContainer->{closure}(MediaWiki\MediaWikiServices)
#9 /home/vol5_4/epizy.com/epiz_25902755/htdocs/wiki/includes/libs/services/ServiceContainer.php(427): Wikimedia\Services\ServiceContainer->createService(string)
#10 /home/vol5_4/epizy.com/epiz_25902755/htdocs/wiki/includes/MediaWikiServices.php(540): Wikimedia\Services\ServiceContainer->getService(string)
#11 /home/vol5_4/epizy.com/epiz_25902755/htdocs/wiki/includes/Setup.php(801): MediaWiki\MediaWikiServices->getContentLanguage()
#12 /home/vol5_4/epizy.com/epiz_25902755/htdocs/wiki/includes/WebStart.php(81): require_once(string)
#13 /home/vol5_4/epizy.com/epiz_25902755/htdocs/wiki/index.php(41): require(string)
#14 {main}
I follow all the instructions provided for avoid this error but, nothing happens. This is very important extension for me please help. I set my wiki to Hindi language.
Thanks WikiGamee (talk) 08:31, 5 June 2020 (UTC)
- Looks like the /home/vol5_4/epizy.com/epiz_25902755/htdocs/wiki/extensions/Echo/i18n/hi.json file is corrupted. Try to download the extension again Ciencia Al Poder (talk) 09:31, 5 June 2020 (UTC)
- @Ciencia Al Poder: Thanks for reply. but, when I reinstall echo after download. I see "HTTP 500 error - unable to handle this request". WikiGamee (talk) 16:18, 5 June 2020 (UTC)
- The 500 error could be because of some syntax mistake you might've made while editing your LocalSettings.php file. Kindly check and make sure that such errors don't exist. AhmadF.Cheema (talk) 17:51, 5 June 2020 (UTC)
- @AhmadF.Cheema: I check that file, there is nothing any syntax mistake. but, when I remove "wfLoadExtension( 'Echo' )" line from LocalSettings.php file then my wiki is work like before. WikiGamee (talk) 05:51, 6 June 2020 (UTC)
- There should be a semicolon
;
at the end ofwfLoadExtension( 'Echo' )
. AhmadF.Cheema (talk) 06:31, 6 June 2020 (UTC) - Sorry. but, I forget to add semicolon on my previous comment. Semicolon is already exist in my file. WikiGamee (talk) 08:42, 6 June 2020 (UTC)
- See Blank page. Obviously we're not on your server to check what the error is.
- Most likely you forgot to run composer update --no-dev Ciencia Al Poder (talk) 10:44, 6 June 2020 (UTC)
Create a gallery for picture - mode="slideshow" - thumb code HTTP 5x ?
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.
Create a gallery for picture :
https://wiki.visionduweb.fr/index.php?title=Ecrire_avec_MediaWiki#Cr.C3.A9er_une_galerie_d.27images
From : https://www.mediawiki.org/wiki/Help:Images/fr#Taille_et_cadre
Not work 100%
Look my example please.
Click the button for show all thumb :
< (left picture) button (right picture) >
Now, you can't see any thumb, not work ! If you click the link, it's ok.
If i copy the link from the thumb, it's not ok, i have this : https://wiki.visionduweb.fr/5x
It's a code HTTP 5x ?
Or, a bug ?
There is my Vhosts :
https://wiki.visionduweb.fr/index.php?title=VirtualHosts_des_domaines_enregistr%C3%A9s#wiki.visionduweb.fr_.C3.A9coute_du_port_SSL_443 Zer00CooL (talk) 08:55, 5 June 2020 (UTC)
- This is T181987. As a workaround, set $wgShellLocale = "C.UTF-8"; Ciencia Al Poder (talk) 09:30, 5 June 2020 (UTC)
- Yes ! You have just ! I use the wrong option !
- Nice ! Work Fine now !
- ## If you use ImageMagick (or any other shell command) on a
- ## Linux server, this will need to be set to the name of an
- ## available UTF-8 locale
- # Valeur par défaut à l'installation de mediawiki 1.31.0 $wgShellLocale = "C.UTF-8";
- # J'avais tenté de mettre fr_FR.UTF-8 mais c'était une très mauvaise idée !
- # Les miniatures ne s'affichaient plus ! C.UTF-8 est la bonne valeur !
- # Source : https://www.mediawiki.org/wiki/Manual:Errors_and_symptoms
- $wgShellLocale = "C.UTF-8"; Zer00CooL (talk) 14:05, 5 June 2020 (UTC)
I cannot upload pics/files on my mediawiki.
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I've been trying to upload a picture on my mediawiki by using the standard code as shown "[[File:........|.......|....]]". However, it always comes up as a broken link even when i add the picture from wiki commons. It does not give me an option to upload a file anywhere, and the option is absent on the left panel as well. I know i have an older version of mediawiki because the newer version was not compatible with my host server. How can I solve this problem? Is there a way to upload files (especially batch files and images) with the "upload" link? I need assistance ASAP. Thepainking (talk) 15:52, 5 June 2020 (UTC)
- Did you actually enable uploads? Manual:Image administration#Enable upload of images
- Also be sure you don't add file: in $wgUrlProtocols Ciencia Al Poder (talk) 15:58, 5 June 2020 (UTC)
- thanks! Thepainking (talk) 17:03, 8 June 2020 (UTC)
how to start a wikipedia page
how to start a wikipedia page for a music artist
Tinatalley (talk) 02:22, 6 June 2020 (UTC)
- ask at w:WP:Teahouse.
- Also ensure that the artist meets w:WP:BAND Bawolff (talk) 06:33, 6 June 2020 (UTC)
- Also, Help:Your first article might be helpful too. AhmadF.Cheema (talk) 06:40, 6 June 2020 (UTC)
How to find users to join my wiki project?
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 dear users. I have multilingual wiki website, but don‘t know how to find users and built the community. Please advice how to do it. Thx Fokebox (talk) 12:40, 6 June 2020 (UTC)
- Finding users and building a community (=social) is not directly related to the actual underlying software that your website is running (=technical). Hence you will need to ask in a community building forum. Malyacko (talk) 05:49, 7 June 2020 (UTC)
How to link to a page named <ref>
In an RTL (Hebrew) principally all core MediaWiki 1.34.0 website I try to create the following internal (MediaWiki) link, inside an article:
[[תגי <ref>]]
It appears as plain text rather than a blue link; why? 182.232.4.49 (talk) 12:50, 6 June 2020 (UTC)
Does it possible to Query the given questions below?
What is the total number of orphan articles on Wikipedia? |
What is the total number of dead-end articles on Wikipedia? |
What is the total number of articles on Wikipedia that have at least one media element (picture or video)? |
What is the total number of articles on Wikipedia that have more than one media element (picture or video)? |
What is the total number of articles on Wikipedia that have infoboxes? |
What is the total number of articles on Wikipedia that links to (or powered/controlled by) Wiki data? |
What is the total number of Wikidata Items connected to articles on Wikipedia |
What is the total number of articles on Wikipedia that are marked as stubs? |
What is the Average edits per page |
What is the total number of articles on Telugu Wikipedia that are marked as featured articles? |
using https://quarry.wmflabs.org/ . Ramu ummadishetty (talk) 17:25, 6 June 2020 (UTC)
- yes for all of these, however for some of these you can only do the query for one specific language edition of wikipedia.
- That said, actually making the queries is a lot of work. Some of the queries would likely timeout before giving sn answer on large languages. They might be runnable via toolforge shell but not quarry web frontend. Bawolff (talk) 18:31, 6 June 2020 (UTC)
- I don't have any idea for above queries like which tables to use in database... Can I get one example using toolforge shell ? coz i never used it . Can it possible to fetch using API's? Ramu ummadishetty (talk) 18:57, 6 June 2020 (UTC)
- most of these would use page, pagelinks, page_props, and templatelinks. Some would use others. Bawolff (talk) 05:38, 7 June 2020 (UTC)
- @Bawolff Thank you for suggesting Toolforge . I got approval for shell access able to query.
- Only concern is I am unable to query some of the question that I mentioned in the list. I would like to have queries for them.
- I tried few queries but not sure those are right. I would like you to check this queries
- Wikipedia pages without images ?
- SELECT page_title
- FROM page
- LEFT JOIN imagelinks ON il_from=page_id
- WHERE page_namespace=0 AND page_is_redirect=0 AND il_from IS NULL
- LIMIT 200;
- What is the total number of Wikidata Items connected to articles on Wikipedia?
- USE wikidatawiki_p;
- SELECT CONCAT("Q",ips_item_id), CONCAT("Lml"), CONCAT('"',ips_site_page,'"')
- FROM wb_items_per_site
- WHERE ips_site_id='hiwiki' AND NOT EXISTS (
- SELECT 1 FROM wb_terms WHERE CONCAT("Q", ips_item_id) = term_full_entity_id AND term_type = "label" AND term_language='hi' LIMIT 1
- );
- What is the total number of articles on Wikipedia that are marked as stubs?
- I don't what to take size of article to consider as it as stub one so i did like this it might be wrong
- select page_title, page_len from page where page_len < '2000' and page_namespace = 0 and page_is_redirect = 0;
- What is the total number of articles on Wikipedia that have infoboxes?
- not done
- SELECT page_title
- FROM page, imagelinks
- WHERE page_namespace = 0
- AND page_is_redirect = 0
- AND page_id NOT IN (
- SELECT il_from
- FROM imagelinks
- WHERE il_from_namespace = 0
- GROUP BY(il_from)
- )
- AND (
- NOT EXISTS(
- SELECT
- 1
- FROM commonswiki_p.page
- WHERE page_title = il_to
- AND page_namespace = 6
- )
- )
- What is the total number of articles on Wikipedia that have at least one media element (picture or video)?
- SELECT page_title FROM page LEFT JOIN imagelinks ON il_from=page_id WHERE page_namespace=0 AND page_is_redirect=0 AND page_len > 10 AND il_from IS NOT NULL;
- What is the Average edits per page
- I am to get this number from stats page
- unable to query the remaining I need some help in this.
- What is the total number of articles on Wikipedia that have more than one media element (picture or video)?
- select count(*) from
- (SELECT page_title , count(*) as cou
- FROM page
- LEFT JOIN imagelinks ON il_from=page_id
- WHERE page_namespace=0 AND page_is_redirect=0 AND il_from IS not NULL GROUP BY il_from having cou > 1) as tit;
- What is the total number of dead-end articles on Wikipedia?
- SELECT count(*)
- FROM page
- LEFT JOIN pagelinks ON pl_from=page_id
- WHERE page_namespace=0 AND page_is_redirect=0 AND pl_from IS NULL ; Ramu ummadishetty (talk) 00:27, 10 June 2020 (UTC)
Request resultsets programmatically from wiki tools.
- Format
https://quarry.wmflabs.org/run/query_run_ID/output/run_number/<format>
Using https://quarry.wmflabs.org/ we can query and get result but in order to request resultsets programmatically we need query_run_ID . This query_run_ID doesn't give live feeds from wiki . Every time we need to submit the query and need to change this query_run_ID in order to get live stats.
https://quarry.wmflabs.org/query/45632
https://quarry.wmflabs.org/run/473069/output/0/json
Is there any other alternative way? Ramu ummadishetty (talk) 17:39, 6 June 2020 (UTC)
- create an actual toolforge tool. Requires programming knowledge. See docs in wikitech. Bawolff (talk) 05:43, 7 June 2020 (UTC)
- You mean to say, I need to build a custom API using toolforge tool? Ramu ummadishetty (talk) 00:35, 10 June 2020 (UTC)
Last picture not displaying
RESOLVED | |
Thank you @Bawolff . It works today, I just had to be patient |
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! The last picture I had on commons doesn't display (here: http://wiki.lokal-life.org/index.php?title=R%C3%A9seau_d%27eau_potable_de_Schoelcher) . I checked the name several times so I don't really get it. The only issue I see is that I may have created the page on the wiki with on the link for the picture BEFORE I uploaded the picture itself on Commons. I tought it was only some cookie issue but apparently not?
Do you have any idea apart from uploading it again on another name? Thanks! Triton (talk) 04:17, 7 June 2020 (UTC)
- you have to purge the page (add &action=purge to end of url) to clear cache. Commons only keeps track of image usages on wikimedia sites so there is no process to automstically refresh pages when the image changes outside wikimedia wikis (sort of. There are several types of caches. Its complicated. Certain changes will be instant) Bawolff (talk) 05:42, 7 June 2020 (UTC)
Short URL .htaccess - Special pages doesn't work
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 figure out for some time why short URLs do not work as expected. I have used Uncle Google and didn't find anything...unless I ask wrong.
I have migrated from SiteGround to own server. I have followed all guides regarding setup of Apache server + virtual hosts. Of course, I have no idea how original installation looks like because it has been so many times upgraded and migrated...
My page works for normal users as suppose to but mod_rewrite conditions cause issues with special pages. Special pages are incorrectly rewritten resulting in "Forbidden - You don't have permission to access this resource." error.
I can access Special page with direct link such as https://eh.hajes.org/humanica/index.php?title=Special:UserRights but any further steps leads to bad URL rewrite with above by mentioned error.
I have tried following:
1. Rewrite rule in .htacces that ignores Special pages RewriteCond %{REQUEST_URI} !index.php?title=Special sadly, it doesn't work because requested page is already https://eh.hajes.org/humanica/Special:UserRights
2. I tried to remove Short URL but I have no clean installation so no idea how to do it.
Could someone help me how to remove short URL or avoid Special pages rewrite, please? Haj3s29a (talk) 10:55, 7 June 2020 (UTC)
- please paste all the rules in your .htaccess Bawolff (talk) 17:40, 7 June 2020 (UTC)
- I have installed a clean version of MediaWiki...compared all setting and permissions with old version of my MediaWiki. It seems to work for now. Haj3s29a (talk) 18:31, 7 June 2020 (UTC)
Wiki problem
My wiki looks like this is the solution
Sorry! This site is experiencing technical difficulties.
Try waiting a few minutes and reloading.
(Cannot access the database) Athour1 (talk) 14:28, 7 June 2020 (UTC)
- as the error says, your database server is unreachable. Either its down or the db config in LocalSettings.php is wrong. Bawolff (talk) 17:39, 7 June 2020 (UTC)
- What should I do now Athour1 (talk) 02:58, 8 June 2020 (UTC)
- ensure your database server is running and you have configured it right on your LocalSettings.php file. enabling error messages might give a more helpful message Taavi (talk!) 05:51, 8 June 2020 (UTC)
- im try do not work Athour1 (talk) 15:24, 8 June 2020 (UTC)
- Please be way clearer what exactly you have tried where, including commands, and what exactly happens. It has been explained how to provide debug output. Writing a short sentence makes it impossible to help. Thanks! :) Malyacko (talk) 16:48, 8 June 2020 (UTC)
Hello World !!
I'm really interested in working with MediaWiki. But I'm very new to this environment. I feel a bit clumsy with many things integrated in the home page. I'm feeling difficulty in checking projects and how to contribute to a project.
Basically, I'm presently in my third year of Graduation. I have written python scripts and I'm willing to contribute completely to MediaWiki and stay connected to MediaWiki. I hope if anyone could guide me from scratch and help me to know all the resources, I would check all the possibilities and make my time useful by contributing into MediaWiki Projects. 43.225.23.193 (talk) 19:05, 7 June 2020 (UTC)
- How to become a MediaWiki hacker has some information.
- Note mediawiki is mostly PHP. There is not a lot of python there, although WMF operations does do some python stuff. Bawolff (talk) 19:09, 7 June 2020 (UTC)
Wiki spreading false information about political candidates.
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 MediaWiki support team,
Sorry if this is not the place to ask about this but is there something that can be done about a wiki site (built using mediawiki) being used to spread incorrect information about political candidates? The page in question can be found here: https://keywiki.org/KeyWiki:About and an example of their false information can be seen here: https://keywiki.org/Penny_Shaw as there are numerous references about this candidate being a part of the communist part. The source links have nothing to do with the candidate or their campaign (which I am a part of).
Thank you for the help. NMetiv (talk) 23:19, 7 June 2020 (UTC)
- we don't run that website. We have no control over the content of that website. You'll have to complain to the operators of that website. Bawolff (talk) 00:00, 8 June 2020 (UTC)
- Thank you, we have already attempted to contact them with no luck. NMetiv (talk) 00:56, 8 June 2020 (UTC)
calling api 'parse', does not return usable source for wikitext-generated images
so, there is somewhat esoteric ways to generate images from wiki text. specifically, by ways of module:graph, maybe in other ways too.
example of of wiki-text that produces an image, on hewiki: he:Template:צפיות
when this template is put in a table, it shows a graph, created "ad-hoc" by a module that can harvest some reliable data-sources, such as the view counters.
when i call this from the Api, using javascript, i used to get back a piece of html which displayed the graph. i did not look into it, so i do not know what was the url of the image source.
we actually used it to show a "last 90 days view graph" on the special:PageInfo page.
some time ago, (can't tell when. more than a year for sure) this stopped working, and i didn't look too deeply into it, just removed it from the special page, and wrote off a cute script that displayed a "view graph" popup.
now, some people are asking to revive it, so i looked into the call, the image src looks like so:
src=\"/api/rest_v1/page/graph/png/API/0/a73fcf01d9cef78b1746e97134b66fc190c1db6b.png\
and i wonder, is there a way to get the actual image? or rather, a way to convert this to a source that will display the image?
FWIW, the source returned when placing the template on a page looks like so, which turns out to be a valid image that displays on the page: /api/rest_v1/page/graph/png/משתמש:קיפודנחש/ארגח/0/5b906468a30a2837ae447bd1b372e687fbfc067f.png
let me paste the full piece of html returned by the parse call (collapsed on the right):
<div class=\"mw-parser-output\"><div class=\"mw-graph\" style=\"min-width:900px;min-height:200px\"><img class=\"mw-graph-img\" src=\"/api/rest_v1/page/graph/png/API/0/a73fcf01d9cef78b1746e97134b66fc190c1db6b.png\" /></div>\n\n<!-- \nNewPP limit report\nParsed by mw1359\nCached time: 20200608014129\nCache expiry: 2592000\nDynamic content: false\nComplications: []\nCPU time usage: 0.036 seconds\nReal time usage: 0.052 seconds\nPreprocessor visited node count: 90/1000000\nPost‐expand include size: 257/2097152 bytes\nTemplate argument size: 126/2097152 bytes\nHighest expansion depth: 10/40\nExpensive parser function count: 1/500\nUnstrip recursion depth: 0/20\nUnstrip post‐expand size: 181/5000000 bytes\nNumber of Wikibase entities loaded: 0/400\nLua time usage: 0.009/10.000 seconds\nLua memory usage: 677 KB/50 MB\n-->\n<!--\nTransclusion expansion time report (%,ms,calls,template)\n100.00% 48.060 1 תבנית:צפיות\n100.00% 48.060 1 -total\n 18.10% 8.697 1 תבנית:PageViews_graph\n 5.88% 2.827 1 תבנית:Trim\n-->\n</div>
Why Mobile View Greying Out Images
After years reading and editing articles on my iPad Mini4, just in last several days article images became grey boxes the size of the article images with instructions at the bottom, and inside, of each box to tap to see the image. Tiresome and takes away from reading to continually tap to see images. Have cleared browser just in case and checked all my settings but, as I wrote, have never had this problem before in years. Have always used Safari w/ Google as search engine in Private mode (which I have used for years, also.) Noticed that images return if I disable Javascript, but don’t want to continue this for the usual reasons and, as with my other settings, have had it enabled for years. ????? Thanks 2601:C6:D400:330:547D:21A9:29E8:2939 05:40, 8 June 2020 (UTC)
- Which exact browser and exact browser version is this about? Malyacko (talk) 16:46, 8 June 2020 (UTC)
- Same problem. My iPad Mini 4 has Safari version 13 (iPadOS 13.5.1) while the iPad’s Safari entry just gives a selection of Search Engines: Google, Yahoo, etc. and you select one. Have selected Google, then Yahoo, then Bing, and then DuckDuckGo - all with same results as above. 128GB iPad w/cellular w/3.9GB stored in iCloud. Images visible w/o tapping only if Javascript disabled. ? Quaerens-veritatem (talk) 04:54, 9 June 2020 (UTC)
- Can someone please provide clear, complete, exact steps where (full URL) to see some problem after providing which actions? We have no idea which website this is about so far. Thanks. Malyacko (talk) 05:24, 9 June 2020 (UTC)
- This occurs when you go to any Wikipedia article. So if you put in the name of a notable person in the iPad search engine (in this case Google - Apple Safari does not let you chose Google Chrome, only Google, Yahoo, Bing, or DuckDuckGo) then scroll down to the Wikipedia entry for the person and tap on it the article appears as usual, but with images are greyed out. This graying out of images happens for any and every Wikipedia article selected. Quaerens-veritatem (talk) 02:57, 12 June 2020 (UTC)
- Might be related to lazy loading images. Is there anything shown in the developer tools of that web browser? Malyacko (talk) 17:06, 15 June 2020 (UTC)
- Sorry, not technically versed in how to access Apple’s developer tools for Safari. Help? Quaerens-veritatem (talk) 04:50, 16 June 2020 (UTC)
Autologin users without password ?
I need to connect mediawiki with an sso system based on Jasny/sso. It works on Mediawiki 1.25.2 by using AuthRemoteuser plugin but I need to upgrade Mediawiki to 1.33.1 version. In this version AuthRemoteuser plugin doesn't work anymore; I tried to use SessionManager and AuthManager plugins but they don't do what I want. Is there a way to log in Mediawiki users only with their username, without having their password ? The sso system automatically detect when the users have to be connected, all the hooks needed on Mediawiki are in place : I just need the code who create the user session by his username only. JasnySSO (talk) 07:33, 8 June 2020 (UTC)
- As far as I know Extension:Auth remoteuser should work quite well wit MediaWiki 1.33. Please make sure you don't just update MediaWiki core but also the Auth_remoteuser extension. Looking at what "jasny/sso" does, I believe you should be able to use the
$wgAuthRemoteuserUserName
variable with a callback function. Osnard (talk) 08:42, 8 June 2020 (UTC) - Yes AuthRemoteuser has been updated, but it logged in users with submitting a fake login form, with the old specialpage "SpecialUserLogin". This class entirely changed in Mediawiki 1.33 so it can't works anymore doing this.. JasnySSO (talk) 13:20, 8 June 2020 (UTC)
- "Extension:Auth_remoteuser" makes use of the new SessionProvider infrastructure that was introduced together with AuthManager in MediaWiki 1.27. The
$wgAuthRemoteuserUserName
configuration variable allows to specify a callback fucntion. In conjunction withjasny/sso
it should work like this (PSEUDO CODE, UNTESTED): $wgAuthRemoteuserUserName = function() { ... $broker = new Jasny\SSO\Broker($serverUrl, $brokerId, $brokerSecret); $broker->attach(); $user = $broker->getUserInfo(); return $user->username; //or $user['username'], or whatever `getUserInfo` returns };
- EDIT: You might need to cache the results, as this function gets called in every request. Osnard (talk) 16:22, 8 June 2020 (UTC)
- it works, thank you ! JasnySSO (talk) 09:43, 9 June 2020 (UTC)
Api:Allusers - List all non-blocked users?
Hello folks! Is there a way I can can use API:Allusers to constrain it's list to those who are NOT blocked? Getting the auprop blockinfo is helpful, but it'd reduce the mucking about with the data at the other end if I was able to exclude blocked users.
Need to reset password
I have requested a new pass word. I dont know my user name. Page did tell me it send a password to my email, but I dont have the email. need help
197.188.147.45 (talk) 12:39, 8 June 2020 (UTC)
upgrade from MediaWiki 1.15.4 to MediaWiki 1.34.0 pages including ÖÄÜ are missing
I've migrated a very old mediaWiki (running version 1.15.4 to newest version 1.34.0).
Update was done using the following way:
- setup new machine
- dump database from old machine
- import database (old) on new machine
- start upgrade process on new machine (via webclient)
Database was converted to newest version and mediaWiki is running fine at all, but some pages are missing, meaning they are marked red, linking to non existing content.
Diving a bit deeper into the problem, I was able to see, only pages containing ÖÄÜ as title are effected by this.
Is there an idea what I could try to get this entries running on the new setup too? I haven't seen any option for editing converting settings during the upgrade process. Janis he (talk) 12:42, 8 June 2020 (UTC)
socialprofile: change displayed information
I'd like to change the displayed information in the socialprofile extension.
Do I have to make changes in UserProfilePage.php? or is there another way?
Thanks!
(My wiki ist updated on the latest version.) 2A02:810D:8CC0:36C:64AA:E944:1EAC:38F4 (talk) 14:42, 8 June 2020 (UTC)
- Have you tried that extension's specific pages and talk page? There seems to be a developer manual there as well as a place to post questions specific to that extension which is not developed by MediaWiki.
- Extension:SocialProfile
- Extension:SocialProfile/Developer information
- Extension talk:SocialProfile
- And by latest version do you mean MW version 1.34 and which extension version? Without specific information it can be difficult for the people that mind this page to help you, so best to be clear and as specific as possible. I'm not sure if you'll get extension support here, or if it might be best to post on the extension page where the developers of that extension have a chance of seeing and answering your question (or perhaps some answers might be found my searching where people go to post questions about that extension on the extension talk page?) TiltedCerebellum (talk) 23:44, 8 June 2020 (UTC)
SocialProfile: hide editing fields
how can I hide editing fields (f.e. video-games, music) not only in the public profile but also in the editing process?
And how can I change the names of the different interests (f.e. office-number instead of video-games)
Thanks in advance 2A02:810D:8CC0:36C:D86D:D931:5504:2ED6 (talk) 21:27, 8 June 2020 (UTC)
- What site are you referring to? It is pretty difficult to help without knowing where you are editing and what you are referring to. What "editing fields" and what "interests" are you talking about and where?
TiltedCerebellum (talk) 23:28, 8 June 2020 (UTC)
CSS, font-size doesn't work for not logged users
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:Common.css
body {
font-size: 14px; or 105%
}
Above by CSS change increases text size for whole web site while I am logged in. Once, I log off text size remains same as before without any changes.
Web Inspector in Firefox shows CSS change but they are not displayed. I see no errors in console. I haven't found any setting that allows loading CSS for page guests without logging in.
I wish to scale up text of whole page for all users because it is too small to read. Any suggestions, please? Haj3s29a (talk) 22:00, 8 June 2020 (UTC)
- It is probably best to target the specific styles that already exist that mediawiki is using for text. So for example, if I load your home page and inspect the text there, I see:Also you set two values for it (font size:14px and font size:105%) both are not needed nor the recommended way to set font size. Using em will set font size relevant to the parent element, using rem will set font size relative to the root size see this for reference. But you need to set the values for the styles that mediawiki empoys within your pages or they will be overriden by those specific styles. TiltedCerebellum (talk) 23:26, 8 June 2020 (UTC)
.mw-body-content { font-size: 0.875em; } /* And possibly other class or id names in other places */
- Thanks for reply. I think I have tried above by mentioned CSS but I am not sure...I will try later.
- I wish to scale all text based on its original property. What you suggest scales only text in wiki...not whole website inclusive menu Haj3s29a (talk) 07:33, 9 June 2020 (UTC)
- CSS styling works now but there is still difference in text size between guest/not logged user vs logged user.
- Text size is also not consistent in various web browsers Haj3s29a (talk) 09:30, 11 June 2020 (UTC)
- Use the Vector CSS ?
- Look here : https://wiki.visionduweb.fr/index.php?title=Les_skins_pour_MediaWiki#Utiliser_la_CSS_Vector-DarkCSS
- index.php?title=MediaWiki:Vector.css -> https://pastebin.com/11DUXa3K
- index.php?title=MediaWiki:Common.css -> https://pastebin.com/SAcx7rkP Zer00CooL (talk) 17:58, 11 June 2020 (UTC)
- Common.css suppose to override all CSS styling according to Help Page??? Haj3s29a (talk) 17:35, 12 June 2020 (UTC)
- It does but you have to target the correct css selectors (plural). If you don’t know CSS well enough, try to find someone who does to help you with skin customization. But different skins may have different style names/selectors. Vector.css will override styles for vector skin etc.
- The Vector Skin discussion page has a lot of existing discussion on how to re-style various vector skin dlements, you might find that more helpful than general Mediawiki help desk support:
- Skin talk:Vector TiltedCerebellum (talk) 08:52, 29 June 2020 (UTC)
Customize template output for Visual Editor extension only
I have a template which works fine but generates broken output in VisualEditor.
How to configure my template to have output in the VisualEditor than in the "Read" view? Is there some magic word, function, or wikitext syntax like noinclude, includeonly, etc. ? Czech.Fox (talk) 12:31, 9 June 2020 (UTC)
moveBatch.php not opening stream
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 have approximately 500 pages I want to move from the main namespace on one of my Wikis to a new namespace.
I set the PHP path and then run:
- php moveBatch.php --u=user --r=Move terms and definitions to own namespace C:\input file.txt
But I get the following error:
- Warning: fopen<terms>: failed to open stream: No such file or directory in D:\wamp64\path\to\maintenance\folder on line 69
- Unable to read file, exiting
Any ideas what I am doing wrong?
Any help is appreciated
Gary --Squeak24 (talk) 15:11, 9 June 2020 (UTC)
- Have you tried using quotes for the arguments?
php moveBatch.php --u=user --r="Move terms and definitions to own namespace" "C:\input file.txt"
Osnard (talk) 15:22, 9 June 2020 (UTC)- Thanks @Osnard that did the trick. Something so simple I was missing. Squeak24 (talk) 15:36, 9 June 2020 (UTC)
issue with new installation
Ubuntu 20.04
MySQL 8.0.20
PHP 7.4.6
Apache 2.4.43
MediaWiki 1.34.1
Going through the setup, can't get past the database page. I put the info in there, and it fails with "Cannot access the database: :real_connect(): (HY000/2002): No such file or directory." The user account I created has full privileges on the database. I changed the auth type from the default (caching_sha2_password) to mysql_native_password and still fails. I know the issue is around changes with mysql 8 but not sure exactly what it is. very frustrating. Seth2740 (talk) 01:15, 10 June 2020 (UTC)
- it sounds like issue with socket vs network connection maybe. Try using 127.0.0.1 as db server instead of localhost or vice versa. Bawolff (talk) 02:06, 10 June 2020 (UTC)
- ok that did it...i actually tried that before but didn't work then rebuilt the system. maybe was a combination of that and the auth method. at least it allowed me to move on Seth2740 (talk) 02:32, 12 June 2020 (UTC)
Hi i have a question, is it possible to get email from unapproved revisions and pages.
Hi i have a question, is it possible to get email from unapproved revisions and pages. 87.213.74.210 (talk) 06:38, 10 June 2020 (UTC)
Should we rename our Gerrit "master branch" to be "trunk branch" or other proper words?
Umm, a little because of the ongoing BLM movements, but more than this, I don't think the "master" must be a most important branch. Liuxinyu970226 (talk) 12:05, 10 June 2020 (UTC)
- @Liuxinyu970226: No. Malyacko (talk) 14:10, 10 June 2020 (UTC)
- But as far as I know, the Spam Blacklist is scheduled to rename as per phab:T254646. Liuxinyu970226 (talk) 23:14, 10 June 2020 (UTC)
- Correct. But what does that have to do with each other? Malyacko (talk) 07:44, 15 June 2020 (UTC)
- regardless, this is the wrong place to discuss - wikitech-l is the place for these types of discussions. Bawolff (talk) 15:35, 10 June 2020 (UTC)
Azure Storages
Hi,
I'm trying to add Azure Storage Support for uploading files. From this source: Extension talk:WindowsAzureStorage
I used the settings in the documentation.
$wgFileBackends[] = array(
'name' => 'azure-backend',
'class' => 'WindowsAzureFileBackend',
'lockManager' => 'nullLockManager',
'azureHost' => 'https://blob.core.windows.net',
'azureAccount' => 'MyStorage',
'azureKey' => 'MyKey',
//IMPORTANT: Mind the container naming conventions! http://msdn.microsoft.com/en-us/library/dd135715.aspx
'wikiId' => 'Wiki',
'containerPaths' => array(
'media-public' => 'media-public',
'media-thumb' => 'media-thumb',
'media-deleted' => 'media-deleted',
'media-temp' => 'media-temp')
);
$wgLocalFileRepo = array (
'class' => 'LocalRepo',
'name' => 'local',
'scriptDirUrl' => '/mediawiki-filebackend-azure',
'scriptExtension' => '.php',
'url' => $wgScriptPath.'/img_auth.php', // It is important to set this to img_auth. Basically, there is no alternative.
'hashLevels' => 2,
'thumbScriptUrl' => false,
'transformVia404' => false,
'deletedHashLevels' => 3,
'backend' => 'azure-backend',
'zones' => array (
'public' => array (
'container' => 'local-public',
'directory' => '',
),
'thumb' => array(
'container' => 'local-public',
'directory' => 'thumb',
),
'deleted' => array (
'container' => 'local-public',
'directory' => 'deleted',
),
'temp' => array(
'container' => 'local-public',
'directory' => 'temp',
)
)
);
When uploading a file, I get:
"[368ffdec10af38f65cdc853f] 2020-06-10 12:29:37: Fatal exception of type "Error"
The storage exists and the conainers specified in 'containerpaths' exist.
Any suggestions?
Arthur E3992231f75c44efb2876d7770e930fc (talk) 12:30, 10 June 2020 (UTC)
- Manual:How to debug Malyacko (talk) 14:07, 10 June 2020 (UTC)
- It shows an error (after I fixed a few).
- [4e1fc43c05b5ae49d67e874c] /index.php?title=Special:Upload Error from line 318 of D:\home\site\wwwroot\extensions\WindowsAzureStorage\WindowsAzureFileBackend.php: Class 'WindowsAzure\Blob\Models\ContainerACL' not found
- Backtrace:
- #0 D:\home\site\wwwroot\extensions\WindowsAzureStorage\WindowsAzureFileBackend.php(287): WindowsAzureFileBackend->doSecureInternal(string, string, array)
- #1 D:\home\site\wwwroot\includes\libs\filebackend\FileBackendStore.php(481): WindowsAzureFileBackend->doPrepareInternal(string, string, array)
- #2 D:\home\site\wwwroot\includes\libs\filebackend\FileBackend.php(862): FileBackendStore->doPrepare(array)
- #3 D:\home\site\wwwroot\includes\filerepo\FileRepo.php(1357): FileBackend->prepare(array)
- #4 D:\home\site\wwwroot\includes\filerepo\FileRepo.php(1042): FileRepo->initDirectory(string)
- #5 D:\home\site\wwwroot\includes\filerepo\FileRepo.php(995): FileRepo->quickImportBatch(array)
- #6 D:\home\site\wwwroot\includes\filerepo\FileRepo.php(1117): FileRepo->quickImport(string, string)
- #7 D:\home\site\wwwroot\includes\upload\UploadStash.php(250): FileRepo->storeTemp(string, string)
- #8 D:\home\site\wwwroot\includes\upload\UploadBase.php(1169): UploadStash->stashFile(string, string)
- #9 D:\home\site\wwwroot\includes\upload\UploadBase.php(1115): UploadBase->doStashFile(User)
- #10 D:\home\site\wwwroot\includes\specials\SpecialUpload.php(385): UploadBase->tryStashFile(User)
- #11 D:\home\site\wwwroot\includes\specials\SpecialUpload.php(531): SpecialUpload->showUploadWarning(array)
- #12 D:\home\site\wwwroot\includes\specials\SpecialUpload.php(204): SpecialUpload->processUpload()
- #13 D:\home\site\wwwroot\includes\specialpage\SpecialPage.php(575): SpecialUpload->execute(NULL)
- #14 D:\home\site\wwwroot\includes\specialpage\SpecialPageFactory.php(611): SpecialPage->run(NULL)
- #15 D:\home\site\wwwroot\includes\MediaWiki.php(296): MediaWiki\Special\SpecialPageFactory->executePath(Title, RequestContext)
- #16 D:\home\site\wwwroot\includes\MediaWiki.php(900): MediaWiki->performRequest()
- #17 D:\home\site\wwwroot\includes\MediaWiki.php(527): MediaWiki->main()
- #18 D:\home\site\wwwroot\index.php(44): MediaWiki->run()
- #19 {main}
- The files are there, and I included both the extension as well as the /vendor/autoload/.php.
- require_once ("d:/home/site/wwwroot/extensions/WindowsAzureStorage/vendor/autoload.php");
- require_once("d:/home/site/wwwroot/extensions/WindowsAzureStorage/WindowsAzureStorage.php");
- I guess I missed something, but I don't know what.
E3992231f75c44efb2876d7770e930fc (talk) 18:21, 10 June 2020 (UTC)
centos 7 (3.10.0-1127.10.1.el7.x86_64) and mediawiki 1.26.3 and texlive.
Hi All,
I am a newbie who inherited a wiki server and have an issue I do not know how best to deal with. I would rather not break anyting if I don have to!
I am trying to get rid of a vulnerability CVE-2018-17407 that has been linked to texlive. I have checked my machine an I have both the older and newer versions of texlive and need to remove just the older version.
I wonder if removing the older version will affect my wiki pages and what the recommended method for removing it would be? kernel and wiki version are in the title.
Any suggestions are much appreciated.
Thanks Jbloch222 (talk) 13:54, 10 June 2020 (UTC)
- Hi @Jbloch222! How is Texlive related to MediaWiki? (Furthermore, you seem to run an ancient unsupported MediaWiki version which has not received upstream updates for nearly three years and has many unresolved security issues. Please upgrade for your own safety. If you want to stick to distribution packages provided by CentOS, then this would be a question for a CentOS forum.) Malyacko (talk) 14:07, 10 June 2020 (UTC)
- Hi @Malyacko
- I was not sure if Texlive was important for the MediaWiki, just got these machines and plan to upgrade asap. When I looked into the texlive it had packages like texlive_thumbpdf that made me think MediaWiki might need it and particularly the older version.
- Just could not understand why updates would leave the older version of texlive in place unless it was a dependency.
- Thanks for the quick reply!!
Jbloch222 (talk) 14:36, 10 June 2020 (UTC)
How to copy paste an RTF table into a MediaWiki table?
I have a MediaWiki 1.34.0 install with no extensions.
I have an RTL file with a (most probably XML) table inside it.
I want to copy paste that table into a MediaWiki article without formatting with MediaWiki syntax from scratch.
How to copy paste an RTF table into a MediaWiki table? 49.230.1.116 (talk) 02:10, 11 June 2020 (UTC)
- Have you tried something like this?
- https://www.tablesgenerator.com/mediawiki_tables
- (You can usually add the number of requisite columns in the table at the top, then click into a cell to paste, then click "Generate."
- You could also try creating your table in a site that has Visual Editor enabled, then view the page in source mode to copy and paste it into your wiki if you don't have access to a VE enabled site. TiltedCerebellum (talk) 02:47, 11 June 2020 (UTC)
- @TiltedCerebellum perhaps I tried it in the past
- Thank you, 49.230.1.116 (talk) 02:59, 11 June 2020 (UTC)
How to automate integration of MediaWiki wegpages into Rich Text documents and/or email templates?
I have MediaWiki 1.34.0 with a webpage containing a few headlines and a few tables which I seldom edit in that MediaWiki webpage.
I can manually copy-paste the webpage into each new RTF document anew but I prefer to automate this process somehow so to to "call" (the essential part of) this webpage into RTF documents and then emailing the document (as is, or edited) to customers.
If possible I would prefer to further automate and call (the essential part of) this webpage directly into an email compositions (as an email template) instead attaching a file containing it.
How to automate integration of MediaWiki wegpages into Rich Text documents and/or email templates?
Thanks in advance, 49.230.1.116 (talk) 07:29, 11 June 2020 (UTC)
Image Upload Problem
Image uploaded and is successful
Image is showing in the page, after a few minutes. Image show broken and error appears "File Missing"
Do you have any idea how to fix this? 2407:7000:9A36:AD00:682A:60D9:3045:C749 (talk) 09:56, 11 June 2020 (UTC)
- Can this page help ? Manual:Errors and symptoms Zer00CooL (talk) 17:55, 11 June 2020 (UTC)
How to prohibit search proposals?
Hi, I have the article for instance "abc" redirected to "This Article".
When I am at the search bar of my wiki, there are search proposals, and also the "abc" can pop out.
How can I prohibit the redirection site "abc" to pop out in the search bar of the wiki? 2A02:908:3111:7DA0:7843:6DC3:B094:A793 (talk) 10:00, 11 June 2020 (UTC)
- This page - Manual:$wgEnableMWSuggest - mentions this page - Manual:$wgEnableOpenSearchSuggest - does that help? Jonathan3 (talk) 14:55, 11 June 2020 (UTC)
- Thanks, but the links didn't help.
- I think I need an order for the redirection article, to tell it, it should be excluded from the search bar proposals. 2A02:908:3111:7DA0:1932:B105:6935:5B6B (talk) 15:27, 11 June 2020 (UTC)
- There's an old Stack Overflow page on this. Jonathan3 (talk) 21:11, 11 June 2020 (UTC)
- See also: Help_talk:Redirects#Hiding_redirects_in_search_results... Jonathan3 (talk) 21:12, 11 June 2020 (UTC)
- If you hid abc from your results, wouldn’t the redirect page be pointless? I thought the whole point of a redirect page is to create an alternate search term for an article that can redirect to the main article... If you don’t want that to happen, why not just delete the redirect page?
- what use case is there for what you are asking? Why does abc need to be there at all? TiltedCerebellum (talk) 09:05, 29 June 2020 (UTC)
- It might be that people have links/bookmarks to the old page which he/she doesn't want to break. That's the main reason I leave redirects when I rename a page. (I don't mind that they show up in suggestions but it would be good if they didn't show up in search results.) Jonathan3 (talk) 11:13, 29 June 2020 (UTC)
- We generally use DPL3 to make a list of the pages that link to that page to hunt them down and fix them but it's a pain. Once no pages are linking to it, the page can be deleted. The search results links also redirect, so not such a huge deal. This thread suggested a possible solution:
- https://www.mediawiki.org/wiki/Project%3ASupport%20desk/Flow/2017/10#h-Remove_page_from_internal_search_suggestions-2017-10-16T03%3A54%3A00.000Z
- TiltedCerebellum (talk) 22:03, 29 June 2020 (UTC)
{{#dpl: |linksto=Page Title }}
- Thanks. I'd be interested in seeing that. Though I meant external links on other sites rather than on the wiki itself. Jonathan3 (talk) 22:08, 29 June 2020 (UTC)
- Ah, yeah sorry I misread what you wrote (my MS-brain has holes, literally lol). TiltedCerebellum (talk) 23:27, 29 June 2020 (UTC)
Multiple wikis sharing the same parsoid service not work.
When use "config.yaml":
services:
- module: lib/index.js entrypoint: apiServiceWorker conf: mwApis: - # First wiki uri: 'http://wiki.siteA.com/api.php' domain: 'siteA.com' # optional - # If you have another wiki on a different domain uri: 'http://wiki.siteB.com/api.php' domain: 'siteB.com' # optional
Parsoid crash with error: "Error while reading config file: YAMLException: duplicated mapping key at line 48, column 10:"
You have any ideas? 81.201.58.220 (talk) 12:11, 11 June 2020 (UTC)
Can I batch upload documents on to my wiki pages?
I have a document that has over 5000 entries. I've made subdocuments to every entry via MS Word. I am trying to find a way to batch upload these documents to my wiki pages; however, I've hit a brick wall. Wondering if it is even possible to do this through media wiki with Word documents, and if so, how do I do this? Is there maybe a software that can make this easier, or possibly a coding issue that needs to be amended on my server? Any assistance would be appreciated. TIA. Thepainking (talk) 16:50, 11 June 2020 (UTC)
- Category:Bulk upload Malyacko (talk) 18:43, 11 June 2020 (UTC)
The volume of the _text table increases abnormally
If i export all page from special page, all my content = 10 Mo
If i look in the database, the table _text = 280 Mo !
It would be absolutely necessary to propose a solution, to clean the table _text properly, and, to allow to keep only the last global version of the page.
My post : https://phabricator.wikimedia.org/T239104
My answer : Manual talk:Text table
In my case, indeed, only the latest version from a page interests me.
So I'm in a special case, since, a wiki must be used to keep the history.
Despite everything, this methodology is very heavy, for the database, and, the system resources.
In my case, I wish to be able to use the latest version, since it is a personal summary for the pages I write.
The versioning is practical, during the writing, but, I wish to be able to launch every day, a script which cleans the base, to only offer an optimized version, and, I then delete the revisions.
Currently, I do so:
maintenance/deleteOldRevisions.php --delete
maintenance/rebuildrecentchanges.php
maintenance/deleteArchivedRevisions.php --delete
maintenance/deleteAutoPatrolLogs.php
maintenance/rebuildall.php Zer00CooL (talk) 17:52, 11 June 2020 (UTC)
- you may also want $wgCompressRevisions.
- See docs for cron for your operating system. https://man7.org/linux/man-pages/man5/crontab.5.html
- Probably rebuildall and rebuildrecentchanges arent needed since rebuildrecentchanges is a subset of rebuildall, and more generally i am unsure if its needed at all.
- Depending on your db, you may want to optimize the underlying table. Bawolff (talk) 00:52, 12 June 2020 (UTC)
- Yes i have, for example :
- ALTER TABLE prefixe_text ROW_FORMAT=COMPRESSED;
- ALTER TABLE prefixe_externallinks ROW_FORMAT=COMPRESSED;
- ALTER TABLE prefixe_searchindex ROW_FORMAT=COMPRESSED;
- The table is correctly compressed, but, when i download the sql, i have always 500Mo.
- It's not the good way, for me. I search a better solution.
- Debian Buster Stable.
- My DB is MariaDB, innodb, utf8-mb4
- Mediawiki 1.33.3
- Conf for mariadb :
- [mariadb-10.3]
- innodb_file_format = Barracuda
- innodb_file_per_table = 1
- innodb_default_row_format = dynamic
- innodb_large_prefix = 1 Zer00CooL (talk) 12:39, 12 June 2020 (UTC)
- well that is different then $wgCompressRevisions.
- By OPTIMIZE i meant the OPTIMIZE command. Bawolff (talk) 15:25, 12 June 2020 (UTC)
- No,
- OPTIMIZE is a MySQL command for OPTIMIZE.
- I don't want OPTIMIZE, i want clear all old content.
- If all my page = 10 Mo from special page export it's not normal all my page = 400 Mo in the table _text
- In my case, i want only the last revision, and, clear all old history, and, content. Zer00CooL (talk) 17:19, 16 June 2020 (UTC)
- I read the same requests, with people having databases of 2 ... 8 ... Go
- It's a lot, for me, and, I think that everyone does not necessarily need to keep the history. At a given moment, it is necessary to clean the base, to allow its export, its backup, its redeployment.
- In my opinion, it is urgent to bring a possibility to the cleaning of the table _text.
- Otherwise, it forces you to export the pages to XML, and reinstall them on a new wiki. It's tedious. Zer00CooL (talk) 17:22, 16 June 2020 (UTC)
- in certain configs mysql wont actually delete things (release space back to the hard drive) until you run optimize, which is why i suggested it. Bawolff (talk) 20:57, 16 June 2020 (UTC)
Editing suspended
RESOLVED | |
phab:T255179 |
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Is this a sitewide issue or just me? I get the message "badtoken: Invalid CSRF token.: "2889fa40baf825438f9214445761235b5ee27e9e+\"
I can't edit anything. Robbie SWE (talk) 19:01, 11 June 2020 (UTC)
- I think it was an error on wikimedia's side Bawolff (talk) 00:48, 12 June 2020 (UTC)
- See phab:T255179 ; also would be better suited on Project:Current issues I think. Malyacko (talk) 06:21, 12 June 2020 (UTC)
- Thanks! It's sorted now. Robbie SWE (talk) 19:14, 12 June 2020 (UTC)
elasticsearch bugs
RESOLVED | |
My wiki is old |
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 using https://hub.docker.com/r/wikibase/elasticsearch the latest tag.
I run php updateSearchIndexConfig.php
then it has:
illegal_argument_exception: Could not convert [aa.index] to boolean
Full trace:
indexing namespaces...
mw_cirrus_metastore missing, creating new metastore index.
Creating metastore index... mw_cirrus_metastore_first Scanning available plugins...
experimental-highlighter, extra, ingest-geoip, ingest-user-agent
ok
Green!Creating mw_cirrus_metastore alias to mw_cirrus_metastore_first.
Indexing namespaces...done
content index...
Fetching Elasticsearch version...6.5.4...ok
Scanning available plugins...
experimental-highlighter, extra, ingest-geoip, ingest-user-agent
Picking analyzer...default
Inferring index identifier...my_wiki_content_first
Creating index...ok
Validating number of shards...ok
Validating replica range...ok
Validating shard allocation settings...done
Validating max shards per node...ok
Validating analyzers...ok
Validating mappings...
Validating mapping...different...failed!
Couldn't update existing mappings. You may need to reindex.
Here is elasticsearch's error message: illegal_argument_exception: Could not convert [aa.index] to boolean
Here is the version page:
MediaWiki | 1.33.0 |
PHP | 7.2.22 (apache2handler) |
MariaDB | 10.3.22-MariaDB-1ubuntu1 |
ICU | 63.1 |
Elasticsearch | 6.5.4 |
Lua | 5.1.5 |
Search bar doesn't work
RESOLVED | |
php rebuildtextindex.php saved me |
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Please take a look at the search bar on the top-right of https://ebgreencard.com
Everything related to search is work fine except the search bar in main page (index page).
It never return anything, (please use 'VB' or 'EO' as tests).
Readmanhe (talk) 21:20, 11 June 2020 (UTC)
Allow specific third domain to display MW in a frame?
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 want to be able to display search results from a MW site in a frame of a third site. Is there any way to do that? I can see the ability to manipulate Content Policy Security with Manual:$wgCSPHeader but this is not available for me since I use MW 1.31. Spiros71 (talk) 07:12, 12 June 2020 (UTC)
- see $wgEditPageFrameOptions Bawolff (talk) 15:32, 12 June 2020 (UTC)
- Thanks, I don't see any option to add an extra domain there. Setting to "false" allows all framing, which is not a good idea. Spiros71 (talk) 16:50, 12 June 2020 (UTC)
- you can set it to false and add your own header in apache or nginx Bawolff (talk) 00:31, 13 June 2020 (UTC)
- I just used this in htaccess and it worked:
<IfModule mod_headers.c>
Header set Content-Security-Policy "frame-ancestors 'self' magicsearch.org"
</IfModule>
Spiros71 (talk) 15:04, 20 June 2020 (UTC)
wbsearchentities doesn't work
RESOLVED | |
$wgWBRepoSettings['siteLinkGroups'] = [ 'wikipedia', 'mywikigroup', 'anothergroup' ]; <---- commend this line |
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hello,
my website: https://ebgreencard.com/ 's top-right search box doesn't work.
What I have tried:
- rebuildall.php
- rebuildtextindex.php
- I tried to create a new item in Special:NewItem, and yes, I can search the created item in top-right search box.
- I found out that, this website (mediawiki.org) use opensearch, however, my search box use wbsearchentities ? why?
Any help appreciate ! Readmanhe (talk) 14:13, 12 June 2020 (UTC)
- for 4) because this website isnt a wikibase server. Bawolff (talk) 15:27, 12 June 2020 (UTC)
- Thanks, but I tried to use opensearch on my website, which works fine.
- So is there any way I can make my search box use opensearch instead of wbsearchentities ? Readmanhe (talk) 15:46, 12 June 2020 (UTC)
Text Alignment
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Is there a way to change the alignment of my text on my wiki page? I am trying to copy and paste from a MS Word document but the format keeps changing. Headings are not an issue but i can never seem to find a way to have my text aligned as "justify full". Is there a way to accomplish this or is it just not wiki compatible? Thepainking (talk) 15:57, 12 June 2020 (UTC)
- try doing
<div style="text-align:justify"> Text to justify here between the divs </div>
- If you want all text to be justified, you can potentially set it in Mediawiki:common.css.
- See also (not mediawiki specific): https://developer.mozilla.org/en-US/docs/Web/CSS/text-justify and https://developer.mozilla.org/en-US/docs/Web/CSS/text-align Bawolff (talk) 00:30, 13 June 2020 (UTC)
- Maybe more specific to the point... why are you trying to justify wiki text? Unless you are trying to do a layout that resembled narrow columns like newsprint, justified text is generally not recommended on the web.
- https://ux.stackexchange.com/questions/24025/should-text-on-the-web-be-justified TiltedCerebellum (talk) 08:47, 29 June 2020 (UTC)
Wiktionary.ro: Search box suddenly moved
- Noticed today that the search box on the left side of Romanian Wiktionary has moved to the bottom, below the "in other languages" box. It's pretty impractical now and definitely not user-friendly. How can I move it to the top of the margin like in the English Wiktionary? Note: I'm an admin and bureaucrat and therefore authorised to make such changes if needed. Robbie SWE (talk) 19:12, 12 June 2020 (UTC)
- https://ro.wiktionary.org/wiki/Romania?useskin=monobook and https://ro.wiktionary.org/wiki/Romania?useskin=modern expose that.
- phab:T254546 explains how you can control the order of items in the sidebar. Malyacko (talk) 18:45, 13 June 2020 (UTC)
- on which skin? Sounds like monobook vs Vector. Bawolff (talk) 00:22, 13 June 2020 (UTC)
Installation failes
RESOLVED | |
Not enough information provided to troubleshoot, user decided not to use MW. There are some links for MW professionals if help is needed with installation, modifications and maintenance that might be helpful if user decides to try again: Professional development and consulting. Good luck! |
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 Evey time I try to install the DB Invalid database type. Sturtz nate (talk) 20:54, 12 June 2020 (UTC)
- Please provide way more information - steps to reproduce, version information, which database type you are using, etc. Malyacko (talk) 18:46, 13 June 2020 (UTC)
- I am using mysql, I just download the code from https://www.mediawiki.org/ and I get "Invalid database type") Sturtz nate (talk) 21:32, 14 June 2020 (UTC)
- Still too little information, what’s the mediawiki version, what’s the MySQL version, php version and the proper exact page that you are talking about because the mediawiki.org main page is not where you downloaded code from. If you don’t know how to fetch that information you should get someone to help you with the install.
- You might consider checking that you’re using a compatible MySQL version:
- Compatibility#Database TiltedCerebellum (talk) 08:39, 29 June 2020 (UTC)
- I gave up on mediawiki. Sturtz nate (talk) 15:10, 14 March 2021 (UTC)
What extension enables the highlighting of text specified in the url query string?
RESOLVED | |
Chrome's scroll to and highlight searched text feature. |
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Resolved. Apparently this tag: "#:~:text=" is a browser feature in Chrome.
https://www.howtogeek.com/677110/how-to-directly-link-to-text-within-a-web-page-in-chrome/ Paradox of Thrift (talk) 21:01, 12 June 2020 (UTC)
- i've never heard of that before and it didnt work for me. Maybe its a browser extension you have installed. Bawolff (talk) 00:20, 13 June 2020 (UTC)
Can i get pages with 0 images,atleast 1 image and more than 1 image by using MediaWiki API's?
I tried reading the MediaWiki API documentation but unable to figure it out
Ramu ummadishetty (talk) 21:05, 12 June 2020 (UTC)
Fetching stub articles using MediaWiki API
I tried the following script to get sub articles . Here it gets only few articles and how can i get even sub categories with single category name ?
import requests
S = requests.Session()
URL = "https://te.wikipedia.org/w/api.php"
#మొలక = Stubs
PARAMS = {
"action": "query",
"cmtitle": "Category:మొలక",
"cmlimit": "500",
"list": "categorymembers",
"format": "json",
"cmcontinue":"",
"cmtype":"page"
}
R = S.get(url=URL, params=PARAMS)
DATA = R.json()
PAGES = DATA['query']['categorymembers']
for page in PAGES:
print(page['title']) Ramu ummadishetty (talk) 21:15, 12 June 2020 (UTC)
How to redirect category page to BASEPAGENAME?
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 want some category pages to redirect to their BASEPAGENAME.
When I write into the category page
<nowiki>#redirect [[{{BASEPAGENAMEE}}]]</nowiki>
it will not redirect, but instead puts out
- redirect Nameofthepage
How can I put a real redirect here?
Thanks 2A02:908:3111:7DA0:5D7:F09F:F1:ECB2 (talk) 11:59, 13 June 2020 (UTC)
- Why are you putting the redirect inside of nowiki code? TiltedCerebellum (talk) 08:45, 29 June 2020 (UTC)
Short url error installing another wiki in mywiki.org/w
hello everyone I recently had my wiki in the directory mywiki.org/ and I changed to the directory w/ so that the pages are mywiki.org/wiki/ but these are my settings https://dpaste.org/9TN9 and it redirects correctly from mywiki.org/w to /wiki but I get error 404 and nothing shows, im use litespeed. SamiWey (talk) 13:45, 13 June 2020 (UTC)
Social Profile 8287
After Mediawiki update i'm getting and error on Social Profile when I try to send messages to users, and the message isn't sent: 2020/05/15 14:29:20 [error] 8287#8287: *120536933 FastCGI sent in stderr: "PHP message: PHP Notice: Undefined variable: user_name in /home/tibiawiki/extensions/SocialProfile/UserProfile/includes/UserProfilePage.php on line 198" while reading response header from upstream, client: 172.69.3.157, server: www.tibiawiki.com.br, request: "GET /wiki/Usu%C3%A1rio:Tillzin HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.0-fpm.sock:", host: "tibiawiki.com.br"
Produto | Versão |
---|---|
MediaWiki | 1.31.1 |
PHP | 7.0.33-0ubuntu0.16.04.12 (fpm-fcgi) |
MySQL | 5.7.29-0ubuntu0.16.04.1 |
SocialProfile | 1.13 (3289c9b) 16h37min de 15 de abril de 2018 |
For full information about Extensions installed can be found https://www.tibiawiki.com.br/wiki/Especial:Versão Liokdama (talk) 00:16, 14 June 2020 (UTC)
- This error usually occurs when there is a mismatch between the MediaWiki version and the extension version. Looks like your versions are correct. Have you run the update script too? AhmadF.Cheema (talk) 07:58, 14 June 2020 (UTC)
- Just Run like in the update script link, with de "force" parameter but still get the same error message in various users:
- 2020/06/14 14:23:51 [error] 8291#8291: *335384267 FastCGI sent in stderr: "PHP message: PHP Notice: Undefined variable: /user_name in /home/tibiawiki/extensions/SocialProfile/UserProfile/includes/UserProfilePage.php on line 198" while reading response header from upstream, client: 108.162.245.25, server: www.tibiawiki.com.br, request: "GET /wiki/Usu%C3%A1rio:Elentrok HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.0-fpm.sock:", host: "www.tibiawiki.com.br" Liokdama (talk) 17:44, 14 June 2020 (UTC)
- Its an issue with php error reporting in the wrong time in fastcgi protocol (well sort of, its also a real warning). Try setting php to only log errors to a file and not display them Bawolff (talk) 19:16, 14 June 2020 (UTC)
- Changing were the log error will be displayed didn't changed my problem. Still can't sent any messages to any user. Liokdama (talk) 20:46, 15 June 2020 (UTC)
- Did you get a new error message, or are you still receiving the old error? AhmadF.Cheema (talk) 07:38, 16 June 2020 (UTC)
- The error number a think it's changed from 8287#8287 to 8291#8291 but the message is the same.
- old: "[error] 8287#8287: *120536933 FastCGI sent in stderr: "
- new: "[error] 8291#8291: *335384267 FastCGI sent in stderr: " Liokdama (talk) 20:50, 16 June 2020 (UTC)
- I have the same error in my site! :(
- FastCGI sent in stderr: "PHP message: PHP Notice: Undefined variable: user_name
- SocialProfile/UserProfile/includes/UserProfilePage.php 189.11.10.233 (talk) 23:59, 25 December 2020 (UTC)
Forbidden You don't have permission ... when insalling MW
RESOLVED | |
Adding the line RewriteCond %{REQUEST_URI} !/wiki/mw-config/[^/]*\.php$ in .htaccess file in Drupal directory has solved the problem, Mediawiki setting become accessible. |
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've install Mediawiki 1.34.1 on my VPS server (Ubuntu 16.04, Apache 2.4.18, PHP 7.3.18, MySql 5.7.30). MW is in the directory of Drupal (.../mysite.ru/web/wiki ).
When I click on the install link (http://mysite.ru/wiki/mw-config/index.php), I get error "Forbidden You don't have permission to access this resource. Apache/2.4.18 (Ubuntu) Server at cogsys.ru Port 80".
Permissions set to 755, and I can to open another files in this dir from browser, for ex. http://mysite.ru/wiki/mw-config/config.js.
What a problem? KarelMike (talk) 11:10, 14 June 2020 (UTC)
Problem with upload file in multiple template
Hi, I'm trying to write a form with PageForm for upload several images. I make the template and i call that template with "multiple" feature. But, when i try to upload an image he didn't take it and say "C:\fakepath\". I think this is a common problem that is caused by some security features of the browsers. Is there any solutions/tip? Cible30 (talk) 14:52, 14 June 2020 (UTC)
- it is impossible to help without a link (so we can see your templates and see how you are setting it up, or at least the code samples) and knowing more specifics. TiltedCerebellum (talk) 08:37, 29 June 2020 (UTC)
People are not receiving dispatch delivery items
RESOLVED | |
Has nothing to do with the Mediawiki software, user is in the wrong place |
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
It says delivering but nothing comes through. I've dropped all the add on items into the delivery server. I did not change any permissions 100.6.166.154 (talk) 22:18, 14 June 2020 (UTC)
- Is this related to MediaWiki? AhmadF.Cheema (talk) 23:28, 14 June 2020 (UTC)
Forbidden 403 Error
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hello!
I just started a new wiki called TVRS Wiki completely from scratch. I've been following the tutorial on short URLs, but there's an issue I'm stuck on. My wiki is located at http://tvrswiki.net/ph/Main_Page, but if I try to enter "http://tvrswiki.net/" then it comes up with the following:
---
Forbidden
You don't have permission to access this resource.
Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.
---
I've set up a different wiki before I don't recall ever running into this problem. Any advice?
I'm using MediaWiki 1.34.1 and PHP 7.3.1. Krayfishkarl (talk) 02:32, 15 June 2020 (UTC)
- Sounds like your web server is not allowed to read MediaWiki's files, check the file permissions Taavi (talk!) 07:51, 15 June 2020 (UTC)
- I got it working now! I just had to rearrange the directory around. Krayfishkarl (talk) 01:33, 16 June 2020 (UTC)
Template Issues
Hello,
I've got some button and button2 templates loaded. When I edit pages using the code and preview them the buttons show up properly. However, when I view the published page the buttons show as only text. What might be the cause of this? 192.81.87.233 (talk) 20:14, 15 June 2020 (UTC)
- Could be some extension or problematic JavaScript code that might be interfering. Open browser developer tools (by pressing F12) and look at the Console tab to see if any errors are logged there. Also, try disabling all extensions and see if the issue persists. AhmadF.Cheema (talk) 07:43, 16 June 2020 (UTC)
- It does not appear to be a browser issue. The developer console doesn't show any errors, and using a different browser/different computer yields the same results. 192.81.87.233 (talk) 13:04, 16 June 2020 (UTC)
- He did not say it was a browser issue, he said it may be an issue with an extension or js you added to common js, an add on js file, or even a gadget/widget file. TiltedCerebellum (talk) 08:28, 29 June 2020 (UTC)
- Could it be something to do with whatever skin you're using? Maybe try it with Vector?
- Or something in your Common.js or Common.css?
- Could you cut and paste the templates here? Jonathan3 (talk) 18:24, 16 June 2020 (UTC)
How do I open php.ini?
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.
Im using MediaWiki 1.34. I want to enable uploads. I read in a manual, I have to open / edit php.ini, but I have no idea how to open it.
I have created a php file with the content
<?php
phpinfo();
I now how to upload it on my server. But where do I upload it in, and what exactly do I have to do next?
Please help, I'm a newb. 2A02:908:3111:7DA0:4D68:3CA2:E0DD:9720 (talk) 20:57, 15 June 2020 (UTC)
- That depends on how you connect to your server. and is not a question about MediaWiki itself. You may need an FTP client software, or use scp if you connect via SSH, or or. (We don't know what you have to do next as we don't know which steps you are following and why.) Malyacko (talk) 04:13, 16 June 2020 (UTC)
- My FTP client is FileZilla. My hoster ist bplaced.net with php version 7.3.
- Now what do I do upload and open the php.ini? 2A02:908:3111:7DA0:8C37:6928:8A29:3741 (talk) 09:31, 16 June 2020 (UTC)
- That depends on where that file is located, and that is a question for your hoster. Then you could download the file via FTP, change it, and reupload it, for example. Malyacko (talk) 09:39, 16 June 2020 (UTC)
How do I remove a wikipedia web-page
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
- I want to shut down the page (SyntheticET), though Wikipedia has a survival instinct all its own.
- OR, renew it with a different name. Michael Lewis mglewis99352̊gmail.com
SyntheticET (talk) 21:21, 15 June 2020 (UTC)- Is this about https://en.wikipedia.org/w/index.php?title=User:SyntheticET&action=history ? Or something else? Please always include links. Malyacko (talk) 04:12, 16 June 2020 (UTC)
- there is no english wikipedia page by that name.
- Please include the full url of the page you are talking about so we can better direct you to the right place. Bawolff (talk) 02:24, 16 June 2020 (UTC)
- Are you talking about this user page (that has been blanked)?
- https://en.wikipedia.org/wiki/User:SyntheticET TiltedCerebellum (talk) 08:34, 29 June 2020 (UTC)
MediaWiki engine is not treating .webp images correctly which is causing pages to run EXTREMELY SLOW!
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 everyone! I am running into a few issues here and will share an example.
Here is a page where all the images uploaded to it were in .webp format. Originally the images were all manually converted from PNG to .webp:
https://www.wikiajuda.com.br/Como_funciona_e_como_usar_o_Instagram
Pagespeed insights is clearing telling us that these images are heavy:
Now, when you click to SAVE AS on top of any of the images, you can see that they have .webp on their title but the file type shown is .png:
BUT.... if you click on any of the images you are taken to its details page which again clearly shows that it is a WEBP version of the file. As an example the image here has 28KB only: https://www.wikiajuda.com.br/Arquivo:4_-_Como_usar_o_Instagram_-_Adicione_email_ou_telefone_-_WikiAjuda.webp
NOW... WHEN YOU CLICK on this image, you are taken to its original format:
And when you click to SAVE AS.. what do you get? A original .WEBP file extension!
Why in the world is the mediawiki engine interfering with all the images like this. Recently over 300 images were uploaded, all manually converted from PNG to WEBP and in every one of them we could see the size of the file shrink by 70% to 90%! How can MEDIAWIKI UNDO the conversion and EXPAND the file size once again and UNDO all the work and SERVE HEAVIER VERSIONS OF THE image files?
This is the score of the final URL with the image. The score is a whopping 100:
Here's my local settings.php file
<?php
## Default skin: you can change the default skin. Use the internal symbolic
## names, ie 'vector', 'monobook':
wfLoadSkin( 'Tweeki' );
$wgDefaultSkin = "tweeki";
$wgTweekiSkinGridNone = array(
"mainoffset" => 0,
"mainwidth" => 12
);
# Enabled skins.
# The following skins were automatically enabled:
## TWEEKI IS VERY SPECIAL, DON'T LET USER CHAGE IT
# wfLoadSkin( 'CologneBlue' );
# wfLoadSkin( 'Modern' );
# wfLoadSkin( 'MonoBook' );
# wfLoadSkin( 'Vector' );
# Enabled extensions. Most of the extensions are enabled by adding
# wfLoadExtensions('ExtensionName');
# to LocalSettings.php. Check specific extension documentation for more details.
# The following extensions were automatically enabled:
$extensionArray = [
'Arrays',
'AutoSitemap',
'Cite',
'CiteThisPage',
'Comments',
'ConfirmEdit',
'EmbedVideo',
'ExternalData',
'Gadgets',
'ImageMap',
'InputBox',
'Interwiki',
'MultimediaViewer',
'Nuke',
'PageNotice',
'PageForms',
'ParserFunctions',
'PdfHandler',
'Poem',
'Renameuser',
'ReplaceText',
'SemanticResultFormats',
'SemanticExtraSpecialProperties',
'UserFunctions',
'Variables',
'WikiEditor',
'WikiSEO',
'googleAnalytics'
];
foreach ( $extensionArray as $extension ) {
$jsonFile = "$wgExtensionDirectory/$extension/extension.json";
if ( file_exists( $jsonFile ) ) {
wfLoadExtension( $extension );
} else {
require_once "$wgExtensionDirectory/$extension/$extension.php";
}
}
// ParserFunctions
$wgPFEnableStringFunctions = true;
#wfLoadExtension( 'LocalisationUpdate' );
#wfLoadExtension( 'SpamBlacklist' );
#wfLoadExtension( 'SyntaxHighlight_GeSHi' );
#wfLoadExtension( 'TitleBlacklist' );
// WikiEditor
$wgDefaultUserOptions['usebetatoolbar'] = 1;
$wgDefaultUserOptions['usebetatoolbar-cgd'] = 1;
$wgDefaultUserOptions['wikieditor-preview'] = 0;
$wgDefaultUserOptions['wikieditor-publish'] = 0;
# End of automatically generated settings.
# Add more configuration options below.
$wgAllowDisplayTitle = true;
$wgRestrictDisplayTitle = false;
$wgAllowUserCss = true;
$wgAllowUserJs = false;
$wgAllowSiteCSSOnRestrictedPages = true;
enableSemantics( 'wikiajuda.com.br' );
$smwgPageSpecialProperties = array( '_MDAT', '_CDAT', '_NEWP', '_LEDT' );
$GLOBALS['smwgNamespacesWithSemanticLinks'] = array(
NS_MAIN => true,
NS_TALK => false,
NS_USER => true,
NS_USER_TALK => false,
NS_PROJECT => true,
NS_PROJECT_TALK => false,
NS_IMAGE => true,
NS_IMAGE_TALK => false,
NS_MEDIAWIKI => true,
NS_MEDIAWIKI_TALK => false,
NS_TEMPLATE => true,
NS_TEMPLATE_TALK => false,
NS_HELP => true,
NS_HELP_TALK => false,
NS_CATEGORY => true,
NS_CATEGORY_TALK => false,
SMW_NS_PROPERTY => true,
SMW_NS_PROPERTY_TALK => false,
);
$smwgQUpperbound = 32000;
$smwgQMaxInlineLimit = 5000;
$smwgQMaxLimit = 32000;
$smwgLinksInValues = true;
#$smwStrictComparators = true;
$smwgSearchByPropertyFuzzy = array( '_num', '_dat' );
// PageForms
$wgPageFormsAutocompleteOnAllChars = true;
#$wgPageFormsUseDisplayTitle = true;
// UserFunctions
$wgUFEnablePersonalDataFunctions = true;
$wgUFEnableSpecialContexts = true;
$wgUFAllowedNamespaces = array_fill(0, 200, true);
// ExternalData
$edgDBServer['localhost'] = "127.0.0.1";
$edgDBServerType['localhost'] = "mysql";
$edgDBName['localhost'] = "*******";
$edgDBUser['localhost'] = "*******";
$edgDBPass['localhost'] = "*******";
// MultimediaViewer
$wgDefaultUserOptions['multimediaviewer-enable'] = 1;
$wgMediaViewerEnableByDefault = true;
$wgMediaViewerEnableByDefaultForAnonymous = true;
$wgMediaViewerUseThumbnailGuessing = true;
$wgFileExtensions[] = 'webp';
// AutoSitemap
$wgAutoSitemap["notify"] = [
'https://www.google.com/webmasters/sitemaps/ping?sitemap=https://www.wikiajuda.com.br/sitemap.x$
'https://www.bing.com/webmaster/ping.aspx?sitemap=https://www.wikiajuda.com.br/sitemap.xml',
];
// googleAnalytics
// Replace xxxxxxx-x with YOUR GoogleAnalytics UA number
$wgGoogleAnalyticsAccount = 'UA-100079029-1';
// Add HTML code for any additional web analytics (can be used alone or with $wgGoogleAnalyticsAcco$
#$wgGoogleAnalyticsOtherCode = '<script type="text/javascript" src="https://analytics.example.com/t$
// Optional configuration (for defaults see googleAnalytics.php)
// Store full IP address in Google Universal Analytics (see https://support.google.com/analytics/an$
$wgGoogleAnalyticsAnonymizeIP = false;
// Array with NUMERIC namespace IDs where web analytics code should NOT be included.
$wgGoogleAnalyticsIgnoreNsIDs = array(500);
// Array with page names (see magic word Extension:Google Analytics Integration) where web analytic$
$wgGoogleAnalyticsIgnorePages = array('ArticleX', 'Foo:Bar');
// Array with special pages where web analytics code should NOT be included.
$wgGoogleAnalyticsIgnoreSpecials = array( 'Userlogin', 'Userlogout', 'Preferences', 'ChangePassword$
// Use 'noanalytics' permission to exclude specific user groups from web analytics, e.g.
$wgGroupPermissions['sysop']['noanalytics'] = true;
$wgGroupPermissions['bot']['noanalytics'] = true;
// To exclude all logged in users give 'noanalytics' permission to 'user' group, i.e.
$wgGroupPermissions['user']['noanalytics'] = true;
// Load external resources
$wgHooks['BeforePageDisplay'][] = function( OutputPage &$out, Skin &$skin ) {
$code = <<<'START_END_MARKER'
<script data-ad-client="ca-pub-98422***********" async src="<nowiki><nowiki>https://pagead2.googlesyndication.com/p$</nowiki></nowiki> START_END_MARKER; $out->addHeadItem( 'head-tags-load', $code );
return true;
};
// Comments
$wgGroupPermissions['sysop']['commentadmin'] = true;
$wgGroupPermissions['*']['comment'] = true;
#$wgGroupPermissions['user']['comment'] = true;
// FileCache
#$wgFileCacheDirectory = "$IP/html";
#$wgUseFileCache = true;
// Disabled
// <script async src="<nowiki>https://platform-api.sharethis.com/js/sharethis.js#property=5ee6545d799cf5001$</nowiki> [[User:Choosejoy|Choosejoy]] ([[User talk:Choosejoy|talk]]) 03:43, 16 June 2020 (UTC) :When you save such an image and open it you see that the image simply is in PNG format. Even though it has a WEBP ending in its file name. :Which software is used to create thumbnails? ImageMagick? The GD library? How did you configure it? See [[Manual:Image administration#Image thumbnailing]]. And no, this is not "urgent". [[User:Malyacko|Malyacko]] ([[User talk:Malyacko|talk]]) 04:11, 16 June 2020 (UTC) :Hi! I've changed the title and removed urgent. :I described the process in how the wiki is serving the images, but here when I click to save the image it gives me .WEBP: :https://www.wikiajuda.com.br/images/b/ba/4_-_Como_usar_o_Instagram_-_Adicione_email_ou_telefone_-_WikiAjuda.webp :As for how I am converting it to WEBP it is through an extension. :Sometimes this one :https://chrome.google.com/webstore/detail/webp-image-converter/pbcfbdlbkdfobidmdoondbgdfpjolhci :and sometimes this one: :https://chrome.google.com/webstore/detail/save-image-as-you-want/laecjkbpbmfmleaiggbaifbaecaifink [[User:Choosejoy|Choosejoy]] ([[User talk:Choosejoy|talk]]) 04:20, 16 June 2020 (UTC) :We need to know the values of [[Manual:$wgUseImageMagick|$wgUseImageMagick]] and (if present) [[Manual:$wgCustomConvertCommand|$wgCustomConvertCommand]] in your [[Manual:LocalSettings.php|LocalSettings.php]] (details at [[Manual:Image administration#Image thumbnailing]]). :By default, I think MediaWiki is configured to convert images into .png format to serve as lower pixel-sized thumbnails; that's probably why .webp images' thumbnails are showing up in .png format. [[User:AhmadF.Cheema|AhmadF.Cheema]] ([[User talk:AhmadF.Cheema|talk]]) 07:36, 16 June 2020 (UTC) :Thanks for the reply from both of you. I edited my question and included my entire localsettings php file because I couldn't find anything that look liked that info you asked for. [[User:Choosejoy|Choosejoy]] ([[User talk:Choosejoy|talk]]) 14:17, 16 June 2020 (UTC) :when webp support was originally added, browser support for webp was lacking. [[User:Bawolff|Bawolff]] ([[User talk:Bawolff|talk]]) 15:52, 16 June 2020 (UTC) :so what can I do? [[User:Choosejoy|Choosejoy]] ([[User talk:Choosejoy|talk]]) 16:02, 16 June 2020 (UTC) :you can use a more complex system to serve images (wikipedia does this), using accept headers to autodetect support. :The current image handling in mediawiki can't do format support detection (since images arent served directly). We are unlikely to change mediawiki to output webp only when a quarter of users aren't able to read the format [https://caniuse.com/#feat=webp]. :as an aside 70% compression improvements are much better than what webp normally advertises. Assuming you are doing lossless webp for a fair comparision, it may mean your png files could be better compressed. It wont be as good as webp, but normally the difference is only ~30%. [[User:Bawolff|Bawolff]] ([[User talk:Bawolff|talk]]) 05:22, 17 June 2020 (UTC) :{{FlowMention|Bawolff}} is there a marketplace where you guys would recommend I check it out in order to find someone that can help me with this? [[User:Choosejoy|Choosejoy]] ([[User talk:Choosejoy|talk]]) 06:30, 17 June 2020 (UTC) :[[Professional development and consulting]] has a list of people [[User:Bawolff|Bawolff]] ([[User talk:Bawolff|talk]]) 06:57, 17 June 2020 (UTC) {{Archive bottom}} == How to send an Invoice PLUS a payment instructions document together? == {{Archive top|status=resolved}} I want to use a latest install of MediaWiki to have a web-browser-operated personal software to create invoice to customers; The invoice should be inside a PDF which will also contain a second file (payment instructions file). I edit the invoice details and it will be automatically inserted into a PDF alongside the payment instructions file ans sent to my customer from the email server of my hosting provider. Is this even possible with MediaWiki "out of box" (perhaps with writing a bit of code)? [[Special:Contributions/49.230.60.30|49.230.60.30]] ([[User talk:49.230.60.30|talk]]) 04:54, 16 June 2020 (UTC) :its not possible out of the box. :Anything is possible with sufficient effort, but maybe consider using invoice software instead [[User:Bawolff|Bawolff]] ([[User talk:Bawolff|talk]]) 15:50, 16 June 2020 (UTC) :MediaWiki is a software for documentation, not to generate invoices. You should probably look into a different software for this. [[User:Ciencia Al Poder|Ciencia Al Poder]] ([[User talk:Ciencia Al Poder|talk]]) 17:28, 16 June 2020 (UTC) {{Archive bottom}} == Account creation problem == {{Archive top|result=Needs the required version of php|status=resolved}} Hello, I am beginner, and I created new mediawiki site (PHP 7.2.31, MySQL 8.0.20, Mediawiki 1.34.1 on Windows Server 2016). When I try to create new user account it throws following error. Could you please help me, what is the problem? ''[166ad1acd87e9f2b64d1fb85] /index.php?title=Special:CreateAccount InvalidArgumentException from line 263 of C:\inetpub\wwwroot\DocPortal\includes\language\Message.php: $key must be a string or an array'' ''Backtrace:'' ''#0 C:\inetpub\wwwroot\DocPortal\includes\GlobalFunctions.php(1265): Message->__construct(boolean)
#1 C:\inetpub\wwwroot\DocPortal\includes\Status.php(290): wfMessage(boolean, array)
#2 C:\inetpub\wwwroot\DocPortal\includes\Status.php(247): Status->getErrorMessage(array, LanguageEn)
#3 C:\inetpub\wwwroot\DocPortal\includes\auth\AuthManager.php(1295): Status->getMessage()
#4 C:\inetpub\wwwroot\DocPortal\includes\auth\AuthManager.php(1150): MediaWiki\Auth\AuthManager->continueAccountCreation(array)
#5 C:\inetpub\wwwroot\DocPortal\includes\specialpage\AuthManagerSpecialPage.php(359): MediaWiki\Auth\AuthManager->beginAccountCreation(User, array, string)
#6 C:\inetpub\wwwroot\DocPortal\includes\specialpage\AuthManagerSpecialPage.php(484): AuthManagerSpecialPage->performAuthenticationStep(string, array)
#7 C:\inetpub\wwwroot\DocPortal\includes\htmlform\HTMLForm.php(690): AuthManagerSpecialPage->handleFormSubmit(array, VFormHTMLForm)
#8 C:\inetpub\wwwroot\DocPortal\includes\specialpage\AuthManagerSpecialPage.php(417): HTMLForm->trySubmit()
#9 C:\inetpub\wwwroot\DocPortal\includes\specialpage\LoginSignupSpecialPage.php(313): AuthManagerSpecialPage->trySubmit()
#10 C:\inetpub\wwwroot\DocPortal\includes\specialpage\SpecialPage.php(575): LoginSignupSpecialPage->execute(NULL)
#11 C:\inetpub\wwwroot\DocPortal\includes\specialpage\SpecialPageFactory.php(611): SpecialPage->run(NULL)
#12 C:\inetpub\wwwroot\DocPortal\includes\MediaWiki.php(296): MediaWiki\Special\SpecialPageFactory->executePath(Title, RequestContext)
#13 C:\inetpub\wwwroot\DocPortal\includes\MediaWiki.php(900): MediaWiki->performRequest()
#14 C:\inetpub\wwwroot\DocPortal\includes\MediaWiki.php(527): MediaWiki->main()
#15 C:\inetpub\wwwroot\DocPortal\index.php(44): MediaWiki->run()
#16 {main} 79.120.193.130 (talk) 14:07, 16 June 2020 (UTC)
- Can anybody help me? 79.120.193.130 (talk) 10:50, 18 June 2020 (UTC)
- MediaWiki 1.34 requires PHP 7.2.9+.
- Compatibility#PHP TiltedCerebellum (talk) 08:14, 29 June 2020 (UTC)
problem with installation
RESOLVED | |
Reported with issue 4794 |
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.
Just built fedora 32 system with apache, php, mediawiki (1.33.3) and at the final install step, it throws up.
[XukdTH7z706fDeNemJRv-QAAABU] /wiki/mw-config/index.php?page=Install Error from line 464 of /usr/share/mediawiki/extensions/SemanticMediaWiki/includes/SMW_Setup.php: Call to undefined function wfProfileIn()
Backtrace:
#0 /usr/share/mediawiki/extensions/SemanticMediaWiki/includes/SMW_Setup.php(426): smwfInitContentLanguage()
#1 /usr/share/mediawiki/extensions/SemanticMediaWiki/SMW_Settings.php(95): smwfInitNamespaces()
#2 /usr/share/mediawiki/extensions/SemanticMediaWiki/SemanticMediaWiki.php(74): require_once(string)
#3 /usr/share/mediawiki/includes/installer/Installer.php(1497): require_once(string)
#4 /usr/share/mediawiki/includes/installer/Installer.php(1597): Installer->includeExtensions()
#5 /usr/share/mediawiki/includes/installer/WebInstallerInstall.php(44): Installer->performInstallation()
#6 /usr/share/mediawiki/includes/installer/WebInstaller.php(264): WebInstallerInstall->execute()
#7 /var/www/wiki/mw-config/index.php(80): WebInstaller->execute()
#8 /var/www/wiki/mw-config/index.php(38): wfInstallerMain()
#9 {main} Seth2740 (talk) 19:35, 16 June 2020 (UTC)
- That function was removed in MW 1.31, so you need to report this to SemanticMediaWiki maintainers – Ammarpad (talk) 08:29, 17 June 2020 (UTC)
List of all references in a WIKI
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hi, Is it possible to generate a list of all references within a WIKI on a single special page?
Thanks Gazatron3000 (talk) 22:36, 16 June 2020 (UTC)
Show keyboard shortcuts when hover with mouse
Is it possible to show keyboard options when hovering with mouse over icons?
I've seen the shortcuts table in Options menu, and have also found the shortcut in the menus.
But would find it nice if there was an option for this as well.
Regards. Villamil27 (talk) 00:30, 17 June 2020 (UTC)
- @Villamil27 Which "Options" menu? Which software (name and URL) is this about at all? Malyacko (talk) 08:08, 17 June 2020 (UTC)
Can anyone kindly share advice on how I can make my wiki load faster?
Here's the audit of the homepage from Google's pagespeed tool:
Here's an audit from a typical content page: (Which shows extremely poor and very low speed)
WikiInfo: https://www.wikiajuda.com.br/Especial:Vers%C3%A3o
Here's my full LocalSettings.php file:
<?php
## Default skin: you can change the default skin. Use the internal symbolic
## names, ie 'vector', 'monobook':
wfLoadSkin( 'Tweeki' );
$wgDefaultSkin = "tweeki";
$wgTweekiSkinGridNone = array(
"mainoffset" => 0,
"mainwidth" => 12
);
# Enabled skins.
# The following skins were automatically enabled:
## TWEEKI IS VERY SPECIAL, DON'T LET USER CHAGE IT
# wfLoadSkin( 'CologneBlue' );
# wfLoadSkin( 'Modern' );
# wfLoadSkin( 'MonoBook' );
# wfLoadSkin( 'Vector' );
# Enabled extensions. Most of the extensions are enabled by adding
# wfLoadExtensions('ExtensionName');
# to LocalSettings.php. Check specific extension documentation for more details.
# The following extensions were automatically enabled:
$extensionArray = [
'Arrays',
'AutoSitemap',
'Cite',
'CiteThisPage',
'Comments',
'ConfirmEdit',
'EmbedVideo',
'ExternalData',
'Gadgets',
'ImageMap',
'InputBox',
'Interwiki',
'MultimediaViewer',
'Nuke',
'PageNotice',
'PageForms',
'ParserFunctions',
'PdfHandler',
'Poem',
'Renameuser',
'ReplaceText',
'SemanticResultFormats',
'SemanticExtraSpecialProperties',
'UserFunctions',
'Variables',
'WikiEditor',
'WikiSEO',
'googleAnalytics'
];
foreach ( $extensionArray as $extension ) {
$jsonFile = "$wgExtensionDirectory/$extension/extension.json";
if ( file_exists( $jsonFile ) ) {
wfLoadExtension( $extension );
} else {
require_once "$wgExtensionDirectory/$extension/$extension.php";
}
}
// ParserFunctions
$wgPFEnableStringFunctions = true;
#wfLoadExtension( 'LocalisationUpdate' );
#wfLoadExtension( 'SpamBlacklist' );
#wfLoadExtension( 'SyntaxHighlight_GeSHi' );
#wfLoadExtension( 'TitleBlacklist' );
// WikiEditor
$wgDefaultUserOptions['usebetatoolbar'] = 1;
$wgDefaultUserOptions['usebetatoolbar-cgd'] = 1;
$wgDefaultUserOptions['wikieditor-preview'] = 0;
$wgDefaultUserOptions['wikieditor-publish'] = 0;
# End of automatically generated settings.
# Add more configuration options below.
$wgAllowDisplayTitle = true;
$wgRestrictDisplayTitle = false;
$wgAllowUserCss = true;
$wgAllowUserJs = false;
$wgAllowSiteCSSOnRestrictedPages = true;
enableSemantics( 'wikiajuda.com.br' );
$smwgPageSpecialProperties = array( '_MDAT', '_CDAT', '_NEWP', '_LEDT' );
$GLOBALS['smwgNamespacesWithSemanticLinks'] = array(
NS_MAIN => true,
NS_TALK => false,
NS_USER => true,
NS_USER_TALK => false,
NS_PROJECT => true,
NS_PROJECT_TALK => false,
NS_IMAGE => true,
NS_IMAGE_TALK => false,
NS_MEDIAWIKI => true,
NS_MEDIAWIKI_TALK => false,
NS_TEMPLATE => true,
NS_TEMPLATE_TALK => false,
NS_HELP => true,
NS_HELP_TALK => false,
NS_CATEGORY => true,
NS_CATEGORY_TALK => false,
SMW_NS_PROPERTY => true,
SMW_NS_PROPERTY_TALK => false,
);
$smwgQUpperbound = 32000;
$smwgQMaxInlineLimit = 5000;
$smwgQMaxLimit = 32000;
$smwgLinksInValues = true;
#$smwStrictComparators = true;
$smwgSearchByPropertyFuzzy = array( '_num', '_dat' );
// PageForms
$wgPageFormsAutocompleteOnAllChars = true;
#$wgPageFormsUseDisplayTitle = true;
// UserFunctions
$wgUFEnablePersonalDataFunctions = true;
$wgUFEnableSpecialContexts = true;
$wgUFAllowedNamespaces = array_fill(0, 200, true);
// ExternalData
$edgDBServer['localhost'] = "127.0.0.1";
$edgDBServerType['localhost'] = "mysql";
$edgDBName['localhost'] = "*******";
$edgDBUser['localhost'] = "*******";
$edgDBPass['localhost'] = "*******";
// MultimediaViewer
$wgDefaultUserOptions['multimediaviewer-enable'] = 1;
$wgMediaViewerEnableByDefault = true;
$wgMediaViewerEnableByDefaultForAnonymous = true;
$wgMediaViewerUseThumbnailGuessing = true;
$wgFileExtensions[] = 'webp';
// AutoSitemap
$wgAutoSitemap["notify"] = [
'https://www.google.com/webmasters/sitemaps/ping?sitemap=https://www.wikiajuda.com.br/sitemap.x$
'https://www.bing.com/webmaster/ping.aspx?sitemap=https://www.wikiajuda.com.br/sitemap.xml',
];
// googleAnalytics
// Replace xxxxxxx-x with YOUR GoogleAnalytics UA number
$wgGoogleAnalyticsAccount = 'UA-100079029-1';
// Add HTML code for any additional web analytics (can be used alone or with $wgGoogleAnalyticsAcco$
#$wgGoogleAnalyticsOtherCode = '<script type="text/javascript" src="https://analytics.example.com/t$
// Optional configuration (for defaults see googleAnalytics.php)
// Store full IP address in Google Universal Analytics (see https://support.google.com/analytics/an$
$wgGoogleAnalyticsAnonymizeIP = false;
// Array with NUMERIC namespace IDs where web analytics code should NOT be included.
$wgGoogleAnalyticsIgnoreNsIDs = array(500);
// Array with page names (see magic word Extension:Google Analytics Integration) where web analytic$
$wgGoogleAnalyticsIgnorePages = array('ArticleX', 'Foo:Bar');
// Array with special pages where web analytics code should NOT be included.
$wgGoogleAnalyticsIgnoreSpecials = array( 'Userlogin', 'Userlogout', 'Preferences', 'ChangePassword$
// Use 'noanalytics' permission to exclude specific user groups from web analytics, e.g.
$wgGroupPermissions['sysop']['noanalytics'] = true;
$wgGroupPermissions['bot']['noanalytics'] = true;
// To exclude all logged in users give 'noanalytics' permission to 'user' group, i.e.
$wgGroupPermissions['user']['noanalytics'] = true;
// Load external resources
$wgHooks['BeforePageDisplay'][] = function( OutputPage &$out, Skin &$skin ) {
$code = <<<'START_END_MARKER'
<script data-ad-client="ca-pub-98422***********" async src="&lt;nowiki&gt;https://pagead2.googlesyndication.com/p$&lt;/nowiki&gt; START_END_MARKER; $out->addHeadItem( 'head-tags-load', $code );
return true;
};
// Comments
$wgGroupPermissions['sysop']['commentadmin'] = true;
$wgGroupPermissions['*']['comment'] = true;
#$wgGroupPermissions['user']['comment'] = true;
// FileCache
#$wgFileCacheDirectory = "$IP/html";
#$wgUseFileCache = true;
// Disabled
// <script async src="https://platform-api.sharethis.com/js/sharethis.js#property=5ee6545d799cf5001$
Choosejoy (talk) 05:32, 17 June 2020 (UTC)
- what is $wgMainCacheType set to? Generally i would reccomend installing php-apcu and then setting $wgMainCacheType = CACHE_ACCEL; as a first step.
- Beyond that, you should consider using profiling to determine which part is slow. Bawolff (talk) 15:09, 17 June 2020 (UTC)
- THat's my entire local settings file up there. I don't have wgMainCacheType in there. I`ll look into it. Choosejoy (talk) 17:30, 17 June 2020 (UTC)
Flow
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
how can i install Extension:StructuredDiscussions this extension?
Msnhinet8 (talk) 13:16, 17 June 2020 (UTC)
- Extension:StructuredDiscussions Ramu ummadishetty (talk) 14:31, 17 June 2020 (UTC)
- so you can teach me how to install flow? Msnhinet8 (talk) 15:12, 17 June 2020 (UTC)
- Download the extension : Special:ExtensionDistributor/Flow
- Extract it and place it in
extensions/
folder. - Add the following code at the bottom of your LocalSettings.php:
wfLoadExtension( 'Flow' );
- Run the update script
- Extension:StructuredDiscussions Documentation is very clear just need to follow the steps Ramu ummadishetty (talk) 15:20, 17 June 2020 (UTC)
- ok
- thanks.
Msnhinet8 (talk) 18:09, 17 June 2020 (UTC)- so i can add your facebook?
Msnhinet8 (talk) 18:10, 17 June 2020 (UTC)- my facebook account is this:https://www.facebook.com/profile.php?id=100005499216613 Msnhinet8 (talk) 18:11, 17 June 2020 (UTC)
- you can go to my cpanel help me my wiki flow?
Msnhinet8 (talk) 18:12, 17 June 2020 (UTC)- my wiki is:https://tw.wikifamily.wikaba.com/wiki/index.php?title=%E9%A6%96%E9%A0%81 Msnhinet8 (talk) 18:12, 17 June 2020 (UTC)
- @Msnhinet8 If something in the documentation is unclear, then you need to point out which sentence exactly on which documentation page, and what you have tried (commands), and what happened instead. If you want someone else to do work for you, see Professional development and consulting. Malyacko (talk) 18:52, 17 June 2020 (UTC)
- ok thanks.
Msnhinet8 (talk) 19:26, 17 June 2020 (UTC)
No style after server update [solved]
RESOLVED | |
rewrite rules broke load.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.
Hi all,
I can see my wiki pages, but no style. This happened after an os and mediawiki update:
- Updated opensuse 42.3 server (with php5) by installing a fresh opensuse15.1 (php7)
- Restored the mariadb "wikidb"
- Old version was a downloaded plain mediawiki 1.22 at /srv/www/htdocs/mediawiki
- New version 1.33 was installed through open suse repository server:php:applications at /srv/www/mediawiki
- Moved the old config to webroot/LocalSettings.php
- I enabled mw-config page and went through installation steps, which updated the db and gave no errors
- Current site: https://banzhaf.chickenkiller.com/mediawiki/index.php/Special:Version
I tried all I found in your Errors and Symptom pages, but I get no error messages when loading a page. Not in apache logs and not in system logs or on the pages themselves. If I have php errors in my own pages, I can see them in syslog (as configured in php.ini).
What I tried:
- memory limit is at 128M
- configured tmp dir is writeable by webserver user
- Default skin is Vector. It is available in the skins directory and loaded in LocalSettings with wfLoadSkin( 'Vector' );
- Loading mediawiki/load.php yields no errors. I get redirected to the Main_Page
- I have added this in LocalSettings.php error_reporting( E_ALL ); ini_set( 'display_errors', 1 );
Since I still see no error messages I'm a bit lost now... Please help. Joba1 (talk) 17:21, 17 June 2020 (UTC)
- my LocalSettings.php minus keys and passwords...
egrep -v '^#|^$|Contact|Sender|Key|password' /srv/www/mediawiki/webroot/LocalSettings.php
<?php
error_reporting( E_ALL );
ini_set( 'display_errors', 1 );
if ( !defined( 'MEDIAWIKI' ) ) {
exit;
}
$wgSitename = "JoBaPedia";
$wgScriptPath = "/mediawiki";
$wgScriptExtension = ".php";
$wgResourceBasePath = $wgScriptPath;
$wgLogo = "$wgResourceBasePath/images/Jobapedia.png";
$wgEnableEmail = true;
$wgEnableUserEmail = true; # UPO
$wgEnotifUserTalk = false; # UPO
$wgEnotifWatchlist = false; # UPO
$wgEmailAuthentication = true;
$wgDBtype = "mysql";
$wgDBserver = "localhost";
$wgDBname = "wikidb";
$wgDBuser = "wikidb";
$wgDBprefix = "";
$wgDBTableOptions = "ENGINE=InnoDB, DEFAULT CHARSET=binary";
$wgMainCacheType = CACHE_NONE;
$wgMemCachedServers = [];
$wgEnableUploads = false;
$wgUseImageMagick = true;
$wgImageMagickConvertCommand = "/usr/bin/convert";
$wgUseInstantCommons = false;
$wgPingback = false;
$wgShellLocale = "en_US.utf8";
$wgLanguageCode = "en";
$wgAuthenticationTokenVersion = "1";
$wgRightsPage = ""; # Set to the title of a wiki page that describes your license/copyright
$wgRightsUrl = "";
$wgRightsText = "";
$wgRightsIcon = "";
$wgDiff3 = "/usr/bin/diff3";
$wgDefaultSkin = "vector";
wfLoadSkin( 'MonoBook' );
wfLoadSkin( 'Timeless' );
wfLoadSkin( 'Vector' );
$wgShowExceptionDetails = true;
Joba1 (talk) 17:47, 17 June 2020 (UTC)- And the apache config for mediawiki: /etc/apache2/conf.d/mediawiki.conf
Alias /w/ /srv/www/mediawiki/webroot/
Alias /mediawiki /srv/www/mediawiki/webroot/index.php
<Directory /srv/www/mediawiki/webroot>
<IfModule mod_version.c>
<IfVersion < 2.4>
Allow From All
</IfVersion>
<IfVersion >= 2.4>
Require all granted
</IfVersion>
</IfModule>
Options +FollowSymLinks
php_admin_flag register_globals off
php_admin_flag magic_quotes_gpc off
php_admin_flag allow_url_include off
php_admin_flag allow_url_fopen off
php_admin_flag safe_mode Off
php_admin_value session.save_path "/srv/www/mediawiki/session"
php_admin_value upload_tmp_dir "/srv/www/mediawiki/tmp"
php_admin_value sys_temp_dir "/srv/www/mediawiki/tmp"
php_admin_value open_basedir "/srv/www/mediawiki/:/usr/share/php/mediawiki/:/srv/www/mediawiki/tmp/:/usr/share/php7/PEAR:/usr/bin/texvc"
</Directory>
<Directory /srv/www/mediawiki/webroot/images>
# Protect against bug T30235
<IfModule rewrite_module>
RewriteEngine On
RewriteOptions inherit
RewriteCond %{QUERY_STRING} \.[^\/:*?\x22<>|%]+(#|\?|$) [nocase]
RewriteRule . - [forbidden]
# Fix for bug T64289
Options +FollowSymLinks
</IfModule>
</Directory>
<Directory /srv/www/mediawiki/webroot/includes>
<IfModule mod_version.c>
<IfVersion < 2.4>
Deny from all
</IfVersion>
<IfVersion >= 2.4>
Require all denied
</IfVersion>
</IfModule>
</Directory>
<Directory /srv/www/mediawiki/webroot/languages>
<IfModule mod_version.c>
<IfVersion < 2.4>
Deny from all
</IfVersion>
<IfVersion >= 2.4>
Require all denied
</IfVersion>
</IfModule>
</Directory>
<Directory /srv/www/mediawiki/webroot/maintenance>
<IfModule mod_version.c>
<IfVersion < 2.4>
Deny from all
</IfVersion>
<IfVersion >= 2.4>
Require all denied
</IfVersion>
</IfModule>
</Directory>
<Directory /srv/www/mediawiki/webroot/maintenance/archives>
<IfModule mod_version.c>
<IfVersion < 2.4>
Deny from all
</IfVersion>
<IfVersion >= 2.4>
Require all denied
</IfVersion>
</IfModule>
</Directory>
<Directory /srv/www/mediawiki/webroot/serialized>
<IfModule mod_version.c>
<IfVersion < 2.4>
Deny from all
</IfVersion>
<IfVersion >= 2.4>
Require all denied
</IfVersion>
</IfModule>
</Directory>
<Directory /srv/www/mediawiki/webroot/vendor>
<IfModule mod_version.c>
<IfVersion < 2.4>
Deny from all
</IfVersion>
<IfVersion >= 2.4>
Require all denied
</IfVersion>
</IfModule>
</Directory>
<Directory /srv/www/mediawiki/webroot/cache>
<IfModule mod_version.c>
<IfVersion < 2.4>
Deny from all
</IfVersion>
<IfVersion >= 2.4>
Require all denied
</IfVersion>
</IfModule>
</Directory>
Joba1 (talk) 17:54, 17 June 2020 (UTC)- Manual:Errors and symptoms#The wiki appears without styles applied and images are missing Malyacko (talk) 18:50, 17 June 2020 (UTC)
- something is wrong with your rewrite rules, load.php is being treated as a wikipage. Bawolff (talk) 01:11, 18 June 2020 (UTC)
- I still wonder why I don't see error messages in a configuration like this (error_reporting, display_errors).
- But you got me going in the right direction (load.php not handled correctly).
- I changed the first line of mediawiki.conf you see above from
Alias /w/ /srv/www/mediawiki/webroot/
- to
Alias /mediawiki/ /srv/www/mediawiki/webroot/
- Now everything is fine again. Since this file came with the package from the repo I'll check with the maintainers...
- Consider this closed, thanks a lot! Joba1 (talk) 08:52, 18 June 2020 (UTC)
- you dont get a php error because its not an error on the php layer. You might have had an in browser error in the developer console. Bawolff (talk) 15:27, 18 June 2020 (UTC)
Making links between text on same page?
Using Visual Editor, how do I make a link between a topic in a TOC and the text on that topic on the same Wikipedia page? I have successfully made links to other Wikipedia pages and to external websites but, on this presumably simpler matter of links between text on the same page, I have spent hours looking for guidance but found nothing. Any help much appreciated.
Database errors on page deletes from extensions that edit the database
Hello,
I've been updating and editing a mediawiki installation on my local network.
The vast majority of the maintenance, updating, and editing has gone very well. The exception to this is the fact that as I have been going along, cleaning test pages and attempting to use extensions such as Extension:Nuke I get a database error as follows;
The bellow error and stacktrace are the output from "title=Special:Nuke&action=delete"
[1310c5d63ad55b3dc32d7fab] /index.php?title=Special:Nuke&action=delete Wikimedia\Rdbms\DBTransactionError from line 1438 of /var/www/mediawiki/includes/libs/rdbms/database/Database.php: Explicit transaction still active. A caller may have caught an error. Open transactions: FileDeleteForm::doDelete
Backtrace:
#0 /var/www/mediawiki/includes/libs/rdbms/loadbalancer/LoadBalancer.php(1602): Wikimedia\Rdbms\Database->assertNoOpenTransactions()
#1 /var/www/mediawiki/includes/libs/rdbms/loadbalancer/LoadBalancer.php(2109): Wikimedia\Rdbms\LoadBalancer->Wikimedia\Rdbms\{closure}()
#2 /var/www/mediawiki/includes/libs/rdbms/loadbalancer/LoadBalancer.php(1621): Wikimedia\Rdbms\LoadBalancer->forEachOpenMasterConnection()
#3 /var/www/mediawiki/includes/libs/rdbms/lbfactory/LBFactory.php(208): Wikimedia\Rdbms\LoadBalancer->approveMasterChanges()
#4 /var/www/mediawiki/includes/libs/rdbms/lbfactory/LBFactorySimple.php(134): Wikimedia\Rdbms\LBFactory->Wikimedia\Rdbms\{closure}()
#5 /var/www/mediawiki/includes/libs/rdbms/lbfactory/LBFactory.php(210): Wikimedia\Rdbms\LBFactorySimple->forEachLB()
#6 /var/www/mediawiki/includes/libs/rdbms/lbfactory/LBFactory.php(269): Wikimedia\Rdbms\LBFactory->forEachLBCallMethod()
#7 /var/www/mediawiki/includes/MediaWiki.php(611): Wikimedia\Rdbms\LBFactory->commitMasterChanges()
#8 /var/www/mediawiki/includes/MediaWiki.php(582): MediaWiki::preOutputCommit()
#9 /var/www/mediawiki/includes/MediaWiki.php(536): MediaWiki->doPreOutputCommit()
#10 /var/www/mediawiki/index.php(44): MediaWiki->run()
#11 {main}
after a second test of the extension Extension:DeletePagesForGood i've found success in deleting singular pages, but would like to have the functionality available to delete swaths of pages that are unwanted in some fashion.
If anyone could please shed any light onto the possible causes of the above error, that would be absolutely amazing.
I can create pages, delete pages in the standard way, and use the extension "Delete Pages For Good", but for some reason nuke fails.
I have checked extension versions, permissions on the database file, permissions of the database user, restarted the mysql server process, and possibly some things I cant quite remember at this point.
Thank you very much for any assistance.
-Starns
EDIT
As I was going through and manually deleting some pages to see what would happen, I have discovered that there are two pages that I can not delete using Delete Pages for good.
The Stacktrace for the two different pages are as follows;
Backtrace:
#0 /var/www/mediawiki/includes/libs/rdbms/database/DBConnRef.php(68): Wikimedia\Rdbms\Database->getScopedLockAndFlush()
#1 /var/www/mediawiki/includes/libs/rdbms/database/DBConnRef.php(717): Wikimedia\Rdbms\DBConnRef->__call()
#2 /var/www/mediawiki/includes/Category.php(331): Wikimedia\Rdbms\DBConnRef->getScopedLockAndFlush()
#3 /var/www/mediawiki/extensions/DeletePagesForGood/ActionDeletePagePermanently.php(172): Category->refreshCounts()
#4 /var/www/mediawiki/extensions/DeletePagesForGood/ActionDeletePagePermanently.php(53): ActionDeletePagePermanently->deletePermanently()
#5 /var/www/mediawiki/includes/htmlform/HTMLForm.php(690): ActionDeletePagePermanently->onSubmit()
#6 /var/www/mediawiki/includes/htmlform/HTMLForm.php(582): HTMLForm->trySubmit()
#7 /var/www/mediawiki/includes/htmlform/HTMLForm.php(597): HTMLForm->tryAuthorizedSubmit()
#8 /var/www/mediawiki/includes/actions/FormAction.php(143): HTMLForm->show()
#9 /var/www/mediawiki/includes/MediaWiki.php(511): FormAction->show()
#10 /var/www/mediawiki/includes/MediaWiki.php(302): MediaWiki->performAction()
#11 /var/www/mediawiki/includes/MediaWiki.php(900): MediaWiki->performRequest()
#12 /var/www/mediawiki/includes/MediaWiki.php(527): MediaWiki->main()
#13 /var/www/mediawiki/index.php(44): MediaWiki->run()
#14 {main}
The thrown error for each page is as follows;
[b2c7fa0387c7d8bfd55fcfcf] /index.php?title=Test&action=delete_page_permanently Wikimedia\Rdbms\DBUnexpectedError from line 4676 of /var/www/mediawiki/includes/libs/rdbms/database/Database.php: Category::refreshCounts: Cannot flush pre-lock snapshot; writes from transaction Wikimedia\Rdbms\Database::beginIfImplied (User::loadFromDatabase) are still pending (ActionDeletePagePermanently::deletePermanently, ActionDeletePagePermanently::deletePermanently, ActionDeletePagePermanently::deletePermanently, ActionDeletePagePermanently::deletePermanently, ActionDeletePagePermanently::deletePermanently, ActionDeletePagePermanently::deletePermanently, ActionDeletePagePermanently::deletePermanently, ActionDeletePagePermanently::deletePermanently, ActionDeletePagePermanently::deletePermanently, ActionDeletePagePermanently::deletePermanently, ActionDeletePagePermanently::deletePermanently, ActionDeletePagePermanently::deletePermanently, ActionDeletePagePermanently::deletePermanently, ActionDeletePagePermanently::deletePermanently, ActionDeletePagePermanently::deletePermanently, ActionDeletePagePermanently::deletePermanently, ActionDeletePagePermanently::deletePermanently, ActionDeletePagePermanently::deletePermanently, ActionDeletePagePermanently::deletePermanently, ActionDeletePagePermanently::deletePermanently, ActionDeletePagePermanently::deletePermanently)
[07749e37026fe995415764dc] /index.php?title=EasyCal_6_Setup_%26_Usage&action=delete_page_permanently Wikimedia\Rdbms\DBUnexpectedError from line 4676 of /var/www/mediawiki/includes/libs/rdbms/database/Database.php: Category::refreshCounts: Cannot flush pre-lock snapshot; writes from transaction Wikimedia\Rdbms\Database::beginIfImplied (User::loadFromDatabase) are still pending (ActionDeletePagePermanently::deletePermanently, ActionDeletePagePermanently::deletePermanently, ActionDeletePagePermanently::deletePermanently, ActionDeletePagePermanently::deletePermanently, ActionDeletePagePermanently::deletePermanently, ActionDeletePagePermanently::deletePermanently, ActionDeletePagePermanently::deletePermanently, ActionDeletePagePermanently::deletePermanently, ActionDeletePagePermanently::deletePermanently, ActionDeletePagePermanently::deletePermanently, ActionDeletePagePermanently::deletePermanently, ActionDeletePagePermanently::deletePermanently, ActionDeletePagePermanently::deletePermanently, ActionDeletePagePermanently::deletePermanently, ActionDeletePagePermanently::deletePermanently, ActionDeletePagePermanently::deletePermanently, ActionDeletePagePermanently::deletePermanently, ActionDeletePagePermanently::deletePermanently)
Starnsyboi (talk) 01:58, 18 June 2020 (UTC)
- at a guess, i think the version of the extension you have is not supported by your version of mediawiki (and possibly the author has not updated it so no version will work) Bawolff (talk) 04:48, 18 June 2020 (UTC)
- I have received the same error message as your first one, have no idea how to fix it. 113.88.239.32 (talk) 09:10, 7 July 2020 (UTC)
how do i set a new password?
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.
no instructions with temporary password. User help, not helpful, not intuitive. Not new user (talk) 07:03, 18 June 2020 (UTC)
- log in with the temp password, you will be prompted.
- If all else fails, there is a button in your preferences Bawolff (talk) 07:32, 18 June 2020 (UTC)
- as i said. i got the temp password but no instructions to be able to set a new password after your system accepted the temp password. NOW i can't even get the darn thing to accept the temp password you gave me when i go to your new 'new password' that i found in preferences. which means i can't set a new password. i am in a little circle. Not new user (talk) 08:07, 18 June 2020 (UTC)
- it tells me that the temp password is incorrect. Not new user (talk) 08:07, 18 June 2020 (UTC)
- It probably is incorrect if you already used it. You are forced to set a new password upon login with a temp password after which the temp password will no longer work. Bawolff (talk) 08:26, 18 June 2020 (UTC)
What is the DevOps practice for websites on virtual machine server
I am running a non-profit MediaWiki website 1.34 that involves both database updates and code changes. How can I test that the website is running properly before I release it?
A few questions that I have:
1. Current DevOps guides focus on code maintainence, but given that I sometimes need to update the MySQL database when I change the code (e.g. installing an extension), how can I synchronize the database change between my local machine and the VM?
2. How can I synchronize system changes (e.g. Apache2 server settings)
3. LocalSettings.php contains sensitive information and should not be shared on repositories, but I often need to change the setting during development. What is the best practice to keep it only on VM? Use a secret.php file and load it with LocalSetting.php?
Timingliu (talk) 07:35, 18 June 2020 (UTC)
- for 1) typically people have separate testing databases if they want a separate staging system.
- 2) generally you do a change on your testing environment, and then later on your real environment. If it was synced automatically there wouldnt be a point of having a separate staging env. This can be made easier by using a configuration system like puppet where you can write your config as code, and check it into git, etc
- for 3) yes, loading a SecretSettings.php via the require directive is the most common method. There are other methods for provisioning secrets but they are usually tied to some deployment system. Bawolff (talk) 08:34, 18 June 2020 (UTC)
Upload file - Action failed
Hi
I'm trying to use the Upload file tool to upload a small png file. The tool will let me select the file, it gives me a nice preview, I don't enter any other information at this stage, I just proceed to upload.
The result is this -
"Could not open lock file for "mwstore://local-backend/local-public/5/57/Mc3300green.png". Make sure your upload directory is configured correctly and your web server has permission to write to that directory. See https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:$wgUploadDirectory for more information."
We have MediaWiki 1.34.1 running on a new CentOS 8.1.1911 vm and configuration is mostly default.
The /images directory has the permission apache:apache 0755, and
localsetting.php has $wgEnableUploads = true; $wgUploadDirectory = "${IP}/images"; $wgUploadPath = "${IP}/images";
I don't know where to start with this issue
Jason 90.249.150.126 (talk) 15:16, 18 June 2020 (UTC)
- check selinux settings. Bawolff (talk) 15:28, 18 June 2020 (UTC)
- Thanks Bawolff, SELinux in permissive mode was the solution 90.249.150.126 (talk) 15:47, 18 June 2020 (UTC)
Uploaded images have wrong src path
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I have uploaded an image using the Upload file tool
The image is definitely there when I look at images folder, but it looks like a broken link on the wiki.
When you click on the image, it's trying to go to http://server.example/var/www/mediawiki-1.34.1/images/c/ce/Mc.png
Why is it not going to http://server.example/images/Mc.png? 90.249.150.126 (talk) 16:08, 18 June 2020 (UTC)
- Sorry, I mean, why is it not going to server.example/images/c/ce/Mc.png?
90.249.150.126 (talk) 16:10, 18 June 2020 (UTC)- Set $wgUploadPath correctly in LocalSettings.php Bawolff (talk) 05:49, 19 June 2020 (UTC)
- $wgUploadPath = "${IP}/images";
- I've commented it out, and now works
- Thanks 90.249.150.126 (talk) 07:51, 19 June 2020 (UTC)
How to get current user's timezone on a wiki page?
Is there a way to get the current user's timezone in a wiki page? I am using a embedded Google calendar and I would like to pass it the user's timezone to allow it to display event start and end time in relation to their timezone. 166.70.65.30 (talk) 19:10, 18 June 2020 (UTC)
- Default mediawiki doesn't support this, because for efficiency reasons we want to show the same page to multiple users, and different users might have different timezones.
- Its possible there exists an extension to do this (Unforunately extension:UserFunctions does not include this). It is definitely possible to make one, but requires programming knowledge Bawolff (talk) 05:48, 19 June 2020 (UTC)
External links
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hi there! I was just wondering how to have the "external link" icon when adding an external link to a page of a mediawiki (the little arrow). It's now by default on this wiki or on wikipedia but not on the wiki I installed. Is it just something to do with the skin? Is it a simple way to add it?
Thanks! Triton (talk) 02:21, 19 June 2020 (UTC)
- Yes, its usually part of the skin. Although usually you don't have to do anything - if you're using the Vector skin (or another skin that supports that) it should just be there. Bawolff (talk) 05:46, 19 June 2020 (UTC)
- thank you @Bawolff! Apparently not the case on my skin (http://wiki.lokal-life.org/index.php?title=Accueil) I will look into it.
Triton (talk) 14:55, 19 June 2020 (UTC)
Two domains same mediawiki
Hi, I have two domains that will be pointing to the same server where mediawiki and the database live. It works well with simple conditions in the LocalSettings file to tell it what the server name should be however I have one problem. If I log in on domain1.com it still shows me as logged out in domain2.com
Is there was way to share sessions across the domains so that if I login on domain1 then I'll also be logged in on domain2. They're both using the exact same source code and database, just sessions are not being shared.
Appreciate any advice 149.248.81.66 (talk) 05:24, 19 June 2020 (UTC)
- Its possible, but kind of difficult with two top level domains, since cookies can't be easily shared. Extension:CentralAuth may be able to do it (possibly in a non-default config, since its made for farms of separate wikis. But i don't know what that config could be). Otherwise i think you would be stuck extending mediawiki yourself (AuthManager) which requires programming knowledge. Bawolff (talk) 05:42, 19 June 2020 (UTC)
After update from 1.32.1 to 1.34.1 most images are not shown
Hello,
if tried to update to the new mediawiki Version. No mater which way I try, most of the images are not shown on the internal wiki page. I've tried to copy the new wiki to the root folder an run the setup, I've tried a coplet reinstall of the xampp environment and the mediawiki.
It is possible to upload a new picture, but it is not possible to upload the same picture with the same descption.
Does anybody have an ideo over this error? It's the first time after an updat that i ran into this problems.
Thanks 195.225.33.11 (talk) 08:41, 19 June 2020 (UTC)
- Manual:Errors and symptoms#Image Thumbnails not working and/or appearing Malyacko (talk) 09:29, 19 June 2020 (UTC)
- I've tried it this also, but it's not working 195.225.33.11 (talk) 10:43, 19 June 2020 (UTC)
- If I look at the html cood, the path of the picture is automatically to the upload page, instead to the initial picture path
195.225.33.11 (talk) 10:52, 19 June 2020 (UTC)- What process did you do to upgrade? It sounds like you are missing entries in the image table maybe. Bawolff (talk) 15:31, 19 June 2020 (UTC)
- I've downloaded the new mediawiki Version and I've overwritten all the folders expect images and extensions. After that I run the php update.php skript.
- I've also tried the mw-config process and after the run again php update.php
- I've also tried deleteing the whole folder and create a new one, import the database etc.
- Which entries do I have to check?
195.225.33.1 (talk) 05:55, 22 June 2020 (UTC)- If you have a tool to look in the database, basically check that there is an entry in the image table for an image that is missing. Check also that the img_comment_id field is a number that matches some row in the comment table, and that the img_actor field is a number that matches some row in the actor table.
- If you don't have such a tool, you can try using the Sql.php maintenance script, and doing
SELECT * from image left join actor on img_actor = actor_id left join comment on img_description_id = comment_id;
and see if anything seems missing or is full of nulls. Bawolff (talk) 06:07, 22 June 2020 (UTC) - everything ssems fine if I look directly into the db
- If I click on the link, the only possible action is to upload the image
- so far I don't seem to be the only one Project:Support desk/Flow/2018/05#h-New_version_of_images_don't_trigger_thumbnail_recreation_(1.30.0)-2018-05-30T14:22:00.000Z 195.225.33.1 (talk) 08:53, 22 June 2020 (UTC)
- > so far I don't seem to be the only one Project:Support desk/Flow/2018/05#h-New_version_of_images_don't_trigger_thumbnail_recreation_(1.30.0)-2018-05-30T14:22:00.000Z
- The topic linked to is about images being shown but the wrong version, where you seem to be describing the image being totally missing. I dont think they are related.
- Just to clarify, if you directly go the file description page (i.e. if you have an image named Example.png, the page named File:Example.png ), does the page just say it doesnt exist? Is the image description there but the image missing? Something else.
- Does the page Special:MediaStatistics report the correct number of files? Bawolff (talk) 09:23, 22 June 2020 (UTC)
- If i go directly to the path of the picture, the the picture is shown in the browser (eg //servername/wiki/images/imagefolder/subfolder\imagename.png
- if i click on the image on the wiki page, it links to the upload manager
- yes the MediaStatistics are correct
- But if i click on the image on the wiki page, it links to the upload manager 195.225.33.1 (talk) 10:47, 22 June 2020 (UTC)
- i mean the url like mywiki.com/wiki/file:imagename.png Bawolff (talk) 15:49, 22 June 2020 (UTC)
- anyways, what you are describing is consistent with a referential integrity issue in actor or comment table. Did update.php output any warnings?
- Running cleanupUsersWithNoId.php followed by manual:migrateActors.php might help things Bawolff (talk) 15:54, 22 June 2020 (UTC)
- If I do mywiki.com/wiki/file:imagename.png, I get an error access denied
- no there are no warnings during update.php
- running cleanupuserswithnoid and migrateactors did not help 195.225.33.1 (talk) 08:10, 23 June 2020 (UTC)
- what type of access denied error? What does your apache (or whatever webserver you are using) say about the access denied error? Bawolff (talk) 08:26, 23 June 2020 (UTC)
- The following error:
- =Zugriff verweigert!=
- Der Zugriff auf das angeforderte Objekt ist nicht möglich. Entweder kann es vom Server nicht gelesen werden oder es ist zugriffsgeschützt.
- Sofern Sie dies für eine Fehlfunktion des Servers halten, informieren Sie bitte den Webmaster hierüber.
- ==Error 403==
- rvernamee
- Apache/2.4.38 (Win64) OpenSSL/1.1.1b PHP/7.3.3 195.225.33.1 (talk) 08:49, 23 June 2020 (UTC)
- But I got this error also without the update 195.225.33.1 (talk) 08:57, 23 June 2020 (UTC)
- If I turn on debug mode and look at a affectec image, i get following error:
- foreingapirepo: http get : https//commons.wikimedia.org/w/api.php?titles=File....
- [http] * Error fetching URL: ssl certifiacte proble: self signed certificate in certifacate chain
- There was a problem during the http request: 0 errors 195.225.33.1 (talk) 11:20, 24 June 2020 (UTC)
- well I guess I just have to relink the missing picture manually with a new name, this way it works 195.225.33.4 (talk) 13:21, 25 June 2020 (UTC)
- I think he is referring to detailed logs from the apache logs, not from the error displayed in the browser. If you don't know how to access your apache error logs, ask your web host. Also might be helpful to turn on mediawiki error logging/debug information as well:
- Manual:How to debug TiltedCerebellum (talk) 00:30, 12 July 2020 (UTC)
- sorry for confusion, i did indeed mean your apache error log (often /var/log/apache2/error.log).
- Also check for things like mod_security being installed or rewrite rules that only target images. Bawolff (talk) 05:43, 17 July 2020 (UTC)
Cacheable articles
Hi. Quick question... is there any way to request cacheable response headers (i.e. max-age > 0, etc.) when fetching (specifically) the printable versions of articles (i.e. ...?printable=yes)? I know this is a long shot question ha. Thanks. Brycehughes (talk) 15:32, 19 June 2020 (UTC)
- no, because we want to revalidate the response in case someone has edited it. If nobody has edited you should get a 304 instead of the full response which is much smaller.
- The only place you can really ask for maxage headers is during action=raw and in the api.
- If you are concerned about performance of this, consider setting up varnish Bawolff (talk) 06:00, 20 June 2020 (UTC)
Does not translate
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,
Sorry, I cannot find the answer, I am using wordfast classic on word 2019, but when I inserted the text from the source, the highlighted words (that are in the translation memory) do not translate. The translation memory is activated.
Thank you 2806:106E:18:4B:A04A:E6BD:7E5C:CF40 (talk) 17:25, 19 June 2020 (UTC)
- Welcome to the MediaWiki support desk. What does your question have to do with the MediaWiki software? Malyacko (talk) 03:57, 20 June 2020 (UTC)
Making links in summary clickable
I have an internal wiki and each edit is related to a ticket and I'd like to include a link to the ticket in the summary for more information. When trying it out it shows the link but it doesn't make it an active link and just shows the text. Is it possible to make links in the summary clickable? If it makes a difference, all of the links are to one specific domain. 144.51.12.18 (talk) 20:16, 19 June 2020 (UTC)
Languages are mixed up
Why does an MediaWiki English page appear in Russian? I am able to read both languages but I am not able to cross reference the same article in different languages. What is going on? This is the article I am talking about:
https://en.touhouwiki.net/wiki/Phantasmagoria_of_Flower_View 2001:7D0:84A7:CE80:F833:D999:418D:671 (talk) 01:02, 20 June 2020 (UTC)
Cannot login to website powered by MediaWiki
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
So I am trying to login with my default account, Collinuism, and it wont login, but I saved the correct password and I copied it correctly, and it keeps saying Account username or password is incorrect.
The site I am attempting to login to is malwiki.org. Collinuism (talk) 03:10, 20 June 2020 (UTC)
- @Collinuism You will need to contact that third-party website for problems with that third-party website, and explain what actually does happen ("won't login" won't be enough information). Malyacko (talk) 03:52, 20 June 2020 (UTC)
- It says Incorrect username or password entered. Please try again. And the website is powered by MediaWiki so I used my MediaWiki account. 64.52.177.171 (talk) 21:42, 21 June 2020 (UTC)
- Sorry that is my IP. Collinuism (talk) 21:43, 21 June 2020 (UTC)
- A website powered by mediawiki is just a website that is using the mediawiki software It doesn’t mean that the website is run or owned by MediaWiki. Mediawiki is a software, mediawiki has nothing to do with the third party site (third party meaning run by someone other than wikimedia or mediawiki) you are attempting to access. Find out who actually owns that third-party site (look for a contact page) and contact them instead. No one here can help you with a third-party site. TiltedCerebellum (talk) 07:57, 29 June 2020 (UTC)
FastCGI sent in stderr
RESOLVED | |
Error was due to incorrect syntax for $wgExtractsRemoveClasses[] in LocalSettings.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.
- My site's nginx error log is getting these errors every second and I'm not sure what's causing this:
- FastCGI sent in stderr: "PHP message: PHP Warning: strpos() expects parameter 1 to be string, array given in /vendor/wikimedia/html-formatter/src/HtmlFormatter.php on line 313 (also line 316 and 319)
- PHP message: PHP Warning: explode() expects parameter 2 to be string, array given in /vendor/wikimedia/html-formatter/src/HtmlFormatter.php on line 197
- PHP message: PHP Warning: DOMXPath::query(): Invalid expression in /vendor/wikimedia/html-formatter/src/HtmlFormatter.php on line 200
- PHP message: PHP Warning: Invalid argument supplied for foreach() in /vendor/wikimedia/html-formatter/src/HtmlFormatter.php on line 222
- PHP message: PHP Warning: array_merge(): Expected parameter 2 to be an array, bool given in /vendor/wikimedia/html-formatter/src/HtmlFormatter.php on line 202" while reading response header from upstream, client: [ip address], server: jojowiki.com, request: "GET /api.php?action=query&format=json&prop=info%7Cextracts%7Cpageimages%7Crevisions%7Cinfo&formatversion=2&redirects=true&exintro=true&exchars=525&explaintext=true&piprop=thumbnail&pithumbsize=320&pilicense=any&rvprop=timestamp&inprop=url&titles=Vanilla_Ice&smaxage=300&maxage=300&uselang=content HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.3-fpm.sock:", host: "jojowiki.com", referrer: "https://jojowiki.com/Mariah"
- Any way to solve this? Thanks. Vishkujo (talk) 04:21, 20 June 2020 (UTC)
- Yes: Fixing the code in https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/vendor/+/master/wikimedia/html-formatter/src/HtmlFormatter.php#301 :)
- Which PHP version is used? Which exact MediaWiki version? Malyacko (talk) 12:55, 21 June 2020 (UTC)
- There's no difference in that code compared to what I have already in MW 1.34.1 Vishkujo (talk) 19:50, 22 June 2020 (UTC)
- PHP: 7.3.19-1
- MediaWiki: 1.34.1 Vishkujo (talk) 18:11, 21 June 2020 (UTC)
Content not showing after update
Hi, this seems to be a comon problem but all the answers from the other topics didn't help me. I updated http://thediscworld.de to MediaWiki 1.34.1 and can't see the page content anymore. I updated by removing the original folder, extracting the new version, copying the uploaded images and executing database update. I don't think that the old version had any extensions installed but I'm not a 100% sure. At least I can see no references to extensions in the LocalSettings.
I tried $wgDebugLogFile and $wgShowDebug along with error_reporting( -1 ); ini_set( 'display_startup_errors', 1 ); ini_set( 'display_errors', 1 ); but I can't see any errors or warnings in the output.
The content does show up when editing the page but umlauts are missing. Also some links on the menus are not displaying text. When I try the api sandbox I get "HTTP error: Forbidden".
Is there anything else I can try? 2003:E8:F22:1F00:298A:2082:5B18:F429 (talk) 05:38, 20 June 2020 (UTC)
- This issue sounds like https://phabricator.wikimedia.org/T247222
- The problem is likely the umlauts are encoded in iso 8859-1 instead of as utf-8 and mediawiki cant handle it well.
- Does making a dummy edit to a page fix it?
- The 403 error in the api sandbox is probably a separate issue. i dont know what the missing text in menu links is about.
- Additionally, try setting the error display directives in php.ini, sometimes that works better. Check also your php and apache error logs. Bawolff (talk) 05:49, 20 June 2020 (UTC)
- also i see you enabled debug toolbar, note the error:
- Bawolff (talk) 05:51, 20 June 2020 (UTC)
parser] preg_match_all returned false [parser] preg_replace returned null [parser] preg_match_all returned false [parser] preg_replace returned null
- i think missing link text is probably due to same unicode issue in https://www.thediscworld.de/index.php/MediaWiki:Books Bawolff (talk) 05:53, 20 June 2020 (UTC)
- Editing the Books page and replacing the Umlaut fixed it. I tried a page with more content (than a single word) and it doesn't show text.
- So potentially I could fix the Umlaut problems by manually by editing all pages.
- The preg_replace and preg_match_all messages might be responsible for pages that require replacements (which would be all of them if they contain at least a link) not showing up. Now I wonder if the MediaWiki version doesn't call the regex methods in a way that is compatible with php 7.4 or if the escape characters of the calls are cached somewhere in my database. 2003:E8:F22:1F00:298A:2082:5B18:F429 (talk) 06:05, 20 June 2020 (UTC)
- > Now I wonder if the MediaWiki version doesn't call the regex methods in a way that is compatible with php 7.4 or if the escape characters of the calls are cached somewhere in my database
- The issue is that mediawiki uses the unicode version of regex (previously it used ascii), which explodes if it encounters text which isn't valid unicode (e.g. if it is w:windows-1252 instead). Mediawiki has code which is supposed to convert all input to valid unicode so it should never be an issue, but i guess it is... Bawolff (talk) 06:32, 20 June 2020 (UTC)
- I can slowly restore the pages by saving them again but I can't edit pages with Umlauts in their titles. They show up as not existing. Can I fix this in the database? I tried the page table but that didn't help. Is that table still in use? The title column is still "latin 1" encoded. 2003:E8:F22:1F00:F43A:480F:2C02:914B (talk) 06:37, 21 June 2020 (UTC)
- You could try a full export of the database (e.g. using mysqldump), convert it using a program like iconv, and then reimport.
- latin1 is another name for windows-1252. Often db table encodings are ignored, and even if its labeled as latin1 it might not be latin1. That said, MediaWiki probably works best if all tables are listed as encoded in "binary" encoding. Bawolff (talk) 06:58, 21 June 2020 (UTC)
When I access my wiki on the pc, the mobile version pops up
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 installed Extension:MobileFrontend and Skin:Minerva Neue on my wiki today. However, after installing and accessing the wiki, the mobile version also appears on the PC. On mobile, the mobile version comes out well. What should I do?
https://image.dcinside.com/viewimagePop.php?id=28aed327f5d76b&no=24b0d769e1d32ca73fed8efa11d02831f03ea6d0e55e4594cd11f5d00ee242480c33f27961d6bb6ad4a6d5f7b541b003d6e32827eb82aff73e74a7dad831https://image.dcinside.com/viewimagePop.php?id=28aed327f5d76b&no=24b0d769e1d32ca73fed8efa11d02831f03ea6d0e55e4594cd11f5d00ee242480c33f27961d6bb6ad4a6d5f7b541b003d6e37577b88bada16c7aa7dad831
thank you GTX1060 (talk) 11:05, 20 June 2020 (UTC)
- There should be a mobile/desktop view link in your Wiki's footer. Clicking Desktop view once should open your Wiki in desktop view every time after this. AhmadF.Cheema (talk) 05:23, 21 June 2020 (UTC)
- Hello
- When I click on the desktop view, the mobile version is displayed. GTX1060 (talk) 05:53, 21 June 2020 (UTC)
- It looks like you set MinervaNeue as the default desktop skin. Set $wgDefaultSkin = 'vector';
- ($wgUseSkin controls the desktop skin).
- Keep in mind that MobileFrontend does stuff in addition to setting the skin to MinervaNeue, so if you set the desktop skin to MinervaNeue, the desktop and mobile are still different, but they look very similar. Bawolff (talk) 07:18, 21 June 2020 (UTC)
- Hello
- When I checked the localsettings.php file, $wgDefaultSkin was set to vector.
- https://image.dcinside.com/viewimagePop.php?id=28aed327f5d76b&no=24b0d769e1d32ca73fed8efa11d02831f03ea6d0e55e4594cd11f5d00ee3424897a6e7dd106f774e88f46a56e8c2f4b39cd1eb4aa3db8ac495b18935d75a GTX1060 (talk) 07:43, 21 June 2020 (UTC)
- Your wiki says that this is not the case: http://54.84.19.191/wiki/api.php?action=query&meta=siteinfo&siprop=skins&formatversion=latest
- Check to make sure you don't have $wgDefaultSkin set more than once. Bawolff (talk) 07:54, 21 June 2020 (UTC)
- Removed duplicates from localsettings.php. However, even after removing it, the problem still appears. GTX1060 (talk) 09:34, 21 June 2020 (UTC)
- please post your localsettings.php (redacting any passwords or Key variables) Bawolff (talk) 15:58, 21 June 2020 (UTC)
- I think I've seen Localsettings.php wrong. Fixing it fixed the problem. Thank you. GTX1060 (talk) 05:16, 22 June 2020 (UTC)
Forgot Password
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 created a new account, without adding an email while registering, and added some content, now i forgot my password, i tried to recover my password, not successful. what are the other ways of resetting the password, please let me know, i can be reached at [censored] , my account user id is 'bloombi' 24.146.219.125 (talk) 18:15, 20 June 2020 (UTC)
- Which wiki is this? And don't put your email address publicly. Leaderboard (talk) 10:36, 21 June 2020 (UTC)
Forgot Password
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I have an old account, without adding an email while registering, now I forgot my password, I tried to recover my password, not successful. What are the other ways of resetting the password, please let me know, my account user ID is 'Vašek.P'
Or please delete this old account, if this is possible.
Thanks. 185.138.44.10 (talk) 12:12, 21 June 2020 (UTC)
- Whatever website you refer to, you need to contact that website. User:Vašek.P does not exist on mediawiki.org. Malyacko (talk) 12:48, 21 June 2020 (UTC)
How to block editation of all discussions?
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 want to prohibit, that any discussion can be edited on my wiki.
I am the admin and the only user, but I need to remember, never to edit this namespace.
Can I somehow make it able, that I don't edit them accidently? 2A02:908:3111:7DA0:5DEA:6B5C:E3F0:4C35 (talk) 17:37, 21 June 2020 (UTC)
- $wgNamespaceProtection might be an option.
- You can also use css by adding the following to the page MediaWiki:Common.css on your wiki:
#ca-talk {display:none}
- That won't disable it, but it will hide the link. Bawolff (talk) 05:42, 22 June 2020 (UTC)
New MediaWiki - All domain traffic is redirected to wiki; subdomain setup possible too?
Hi guys, first time posting cause it's my first time setting up mediawiki on my server. I'm using nginx and I installed mediawiki under /var/www/html/w/. I setup short urls and it's working but it's routing all my traffic that goes to edhel.online to edhel.online/wiki/Main_Page.
The first thing I would like to do is have my main website, preferably I'll setup a wordpress at edhel.online and have the mediawiki at edhel.online/w/ or at wiki.edhel.online. Is there a way to do this while maintaining short urls or does the wiki need to be my landing page?
I originally had it installed in a mediawiki/ folder instead of w/ but I couldn't get wiki.edhel.online to work.
Mediawiki: 1.34.0
PHP: 7.4
Databse: MySql/MariaDB
/etc/nginx/sites-availale/default:
server {
listen 80;
root /var/www/html;
index index.html index.htm index.nginx-debian.html index.php;
server_name wiki.edhel.online;
# return 301 https://$host$request_uri;
# location / {
# try_files $uri $uri/ =404;
# }
# location ~ \.php$ {
# fastcgi_pass unix:/run/php/php7.4-fpm.sock;
# fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
# include fastcgi_params;
# include snippets/fastcgi-php.conf;
# }
}
server {
root /var/www/html;
index index.php index.html index.htm index.nginx-debian.html;
server_name wiki.edhel.online; # managed by Certbot
# Location for wiki's entry points
location ~ ^/w/(index|load|api|thumb|opensearch_desc)\.php$ {
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass unix:/run/php/php7.4-fpm.sock; # or whatever port your PHP-FPM list$
}
# Images
location /w/images {
# Separate location for images/ so .php execution won't apply
}
location /w/images/deleted {
# Deny access to deleted images folder
deny all;
}
# MediaWiki assets (usually images)
location ~ ^/w/resources/(assets|lib|src) {
try_files $uri 404;
add_header Cache-Control "public";
expires 7d;
}
# Assets, scripts and styles from skins and extensions
location ~ ^/w/(skins|extensions)/.+\.(css|js|gif|jpg|jpeg|png|svg|wasm)$ {
try_files $uri 404;
add_header Cache-Control "public";
expires 7d;
}
# Favicon
location = /favicon.ico {
alias /w/images/6/64/Favicon.ico;
add_header Cache-Control "public";
expires 7d;
}
## Uncomment the following code if you wish to use the installer/updater
## installer/updater
#location /w/mw-config/ {
# # Do this inside of a location so it can be negated
# location ~ \.php$ {
# include /etc/nginx/fastcgi_params;
# fastcgi_param SCRIPT_FILENAME $document_root/w/mw-config/$fastcgi_script$
# fastcgi_pass unix:/run/php/php7.4-fpm.sock; # or whatever port your PHP-$
# }
#}
# Handling for the article path (pretty URLs)
location /wiki/ {
rewrite ^/wiki/(?<pagename>.*)$ /w/index.php;
}
# Allow robots.txt in case you have one
location = /robots.txt {
}
# Explicit access to the root website, redirect to main page (adapt as needed)
location = / {
return 301 /wiki/Main_Page;
}
# Every other entry point will be disallowed.
# Add specific rules for other entry points/images as needed above this
location / {
return 404;
}
listen [::]:443 ssl ipv6only=on; # managed by Certbot
listen 443 ssl; # managed by Certbot
ssl_certificate /etc/letsencrypt/live/edhel.online/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/edhel.online/privkey.pem; # managed by Certbot
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
}
server {
if ($host = www.edhel.online) {
return 301 https://$host$request_uri;
} # managed by Certbot
if ($host = edhel.online) {
return 301 https://$host$request_uri;
} # managed by Certbot
listen 80 ;
listen [::]:80 ;
server_name edhel.online;
return 404; # managed by Certbot
}
Ribrob2379 (talk) 23:12, 21 June 2020 (UTC)
- If your $wgArticlePath setting in LocalSettings.php was incorrect (i.e., had /wiki/ in it) then it would explain the incorrect routing.
- You should consider putting the wiki under a subdomain if you want a wordpress site under the primary domain. Running them off the same domain is not a good idea, putting mediawiki into a subdomain is a better idea.
- Did you confirm your subdomain was working and displaying pages before attempting to install mediawiki under it? If not I'd do a web search on how to config a subdomain in nginx, get the subdomain working and first confirm that it's working by creating and uploading a generic index.html or index.php with something in it like "it works", and then try to view it in your browser. If you know your subdomain is first working, then you're good to go on installing mediawiki under it. But if you don't know if it's working, you don't know where the issue is.
- Then after you know your subdomain is working try installing MediaWiki in the subdomain folder via the steps at Manual:Installing MediaWiki. If you don't want it nested in a /wiki/ or /w/ folder then don't leave it nested in a /wiki/ or /w/ folder. You don't have to have /wiki/ or /w/ in the file path at all. To remove it, you could via ftp upload the contents of the MW directory into your subdomain web folder. Then your path would be like: sub.yoursite.com/Main_Page instead of sub.yoursite.com/w/Main_Page. If you were extracting from command line, you could have used the --strip-componets command to strip the extra folder off and just extract the contents to the web folder of your subdomain. Then you'd have to make sure that your $wgArticlePath is correctly set. Like one of the following:
tar xvzf mediawiki-1.34.2.tar.gz --strip-components 1
Though the documentation states you can't use /wiki/ with short URLs. I personally don't like nesting MW into a subfolder at all and I like having MW in its own subdomain so there can be no errors with working with files and directories on the main site and accidentally copying over a necessary MW file or folder. TiltedCerebellum (talk) 01:57, 15 July 2020 (UTC)# If mediawiki files are NOT nested into a folder in your web directory: $wgArticlePath = "/$1"; # If mediawiki files are nested into a /w/ folder in your web directory: $wgArticlePath = "/w/$1"; # If mediawiki files are nested into a /wiki/ folder in your web directory: $wgArticlePath = '/wiki/$1';
How i delete from google search what i asked here?
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,
Could you please support me to delete from google search any question or doubt that i had here?
Is this possible?
Thank you 2A02:8084:EA0:4080:BCEF:1795:9AD1:95AB (talk) 11:14, 22 June 2020 (UTC)
- You'll have to contact Google for content displayed by Google on Google's website. Malyacko (talk) 12:14, 22 June 2020 (UTC)
Ошибка.
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Здравствуйте. Нажимаю в программе поиск выдоётся ошибка. Вконтакте вернул ошибку: код ошибки 8; сообщение ошибки: Неверный запрос: требуется. Версия param должна быть передана как 'v'. Параметр 'версия' недействителен и не поддерживается. 176.195.149.19 (talk) 13:06, 22 June 2020 (UTC)
- Is this about MediaWiki? If it is, then please provide MediaWiki version information and clear and complete steps to reproduce. Malyacko (talk) 15:11, 22 June 2020 (UTC)
- Это про программу Poster PRO 2.0. 176.195.149.19 (talk) 16:30, 22 June 2020 (UTC)
- Then you have ask in some "Poster PRO 2.0" forum. This forum is about "MediaWiki". Malyacko (talk) 17:30, 22 June 2020 (UTC)
Importing Wiki xml file
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 all, so I am importing an xml file via the "import pages" page of my mediawiki site.
However, I get the "HTTP 500" time out consistently when importing more than one page at once, I have raised it with my VPS provider and they advised it is not on their end that is causing the time out, my settings in localsettings and htaccess are all correct and allow for a longer time out, yet it still times out. Has anyone had this issue before and how did they solve it? AlbionJack (talk) 14:49, 22 June 2020 (UTC)
- if you can, use importDump.php from command line instead. Bawolff (talk) 15:55, 22 June 2020 (UTC)
email confirmation cant be sent
RESOLVED | |
i figured out how to fix this problem using the following pages:
https://www.lifewire.com/what-are-the-gmail-smtp-settings-1170854 https://support.google.com/mail/answer/7104828?hl=en&visit_id=1-636320064514632397-394277451&rd=1 |
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
http://www.zuligen.com/wiki/index.php/Special:Version
wiki url: http://www.zuligen.com/wiki/index.php/
screenshot of issue: https://i.imgur.com/NNOyhnr.png
How could i fix this issue? Stw222 (talk) 17:39, 22 June 2020 (UTC)
When will there be support for PHP v 7.4?
- When will there be support for PHP v 7.4? Nsturtz2 (talk) 18:33, 22 June 2020 (UTC)
- @Nsturtz2 MediaWiki supports PHP 7.4, see all the resolved tasks in the "task graph" in phab:T247658. If it does not for you then please elaborate and provide steps to reproduce. Malyacko (talk) 03:49, 23 June 2020 (UTC)
- does it not work currently? Afaik there is already support. Bawolff (talk) 18:55, 22 June 2020 (UTC)
Rollback API summary
RESOLVED | |
Fixed |
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, when I use a custom summary, the rollback does not work. Can someone help me? Thank you. You find the code in https://test2.wikipedia.org/wiki/User:ValeJappo/vector.js Valcio (talk) 08:12, 23 June 2020 (UTC)
Extension to Copy Code Block without Flash
As User:Quinnj09 already asked before in Project:Support desk/Flow/2018/08#h-Extension_to_Copy_Code_Block-2018-08-14T19:38:00.000Z, I find it hard to believe that until now there is now way to get a simple copy-button for code on mediawikis!
as User:MarkAHershberger pointed out, there is https://clipboardjs.com/. But how can I use it on my mediawiki? Berot3 (talk) 10:20, 23 June 2020 (UTC)
Limit length of 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.
I was to include several individual templates on a Main Page template. They will be arranged side by side in columns, and I would like all of them when appearing on the Main Page template to have the same length and cut off at the same place, even if there's more text in the template. I looked through the help pages but didn't find any way to do this (maybe I missed it). Is it possible to do this, and if so, how? Thank you. Otebig (talk) 11:02, 23 June 2020 (UTC)
- Maybe you could use a fixed-height div? Jonathan3 (talk) 11:33, 23 June 2020 (UTC)
- That worked, thanks! Otebig (talk) 08:43, 24 June 2020 (UTC)
db failure after apt update
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hello
As many, db error after update (from apt).
[bd70a489102a8c9327ead517] /mediawiki/index.php/Sp%C3%A9cial:Connexion Wikimedia\Rdbms\DBQueryError from line 1457 of /usr/share/mediawiki/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 ipb_id,ipb_address,ipb_timestamp,ipb_auto,ipb_anon_only,ipb_create_account,ipb_enable_autoblock,ipb_expiry,ipb_deleted,ipb_block_email,ipb_allow_usertalk,ipb_parent_block_id,ipb_reason AS `ipb_reason_text`,NULL AS `ipb_reason_data`,NULL AS `ipb_reason_cid`,ipb_by,ipb_by_text,NULL AS `ipb_by_actor` FROM `ipblocks` WHERE ipb_address IN ('88.123.110.197','88.123.110.197') OR ((ipb_range_start LIKE '587B%' ESCAPE '`' ) AND (ipb_range_start <= '587B6EC5') AND (ipb_range_end >= '587B6EC5'))
Function: Block::newLoad
Error: 1054 Unknown column 'ipb_reason' in 'field list' (localhost)
trying to use wikimedia upgrade
A database query error has occurred. Did you forget to run your application's database schema updater after upgrading?
Query: ALTER TABLE `recentchanges` ADD INDEX `rc_ns_usertext` ( `rc_namespace` , `rc_user_text` )
Trying to fix manually:
MariaDB [wiki]> ALTER TABLE `recentchanges` ADD INDEX `rc_ns_usertext` ( `rc_namespace` , `rc_user_text` );
ERROR 1072 (42000): Key column 'rc_user_text' doesn't exist in table
I have a backup of my db but if the schema change can I restore it ?
How can I get my wiki back ?
Thanks for your help
Wkdid (talk) 11:08, 23 June 2020 (UTC)
- run update.php Bawolff (talk) 12:43, 23 June 2020 (UTC)
- thx but that's what I did
- Adding index rc_ns_usertext to table recentchanges ...[dd6bc934bc28a4f6ad572793] [no req] Wikimedia\Rdbms\DBQueryError from line 1457 of /usr/share/mediawiki/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: ALTER TABLE `recentchanges` ADD INDEX `rc_ns_usertext` ( `rc_namespace` , `rc_user_text` )
- Function: Wikimedia\Rdbms\Database::sourceFile( /usr/share/mediawiki/maintenance/archives/patch-recentchanges-utindex.sql )
- Error: 1072 Key column 'rc_user_text' doesn't exist in table (localhost) Wkdid (talk) 14:22, 23 June 2020 (UTC)
- So ? update.php not help Wkdid (talk) 17:06, 24 June 2020 (UTC)
- rc_ns_usertext is really old index and the rc_user_text field no longer exists. Maybe something got messed up and its trying to apply the updates from a really old version.
- What version are you upgrading from, and what version are you upgrading to? Bawolff (talk) 04:33, 25 June 2020 (UTC)
- Had this same issue going from 1.31.1 to 1.31.2. For the benefit of anyone else who comes across this:
- Make darn sure the information you have referencing your database in LocalSettings.php is valid, or you'll end up on a three-hour rabbit chase before realizing you pointed your production install to your dev DB sometime in April and nobody ever complained. Ayurjake (talk) 20:19, 25 August 2020 (UTC)
setting cameras up..
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
hi i am having problems setting my camera system up, it says i just plug it in an play. how ever its not coming up on my tv.. Robert.Hardy.1810 (talk) 11:48, 23 June 2020 (UTC)
- You're probably in the wrong place, this is the support desk for the MediaWiki wiki software. Taavi (talk!) 12:00, 23 June 2020 (UTC)
Platforms for miki
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Is there one for Android 41.113.194.152 (talk) 15:02, 23 June 2020 (UTC)
- What is "miki"? What is a "platform"? Please provide sufficient context. Malyacko (talk) 21:03, 23 June 2020 (UTC)
Is there a way to "fork" en.wikipedia.org and its content into a private server for my own private use?
Is there a way to "fork" en.wikipedia.org and its content into a private server for my own private use? So that I can modify the content in any way I need it, but so that it will not affect other users / the public's use of the site. 116.15.233.70 (talk) 16:21, 23 June 2020 (UTC)
- yes, although setting it up requires some technical expertise (and a decent amount of server resources).
- See meta:data dumps Bawolff (talk) 18:42, 23 June 2020 (UTC)
Moving/Renaming a single article from the command line
Is it possible to move/rename an article from the command line? I've found Manual:moveBatch.php but that seems more designed for moving many articles, and I'd only like to move one. Is there a more appropriate script for me to use or a way to use to muse moveBatch without having to create the listfile first? Meat curtain (talk) 20:26, 23 June 2020 (UTC)
- See API:Move. Why would you use the command line to move a single file, instead of doing that in the UI? What's the underlying use case? Malyacko (talk) 21:02, 23 June 2020 (UTC)
- A script would automatically rename a page if certain conditions are met. The script could create a listfile first, run the moveBatch.php script, and then remove the listfile, but I would like to use the right tool for the job if there is a more appropriate way to do it. Meat curtain (talk) 22:12, 23 June 2020 (UTC)
[Resolved] Encountering LocalisationCache.php errors when running update.php
MediaWiki | 1.27.1 |
PHP | 7.0.33 (cgi-fcgi) |
MySQL | 5.6.40-84.0-log |
ICU | 4.8.1.1 |
Every time I try to upgrade it following the usual routine (running update.php under the /maintenance subdirectory), the version remains as 1.27.1 as tabulated above. During these resultless attempts, I get a volley of LocalisationCache.php errors as instantiated below:
Notice: compact(): Undefined variable: pluralRuleTypes in /home/domain/public_html/ includes/cache/localisation/LocalisationCache.php on line 533
I'm not too conversant with PHP, but I can't find anything else to ascribe for these changeless updates (where the script presumably aborts its attempt).
From all I've pieced together, it might be attributable to an incompatible PHP version, but I would like to hear feedback from more experienced MediaWikipedians before I decide to update that; because I'm on a shared-hosting plan, I'd need to contact the host to do so.
Please let me know if you require any further information or resolutionary feedback. Thanks in advance!
EDIT: As suspected, it was due to an incompatibly outdated PHP version. I upgraded it via the ACP, did away with defunct extensions, and I successfully updated it.
Will keep this thread in case anyone encounters similar issues. Naero91 (talk) 01:47, 24 June 2020 (UTC)
- Related: phab:T206979 Valerio Bozzolan (talk) 14:07, 19 February 2021 (UTC)
Single file problem, where to delete its ghost?
RESOLVED | |
Not really resolved, I exported my site pages, reinstalled (latest MW), reimported mypages except for that one into a clean database and the images in the folder they always were. I was able to upload it fresh. Long way to go around it but couldn't find another solution. :/ |
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.
Product | Version |
---|---|
MediaWiki | 1.34.1 |
PHP | 7.2.24 (cgi-fcgi) |
MySQL | 5.7.28-log |
ICU | 57.1 |
I have a file that has been uploaded, it was a valid jpg, but on upload of this one file (all other file uploads were fine) the file refuses to display. On its file page, there is only alt-text. I attempted to re-upload it, and it has the same result. Then I tried manually uploading it to the hashed folder location, still nothing.
I tried browsing directly to it using its hashed file path and MW brings me to "create this page".
So I thought the upload itself was corrupted and ran cleanupUploadStash.php, then tried re-uploading the file and it is still blank. I try renaming it and uploading it, and all versions of it that are uploaded have the same issue. I tried editing the image to change it slightly, same result.
I have already deleted the file and its thumbnails from the hashed folder path, then searched through the db to try to find any reference to it to delete. Still doesn't work, I must be missing something somewhere.
When I try running cleanupUploadStash.php again, I get the error: Failed removing stashed upload with key: 17illn0v5a80.6w7xzo.2614.jpg (UploadStashBadPathException)
I try running deleteArchivedFiles.php --delete and recieve (still trying to track the cause of this issue down):
PHP Fatal error: require(): Failed opening required '/home/user/website.com/public/includes/json/FormatJson.php' (include_path='/home/user/website.com/public/vendor/pear/console_getopt:/home/user/website.com/public/vendor/pear/mail:/home/user/website.com/public/vendor/pear/mail_mime:/home/user/website.com/public/vendor/pear/net_smtp:/home/user/website.com/public/vendor/pear/net_socket:/home/user/website.com/public/vendor/pear/pear-core-minimal/src:/home/user/website.com/public/vendor/pear/pear_exception:.:') in /home/user/website.com/public/includes/AutoLoader.php on line 109
How on earth can I get rid of all traces of the previous version of this image so I can re-upload it and get the upload to actually work??? TiltedCerebellum (talk) 02:53, 24 June 2020 (UTC)
i can't log in
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.
Dekarserverbot
Parece que hay un problema con tu sesión; se ha cancelado esta acción como medida de precaución contra el robo de sesiones. Envía el formulario otra vez.
Can you remove this security option? it does not let me log in 189.244.137.245 (talk) 03:29, 24 June 2020 (UTC)
- We cannot; see Manual:How to debug/Login problems Malyacko (talk) 05:05, 24 June 2020 (UTC)
how to uninstall MHS35B-show from linux system
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
it only does text scrolling when it boots and does not do graphics.
so what is the dpkg name to uninstall???
thanks joeastro at aol and com 174.87.1.30 (talk) 04:07, 24 June 2020 (UTC)
- Why do you think that we know? This is a support desk for MediaWiki. We don't know what "MHS35B-show" is. Malyacko (talk) 05:05, 24 June 2020 (UTC)
Templates not previewing on VisualEditor
Hello,
I don't know if I messed up something but since a while, my MediaWiki setup stopped showing previews of templates in VisualEditor. Instead, they just show a puzzle piece with the template name.
It has become very annoying because VisualEditor was a thing I trusted to have « what you see is what you get » editing, but not more.
So I hope you can help me,
Regards. Starscouts (talk) 18:03, 24 June 2020 (UTC)
- Have you checked this? (A quick google search turned it up): Help talk:VisualEditor/User guide/Flow export#h-Edit_a_Template_Wikimedia_page_using_Visual_Editor-2017-01-23T11:25:00.000Z
- And this: Extension:VisualEditor#Changing active namespaces TiltedCerebellum (talk) 03:35, 26 June 2020 (UTC)
- Nevermind, I read your question wrong, my bad. TiltedCerebellum (talk) 07:48, 29 June 2020 (UTC)
My user page no longer exists.
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 contributed to Wiki Loves Monuments in 2018. I created a user page at that time. Today I signed in and saw a message from Kevin Pavel sent in 2019 about recent submissions from Hawaii for Wiki Loves Monuments. I wrote to him to say thank you for keeping me in the loop. It’s nice to see photos of my state from other photographers. Maybe I pressed the wrong button or something but now my user account says: Your user page (page does not exist). Can you help me?
PhoenixMaimitiValentine (talk) 20:59, 24 June 2020 (UTC)
- hi. As far as i can tell, your user page never existed. A User pages is an optional short bio - its not an error to not have one and you can create one anytime.
- If you want to create one, go to https://meta.wikimedia.org/wiki/User:PhoenixMaimitiValentine?action=edit to make your userpage. Bawolff (talk) 00:50, 25 June 2020 (UTC)
- Thank you for helping me understand that. It was alarming seeing no past posts, or notifications. I didn’t create a short bio because my mom thought I should wait until I’m older. (I spelt Kevin’s last name wrong earlier.) I’m so glad I can receive and send messages. Thanks again! PhoenixMaimitiValentine (talk) 03:32, 25 June 2020 (UTC)
- Also, w:Wikipedia:Guidance for younger editors may be useful to you.
- If you want to see your past edits you can go to special:centralAuth/PhoenixMaimitiValentine and click on the number in the edit count column to see the edits to that wiki. Bawolff (talk) 04:01, 25 June 2020 (UTC)
Errors when installing
I always get "File not found" when i try to install a fresh copy of media wiki.
Here is a pastebin of the error: https://pastebin.com/pZqAsA9H
Hope you can help! TheRaspimanMan (talk) 03:30, 25 June 2020 (UTC)
- so its claiming to be missing some files in the vendor directory. How did you install mediawiki - is it from thw official tarball source or somewhere else? What version?
- If you installed from git, run composer install. Bawolff (talk) 04:07, 25 June 2020 (UTC)
- I'm using the official tarball and using the latest 1.34.2.
- I'll try using git, and I'll keep you up to date! TheRaspimanMan (talk) 16:58, 25 June 2020 (UTC)
- Most of the errors are gone now and I only have 1 error now:
Fatal error: Uncaught Error: Class 'Liuggio\StatsdClient\Factory\StatsdDataFactory' not found in C:\xampp\htdocs\includes\libs\stats\BufferingStatsdDataFactory.php:35 Stack trace: #0 C:\xampp\htdocs\includes\AutoLoader.php(109): require() #1 [internal function]: AutoLoader::autoload('BufferingStatsd...') #2 C:\xampp\htdocs\includes\ServiceWiring.php(836): spl_autoload_call('BufferingStatsd...') #3 C:\xampp\htdocs\includes\libs\services\ServiceContainer.php(458): Wikimedia\Services\ServiceContainer->{closure}(Object(MediaWiki\MediaWikiServices)) #4 C:\xampp\htdocs\includes\libs\services\ServiceContainer.php(427): Wikimedia\Services\ServiceContainer->createService('StatsdDataFacto...') #5 C:\xampp\htdocs\includes\MediaWikiServices.php(1030): Wikimedia\Services\ServiceContainer->getService('StatsdDataFacto...') #6 C:\xampp\htdocs\includes\ServiceWiring.php(404): MediaWiki\MediaWikiServices->getStatsdDataFactory() #7 C:\xampp\htdocs\includes\libs\services\ServiceContainer.php(458): Wikimedia\Services\ServiceContainer->{closur in C:\xampp\htdocs\includes\libs\stats\BufferingStatsdDataFactory.php on line 35
TheRaspimanMan (talk) 18:26, 25 June 2020 (UTC)- that's a slightly different version of the same issue. Can you check if the Liuggio files exist in vendor?
- To be clear, im not explicitly reccomending git, i just mentioned it because there are extra steps you need to do if using. Bawolff (talk) 19:45, 25 June 2020 (UTC)
- I looked in the vendor folder and in the Liuggio folder all I see is a folder called statsd-php-client and these files in it:
- Folder items
- EDIT: The file is there (Pastebin of file) TheRaspimanMan (talk) 21:43, 25 June 2020 (UTC)
MediaWiki Migration Service?
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.
Does anyone know of a person/company that would help migrate, upgrade, and theme, a Mediawiki installation on a new server? I've checked UpWork, but there are only 3 people who claim they can do it. And one of them is on vacation for a month.... Thanks. BubbaUsesWiki (talk) 03:34, 25 June 2020 (UTC)
- yes there are a number of individuals who do that sort of work, as well as some companies that specialize in it. See Professional development and consulting for a list (note that anyone can add themselves to that list - some people are more skilled then others, ymmv) Bawolff (talk) 04:04, 25 June 2020 (UTC)
how to insert
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hi there,
Is it possible to update multiple pages(more than 1000) with the same content?
Thanks, Oskpil (talk) 10:10, 25 June 2020 (UTC)
Display Categories
Hi there.
Is there a way I can get the current article's category and display it elsewhere on the page? Maybe in a side-bar? Gavini74 (talk) 10:38, 25 June 2020 (UTC)
- You can do this using Extension:DynamicPageList3 or Extension:Cargo.
- In Cargo you could use the table _pageData and field _categories or _categories__full.
- In DPL3 you could use the variable %CATLIST%. Jonathan3 (talk) 15:00, 25 June 2020 (UTC)
- the best way would probably be to make your own skin. For example, Skin:Timeless Bawolff (talk) 15:41, 25 June 2020 (UTC)
- Creating a skin seems a daunting prospect!
- Didn't someone ask something similar recently and an answer was to shift the existing Categories box from the bottom of the page using jQuery? Edit: found it. Jonathan3 (talk) 14:56, 26 June 2020 (UTC)
- yeah, there are many approaches. JS can move the page around. Possibly you could also do something with Manual:Hooks/SkinBuildSidebar Bawolff (talk) 16:24, 26 June 2020 (UTC)
Maintenance failed successfully (Wiki not responding)
I had a hardware maintenance of my server, which required a day long off time. The Database was put in read-only mode and a backup was created, then the whole thing was shutdown.
After three days I started the server and the first sign of life was a error page stating, that the Database is locked. $wgReadOnly was commented out, Database was back. But not the Wiki. I don't even get a blank page. It's just loading and nothing happens.
Long story short: Apache and my server were restarted countless times and there are no error messages from MySQL (database check is ok, but what should happened if it was read-only?). I tried the php error command in LocalSettings but again: The Wiki is not responding. 79.207.24.123 (talk) 12:14, 25 June 2020 (UTC)
- I have to correct myself. In the last twenty minutes where some "aborted connection to dabase" errors in the Database. But I don't understand why. User and Password weren't touched. 79.207.24.123 (talk) 12:24, 25 June 2020 (UTC)
- An hour later: Finally an error message to specify the problem:
Fatal error: Uncaught Error: Call to a member function getCode() on null in /var/lib/mediawiki/includes/user/User.php:1737 Stack trace: #0 /var/lib/mediawiki/includes/user/User.php(5417): User::getDefaultOptions() #1 /var/lib/mediawiki/includes/user/User.php(3101): User->loadOptions() #2 /var/lib/mediawiki/includes/context/RequestContext.php(336): User->getOption('language') #3 /var/lib/mediawiki/includes/Message.php(380): RequestContext->getLanguage() #4 /var/lib/mediawiki/includes/Message.php(1290): Message->getLanguage() #5 /var/lib/mediawiki/includes/Message.php(842): Message->fetchMessage() #6 /var/lib/mediawiki/includes/Message.php(934): Message->toString('text') #7 /var/lib/mediawiki/includes/exception/MWExceptionRenderer.php(201): Message->text() #8 /var/lib/mediawiki/includes/exception/MWExceptionRenderer.php(301): MWExceptionRenderer::msg('dberr-problems', 'Sorry! This sit...') #9 /var/lib/mediawiki/includes/exception/MWExceptionRenderer.php(52): MWExceptionRenderer::reportOutageHTML(Object(Wikimedia\Rdbms\DBCon in /var/lib/mediawiki/includes/user/User.php on line 1737
79.207.24.123 (talk) 13:05, 25 June 2020 (UTC)- something is wrong with your database. Can you check the output of the mysqld process for errors/any logs of mysqld? Also try connecting via commandlune mysql client and see if you can make some simple queries. Bawolff (talk) 15:40, 25 June 2020 (UTC)
- Thanks for your help, but it seems, that Apache (or PHP) needed their time to catch up with the database. After six hours of continuous loading some pages appeared, now the Wiki is back up and running fine.
- I know, that's a disappointing solution, but I'm happy I haven't had to rebuild my database or my webserver installation. 79.207.24.123 (talk) 16:28, 25 June 2020 (UTC)
Help for Collection extension
RESOLVED | |
Third-party extension question, user can look in the extension package for information. |
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 the Collection extension for years on my old wiki installation www.psych-med.de/wiki (version 1.17.0) and it's still working fine.
Recently, I updated my other wiki www.phys-med.de/wiki to version 1.32.0 and tried to install the new Collection extension, but Download as PDF doesn't work anymore. It links to Reading/Web/PDF Functionality where the last entry is from July 15 2019.
Does anybody know yout that extension? Why does the old version still work and the new one not? How can I fix that or how could I find our who knows about that?
Thank you,
Daniel Grmblfx5 (talk) 14:48, 25 June 2020 (UTC)
- idk much about it. I think it might want Proton to be setup. Bawolff (talk) 15:37, 25 June 2020 (UTC)
- Thank for your hint, but I don't think that's linked to ths extension.
- The extension site describes the installation of an OCG service https://wikitech.wikimedia.org/wiki/OCG#Installing_a_development_instance, but I don#t want to use this. The other description https://mwlib.readthedocs.io/en/latest/collection.html#installation-and-configuration-of-the-collection-extension says that after installation "you’re now ready to go." I don't want to use an own render server, and I see for my old installation that's still working without any of that extras.
- Perhaps someone here uses this extension and could give me any hint?
- Also, I couldn't find out how to contact the authors of the collection extension, perhaps anyone can help me with that?
- Thanks
- Daniel Grmblfx5 (talk) 11:04, 28 June 2020 (UTC)
- proton is a replacement for OCG, which i dont think is used anymore Bawolff (talk) 08:54, 29 June 2020 (UTC)
- Again, I'm using an older version of this extension on another site and never installed OCG or something like that - just the extension, and it works.
- Where can I find some contact information of the authors of this extension to get an answer?
- Thanks
- Daniel Grmblfx5 (talk) 12:57, 4 July 2020 (UTC)
- just to be clear, the authors of the extension are under no obligation to provide help or support, may not be working on it anymore, etc.
- Generally you can use git log or got blame to determine who wrote a particular part of an extension. Bawolff (talk) 20:39, 4 July 2020 (UTC)
- That is clear, I'm just surprised that there's no author information on the extension site, like it is - for example - for wordpress plugins. For open source software, I am used to find these informations quite easy so far. That's no critic, just irritation.
- But thanks for the hint to look in the git log., I'll do that. Grmblfx5 (talk) 15:04, 11 July 2020 (UTC)
How to add game maps or non-earth maps in maplike viewer
Hi,
I've been reasearching how to add non earth/game maps to mediawiki and I am not having a lot of luck. I've tried Extension:Maps which is ok but less that ideal as you cannot add links to the markers easily on the wiki. I've also looked at Extension:Kartographer but I cannot find out how to add a custom image. I looked at Extension:MultiMaps but that just seems to use different mapping services.
Maps extension also does not expose all the leaflet options that are possible in the underlying JS library
I was hoping for the following features to be available to my wiki users
a) Upload a Image file to use as a map
b) Simply add the map into an "map" type view with the zooms and scrolls etc
c) For users to be able to easily add markers, regions area.
d) For these markers to possible have links to other wiki pages
e) To be able to have semantic properties used to display locations on a may
f) Maybe have something like the GeoJson namespace/editor that comes with Maps
g) Totally nice to have - but it would be cool to split the maps up into tiles and let the zoom work. I have full server access so running a simple mini tile server is an option for me.
Personally I want this for a wiki for my roleplaying game, so I have maps at various levels of zoom and would like to provide them to the players and let them anotate them, add links etc to things they players have discovered.
These features also sound useful for an office plan, campaus map, stylized non-geo tourist maps, mall maps etc. So I am surprised I cannot find them. I did find something similar here https://runescape.wiki/w/RuneScape:Map but this seems a bit more complicated than I needed
If none of this is currently possible, what would be a good extension to start submitting patchsets for to add this functionality?
TIA
Adrian Bluedreamer1 (talk) 15:47, 25 June 2020 (UTC)
- Hey there!
- I was also thinking about using MediaWiki for a Pen and Paper I'm hosting. Could you ever solve this problem?
- Thanks in advance,
- LucasOe LucasOe (talk) 22:57, 15 February 2021 (UTC)
- No I didn't, I was going to write my own solution but haven't got to it yet Bluedreamer1 (talk) 23:33, 15 February 2021 (UTC)
- {{#display_map:
- | image layers=Your maps name without [[File:]] than .jpg .jpeg or .png depending on the file type
- | geojson=MyMap
- }} Sirlance3000 (talk) 20:57, 12 May 2021 (UTC)
fileinfo - MW 1.34 internal error
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I'm receiving a MW 1.34 internal error; required components "fileinfo"
FileInfo folder containing Fileinfo.php, FileInfoi18nmagic.php are under the wiki/ extensions location and the php_fileinfo.dll extension in php.ini is enabled. I'm not sure what else I'm missing.
MS Visual C++ 2019
PHP 7.2.31
MySQL 5.7.17 DOSSOD (talk) 17:57, 25 June 2020 (UTC)
- Look at the output of phpinfo(); as described in Manual:php.ini, to see if it's really enabled and on which php.ini. Ciencia Al Poder (talk) 15:15, 27 June 2020 (UTC)
- I have made a search and found, php.ini.
- I also looked at the phpinfo.php via browser. The Configuration File (php.ini) path only says: C:\Windows, where the loaded configuration path actually shows where the pp.ini file is located.
- the following are set:
- extension_dir= "ext"
- extension=fileinfo
- looks like that's all what is needed but I'm still getting a error, even when I cmd > iisreset DOSSOD (talk) 17:37, 29 June 2020 (UTC)
- phpinfo also displays the list of loaded extensions. If fileinfo is not listed as installed, something is not set correctly in your php.ini.
- Note that you may need to restart the webserver in order to changes to php.ini files take effect Ciencia Al Poder (talk) 19:38, 29 June 2020 (UTC)
- FileInfo was not listed, WinCache was also not listed. Not sure but I'll look over it again .... otherwise there shouldn't be anything else outside the phpini that needs to be set, correct?
- Interesting is when I delete all WikiMedia 1.34. files and copy WikiMedia 1.25 file into the wiki folder, the fileinfo error doesn't appear and I see the wikimedia installation page. DOSSOD (talk) 19:50, 29 June 2020 (UTC)
- Do I need the GNU file package for windows from here: http://gnuwin32.sourceforge.net/downlinks/file-bin-zip.php
- The Instructions says to extract the folder from the archive called shared\file which contains 4 magic files (magic, magic.mgc, magic.mime, magic.mime.mgc) but there are only two files in the zip file (FileInfo.i18n.magic.php, FileInfo.php)... DOSSOD (talk) 20:41, 30 June 2020 (UTC)
- No. The fileinfo is a PHP extension. It must come with the PHP installation.
- See https://community.xibo.org.uk/t/how-do-i-enable-fileinfo-in-php/78 Ciencia Al Poder (talk) 11:53, 2 July 2020 (UTC)
- Ok. I'm going to reinstall PHP again then. For MW 1.34, what PHP version would you recommend then? DOSSOD (talk) 20:36, 6 July 2020 (UTC)
- Follow Manual:Installation requirements#PHP Ciencia Al Poder (talk) 21:39, 6 July 2020 (UTC)
- I followed these instructions.
- MS Visual C++ 2019
- PHP 7.3.20
- MySWL 5.7.17
- MW 1.34.1
- opening the wiki media installation page, tells me "required components missing (mbstring, fileinfo)
- These dll's are in the ./ext folder. Do I have to install them manually? php.ini shows them as enabled.
- Look at the output of phpinfo(); as described in Manual:php.ini, to see if they're really enabled and on which php.ini. If MediaWiki can't detect them, they're not enabled, despite the manual page saying they're enabled by default. Ciencia Al Poder (talk) 10:17, 8 July 2020 (UTC)
- There are 3 PHP files in the PHP folder.
- 1) php. ini (here are the extensions enabled)
- 2) php.ini-production
- 3) php.ini-development
- Do I have to modify the php.ini-production as well? The PHP output (http://localhost/phpinfo.php) PHP 7.3.20 shows the loaded configuration file >> 1) << which shows the mbstring and fileinfo not listed. So, there are not loaded, even when the php.ini file shows them as enabled with the correct path to the ./ext folder. All info I find just repeats the same steps which I've followed numerous times. DOSSOD (talk) 16:50, 9 July 2020 (UTC)
- php.ini-production and php.ini-development are sample files. They're not meant to be loaded directly.
- phpinfo doesn't lie. If the php extension is not listed as loaded, it's not loaded.
- Be sure the line where the extension is supposed to be loaded is not commented out. Ciencia Al Poder (talk) 17:53, 9 July 2020 (UTC)
- I've verified this numerous times. I just looked at it again and extension=fileinfo and extension=mbstring are not commented out.
- I also looked at extension = "C:\Program Files (x86)\PHP\ext\" which points to the library file. DOSSOD (talk) 18:21, 9 July 2020 (UTC)
- I finally fixed it. The PHP folder is under C:\Program Files (x86)\PHP --- I moved it out directly under C:\PHP modify the php.ini file with the updated path and all worked. Crazy.
- Thanks for all the help! DOSSOD (talk) 18:44, 10 July 2020 (UTC)
I want to create a page for myself, the history of my origins, life experience, etc.,
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 want to create a page for myself, the history of my origins, life experience, etc., 2607:FEA8:DDF:E687:21FE:DC21:A08B:7DA6 (talk) 20:29, 25 June 2020 (UTC)
- Have you tried writing a blog? There are lots of free blog sites around the internet. Ciencia Al Poder (talk) 15:14, 27 June 2020 (UTC)
Keep but disable several user accounts
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I have a private wiki that requires an account to view and edit.
I've have several user accounts of individuals that needed temporary access to edit the wiki. Some of these accounts are email confirmed users.
These users no longer need view or edit access however I would like to retain all their edits and have them associated with their accounts.
What is the best way to disable these accounts? And if I ever need to reactivate an account, how would I go about doing it? 76.173.103.102 (talk) 05:50, 26 June 2020 (UTC)
- You can set $wgBlockDisablesLogin to true. That would allow you to block all accounts that shouldn't be able to log in and if you need to re-activate the account you can just unblock them. Taavi (talk!) 06:36, 26 June 2020 (UTC)
Please disregard. Solved it myself.
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 a long-time editor. This morning I found that I was logged out:
- I tried to log in as usual. My password does not work. Possibly due to my PW manager.
- On the login page the usual message, "Forgot password?" does not appear.
- Going to Account creation, I find that my IP address has been blocked. (Several months ago I installed a VPN and applied for and received an exemption)
- I turned off my VPN and still find I am blocked, probably as a result of not being logged in.
- I am stuck as I cannot get a temp PW, can't use my Talk page to get help with VPN, etc.
- Could someone point me in the right direction? User: Wikipedia EN User: Seligne 115.87.4.10 (talk) 06:20, 26 June 2020 (UTC)
- i sent you a password reset email.
- Unfortunately ip ranges that are blocked cannot send password resets which is why it probably didnt work for you, but now that the reset is sent you should be able to use the temp password sent to you. Bawolff (talk) 07:40, 26 June 2020 (UTC)
- Thanks much!
115.87.4.10 (talk) 12:01, 26 June 2020 (UTC)
can not dump backup for AbstractFilter
hello
please help
php dumpBackup.php \
--plugin=AbstractFilter:extensions/ActiveAbstract/AbstractFilter.php \
--current \
--output=gzip:/dumps/abstract.xml.gz \
--filter=namespace:NS_MAIN \
--filter=noredirect \
--filter=abstract
[foo@server maintenance]$ php AbstractFilter:extensions/ActiveAbstract/AbstractFilter.php \ > --plugin=AbstractFilter:extensions/AbstractFilter.php \ > --current \ > --output=gzip:AbstractFilter.xml.gz \ > --filter=namespace:NS_MAIN \ > --filter=noredirect \ > --filter=abstract PHP Warning: require_once(extensions/AbstractFilter.php): failed to open stream: No such file or directory in /home/wikiadmin/domains/wikicod.ir/public_html/rel_34/maintenance/includes/BackupDumper.php on line 176 PHP Fatal error: require_once(): Failed opening required 'extensions/AbstractFilter.php' (include_path='/home/foo/domains/wikicod.ir/public_html/rel_34/vendor/pear/console_getopt:/home/wikiadmin/domains/wikicod.ir/public_html/rel_34/vendor/pear/mail:/home/wikiadmin/domains/wikicod.ir/public_html/rel_34/vendor/pear/mail_mime:/home/wikiadmin/domains/wikicod.ir/public_html/rel_34/vendor/pear/net_smtp:/home/wikiadmin/domains/wikicod.ir/public_html/rel_34/vendor/pear/net_socket:/home/wikiadmin/domains/wikicod.ir/public_html/rel_34/vendor/pear/pear-core-minimal/src:/home/foo/domains/wikicod.ir/public_html/rel_34/vendor/pear/pear_exception:.:/usr/local/php73/lib/php') in /home/wikiadmin/domains/wikicod.ir/public_html/rel_34/maintenance/includes/BackupDumper.php on line 176 [foo@server maintenance]$ |
Sokote zaman (talk) 08:25, 26 June 2020 (UTC)
How to deal with Synonyms
Hello there,
We have a problem for synonyms/related words on our Wiki and looking for suggestions to fix it.
Let's say we have a page called कुंदकुंद. Now there are other similar words which should be directed to this page like 'कुन्दकुन्द' 'कुंदकुंदाचार्य' 'Kundkund'.
One solution is to create multiple pages with redirecting to the original word page. But we do not want to create multiple pages of similar spellings and make redirect because we have thousands of pages and this solution doesn't look clean.
So what would be the solution so that when searching within the wiki it shows the possible options when searching and when a user opens such page, it takes to the appropriate main page.
We're struggling our heads to figure this out but then I thought this is a very common problem which people encounter on CMS website all the time. So there must be some standard solution to it. Please suggest the solutions to this problem.
One requirement is also that When user searches in search box, the drop-down should also list the other options (synonyms) as user types those words.
thanks
Vikas Vikasnd (talk) 08:49, 26 June 2020 (UTC)
- what's the concern with redirects? How do they not look clean? Bawolff (talk) 16:28, 26 June 2020 (UTC)
- it creates as many entries as the pages in the wiki. And these pages are just blank. We then want to have each words phonetic English word as well for a page so it's easy for user to type on phonetic english equivalent rather than type in native language.
Vikasnd (talk) 17:11, 27 June 2020 (UTC)- what's the problem with a page you never see being blank? Bawolff (talk) 03:23, 28 June 2020 (UTC)
- It's like creating fake pages that are used to map to a real page.
- A page/article is supposed to have real, meaningful data, right! For some pages you may have redirects. But if you really want to do mapping of many pages, better way would be to map it outside of the page contents like a table or some file which maps all possible words to a single page/article. Creating redirects page isn't a software solution. It's kind of hack. Vikasnd (talk) 09:59, 28 June 2020 (UTC)
- Maybe you could use Extension:Cargo and have a Synonyms field containing a list of strings. I guess your normal MediaWiki searches would find the synonyms as page text rather than page title. A Cargo query/search could find the synonyms.
- But this sort of thing is one of the main reasons for having redirect pages. Jonathan3 (talk) 21:34, 3 July 2020 (UTC)
Error 'Could not open "/maintenance/archives/patch-add-3d.sql"' when trying to update to 1.34.2
Upgrading from MediaWiki 1.34.1 to 1.34.2.
PHP version: 7.3.11 (cgi-fcgi)
Database: SQLite 3.28.0
Wiki URL: https://www.hamishmb.com/multiwii/wiki
Fortunately the wiki seems to be working at the moment, despite the database issues. For reasons like this I had to use SQLite instead of MySQL at the start as well. I have checked the file permissions and all seems okay. Any ideas? 109.156.56.166 (talk) 09:10, 26 June 2020 (UTC)
- is $IP set correctly? (Is the pathvits trying to open literally starting in the root directory?) Bawolff (talk) 16:26, 26 June 2020 (UTC)
- $IP is not defined at all (but according to Manual:$IP it doesn't look like I should enable it).
- I'm not sure if it's trying to use the root directory or not. The paths are set up on LocalSettings.php but it seems like the installer isn't honouring them for some reason. 109.156.56.166 (talk) 10:50, 29 June 2020 (UTC)
- $IP is not something you set but is set automatically. If its value is wrong (or false) it could explain your issue. Bawolff (talk) 08:54, 4 July 2020 (UTC)
- Hmm okay, where would I find this option? It doesn't seem to be in LocalSettings.php. 109.156.57.250 (talk) 11:52, 8 July 2020 (UTC)
- So how can I check what $IP is set to? If it's set wrong, how could I change it? I find the documentation for this very confusing. 109.156.57.250 (talk) 13:57, 13 July 2020 (UTC)
Problem bei Installation
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Nach Upload der Dateien auf den Server und Installation erscheint bei Aufruf der Webseite:
Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in users/xxxxx/www/languages/LanguageConverter.php on line 771
Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in users/xxxxx/www/includes/json/FormatJson.php on line 297
Nach Aktualisierung der Webseite verschwinden beide Warnungen und alles wäre paletti.
Beim nächsten Aufruf sind die Warnungen wieder da usw, usw,
Was soll ich machen? Eine fertige Kopiervorlage wäre mir das Liebste.
Die Installationssprache ist Deutsch, die Wikisprache ist Tschechisch.
Vielen Dank und liebe Grüße
Walter 91.52.222.4 (talk) 10:16, 26 June 2020 (UTC)
- Which exact MediaWiki version and which PHP version is this about? Malyacko (talk) 10:42, 26 June 2020 (UTC)
- MediaWiki Version 1.30.0
- PHP Version ? 91.52.222.4 (talk) 11:10, 26 June 2020 (UTC)
- PHP Version 7.4 91.52.222.4 (talk) 11:17, 26 June 2020 (UTC)
- MediaWiki 1.30.0 is an ancient, unsafe version which has been unsupported for 18 months and hence has security issues. Please run supported software. Malyacko (talk) 11:43, 26 June 2020 (UTC)
- Ok, thank you.
- Walter 91.52.222.4 (talk) 11:56, 26 June 2020 (UTC)
l10n_cache doesn't exist
RESOLVED | |
User should try following the MW installation guide instead of a third-party guide, some of the items in the third-party-guide are not supported. |
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 all, still get the following error at MediaWiki restart after once the installation succeeded
==============================================
[086efa696da2f4c9c72bbb7f] / Wikimedia\Rdbms\DBQueryError from line 1603 of /var/www/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 lc_value FROM `l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'deps' LIMIT 1
Function: LCStoreDB::get
Error: 1146 Table 'wiki_ciar.l10n_cache' doesn't exist (mediawiki_mariadb_host)
Backtrace:
#0 /var/www/html/includes/libs/rdbms/database/Database.php(1574): Wikimedia\Rdbms\Database->getQueryExceptionAndLog(string, integer, string, string)
#1 /var/www/html/includes/libs/rdbms/database/Database.php(1152): Wikimedia\Rdbms\Database->reportQueryError(string, integer, string, string, boolean)
#2 /var/www/html/includes/libs/rdbms/database/Database.php(1807): Wikimedia\Rdbms\Database->query(string, string)
#3 /var/www/html/includes/libs/rdbms/database/Database.php(1644): Wikimedia\Rdbms\Database->select(string, string, array, string, array, array)
#4 /var/www/html/includes/libs/rdbms/database/DBConnRef.php(68): Wikimedia\Rdbms\Database->selectField(string, string, array, string)
#5 /var/www/html/includes/libs/rdbms/database/DBConnRef.php(302): Wikimedia\Rdbms\DBConnRef->__call(string, array)
#6 /var/www/html/includes/cache/localisation/LCStoreDB.php(63): Wikimedia\Rdbms\DBConnRef->selectField(string, string, array, string)
#7 /var/www/html/includes/cache/localisation/LocalisationCache.php(441): LCStoreDB->get(string, string)
#8 /var/www/html/includes/cache/localisation/LocalisationCache.php(487): LocalisationCache->isExpired(string)
#9 /var/www/html/includes/cache/localisation/LocalisationCache.php(406): LocalisationCache->initLanguage(string)
#10 /var/www/html/includes/cache/localisation/LocalisationCache.php(325): LocalisationCache->loadSubitem(string, string, string)
#11 /var/www/html/languages/Language.php(2545): LocalisationCache->getSubitem(string, string, string)
#12 /var/www/html/includes/cache/MessageCache.php(970): Language->getMessage(string)
#13 /var/www/html/includes/cache/MessageCache.php(928): MessageCache->getMessageForLang(LanguageEn, string, boolean, array)
#14 /var/www/html/includes/cache/MessageCache.php(870): MessageCache->getMessageFromFallbackChain(LanguageEn, string, boolean)
#15 /var/www/html/includes/language/Message.php(1297): MessageCache->get(string, boolean, LanguageEn)
#16 /var/www/html/includes/language/Message.php(852): Message->fetchMessage()
#17 /var/www/html/includes/language/Message.php(944): Message->toString(string)
#18 /var/www/html/includes/title/MalformedTitleException.php(49): Message->text()
#19 /var/www/html/includes/title/MediaWikiTitleCodec.php(351): MalformedTitleException->__construct(string, string)
#20 /var/www/html/includes/Title.php(3311): MediaWikiTitleCodec->splitTitleString(string, integer)
#21 /var/www/html/includes/Title.php(417): Title->secureAndSplit()
#22 /var/www/html/includes/MediaWiki.php(83): Title::newFromURL(NULL)
#23 /var/www/html/includes/MediaWiki.php(140): MediaWiki->parseTitle()
#24 /var/www/html/includes/MediaWiki.php(816): MediaWiki->getTitle()
#25 /var/www/html/includes/MediaWiki.php(527): MediaWiki->main()
#26 /var/www/html/index.php(44): MediaWiki->run()
#27 {main}
==============================================
From the db container, I can see the wiki_ciar database but without any tables! After few minutes of Google, I decided to go into my mediawiki container to:
==============================================
root@920cf7294ef5:/var/www/html# php /var/www/html/maintenance/update.php
MediaWiki 1.34.1 Updater
Your composer.lock file is up to date with current dependencies!
Wikimedia\Rdbms\DBConnectionError from line 1380 of /var/www/html/includes/libs/rdbms/loadbalancer/LoadBalancer.php: Cannot access the database: Unknown error (mediawiki_mariadb_host)
#0 /var/www/html/includes/libs/rdbms/loadbalancer/LoadBalancer.php(931): Wikimedia\Rdbms\LoadBalancer->reportConnectionError()
#1 /var/www/html/includes/libs/rdbms/loadbalancer/LoadBalancer.php(898): Wikimedia\Rdbms\LoadBalancer->getServerConnection(0, 'wiki_ciar', 4)
#2 /var/www/html/includes/libs/rdbms/loadbalancer/LoadBalancer.php(1043): Wikimedia\Rdbms\LoadBalancer->getConnection(-2, Array, 'wiki_ciar', 4)
#3 /var/www/html/maintenance/Maintenance.php(1401): Wikimedia\Rdbms\LoadBalancer->getMaintenanceConnectionRef(-2, Array, 'wiki_ciar')
#4 /var/www/html/maintenance/update.php(147): Maintenance->getDB(-2)
#5 /var/www/html/maintenance/doMaintenance.php(99): UpdateMediaWiki->execute()
#6 /var/www/html/maintenance/update.php(277): require_once('/var/www/html/m...')
#7 {main}
root@920cf7294ef5:/var/www/html#
root@920cf7294ef5:/var/www/html#
root@920cf7294ef5:/var/www/html# ping mediawiki_mariadb_host
PING mediawiki_mariadb_host (172.23.0.2) 56(84) bytes of data.
64 bytes from mediawiki_mariadb_host.mediawiki_default (172.23.0.2): icmp_seq=1 ttl=64 time=0.113 ms
64 bytes from mediawiki_mariadb_host.mediawiki_default (172.23.0.2): icmp_seq=2 ttl=64 time=0.097 ms
...
--- mediawiki_mariadb_host ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 28ms
rtt min/avg/max/mdev = 0.097/0.105/0.113/0.008 ms
root@920cf7294ef5:/var/www/html#
==============================================
Here is my docker compose file
==============================================
# MediaWiki with MariaDB
#
# Access via "http://localhost:8080"
# (or "http://$(docker-machine ip):8080" if using docker-machine)
version: '3'
services:
mediawiki:
image: mediawiki:stable
container_name: mediawiki_host
restart: always
ports:
- xxxxx:80
links:
- database
volumes:
- /var/www/html/images
# After initial setup, download LocalSettings.php to the same directory as
# this yaml and uncomment the following line and use compose to restart
# the mediawiki service
- ./LocalSettings.php:/var/www/html/LocalSettings.php
database:
image: mariadb
container_name: mediawiki_mariadb_host
restart: always
environment:
MYSQL_DATABASE: wiki_ciar
MYSQL_USER: root
MYSQL_PASSWORD: root
MYSQL_ROOT_PASSWORD: root
# MYSQL_RANDOM_ROOT_PASSWORD: 'yes'
==============================================
Any idea ?
Thxxxx Mbenguig (talk) 11:02, 26 June 2020 (UTC)
- Looks like you created the database manually, without tables, and you didn't run the web installer but crafted LocalSettings.php?
- In that case delete or rename the LocalSettings.php file and run the web installer. Ciencia Al Poder (talk) 15:13, 27 June 2020 (UTC)
- Thanks a lot for your comment.. but not at all !... I start from scratch: without any existing LocalSettings.php, and by commenting the LocalSettings.php monted volume option from the docker-compose.yml file. I follow the installation steps from the web portal, without any issue. And then, I put the generated LocalSettings.php file into the docker-compose.yml dir, uncomment the LocalSettings.php monted volume option form the docker-compose.yml file, and restart the containers (mediawiki + mongodb).
- Completely stuck!
- (thxx) Mbenguig (talk) 13:48, 4 July 2020 (UTC)
- I'm not sure what guide are you following. LocalSettings.php can't be commented out. It's a file. Then I don't know why are you using docker. And I don't know what does mongodb has to do with anything here since it's not supported for MediaWiki. Ciencia Al Poder (talk) 17:00, 5 July 2020 (UTC)
- I never said I commented LocalSettings.php..but I said : "by commenting the LocalSettings.php monted volume option from the docker-compose.yml file". Docker compose is the simpliest way to start a mediawiki docker container with a db docker container. I followed the "official" docker installation from https://hub.docker.com/_/mediawiki and mariadb is set as default.
- Thxx a lot for your quick replies. Mbenguig (talk) 07:37, 6 July 2020 (UTC)
- You might try following the official installation guide:
- Manual:Installation guide TiltedCerebellum (talk) 07:05, 8 July 2020 (UTC)
Fresh Installation
RESOLVED | |
Another issue with 7-zip and some other free extractors lacking PAX support. |
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.
Just downloaded and extracted into a new folder. Immediately going to mw-config/index.php I get the following.
Warning: include(/var/www/html/wiki/vendor/composer/../liuggio/statsd-php-client/src/Liuggio/StatsdClient/Factory/StatsdDataFactory.php): failed to open stream: No such file or directory in /var/www/html/wiki/vendor/composer/ClassLoader.php on line 444
Warning: include(): Failed opening '/var/www/html/wiki/vendor/composer/../liuggio/statsd-php-client/src/Liuggio/StatsdClient/Factory/StatsdDataFactory.php' for inclusion (include_path='/var/www/html/wiki/vendor/pear/console_getopt:/var/www/html/wiki/vendor/pear/mail:/var/www/html/wiki/vendor/pear/mail_mime:/var/www/html/wiki/vendor/pear/net_smtp:/var/www/html/wiki/vendor/pear/net_socket:/var/www/html/wiki/vendor/pear/pear-core-minimal/src:/var/www/html/wiki/vendor/pear/pear_exception:.:/usr/share/php') in /var/www/html/wiki/vendor/composer/ClassLoader.php on line 444
Fatal error: Class 'Liuggio\StatsdClient\Factory\StatsdDataFactory' not found in /var/www/html/wiki/includes/libs/stats/BufferingStatsdDataFactory.php on line 35 12.180.225.98 (talk) 18:52, 26 June 2020 (UTC)
- you are second person to complain about this... That's probably a bad sign Bawolff (talk) 00:11, 27 June 2020 (UTC)
- I have the same problem 95.108.54.100 (talk) 07:31, 27 June 2020 (UTC)
- Yup, fresh installation today and I have the same problem. 166.70.71.191 (talk) 22:55, 27 June 2020 (UTC)
- Problem occured when I extracted using mc. During extracting I was informed that few files exists and asked to replace them. Date and size of these files was the same. When I used gunzip and tar it works. 95.108.54.100 (talk) 06:39, 28 June 2020 (UTC)
- me too guys
15Rutendo (talk) 15:47, 28 June 2020 (UTC)- got this error, too. upgrading from 1.34.0 to 1.34.2 on apache/windows. extracted .tar.gz with 7-zip. i also was informed that few files exists and asked to replace them, but size of these files differs.
- my last update from 1.33.x to 1.34.0 worked fine. 188.126.174.214 (talk) 08:38, 29 June 2020 (UTC)
- here's the error during upgrade:
- Warning: include(C:\Development\apache\htdocs\wiki\vendor\composer/../liuggio/statsd-php-client/src/Liuggio/StatsdClient/Factory/StatsdDataFactoryInterface.php): failed to open stream: No such file or directory in C:\Development\apache\htdocs\wiki\vendor\composer\ClassLoader.php on line 444
- In folder "C:\Development\apache\htdocs\wiki\vendor\composer/../liuggio/statsd-php-client/src/Liuggio/StatsdClient/Factory" exists only the file "StatsdDataFactory" without an extension.
- Curiously in folder "C:\Development\apache\htdocs\wiki\vendor\composer/../liuggio/statsd-php-client/src/Liuggio/StatsdClient/Entity" exists a file "StatsdDataInterfac" also without an extension. In folder "C:\Development\apache\htdocs\wiki\vendor\composer/../liuggio/statsd-php-client/src/Liuggio/StatsdClient/Sender" exists a file "SenderInterface.ph". It seems, that the filenames were truncated in some way. 188.126.174.214 (talk) 08:50, 29 June 2020 (UTC)
- solution/problem described here: Project:Support desk/Flow/2020/06#h-Extract_tar.gz_on_Windows-2020-06-29T14:26:00.000Z 188.126.174.214 (talk) 15:50, 29 June 2020 (UTC)
- Worked for me, thanks! 216.165.99.20 (talk) 01:13, 31 August 2020 (UTC)
- I am still getting these errors in 1.34.2 24.72.75.106 (talk) 14:04, 6 September 2020 (UTC)
- I am updating my previous reply to say that I don't have access to git atm. I have done some playing around with it, but am not skilled enough to know what I'm actually doing. Is there a copy of mediawiki that I can use with xampp? Will the bitnami installers work for this? 24.72.75.106 (talk) 14:23, 6 September 2020 (UTC)
- this seems to be caused by a problem with 7zip. Try winrar instead maybe Bawolff (talk) 23:02, 12 September 2020 (UTC)
- Same problem; led me here. I solved it by using WinZip. WinRar and 7-zip ignored the PaxHeader file. 142.113.235.59 (talk) 02:48, 13 September 2020 (UTC)
- Yep, this support desk is littered with issues regarding unzipping with 7-zip and it's lack of support for PAX. The creator of 7-zip has been aware for years of its lack of compatibility for a standard that other's have integrated almost a decade ago, and seems uninterested in fixing it unfortunately. Glad you found a utility. TiltedCerebellum (talk) 21:49, 15 September 2020 (UTC)
can i hook "page preview" to script-generated content?
i think the title pretty much explains the question, but let me elaborate a bit: the content i'm talking about is contained in a dialog - either some OOJS form, or jQuery.ui dialog.
this newly minted content contains links which look identical to links which show "page preview", when they are on the page.
is there a way to convince page preview to hook itself to these newly minted links?
peace קיפודנחש (talk) 04:09, 27 June 2020 (UTC)
- With respect, what you are asking for is not clear at all. The tile doesn't explain it. Please explain (and if possible provide examples) to what you are trying to accomplish and where. This sounds like a customization rather than an issue with the MediaWiki software, you might try:
- Professional development and consulting TiltedCerebellum (talk) 00:49, 15 July 2020 (UTC)
- user:TiltedCerebellum
- so, media wiki acquired a "page preview" behavior, where hovering above internal link shows a small snippet, sometimes with an image, in a small popup window. used to be "beta", now it's in core. i don't think it's an extension, but maybe it is (too many similar extension names, most contain the word "popup" one way or another)
- there are scripts and gadgets which either add internal links, either to the page itself, or in some dialog boxes/forms they create.
- what i want to do is to tell the "page preview" handler something like "here is a new piece of content, please do your magic on it"., so these newly minted internal links will acquire the behavior of showing the "page preview" on hover.
- i tried to fire the 'wikipage.content' event, with the new content as parameter, but "page preview" gallantly ignored this, and refused to do anything regarding the new content.
- i hope this is clear enough, but i'll be happy to elaborate if something is still unclear.
- peace. קיפודנחש (talk) 17:51, 15 July 2020 (UTC)
- Extension:Popups * Pppery * it has begun 18:11, 15 July 2020 (UTC)
- @user:Pppery: if this is an answer, i did not understand it. could you please elaborate?
- my only guess is you meant that this question should be in the talkpage of the extension. to be on the safe side, i asked there too.
- otherwise, i just did not get it.
- peace. קיפודנחש (talk) 19:28, 15 July 2020 (UTC)
- "too many similar extension names, most contain the word "popup" one way or another"; I was providing a link to the extension responsible for this, not answering the question. * Pppery * it has begun 19:30, 15 July 2020 (UTC)
Since I created an account many years ago, my email address has changed
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 can't log in to reset my password in order to update photo copyright info on my work. What can be done? 100.37.154.172 (talk) 04:39, 27 June 2020 (UTC)
- If you can prove beyond a shadow of a doubt that you are the owner of the account, its possible to get the account given back to you. It is very difficult to prove that though.
- If you can prove you are the owner of the image (irrespective of owning the account) you can probably get info added to the image copyright info.
- Please note, that most licenses are irrevocable, so there is a limit to how much you can change of the copyright info even if you can prove you are who you say you are.
- Assuming this image is uploaded to wikimedia commons, you should ask at commons:commons:help desk as they can give you more specific advice about image copyrights. Bawolff (talk) 05:53, 27 June 2020 (UTC)
Log in problems
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 pages accept my login but LeicaWiki pages do not. Cookies are turned on. Browser is Firefox. There is an error in the page:https://www.l-camera-forum.com/leica-wiki.en/index.php/28mm%E2%80%9370mm_f/3.5%E2%80%934.5_Vario_Elmar-R that says that the lens hood for this lens is "
- Accessories - Hood: 12509 or 12437"
- 12509 is wrong. Polymath2104 (talk) 14:56, 27 June 2020 (UTC)
- Note that each wiki has its own login (except wikis of WMF, wikipedia, wikibooks, etc which all share the same credentials). You must create a new account there if you didn't create one before. Ciencia Al Poder (talk) 15:07, 27 June 2020 (UTC)
- MediaWiki is a software that anyone can use an install. The site you are referring to is not run by mediawiki, it is run by someone else (It is a third-party mediawiki installation), so no one here on the mediawiki support desk can help you with our third-party website password. TiltedCerebellum (talk) 10:38, 30 June 2020 (UTC)
Page not found Template
RESOLVED | |
Edit page Mediawiki:noarticletext in wiki |
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I want to display a different template when some page doesn't exist on my wiki like wikipedia page. In my wiki there is only simple text. How can I do that? WikiGamee (talk) 15:53, 27 June 2020 (UTC)
- edit the page named Mediawiki:noarticletext on your wiki.
- More generally, to figure out what page to edit parts of the template add ?uselang=qqx (or &uselang=qqx if url already has a ?) to the end of the url. Bawolff (talk) 19:12, 27 June 2020 (UTC)
- @Bawolff Thanks. I just want that page. WikiGamee (talk) 05:53, 28 June 2020 (UTC)
How to reverse unhiding a topic
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 realized that I accidentally unhid a topic at one's usertalk page, though the user himself is globally banned. How do I reverse the unhiding? George Ho (talk) 05:38, 28 June 2020 (UTC)
- You can simply hide it again by clicking the dots near the topic title and then the "Hide Topic" button. You can also find the "hide" button in the topic history. 94rain Talk 05:55, 28 June 2020 (UTC)
errors after update
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hello, I updated mediawiki, which seems to have gone well, but I have 2 errors:
The page login or create an account returns an error:
The site link refers to:
http://www.forum-bassin.com/eb/1/eb/index.php?title=Accueil
instead of :
http://www.forum-bassin.com/eb/index.php?title=Accueil
Thank you for your help 109.18.246.144 (talk) 12:57, 28 June 2020 (UTC)
- please set $wgShowExceptionDetails=true; to get more specific error message. Bawolff (talk) 19:44, 28 June 2020 (UTC)
- thanks, the error message is :
- [Xvoe4KdEF-28y9rXM68ieAAAAAg] /eb/index.php?title=Sp%C3%A9cial:Connexion&returnto=Accueil Error from line 22 of /home/forumbas/www/eb/extensions/ConfirmEdit/includes/ConfirmEditHooks.php: Class 'QuestyCaptcha' not found
- Backtrace:
- #0 /home/forumbas/www/eb/extensions/ConfirmEdit/includes/auth/CaptchaPreAuthenticationProvider.php(11): ConfirmEditHooks::getInstance()
- #1 /home/forumbas/www/eb/includes/auth/AuthManager.php(2108): CaptchaPreAuthenticationProvider->getAuthenticationRequests(string, array)
- #2 /home/forumbas/www/eb/includes/auth/AuthManager.php(2086): MediaWiki\Auth\AuthManager->getAuthenticationRequestsInternal(string, array, array, User)
- #3 /home/forumbas/www/eb/includes/specialpage/AuthManagerSpecialPage.php(257): MediaWiki\Auth\AuthManager->getAuthenticationRequests(string, User)
- #4 /home/forumbas/www/eb/includes/specialpage/LoginSignupSpecialPage.php(140): AuthManagerSpecialPage->loadAuth(NULL)
- #5 /home/forumbas/www/eb/includes/specialpage/LoginSignupSpecialPage.php(229): LoginSignupSpecialPage->load(NULL)
- #6 /home/forumbas/www/eb/includes/specialpage/SpecialPage.php(575): LoginSignupSpecialPage->execute(NULL)
- #7 /home/forumbas/www/eb/includes/specialpage/SpecialPageFactory.php(611): SpecialPage->run(NULL)
- #8 /home/forumbas/www/eb/includes/MediaWiki.php(296): MediaWiki\Special\SpecialPageFactory->executePath(Title, RequestContext)
- #9 /home/forumbas/www/eb/includes/MediaWiki.php(900): MediaWiki->performRequest()
- #10 /home/forumbas/www/eb/includes/MediaWiki.php(527): MediaWiki->main()
- #11 /home/forumbas/www/eb/index.php(44): MediaWiki->run()
- #12 {main} 109.18.246.144 (talk) 17:05, 29 June 2020 (UTC)
- The ConfirmEdit extension is missing/not loaded properly, or something is wrong with the captcha settings in LocalSettings.php Bawolff (talk) 08:56, 4 July 2020 (UTC)
- Thank you very mutch, work.
- There is still a problem with the links are in the 1st message
- Thank you for your help 109.18.246.144 (talk) 11:58, 5 July 2020 (UTC)
- I can not find but it must be related to that in the version page
Point d'entrée | URL |
---|---|
Chemin d’article | [1/eb/?title=$1 /eb/?title=$1] |
Chemin de script | [1/eb /eb] |
index.php | [1/eb/index.php /eb/index.php] |
api.php | [1/eb/api.php /eb/api.php] |
load.php | [1/eb/load.php /eb/load.php] |
- Did you set $wgServer properly? Ciencia Al Poder (talk) 19:36, 5 July 2020 (UTC)
- Thank you very mutch, it work fine. 109.18.246.144 (talk) 08:35, 6 July 2020 (UTC)
WantedPages for specific category only?
Is there any way to see the list of WantedPages for a specific category? Spiros71 (talk) 14:50, 28 June 2020 (UTC)
Please update instructions
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.
Can someone please update the instructions on the following page so that they can be followed by people who aren't programmers? It is impossible to follow them currently without learning first how to program, how to install and set up git, and then use herokut. It shouldn't be that hard for an average MediaWiki user to install parsoid on Heroku because the instructions should be accessible to everyone. Thanks.
VisualEditor/Installation on a shared host FrustratedNoob (talk) 04:07, 29 June 2020 (UTC)
- This comment does not make sense. The instructions on that page literally require zero programming.
- If a specific line is unclear then please explain why and what you have tried and what happened instead.
- Sentences a la "It shouldn't be that hard for an average electricity user to set up and build a nuclear power plant in their garden because the instructions should be accessible to everyone" don't really help though, I'm afraid. Malyacko (talk) 08:13, 29 June 2020 (UTC)
- Try the following (for people that don't know git, they don't realize that they aren't working remotely, they are working locally, and they aren't going to know the necessary git comands if they don't work with git all of the time):
- Make sure Git is installed (heroku requires Git).
- Install the Heroku Command Line Interface.
- Using Git CMD log in with:
heroku login
- Clone Parsoid (to your local machine) with:
git clone https://gerrit.wikimedia.org/r/mediawiki/services/parsoid
- Look at the location provided in your command prompt, your cloned files will be placed locally there e.g.: C:\Users\<user>\parsoid
- Enter the Parsoid directory you just created on your local machine:
cd parsoid
- In Windows Explorer, browse to the path above on your local machine, and edit the hidden file .gitignore and remove the lines config.yaml and composer.lock
- In Windows Explorer, create your config file by copying config.example.yaml and renaming it to config.yaml
- Edit the config.yaml file you just created by changing the example URI for the URL of your API, for example uri: 'https://www.yoursite.wiki/api.php' If your wiki uses https, then uncomment the line strictSSL: false If the domain: 'localhost' line is uncommented, comment it (helps to avoid the "Invalid domain" error)
- Save the changes.
- Add the Heroku remote to your git repo with:
heroku git:remote -a <yourappname>
- Stage the edited config files for committing with:
git add .
- Commit your changes with:
git commit -am "Initial commit"
- You have to specify an identifier to allow the commit with:
git config user.email yourname@exaple.com
- Push and deploy your local changes to the remote location with:
git push heroku master
- Visit https://yourappname.herokuapp.com to verify that your Parsoid service works.
- Make sure you DONT leave in the trailing slash in the LocalSettings.php portion of code, it will cause it to not work. I edited the MW page to remove the trailing slash.
- Use: 'url' => 'https://APPNAME.herokuapp.com'
- Do NOT use: 'url' => 'https://APPNAME.herokuapp.com/'
- TiltedCerebellum (talk) 21:34, 29 June 2020 (UTC)
Database connection closing during importDump.php
Hello, I am consistently but sporadically having this problem on an instance of mediawiki I am hosting offline. Because it's an offline system I can't provide an in depth stack trace but I'll try my best.
I am trying to mirror Wikipedia with mediawiki-v1.34.1 in a few different languages such as English and Arabic and while running the importDump.php maintenance script on my XML dumps it randomly gets interrupted with the error:
Wikimedia\Rdbms\DBUnexpectedError from line 956 of /var/www/html/mediawiki-1.34.1/includes/libs/rdbms/database/Database.php: DB connection was already closed
It takes quite a while to go through the Wikipedia dumps as they're pretty huge, so this problem is making it very slow and hard to get through them as I can't leave the script running for longer than 30 minutes before this error occurs and stops it.
This is the line I am using to run it:
sudo php importDump.php --conf ../LocalSettings.php /var/www/html/arwiki-latest-pages-articles.xml.bz2 --dbuser root --debug --username-prefix=""
I couldn't find this problem anywhere online, does anyone know how to help with it?
202.12.69.200 (talk) 06:19, 29 June 2020 (UTC)
- Did you already go though the notes and troubleshooting section of Manual:ImportDump.php? There are some alternate methods provided in the links in those sections. TiltedCerebellum (talk) 07:24, 29 June 2020 (UTC)
Don't recall what the e-mail and password are to login
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 all,
I am sending this on behave of a company. We would like to update our wikipedia site, when I want to do that it asks me if I want to edit it with or without login. We would like to update the site by login in. The only issue is that we cannot seem to find to which e-mail it is connected to and what the password is.
Can someone help me with this?
Thanks a lot! A Moeniralam (talk) 08:27, 29 June 2020 (UTC)
- @A Moeniralam Feel free to log in by using your username and your password. If you don't remember your password, use the "Forgot your password?" function. Malyacko (talk) 08:53, 29 June 2020 (UTC)
Version Upgrade from 1.30 to 1.34
RESOLVED | |
User resolved |
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 all,
regarding upgrade i have download 1.34...tar.gz file and extracted into /srv/www/mediawiki (where my old version location) and copied Localsettings.php into new version file.
its dont working..
plesae help me ..thanks a lot
Satyaps2251 (talk) 12:28, 29 June 2020 (UTC)
- What do you mean by "it's not working"? Taavi (talk!) 12:53, 29 June 2020 (UTC)
- Hi Majavah
- Thank you for your reply
- I mean website is not opening...
- Thank you Satyaps2251 (talk) 13:03, 29 June 2020 (UTC)
- What exact message are you getting? Do you just have a blank screen? What version of PHP are you using? Did you run the updater script? Taavi (talk!) 13:05, 29 June 2020 (UTC)
- Hi Majavah,
- Its blank screen,nothing displaying..
- I have PHP 7.2.24
- Thank you Satyaps2251 (talk) 06:14, 30 June 2020 (UTC)
- You can enable error reporting by following the instructions at Manual:Errors_and_symptoms#You_see_a_Blank_Page and that way you should receive an error message that contains information we need. Taavi (talk!) 06:17, 30 June 2020 (UTC)
- Did you copy the new files over the old ones? If so, you’re not supposed to do that. Also you never answered if you ran update.php. Additionally on upgrade, you often can’t just use your old LocalSettings.php file as it was and expect the site to work. Rename the old one, generate a new one by browsing to <your site>/mw-update/. Upload that with no extensions enabled and check that the new version works clean. Also, did you update your extensions to versions matching your new mediawiki version? Make sure you have. If the site runs fine with no extensions enabled, start adding them (the extensions for MW 1.34) back one at a time. That way you’ll know if the issue is extension(s) related for example.
- In The update from 1.33-1.34, after updating my extensions to the right version, I had problems with 2 extensions, I discovered that by starting with a newly generated localsettings.php and adding back a little bit at a time until I knew where the issue was. TiltedCerebellum (talk) 09:45, 30 June 2020 (UTC)
- Hi,
- I haven't copied the new files over the old one
- i had ran php update.php script
- i copied Localsettings.php from old to new version folder
- link also changed to new version path
- trying to <my site>/mw-config/ is still aktuellisiert from old one
- and also trying with <my site>/mw-update/ getting 404 Not Found Error
- thanks a lot for your kind reply Satyaps2251 (talk) 08:16, 1 July 2020 (UTC)
- You can enable error reporting by following the instructions at Manual:Errors_and_symptoms#You_see_a_Blank_Page and that way you should receive an error message that contains information we need. Taavi (talk!) 12:14, 1 July 2020 (UTC)
- Hi,
- I made changes as per above link instructions,still blank page..
- actually i would like add extension (Lockdown) for my wiki (version 1.30),its not working.
- so planned to upgrdae version 1.34,but it dont works
- please let me know any possible other ways..
- Thank you for ur kind reply Satyaps2251 (talk) 14:28, 2 July 2020 (UTC)
- Your first problem is in #3 of your own steps, you copied everything from your old LocalSettings.php (or from your old file to the new one) to the new install and just expected it to work. That's not going to work (often this results in a problem, the exact problem you are describing). I had the same problem moving from MW 1.33 to 1.34.2.
- On the remote server (and in your local folder) rename your LocalSettings.php file to something else (to preserve it but move it out of the way so we can let MW regenerate a CLEAN one.
- Navigate to <yoursite>/mw-config/ (with your old one renamed on the server, this will now allow you to generate a new/CLEAN LocalSettings.php with NONE of your old settings in it (which is what we want). Fill in the required information, and let it download a CLEAN LocalSettings.php. leave it as it is, CLEANLY regenerated, don't add your old stuff back to it, don't copy over it or into it yet.
- Upload the CLEAN LocalSettings.php file that you just created to your site.
- Test if the site works using the CLEAN LocalSettings.php file (it should, don't worry about how the site looks/works yet. What we're testing first is IF your mediawiki installation is first valid and working and if the problem is in the contents your old localsettings file).
- IF MediaWiki runs on a CLEAN LocalSettings.php then the problem is IN your old/existing LocalSettings.php file (one of the lines in it).
- IF Mediawiki DOESN'T run on a CLEAN LocalSettings.php then the problem is in how you installed MediaWiki or the download files.
- If the site works after uploading the CLEAN LocalSettings.php, then the problem is IN your OLD LocalSettings.php file or one of the lines you copied from it. You need to copy and paste back, ONLY 1-3 lines at a time from old to CLEAN to figure out where your issue is. Every time you paste a few lines from old to CLEAN, upload the file, and retest if your site loads, until it starts giving the white page again (this will identify what the problematic lines are in your old LocalSettings.php file). It may be more than one line. So comment out the problematic ones, then keep going. Come back here and report what you found please. If you don't understand what we're saying to do, you probably need someone to help you with doing a clean install, clean LocalSettings.php regeneration, and carry over your settings one at a time (testing in between to identify which line in your old LocalSettings is causing the white pages):
- See Professional development and consulting Also point them here. Your issue is quite likely, a line in your old LocalSettings.php causing the issue. So, using your old LocalSettings.php on the new site (or copying lines from it to the new one) and expecting it to work. Often it won't, it didn't for me. I had some lines and an extension (even though the extension was upgraded to a 1.34 version) in the old one causing the white page. Then I decided to start with a CLEAN LocalSettings.php regenerated using mw-config, test that the site worked with a clean one, it did (so now I knew my issue was a line (or lines) in my LocalSettings.php). Then I had to add back a few lines from old to new, test the site, add back a few more, test the site, and continue doing that until I found the offending lines and extensions (there was more than one) in the old LocalSettings that was causing the new one to blank the site, also short URL config will do it too (has to be re-setup and re-set in .htaccess to work).
- Good Luck! TiltedCerebellum (talk) 01:33, 5 July 2020 (UTC)
- Hi,
- Thank you for your Kind reply,
- newly extracted Version dont have any Localsettings.php,if Im trying generate (<my-site>/mw-config/) is always asking about Upgarde Key from Localsettins.php (if add Upgrade key from Old one,simply getting message your Installation is over).
- (<my-site>/mw-config/) its always starts ,Installation from Old Version (not from new one)
- Thank you Satyaps2251 (talk) 13:48, 13 July 2020 (UTC)
- Your installation should look like this (an installation upgrade connecting it to an existing database) and offer a way to regenerate the LocalSettings.php if it doesn't try clicking the "Restart Installation" button at the right side.
- https://imgur.com/uE7LmJ5 TiltedCerebellum (talk) 01:15, 14 July 2020 (UTC)
- Hi;
- Thank you for your reply,
- 1.whichever Version i start to <mw-config> (without LocalSettings.php File) automatically its start from 1.30.0
- 2.and asking Upgrade key (if i dont enter key from old one, no forward option),after entering upgrade key from older Localsettings.php File getting message "your wiki is aktulliesiert and ready to use"
- 3. not generating any new Localsetting.php
- 4.I tried from "Restart Installation" Button also,repeating same
- Thank you Satyaps2251 (talk) 06:05, 14 July 2020 (UTC)
- Thank you all..
- it was small mistake on my approach..
- Thanks a lot for kind responses.. Satyaps2251 (talk) 13:46, 14 July 2020 (UTC)
Extract tar.gz on Windows
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
The download page recommends 7-Zip to decompress the tar.gz on Windows. But the latest tarballs switched to PAX format, which 7-zip does not support, causing cut of filenames.
mediawiki-1.34.1.tar.gz: POSIX tar archive (GNU)\012- POSIX tar archive (GNU), file mediawiki-1.34.1/.phan/config.php, mode 0000664, uid 0001750, gid 0001750, size 00000012777, seconds 13637157252, user reedy, group reedy\012- data (gzip compressed data, was "mediawiki-1.34.1.tar", last modified: Thu Mar 26 17:13:38 2020, max compression\012- data)
mediawiki-1.34.2.tar.gz: POSIX tar archive\012- POSIX.1-2001 tar archive, extension ././@PaxHeader, mode 0000000, uid 0000000, gid 0000000, size 00000000033, seconds 00000000000\012- data (gzip compressed data, was "mediawiki-1.34.2.tar", last modified: Wed Jun 24 16:28:13 2020, max compression\012- data)
Workaround: extract using tar command from Git for Windows 194.7.161.147 (talk) 14:26, 29 June 2020 (UTC)
Thumbs is not generating in templates
Hi, my site is not generating thumbs anymore. the site is full of huge images.
I tried anything I found on the web.
There is nothing related in the logs.
I also tried to swich from GD to ImageMagick.
I have no ideas anymore.
How can I keep troubleshooting? What can I still do? 79.181.100.205 (talk) 16:33, 29 June 2020 (UTC)
- *Switch, of course. 79.181.100.205 (talk) 16:34, 29 June 2020 (UTC)
- Manual:Errors and symptoms#Image Thumbnails not working and/or appearing (as linked from the frontpage of this website). Malyacko (talk) 17:21, 29 June 2020 (UTC)
- I already did everything from this article.
- I have GD and ImageMagick working.
- I got no errors in the html or in the logs.
- The img element has no srcset at all, instead it has width and height, that are set to the original image size (instead of the requested thumb).
- Do you have any idea what it could be if I have no errors? 79.181.0.154 (talk) 09:02, 30 June 2020 (UTC)
- Which logs are you looking at? TiltedCerebellum (talk) 18:27, 30 June 2020 (UTC)
- Php error log.
- I just realized that I did not mentioned something important: it only happens in templates. 79.181.100.205 (talk) 15:02, 1 July 2020 (UTC)
- For example on this Template page, instead of a small icon you see a huge image
- The main page that is full of Templates looks awful
- Images displayed on a regular page are displayed properly, which means they are reduced to what is defined in the wiki code, But the arrow icons that are supposed to be part of the template at the top of the page are displayed in large size שיע.ק (talk) 21:14, 1 July 2020 (UTC)
- There is more than just the PHP error logging, you can turn on MediaWiki error logging also: https://www.mediawiki.org/wiki/Manual:How_to_debug TiltedCerebellum (talk) 01:21, 5 July 2020 (UTC)
Unable to use visual editing
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 keep receiving error messages when I am trying to switch the editing mode to visual editing. The error message has prevented me from using visual editing to create and edit a page.
Error message box as recap below:
Error loading data from server: apierror-visualeditor-docserver-http-error: (curl error: 7) Couldn't connect to server. Would you like to retry?
This message keeps popping up when I click "OK" for retry. Please assist, thanks. Kwokma (talk) 03:45, 30 June 2020 (UTC)
- Extension:VisualEditor#Switching between Wikitext Editing and VisualEditor Taavi (talk!) 04:58, 30 June 2020 (UTC)
Problem with magic words/behavior switch
hi there,
after updating the magic words don't show up correctly anymore and are of this kind: ⧼toc⧽, ⧼copyrightwarning2, ⧼newwindow⧽. The site is wiki.snooze-hotelsoftware.de
Can anyone help which code might be missing?
Thank you
Simon 92.200.122.198 (talk) 07:55, 30 June 2020 (UTC)
- what do you mean by "updating the magic words"? Taavi (talk!) 08:07, 30 June 2020 (UTC)
- thank you for your fast reply!
- sorry, I meant after updating mediawiki. the magic words don't show up correctly anymore.
92.200.122.198 (talk) 08:08, 30 June 2020 (UTC)- Try running the rebuildLocalisationCache.php maintenance script Taavi (talk!) 08:15, 30 June 2020 (UTC)
Error on Language
RESOLVED | |
User needs an extension to do what they want, ULS is not for translating user content, browsers and devices have built-in features, extensions or apps to do this cross-site. |
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hello,
I recently installed Universal Language Selector Extension for type in different language, but when I opened my wiki then the languages are mixed (English and hindi words are mixed). My wiki is in Hindi language. Is there any way for anyone who visit my wiki it will be shown only in single hindi language?
Thanks WikiGamee (talk) 08:57, 30 June 2020 (UTC)
- Universal Language Selector changes and translates interface fonts (menus etc) only. It won’t translate your whole site, that’s you job or your contributors job. Most modern browsers are capable of translating any website’s full-text with either built-in features (right click menu in chrome for example) or there are browser extensions for machine translation. Most mobile devices have translation apps to translate text in web pages.
- Since machine translation of large bodies of text is often not ideal, there is a language extension bundle that helps your users to write translations for each page in different languages MediaWiki Language Extension Bundle. If you just need machine translation, I’d encourage you to learn how to use your browser’s translate features or install an extension or app to translate not just your site, but any site on the internet. TiltedCerebellum (talk) 09:33, 30 June 2020 (UTC)
From Shrew windows to linux client
RESOLVED | |
wrong place |
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I have created a pipeline in gitlab. I wish I could establish a vpn connection. On my pc I use the Shrew Vpn client, then following the official Shrew guide I installed the client for linux. But when I launch the connection I get an error, but I can't understand why. The error is not very clear. This is part of my yaml pipeline:
before_script:
- apt-get update -y
- cd /var/tmp
- wget https://www.shrew.net/download/ike/ike-2.2.1-release.tgz
- tar -zxvf ike-2.2.1-release.tgz
- apt-get -o dir::cache::archives="apt-cache" install cmake libqtcore4 libqtgui4 libqt4-dev libedit-dev libssl1.0-dev checkinstall flex bison -y
- cd /var/tmp/ike
- cmake -DCMAKE_INSTALL_PREFIX=/usr -DQTGUI=YES -DETCDIR=/etc -DNATT=YES
- make
- make install
- cd /etc/
- mv iked.conf.sample iked.conf
- mkdir -p home/.iked/sites
- cp /builds/group/project/conf/filevpn home/.iked/sites
- ikec -r filevpn -u user -p pass -a
Instead the mistake is this:
$ ikec -r filevpn -u user -p pass -a
*** Error in `ikec': double free or corruption (out): 0x000055ed34ef0720 ***
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x70bfb)[0x7f68ac68dbfb]
/lib/x86_64-linux-gnu/libc.so.6(+0x76fc6)[0x7f68ac693fc6]
/lib/x86_64-linux-gnu/libc.so.6(+0x7780e)[0x7f68ac69480e]
/usr/lib/libss_idb.so.2.2.1(_ZN6_BDATA4growEm+0xa3)[0x7f68ae1283e1]
/usr/lib/libss_idb.so.2.2.1(_ZN6_BDATA3insEPvmm+0x5e)[0x7f68ae128cca]
/usr/lib/libss_idb.so.2.2.1(_ZN6_BDATA3insEPcmm+0x30)[0x7f68ae128da6]
/usr/lib/libss_ike.so.2.2.1(_ZN15_CONFIG_MANAGER13file_vpn_loadER7_CONFIG+0xda)[0x7f68ae337b58]
/usr/lib/libss_ike.so.2.2.1(_ZN7_CLIENT11config_loadEv+0xc5)[0x7f68ae335883]
ikec(main+0xc4)[0x55ed34a01994]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf1)[0x7f68ac63d2e1]
ikec(_start+0x2a)[0x55ed34a017ca]
======= Memory map: ========
ii : ## : VPN Connect, ver 2.2.1
## : Copyright 2013 Shrew Soft Inc.
## : press the <h> key for help
55ed34a00000-55ed34a03000 r-xp 00000000 08:01 6670952 /usr/bin/ikec
55ed34c02000-55ed34c03000 r--p 00002000 08:01 6670952 /usr/bin/ikec
55ed34c03000-55ed34c04000 rw-p 00003000 08:01 6670952 /usr/bin/ikec
55ed34ec8000-55ed34efa000 rw-p 00000000 00:00 0 [heap]
7f68a4000000-7f68a4021000 rw-p 00000000 00:00 0
7f68a4021000-7f68a8000000 ---p 00000000 00:00 0
7f68ab578000-7f68ab582000 r-xp 00000000 08:01 7942396 /lib/x86_64-linux-gnu/libnss_files-2.24.so
7f68ab582000-7f68ab782000 ---p 0000a000 08:01 7942396 /lib/x86_64-linux-gnu/libnss_files-2.24.so
7f68ab782000-7f68ab783000 r--p 0000a000 08:01 7942396 /lib/x86_64-linux-gnu/libnss_files-2.24.so
7f68ab783000-7f68ab784000 rw-p 0000b000 08:01 7942396 /lib/x86_64-linux-gnu/libnss_files-2.24.so
7f68ab784000-7f68ab78a000 rw-p 00000000 00:00 0
7f68ab78a000-7f68ab795000 r-xp 00000000 08:01 7942400 /lib/x86_64-linux-gnu/libnss_nis-2.24.so
7f68ab795000-7f68ab994000 ---p 0000b000 08:01 7942400 /lib/x86_64-linux-gnu/libnss_nis-2.24.so
7f68ab994000-7f68ab995000 r--p 0000a000 08:01 7942400 /lib/x86_64-linux-gnu/libnss_nis-2.24.so
7f68ab995000-7f68ab996000 rw-p 0000b000 08:01 7942400 /lib/x86_64-linux-gnu/libnss_nis-2.24.so
7f68ab996000-7f68ab9aa000 r-xp 00000000 08:01 7942390 /lib/x86_64-linux-gnu/libnsl-2.24.so
7f68ab9aa000-7f68abbaa000 ---p 00014000 08:01 7942390 /lib/x86_64-linux-gnu/libnsl-2.24.so
7f68abbaa000-7f68abbab000 r--p 00014000 08:01 7942390 /lib/x86_64-linux-gnu/libnsl-2.24.so
7f68abbab000-7f68abbac000 rw-p 00015000 08:01 7942390 /lib/x86_64-linux-gnu/libnsl-2.24.so
7f68abbac000-7f68abbae000 rw-p 00000000 00:00 0
7f68abbae000-7f68abbb5000 r-xp 00000000 08:01 7942392 /lib/x86_64-linux-gnu/libnss_compat-2.24.so
7f68abbb5000-7f68abdb4000 ---p 00007000 08:01 7942392 /lib/x86_64-linux-gnu/libnss_compat-2.24.so
7f68abdb4000-7f68abdb5000 r--p 00006000 08:01 7942392 /lib/x86_64-linux-gnu/libnss_compat-2.24.so
7f68abdb5000-7f68abdb6000 rw-p 00007000 08:01 7942392 /lib/x86_64-linux-gnu/libnss_compat-2.24.so
7f68abdb6000-7f68abdc9000 r-xp 00000000 08:01 7955527 /lib/x86_64-linux-gnu/libbsd.so.0.8.3
7f68abdc9000-7f68abfc9000 ---p 00013000 08:01 7955527 /lib/x86_64-linux-gnu/libbsd.so.0.8.3
7f68abfc9000-7f68abfca000 r--p 00013000 08:01 7955527 /lib/x86_64-linux-gnu/libbsd.so.0.8.3
7f68abfca000-7f68abfcb000 rw-p 00014000 08:01 7955527 /lib/x86_64-linux-gnu/libbsd.so.0.8.3
7f68abfcb000-7f68abfcc000 rw-p 00000000 00:00 0
7f68abfcc000-7f68abff2000 r-xp 00000000 08:01 7942430 /lib/x86_64-linux-gnu/libtinfo.so.5.9
7f68abff2000-7f68ac1f1000 ---p 00026000 08:01 7942430 /lib/x86_64-linux-gnu/libtinfo.so.5.9
7f68ac1f1000-7f68ac1f5000 r--p 00025000 08:01 7942430 /lib/x86_64-linux-gnu/libtinfo.so.5.9
7f68ac1f5000-7f68ac1f6000 rw-p 00029000 08:01 7942430 /lib/x86_64-linux-gnu/libtinfo.so.5.9
7f68ac1f6000-7f68ac218000 r-xp 00000000 08:01 7955531 /lib/x86_64-linux-gnu/libncurses.so.5.9
7f68ac218000-7f68ac417000 ---p 00022000 08:01 7955531 /lib/x86_64-linux-gnu/libncurses.so.5.9
7f68ac417000-7f68ac418000 r--p 00021000 08:01 7955531 /lib/x86_64-linux-gnu/libncurses.so.5.9
7f68ac418000-7f68ac419000 rw-p 00022000 08:01 7955531 /lib/x86_64-linux-gnu/libncurses.so.5.9
7f68ac419000-7f68ac41c000 r-xp 00000000 08:01 7942362 /lib/x86_64-linux-gnu/libdl-2.24.so
7f68ac41c000-7f68ac61b000 ---p 00003000 08:01 7942362 /lib/x86_64-linux-gnu/libdl-2.24.so
7f68ac61b000-7f68ac61c000 r--p 00002000 08:01 7942362 /lib/x86_64-linux-gnu/libdl-2.24.so
7f68ac61c000-7f68ac61d000 rw-p 00003000 08:01 7942362 /lib/x86_64-linux-gnu/libdl-2.24.so
7f68ac61d000-7f68ac7b2000 r-xp 00000000 08:01 7942350 /lib/x86_64-linux-gnu/libc-2.24.so
7f68ac7b2000-7f68ac9b2000 ---p 00195000 08:01 7942350 /lib/x86_64-linux-gnu/libc-2.24.so
7f68ac9b2000-7f68ac9b6000 r--p 00195000 08:01 7942350 /lib/x86_64-linux-gnu/libc-2.24.so
7f68ac9b6000-7f68ac9b8000 rw-p 00199000 08:01 7942350 /lib/x86_64-linux-gnu/libc-2.24.so
7f68ac9b8000-7f68ac9bc000 rw-p 00000000 00:00 0
7f68ac9bc000-7f68ac9d2000 r-xp 00000000 08:01 7942370 /lib/x86_64-linux-gnu/libgcc_s.so.1
7f68ac9d2000-7f68acbd1000 ---p 00016000 08:01 7942370 /lib/x86_64-linux-gnu/libgcc_s.so.1
7f68acbd1000-7f68acbd2000 r--p 00015000 08:01 7942370 /lib/x86_64-linux-gnu/libgcc_s.so.1
7f68acbd2000-7f68acbd3000 rw-p 00016000 08:01 7942370 /lib/x86_64-linux-gnu/libgcc_s.so.1
7f68acbd3000-7f68accd6000 r-xp 00000000 08:01 7942379 /lib/x86_64-linux-gnu/libm-2.24.so
7f68accd6000-7f68aced5000 ---p 00103000 08:01 7942379 /lib/x86_64-linux-gnu/libm-2.24.so
7f68aced5000-7f68aced6000 r--p 00102000 08:01 7942379 /lib/x86_64-linux-gnu/libm-2.24.so
7f68aced6000-7f68aced7000 rw-p 00103000 08:01 7942379 /lib/x86_64-linux-gnu/libm-2.24.so
7f68aced7000-7f68ad049000 r-xp 00000000 08:01 7946946 /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.22
7f68ad049000-7f68ad249000 ---p 00172000 08:01 7946946 /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.22
7f68ad249000-7f68ad253000 r--p 00172000 08:01 7946946 /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.22
7f68ad253000-7f68ad255000 rw-p 0017c000 08:01 7946946 /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.22
7f68ad255000-7f68ad259000 rw-p 00000000 00:00 0
7f68ad259000-7f68ad260000 r-xp 00000000 08:01 7942417 /lib/x86_64-linux-gnu/librt-2.24.so
7f68ad260000-7f68ad45f000 ---p 00007000 08:01 7942417 /lib/x86_64-linux-gnu/librt-2.24.so
7f68ad45f000-7f68ad460000 r--p 00006000 08:01 7942417 /lib/x86_64-linux-gnu/librt-2.24.so
7f68ad460000-7f68ad461000 rw-p 00007000 08:01 7942417 /lib/x86_64-linux-gnu/librt-2.24.so
7f68ad461000-7f68ad466000 r-xp 00000000 08:01 6671025 /usr/lib/libss_ith.so.2.2.1
7f68ad466000-7f68ad665000 ---p 00005000 08:01 6671025 /usr/lib/libss_ith.so.2.2.1
7f68ad665000-7f68ad666000 r--p 00004000 08:01 6671025 /usr/lib/libss_ith.so.2.2.1
7f68ad666000-7f68ad667000 rw-p 00005000 08:01 6671025 /usr/lib/libss_ith.so.2.2.1
7f68ad667000-7f68ad698000 r-xp 00000000 08:01 7958256 /usr/lib/x86_64-linux-gnu/libedit.so.2.0.55
7f68ad698000-7f68ad898000 ---p 00031000 08:01 7958256 /usr/lib/x86_64-linux-gnu/libedit.so.2.0.55
7f68ad898000-7f68ad89a000 r--p 00031000 08:01 7958256 /usr/lib/x86_64-linux-gnu/libedit.so.2.0.55
7f68ad89a000-7f68ad89b000 rw-p 00033000 08:01 7958256 /usr/lib/x86_64-linux-gnu/libedit.so.2.0.55
7f68ad89b000-7f68ad89f000 rw-p 00000000 00:00 0
7f68ad89f000-7f68ad8b7000 r-xp 00000000 08:01 7942413 /lib/x86_64-linux-gnu/libpthread-2.24.so
7f68ad8b7000-7f68adab6000 ---p 00018000 08:01 7942413 /lib/x86_64-linux-gnu/libpthread-2.24.so
7f68adab6000-7f68adab7000 r--p 00017000 08:01 7942413 /lib/x86_64-linux-gnu/libpthread-2.24.so
7f68adab7000-7f68adab8000 rw-p 00018000 08:01 7942413 /lib/x86_64-linux-gnu/libpthread-2.24.so
7f68adab8000-7f68adabc000 rw-p 00000000 00:00 0
7f68adabc000-7f68adcf4000 r-xp 00000000 08:01 7954364 /usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.2
7f68adcf4000-7f68adef4000 ---p 00238000 08:01 7954364 /usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.2
7f68adef4000-7f68adf10000 r--p 00238000 08:01 7954364 /usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.2
7f68adf10000-7f68adf1f000 rw-p 00254000 08:01 7954364 /usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.2
7f68adf1f000-7f68adf23000 rw-p 00000000 00:00 0
7f68adf23000-7f68adf25000 r-xp 00000000 08:01 6671166 /usr/lib/libss_log.so.2.2.1
7f68adf25000-7f68ae124000 ---p 00002000 08:01 6671166 /usr/lib/libss_log.so.2.2.1
7f68ae124000-7f68ae125000 r--p 00001000 08:01 6671166 /usr/lib/libss_log.so.2.2.1
7f68ae125000-7f68ae126000 rw-p 00002000 08:01 6671166 /usr/lib/libss_log.so.2.2.1
7f68ae126000-7f68ae12b000 r-xp 00000000 08:01 6671011 /usr/lib/libss_idb.so.2.2.1
7f68ae12b000-7f68ae32a000 ---p 00005000 08:01 6671011 /usr/lib/libss_idb.so.2.2.1
7f68ae32a000-7f68ae32b000 r--p 00004000 08:01 6671011 /usr/lib/libss_idb.so.2.2.1
7f68ae32b000-7f68ae32c000 rw-p 00005000 08:01 6671011 /usr/lib/libss_idb.so.2.2.1
7f68ae32c000-7f68ae33d000 r-xp 00000000 08:01 6670953 /usr/lib/libss_ike.so.2.2.1
7f68ae33d000-7f68ae53c000 ---p 00011000 08:01 6670953 /usr/lib/libss_ike.so.2.2.1
7f68ae53c000-7f68ae53d000 r--p 00010000 08:01 6670953 /usr/lib/libss_ike.so.2.2.1
7f68ae53d000-7f68ae53e000 rw-p 00011000 08:01 6670953 /usr/lib/libss_ike.so.2.2.1
7f68ae53e000-7f68ae561000 r-xp 00000000 08:01 7942332 /lib/x86_64-linux-gnu/ld-2.24.so
7f68ae74b000-7f68ae756000 rw-p 00000000 00:00 0
7f68ae760000-7f68ae761000 rw-p 00000000 00:00 0
7f68ae761000-7f68ae762000 r--p 00023000 08:01 7942332 /lib/x86_64-linux-gnu/ld-2.24.so
7f68ae762000-7f68ae763000 rw-p 00024000 08:01 7942332 /lib/x86_64-linux-gnu/ld-2.24.so
7f68ae763000-7f68ae764000 rw-p 00000000 00:00 0
7ffc939fc000-7ffc93a1e000 rw-p 00000000 00:00 0 [stack]
7ffc93b22000-7ffc93b25000 r--p 00000000 00:00 0 [vvar]
7ffc93b25000-7ffc93b27000 r-xp 00000000 00:00 0 [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall]
/bin/bash: line 123: 2094 Aborted (core dumped) ikec -r filevpn -u user -p pass -a
ERROR: Job failed: exit code 1
151.75.108.49 (talk) 09:09, 30 June 2020 (UTC)
- You might be in the wrong place. This is the support desk for the MediaWiki wiki software. Taavi (talk!) 09:10, 30 June 2020 (UTC)
Private saveable sandbox
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hi is there a type of sandbox which is both private and where I can save my work without it being erased? Ch1p the chop (talk) 09:56, 30 June 2020 (UTC)
- Not much is private here---for that you would need to create your own mediawiki installation on your own server. Various hosting services may also have suitable options. Clump (talk) 13:27, 30 June 2020 (UTC)
- Thank you, I guessed as much. I think I'll go with the latter option. Thanks Ch1p the chop (talk) 13:34, 30 June 2020 (UTC)
Maintain
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.
Will the product help me achieve the following functionalities?
• convenient editing by many users • the ability to easily link to related pages and issues • the ability to paste images, links, etc., • the ability to view change history • possibility to search the content of pages (in the entire wiki) 194.181.90.90 (talk) 10:30, 30 June 2020 (UTC)
Continuous "Script error: No such module "Wikidata"."
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.
Afternoon all.
I've been getting a continuous "Script error: No such module "Wikidata"." error, despite having that module installed, whilst trying to use a "Template:Infobox project" on my wiki. I've tried re-exporting / importing the modules from Wikipedia several times to no avail, as well as re-importing the Infobox project template to see if that helped.
Any assistance would be greatly appreciated. \o Isinfier (talk) 16:28, 30 June 2020 (UTC)
- The Modules code can get pretty complicated. Wikipedia templates and modules are updated for the latest version of MediaWiki and your MediaWiki version is likely older than that one. It is possible that one of these templates/modules' updates caused the breaking change that made them unusable for your MediaWiki version. You can try importing an older revision of the template, maybe that will help, but no guarantees. AhmadF.Cheema (talk) 17:10, 30 June 2020 (UTC)
- I'll have to give that a shot then - I was under the impression that I had the most up-to-date version of MediaWiki, but from the sounds of it likely not. What's the best way to access an older revision as it stands? Isinfier (talk) 19:32, 30 June 2020 (UTC)
- Through the page's history. AhmadF.Cheema (talk) 18:19, 2 July 2020 (UTC)
Resim Silme
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.
Merhaba yükledigim şahsıma ait resmi kaldırmak istiyorum yardımcı olabilir misinz? 78.180.110.91 (talk) 18:48, 30 June 2020 (UTC)
- Whatever website this request is about, you need to contact that website. Malyacko (talk) 19:06, 30 June 2020 (UTC)
- MediaWiki is a software that many sites run on, this does not mean that the site you are referring to is run by the makers of Mediawiki wiki website software. Thousands of people use MediaWiki software to run third-party sites (owned by people not related to MediaWiki wiki website software), this help desk is for the MediaWiki software, not the third-party websites running on it. Please locate and contact the administrators of the site you are referring to and direct your questions to them. TiltedCerebellum (talk) 01:26, 6 July 2020 (UTC)
Resim kaldırmak istiyorum
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.
Merhaba şahsıma ait resmi kaldırmak istiyorum.
https://commons.wikimedia.org/wiki/File:2020-03-22_%C3%96S_8-43-18_(2).jpg NwJus (talk) 18:52, 30 June 2020 (UTC)
- @NwJus Welcome to the MediaWiki support desk which is for questions about the MediaWiki software. For content on other websites, you need to contact these websites. Malyacko (talk) 19:05, 30 June 2020 (UTC)
- MediaWiki is a software that many sites run on, this does not mean that the site you are referring to is run by the makers of Mediawiki wiki website software. Thousands of people use MediaWiki software to run third-party sites (owned by people not related to MediaWiki wiki website software), this help desk is for the MediaWiki software, not the third-party websites running on it. Please locate and contact the administrators of the site you are referring to and direct your questions to them. TiltedCerebellum (talk) 01:26, 6 July 2020 (UTC)