Open main menu

MediaWiki β

Project:Support desk

About this board

Edit description
vde   Welcome to MediaWiki.org's Support desk, where you can ask MediaWiki questions!

There are also other places where to askCommunication: IRCCommunication#Chat, mailing listsMailing lists, Q&A etc.

Before you post

Post a new question

  1. To help us answer your questions, please always indicate which versions you are using (reported by your wiki's Special:Version page):
    • MediaWiki
    • PHP
    • Database
  2. Please include the URL of your wiki unless you absolutely can't. It's often a lot easier for us to identify the source of the problem if we can look for ourselves.
  3. To start a new thread, click "Start a new topic".
By clicking "Add topic", you agree to our Terms of Use and agree to irrevocably release your text under the CC BY-SA 3.0 License and GFDL

There’s a problem with this website’s security certificate

7
Ron Barker (talkcontribs)

Hi I have just installed mediaWiki on my computer running Windows 10. For some reason I cannot get rid of this error when I open my wiki: There’s a problem with this website’s security certificate

Thanks

Zoranzoki21 (talkcontribs)

On computer?

Ron Barker (talkcontribs)

Yes, on my 'computer'. In fact on my 'laptop'. This is a new laptop. I have mediawiki on my old laptop, although it is a bit out-of-date 1.15.4! Not sure how to transfer content, but that is for another day! Thanks.

83.135.231.12 (talkcontribs)

I think you are getting this warning, because new browser versions warn you in case of missing certificates. With the same browser version you would also get this warning, if you used the old wiki installation.

I think there are three options: Create your own, self-signed certificate. This does not cost you anything, but the browser might still complain that the certificate is not signed by a valid authority. The other option would be to buy a certificate - but I don't know if that is possible for localhost at all... Or - third option - maybe the browser can be configured to no longer complain.

For the content there is our manual: Manual:Moving a wiki.

MacFan4000 (talkcontribs)

Even better, get a LetsEncrypt certificate, which is free and not self signed. Also the latest versions of Safari/Chrome/Firefox don't give warnings for non ssl sites. It also sounds like you are trying to load via https://.

Ron Barker (talkcontribs)

Thank you all for the replies. Not sure I am capable of following the suggestion re 'certificates'.

Mac, yes, I do appear to be using https:// can I change it, and how? https://localhost/mediawiki/index.php/Main_Page

Cheers

MacFan4000 (talkcontribs)

try http://localhost/mediawiki/index.php/Main_Page

Reply to "There’s a problem with this website’s security certificate"
79.119.124.0 (talkcontribs)

Is it possible to integrate google translate with mediawiki?

Ciencia Al Poder (talkcontribs)

If google translate can be integrated with any website, then yes, it should be possible. Refer to the google translate docs.

Reply to "Google Translate"
Pmt-it (talkcontribs)

Hi,

I have exported my procedure from Bizagi Modeler 3.1 to Wiki and run with Mediawiki 1.28.

I added those settings below from my LocalSettings.php:

$wgGroupPermissions['*']['upload'] = true;

$wgFileExtensions = array('png','gif','jpg','jpeg','doc','xls','mpp','pdf','ppt','tiff','bmp','docx', 'xlsx', 'pptx','ps','odt','ods','odp','odg');

$wgEnableUploads = true;

$wgAllowImageTag = true;

I allow all rights for all users on the repository below:

/mediawiki/images

The problem is that no images are displayed on my procedure and the <img> tag html have no attribute "src" .

When I set $wgAllowImageTag = false; I can see that <img> tag html have the attribute src with the image path but the <img> html tag is reconized as a text.

Please, someone can help me with settings.

I think I forgot to set anything else.

Thanks for reply.

Regards

Ciencia Al Poder (talkcontribs)

$wgFileExtensions doesn't affect what kind of file you can add to img tag. The src attribute will be dropped if it's not a valid URL (<nokiki>http://servername/path/file.ext</nokiki>). You can't use UNC URLs nor relative URLs.

Reply to "Images and thumbnails not displayed"

Incorrect date displaying when not logged in

2
Graham Phillips 110 (talkcontribs)

Hi, could someone help with a problem with time and dates please?
I have created a number of "On this day" pages, with each one having a title with the format Month space Date, eg, "May 27", "June 1" etc.

I then added the line {{#ifexist:{{#time: F j}} | *[[{{#time: F j}} | On {{#time: F j}} in SVR history]] }} This checks to see if a page with today's date exists. If it does, it creates the link and adds it to a bulleted list, if not, it returns a blank. This worked fine when logged in, but always defaulted to the date of the last page edit when not logged in, presumably because the parser function takes "the time the page was last rendered into HTML."

I changed the line to {{#ifexist:{{CURRENTMONTHNAME}} {{CURRENTDAY}} | *[[{{CURRENTMONTHNAME}} {{CURRENTDAY}} | On {{CURRENTMONTHNAME}} {{CURRENTDAY}} in SVR history]] }} thinking this would force it to read the current date, but it's exactly the same. I've tried ...title=Main_Page&action=purge and that didn't fix it. It works perfectly when logged in, but as soon as I log out, it reverts back to the date of the last page edit.

Is there a way of fixing this please? It's on the front page and aimed at visitors who will probably not be logged in when they see it, so I could do with having it working properly. It's at www.svrwiki.com if you want to take a look.

Thanks in advance.

Graham

Ciencia Al Poder (talkcontribs)

You can use purgeList.php in a cron job to be executed once a day for the pages you want to purge. I don't think there's another solution.

Reply to "Incorrect date displaying when not logged in"

Trying to install PDFHandler and getting this error

3
Summary last edited by Olds98 23:48, 23 May 2017 3 days ago

Sorry, I couldn't figure out how to reply, I see now there was a link to reopen it.. I am not sure why it was closed in the first place.. I am at a halt here with this PDFHandler, does anyone know what this error means? I don't know where to go next.. thank you very much

Olds98 (talkcontribs)

Hey guys, I don't know whats going on here.. I tried posting yesterday and it said someone hid it? I installed PDFHandler and the three other packages required and even before installing the three packages I got this error now on the top of every page of my Wiki.. can someone help me? I know nothing about these Wiki's.. thanks! I am stuck!

Parameter 1 to PdfHandler::registerWarningModule() expected to be a reference -

MacFan4000 (talkcontribs)

Hi please don't keep creating duplicate tasks. I merely hid a blank comment.

2602:306:35A0:330:5C6A:B9F7:DA73:12F (talkcontribs)

Hi guys, I am really stuck here.. is there anyone that can help me with this? I don't know where else to go.. thank you for your time.

Reply to "Trying to install PDFHandler and getting this error"
NitaiDas (talkcontribs)

My problem is 3 fold

First, I can not figure out how to make the images available to all separete wikis. Technically it works fine, all images go to the same folder, and when entered in the source code they are viewable. But they show in Special:ListFiles only on the site that uploaded them.

Second, and similar, files uploaded on another wiki, or in the pool wiki, are not available in Visual Editor. Files uploaded on a particular site are available for that site only.

Third is explained below

Here is my settings

(Inside of require_once "......SharedWikiFamilySettings.php"; from LocalSettings.php)

$wgUploadNavigationUrl = 'http://pool.domain.org/index.php/Special:Upload';

$wgUseSharedUploads = true;

$wgSharedUploadPath = 'http://pool.domain.org/images';

$wgSharedUploadDirectory = '/home/domain/public_html/mediawiki/sites/images';

$wgHashedSharedUploadDirectory = true;

$wgUploadDirectory = "/home/domain/public_html/mediawiki/sites/images";

Now the 3rd problem is when i remove $wgUploadDirectory none of the sites are able to display the images.

I think everything is related and would appreciate any direction.

I am using Manual:Wiki family#Drupal-style sites on Ubuntu 16, Mediawiki 1.28.

Ciencia Al Poder (talkcontribs)

Apparently you need to set $wgSharedUploadDBname so the wikis can access the database where the shared uploads are uploaded.

The idea of using $wgSharedUpload* variables is that a central wiki is used for "shared uploads", but other wikis have independent upload directories, so particular uploads are listed only on each respective wiki (not in all of them at once).

NitaiDas (talkcontribs)

Ah ok, so there is no way to have images uploaded on one wiki be available on the other, or be automatically published on the central pool wiki (thereby available for all). Do I understand correctly?

Ciencia Al Poder (talkcontribs)

Apparently, you should disable uploads on the local wiki, comment out all config variables about uploads, and set up Manual:$wgForeignFileRepos#Using files from a database that you can access : ForeignDBRepo, ForeignDBViaLBRepo. You can set $wgUploadNavigationUrl to point to the central pool wiki. This way all uploads must be done in the central pool.

Reply to "Inter wiki images"

can't change user preferences on Special:Preferences

1
Summary by JaNeIEEE

I solved this problem, it was Semantic Glossary extension, that was causing trouble.

JaNeIEEE (talkcontribs)

MediaWiki 1.27.3

PHP 5.6.30 (apache2handler)

MySQL 5.6.36

Hello, I have a problem and no idea how to solve it, so I hope someone can help me here.

I have updated my MediaWiki from 1.24.0 to 1.27.3 and ran update.php script and after that all user preferences were set to default in MediaWiki, but in the database I can see custom preferences saved (in column up_property in user_properties table ).

If I go to Special:Preferences and change values, I get "Your preferences have been saved" message, but after the page loads, all values are set back to default.

In the database I can see new records, but in Mediawiki all values are set back to default.

Does anyone have an idea what is going wrong?

Thanks!

87.198.212.130 (talkcontribs)

Hi,

I'm seeing an error when I'm not logged into a wiki

Notice: Uncommitted DB writes (transaction from DatabaseBase::query (JobQueueDB::doGetSiblingQueuesWithJobs)). in C:\inetpub\wwwroot\WIKI\includes\db\Database.php on line 3306

I have recently upgraded from 1.23 to 1.27. This error started appearing after the upgrade.

Product Version
MediaWiki 1.27.2
PHP 5.6.22 (cgi-fcgi)
SQLite 3.8.10.2 with full-text search support
Lua 5.1.4

This error message appears only when I'm logged out of the wiki. out of the wiki.

Ciencia Al Poder (talkcontribs)

This is problematic to diagnose, see task T85762.

Apparently there are pending jobs on your wiki, try to run them through runJobs.php to discard the error is being caused by one of them.

Reply to "Notice: Uncommitted DB writes"

Mediawiki Issues in Namespaces and Extension

3
183.182.86.185 (talkcontribs)

Hello team,

We have Installed Mediawiki on the Linux system .But now we have facing some issues related to the Namespaces and Extension.

First of all , I want To create the Department wise Folder in the Mediawiki , but I am not able to do it and Secondly I am Not able to install the Extensions .

I am using Mediawiki 1.28.2

Can you please help me with this

Wargo (talkcontribs)

How do you do it? What do you mean by "folder"?

Osnard (talkcontribs)

Hi,

which extensions are you talking about exactly?

Regarding namespaces please have a look at Manual:Using_custom_namespaces. You can create a MediaWiki namespace for each department. if you want to have some simple access control, try Extension:Lockdown

--

Robert

Reply to "Mediawiki Issues in Namespaces and Extension"

How to fix slash (/) problem of the url rewrite in IIS8?

1
Summary by 星耀晨曦

The problem has been solved. I changed the rewrite rule into ^wiki/([^/]+/?[^/]*)/?$.

星耀晨曦 (talkcontribs)

I know this problem..But I don't know how to fix this problem in IIS.