i´ve installed Extension:MontserratFont , added localsettings configs, and i not have idea to activate in my wiki
Jump to navigation Jump to search
Reply to "How to change defaults fonts to MonserratFont extension"
Reply to "Mailer problem"
Reply to "404 not found when saving edits on MediaWiki under php-fpm/nginx"
Reply to "Create account/reset pwd timeouts and log-in failures"
Reply to "Migrating MYSQL to PSQL database"
Reply to "ファイルのアップロードにて"
Reply to "getting wikidata translation options into wikibase"
Reply to "help needed with Enabling sitelinks in Wikibase installation"
Reply to "Category tags list on top of the pages?"
How to change defaults fonts to MonserratFont extension
Installing the extension merely makes the font available. You need to call the font through sitewide CSS or inline HTML styling (eg < div style=“font-family:Montserrat;” >).
I just finished installing a fresh MediaWiki.
Every time I try to get my email confirmed, I get the following message:
... could not send your confirmation mail. Please check your email address for invalid characters.
Mailer returned: Unknown error in PHP's mail() function.
Email address is correct.
Enabled logs but no luck there. No file was created.
Any help is welcome!
check that the server has an mta installed (eg sendmail, qmail, etc) and configured correctly.
Or just use manual:$wgSMTP instead
404 not found when saving edits on MediaWiki under php-fpm/nginx
I was running MediaWiki on Apache with mod_php, but I switched over to php-fpm on nginx.
The preview works successfully, but actually saving an edit causes a 404 not found error to be reported by nginx. I am wondering if something might be deadlocked in the database, and the fastcgi_pass to php-fpm is not producing any output.
No permanent damage, because it is possible to reload the page or navigate back to it, and find that one's edits were in fact saved.
Otherwise, php-fpm on nginx seems to be somewhat faster and use less resources than the "standard" Apache/mod_php solution.
Create account/reset pwd timeouts and log-in failures
I have a mediawiki v1.34 over at https://wiki.vintagestory.at/ and rather suddenly I can no longer log in with my account. I get the message "Incorrect username or password entered. Please try again.".
I did not change my password. I also unsuccessfully tried to fix it using the direct database modification as suggested here: Manual:Resetting passwords#Direct database modification
Attempting to create an account or reset the password results in a timeout after a long time of loading. I can verify that it is not due to the SMTP settings.
This is all super weird to me and I have no idea on how to debug this. I'm the owner of the site so I can access all the files and database, if more information is needed.
Thanks for reading!
i guess the timeout could be if pbkdf2 config had too many rounds ($wgPasswordConfig), but that would be really weird, so maybe its not that.
Thank you for the response, Bawolff, I have not changed the value of $wgPasswordConfig. Are you aware of any debug option that would help me narrow down the cause?
Ops, i was not logged in it seems
i mean, always check your error log just in case. If you are getting timeouts, you could try enabling profiling to see where mediawiki is getting stuck.
Migrating MYSQL to PSQL database
In this weekend I've tried to migrate a mediawiki server, to a new one.
My main problem is to migrate the database, from MYSQL to PSQL. Is there any solution to move all the data from one database to another, without losing data? I've tried to convert it using pgloader, but without success.
I tried to import and export all the images, posts and users but i have a problem at UserExport plugin too.
Thank you for help!
Is "PSQL" the same as "PostgreSQL"?
Yes, is a PostgreSQL server. Sorry for abbreviations.
Sadly, PostgreSQL has also some differences in schema, like for example the user table which is named "mwuser" in PostgeSQL.
Than, is there any way to move all the content from one database to another one without losing data?
Maybe using importing and exporting plugins? I observe that UserExport plugin is not working on version 1.25, the version that is running on the old server. I could try to upgrade it (to 1.27 or newer) and try to export them after.
After this I can try to export all the images and all the pages, but i'm not sure if in this process we will lose some information.
I'm not sure if there's documentation somewhere about the schema differencies between PSQL and mysql, which you could use to rename tables or fields as needed. the mwuser table is one of them that I'm aware of. You can try doing that change on your converted database and see if there's something else that breaks...
Another option can be to install MediaWiki on a new PSQL database just to create the schema, and then try to import the data from the old database. If you encounter errors, those would be from differencies in schema, that you can fix as you encounter them. Be sure to use the same MediaWiki version your're using now, to not introduce schema differencies caused by a version upgrade. Then you could do a normal MediaWiki upgrade to get the latest version.
I will try this approach.
@Iradum, sorry for reviving this old thread, but did you ever manage to migrate to Postgres? I'm struggling with it too, using pgloader. Thanks.
アップロード時に「[Xk58ZdHgMN9BfQErIWwzvAAAAAk] 2020-02-20 12:32:37: 種別「Error」の致命的例外」と
$wgShowExceptionDetails = true;」を設定します LocalSettings.phpで。
$wgShowExceptionDetails = true;」を設定したところ、
Error from line 160 of /includes/libs/mime/XmlTypeCheck.php: Class 'XMLReader' not found
$wgShowExceptionDetails = true;を追記
Error from line 160 of /includes/libs/mime/XmlTypeCheck.php: Class 'XMLReader' not found
3. このページ（Topic:Ss6fra8fvfjz7ut0）を参考後、現行のphp7.0がそのままの状態で、再インストール（CentOS 7、PHP7.0 環境）
yum install --enablerepo=remi-php70 php-xml systemctl restart nginx systemctl restart php-fpm
$ php PHP Warning: Module 'dom' already loaded in Unknown on line 0 PHP Warning: Module 'SimpleXML' already loaded in Unknown on line 0 PHP Warning: Module 'xml' already loaded in Unknown on line 0
vi /etc/php.ini ;extension=xml.so ;extension=dom.so ;extension=simplexml.so systemctl restart php-fpm systemctl restart nginx
サムネイルの作成エラー: /bin/bash: /usr/bin/convert: No such file or directory
これは Imagemagick を入れていないことが原因でした。
yum install ImageMagick yum install ImageMagick-devel vi /etc/php.ini extension=imagick.so
$wgUseImageMagick = true; #$wgImageMagickConvertCommand = 'C:/ImageMagick/convert.exe'; # for windows $wgImageMagickConvertCommand = '/usr/bin/convert'; # for linux
getting wikidata translation options into wikibase
There are 2 terms Wikidata does in terms of cross-lange searching that my wiki-repo which used Wikibase and ULS extension does NOT do:
- it gives cross-language results in the search box dropdown, eg my settings are set to English, yet when I search for "organisatie", a Dutch word, the search dropdown here gives as the 4th result the English word "organization" with the Dutch word "organisatie" in brackets behind it. My wiki-repo does not do this.
- it gives cross-language results in the search results. Again, settings to English, when i search for "organisatie" and press enter, the search results give English results with the Dutch translation behind it with "Dutch" in small italic letters superscript. My wiki-repo does not do this. It DOES list the English item in the search results, but it does not list the Dutch translation behind it with "Dutch" in small italic letters superscript.
Just to note: in my own repo i do have the item "organization" both in English and with the Dutch translation "organisatie", just as on Wikidata.
Can anyone help me in getting these great features that are present on Wikidata also onto my wiki-repo?
help needed with Enabling sitelinks in Wikibase installation
Hi all, i need some help with Enabling the sitelinks in my Wikibase installation. I have Wikimedia 1.34 and Wikibase 1.34 installed.
I am trying to follow this guideline: Wikibase/Installation#Enable Sitelinks but i'm stuck. I followed the instructions in step 1 to create the custom groups in my LocalSettings.php. There was no such entry yet in the LocalSettings.php file, so i made a new one. This appears to have worked. I used this code:
$wgWBRepoSettings['siteLinkGroups'] = [ 'Wikidata', 'Wikimedia Commons', 'MediaWiki', 'Wikispecies', 'Wikibooks', 'Wikimania', 'Wikinews', 'Wikipedia', 'Wikiquote', 'Wikisource', 'Wikiversity', 'Wikivoyage', 'Wiktionary', 'OpenStreetMap', 'other sites' ];
However, then in Step 2 i am instructed to Localize these groups. I did that by creating a page, for example, for <domain name>/wiki/MediaWiki:Wikibase-sitelinks-Wikimedia_Commons and by writing "Wikimedia Commons" on that page. If i understand the guideline correctly, this is supposed to change the heading for Wikimedia Commons from "⧼wikibase-sitelinks-Wikidata⧽" to "Wikimedia Commons". However, when i go to a random item on my wiki page, this sitelink still looks like this ""⧼wikibase-sitelinks-Wikidata⧽". So i am wondering if i did something wrong.
In step 3 i am instructed to add the sitelinks to my repo-wiki, but here i really do not know what to do. The instructions are unclear to me, i'm not sure what edit where, even with the specific instructions that Step 3 refers to.
Any help would be much appreciated!!
Edit: the problem of step 2 is solved - it took a while for the changes to become visible, but now the names are changed. Problem of Step 3 remains: the instructions there are a mystery to me.
Category tags list on top of the pages?
Is it possible to get the Category tags list on top instead on the bottom of the pages?
I guess you could shift it with jQuery.
contribute to "Support 'maps' parameter in TemplateData GUI editor"
Related to GSoC project.
Hi! I am Soumya Rao from India. I am a sophomore at Indira Gandhi Delhi Technical University for Women. I am well versed in web development. I would like to contribute to "Support 'maps' parameter in TemplateData GUI editor" project. Please guide me through the process.
Hi and welcome @Soumyaa.rao. Nobody knows what the "Support 'maps' parameter in TemplateData GUI editor" project is without any further information. (Maybe this is related to Outreach programs somehow?) Please also see How to become a MediaWiki hacker#Feedback, questions and support regarding your last sentence. Thanks a lot!
It looks like this: Google_Summer_of_Code/2020#Support_'maps'_parameter_in_TemplateData_GUI_editor. The instructions state: "Express your interest in working on a project by commenting on the corresponding task on Wikimedia Phabricator." See task T208305.
@Soumyaa.rao In addition to what @Jonathan3 said, you can ask general program-related questions in the Wikimedia Zulip chat:https://wikimedia.zulipchat.com/#narrow/stream/220258-gsoc20-outreachy20
@Soumyaa.rao Good luck :-)