Project:Support desk

Jump to navigation Jump to search

About this board

Welcome to the MediaWiki Support desk, where you can ask MediaWiki questions!

(Read this message in a different language)

See also

Other places to ask for help:

Before you post

Post a new question

  1. To help us answer your questions, please indicate which versions you are using, as found on your wiki's Special:Version page:
    • MediaWiki version
    • PHP version
    • Database type and version
  2. 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.
  3. To start a new thread, click "Start a new topic".

How to intigrate a forum system into my mediawiki

4
Guillaume Taillefer (talkcontribs)

Hello, I would like to ask if anyone knows how to integrate a forum system into mediawiki (not just the typical discussion page thing on mediawiki and wikipedia, but would replace the discussion page for each page as well as have a general forum age), such as something like phpBB. Thanks

AhmadF.Cheema (talkcontribs)

See Extension:DPLforum (use-case examples are linked to at the bottom of that page). You can also try Extension:WikiForum, see if it still works.

In case there is going to be extensive use of forums on your site, maybe it would be better to use a separate dedicated forum application for this purpose, instead of relying on MediaWiki's less ideal solutions.

Guillaume Taillefer (talkcontribs)

I was planning on just relying on a separate application (probably phpBB), do you think it would be best if when you click on a discussion page link it will just like to the page of that discussion page in the application? For example if you were on article number 3450 and you click on discussion page then it would bring you to the forum page for article number 3450. Thanks

AhmadF.Cheema (talkcontribs)

I don't have much experience in this, but my guess would be that if the discussions are expected to be short, then StructuredDiscussions (this is the method used on this page) seems more comfortable for users, but if the discussions are going to be very detailed with lengthy walls of text, then the present default talk pages might be better.

I personally feel that with paginated (divided into multiple pages) forums like phpBB, casual users might not bother going through the trouble of clicking through each page. On the other hand, MediaWiki discussion pages have everything on one page, it isn't very aesthetic (can be helped through better skins), but casual users participation seems more likely.

Reply to "How to intigrate a forum system into my mediawiki"

Not sure how to make my site mobile friendly

1
RedKnight7 (talkcontribs)

I'm a Windows PC kind of guy with a tiny personal wiki (I'm the only editor). I'm making some new game content that will probably attract mostly folks using cellphones for browsing.

When I try to google about making my site mobile-friendly, I find lots of pages about "what to avoid". I don't need this (yet); I simply don't know how to make it mobile at all (yet).

It's hard to find something that just straight-up seems to say "use this to make your site mobile friendly". For example, when I go to Wikipedia, it looks better on my phone and I notice that all the URLs have a "m" in front of them (m.wikipedia.com). But I can't simply put an "m" in front of my little site's URL; it just breaks it.

Based on what I can infer, I am thinking I probably need Extension:MobileFrontend. Is that sort of the standard pick for "making your site mobile"?

If I do that, will it automatically sense mobile vs. PC users, and interact relative to that?

Thanks if you can help!

Reply to "Not sure how to make my site mobile friendly"

content in diferent languages

2
181.62.255.97 (talkcontribs)

hi

I want to make my wiki available in two languages, not by a translator, but writing the 2 pages myself, and then having the option for the user to simply switch an article between the 2 languages.

What is the best way to achieve this?

Bawolff (talkcontribs)
Reply to "content in diferent languages"

Mediawiki SSO: Table ‘simplesamlphp_kvatore’ already existed

7
Frizzow (talkcontribs)

Mediawiki 1.32.2 Php: 7.3.28 apache2handler Mariadb:10.2.33

Simplesamlphp extension: 1.35 (github)

Pluggableauth extension: 1.35(github) Simplesamlphp software:1.19.3

I’n trying to implement SSO in Azure AD for on prem

[acb3c984ef5311d0f7784f6f] /index.php/Special:PluggableAuthLogin PDOException from line 175 of E:\Apache24\htdocs\simplesamlphplib\lib\SimpleSAML\Store\SQL.php: SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'SimpleSAMLphp_kvstore' already exists Backtrace:

0 E:\Apache24\htdocs\simplesamlphplib\lib\SimpleSAML\Store\SQL.php(175): PDO->exec(string) 1 E:\Apache24\htdocs\simplesamlphplib\lib\SimpleSAML\Store\SQL.php(78): SimpleSAML\Store\SQL->initKVTable() 2 E:\Apache24\htdocs\simplesamlphplib\lib\SimpleSAML\Store.php(52): SimpleSAML\Store\SQL->__construct() 3 E:\Apache24\htdocs\simplesamlphplib\lib\SimpleSAML\SessionHandler.php(138): SimpleSAML\Store::getInstance() … .”


Anyone familiar with this error? My user id has just received CREATE Command permmission to create the table and once the access has been granted it shows that the table has already existed. Do you think i should drop the table and re-run again? I will need to get approval before do any changes on our database. Is there anything i need to be cautious when setting this up.

Let me know if its a different case.

Thanks

Seb35 (talkcontribs)

The MediaWiki extension SimpleSAMLphp does not maintain itself a database, and according to the paths it it the library SimpleSAMLphp which triggers this error, so you should search in their documentation.

Make working the library is 80% of the work (they have a test to verify it is working independently of MediaWiki), then, when it works, the MediaWiki extension can be connected through the library.

Frizzow (talkcontribs)

MediaWiki 1.32.2 PHP 7.3.28 (apache2handler) MariaDB 10.2.33-MariaDB-log PluggableAuth= 1.35 SimpleSAMLPhp=1.35


Checking your PHP installation Yes Required PHP Version >= 7.1. You run: 7.3.28 Yes Required Date/Time Extension Yes Required Hashing function Yes Required ZLib Yes Required OpenSSL Yes Required XML DOM Yes Required RegEx support Yes Required JSON support Yes Required Standard PHP Library (SPL) Yes Required Multibyte String Extension Yes Optional cURL (required if automatic version checks are used, also by some modules. Yes Optional Session Extension (required if PHP sessions are used) Yes Optional PDO Extension (required if a database backend is used) no Optional LDAP Extension (required if an LDAP backend is used) no Optional predis/predis (required if the redis data store is used) no Optional Memcache or Memcached Extension (required if a Memcached backend is used) Yes Recommended technicalcontact_email option set Yes Required auth.adminpassword option set


What I have tested: 1. The table above shows only 3 things are not available when I'm checking my PHP installation. We are not using LDAP extension and we did not setup for predis or memcache and not sure whether we need to install either two.

2. E:\Apache24\htdocs\simplesamlphplib\lib\SimpleSAML\Store\SQL.php: SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'SimpleSAMLphp_kvstore' already exists- this error only displayed when I change the datastore type from 'phpsession' to 'sql' in the config.php file. If I change back to phpsession, it will shows a different error to my wiki page" [57e819a89ff1f7965dc9f1f6] /index.php/Special:PluggableAuthLogin InvalidArgumentException from line 203 of E:\Apache24\htdocs\includes\session\SessionManager.php: Invalid session ID".

My configuration in config.php file are as below: 'store.type' => 'sql',

'store.sql.dsn' => 'mysql:host=xxx;port=xxxxdbname=xxxx', 'store.sql.username' => 'xxx', 'store.sql.password' => 'xxxx',

3. I have tested the authentication for default-sp and it redirects me to IDP. After entering my credentials, I've been redirected back to the test page with list of attributes. But, in simplesatlphpinstallation page, it already shows SAML 2.0 IDP as green and checked.

4. As for PHP Sanity page, everything is green and no error display.

5. In the federation tab, it shows our SAML 2.0 SP metadata and SAML 2.0 IdP Metadata (Trusted). It looks fine and I exchange the Metadata to IDP(Azure) and it has reflected in this page.

6. When I declare the PluggableAuth and SimpleSAMLphp extensions in localsettings.php, it was able to update in special version page. But now, I've commented out the code below since the library itself not working by showing E:\Apache24\htdocs\simplesamlphplib\lib\SimpleSAML\Store\SQL.php: SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'SimpleSAMLphp_kvstore' already exists

  1. PluggableAuth
  2. wfLoadExtension( 'PluggableAuth' );
  3. $wgPluggableAuth_EnableAutoLogin = false;
  4. $wgPluggableAuth_EnableLocalLogin = false;
  5. $wgPluggableAuth_EnableLocalProperties = false;
  6. $wgPluggableAuth_ButtonLabelMessage = "Login";
  7. $wgPluggableAuth_Class = 'SimpleSAMLphp';
  8. $wgGroupPermissions['*']['createaccount'] = true;
  9. $wgGroupPermissions['*']['autocreateaccount'] = true;
  1. SimpleSAMLphp
  2. wfLoadExtension( 'SimpleSAMLphp' );
  3. $wgSimpleSAMLphp_InstallDir = "E:\Apache24\htdocs\simplesamlphplib";
  4. $wgSimpleSAMLphp_AuthSourceId = "default-sp";
  5. $wgSimpleSAMLphp_RealNameAttribute = [ 'http://schemas.xmlsoap.org/ws/2005/05/identity/claims/givenname','http://schemas.xmlsoap.org/ws/2005/05/identity/claims/surname'];
  6. $wgSimpleSAMLphp_EmailAttribute = 'http://schemas.xmlsoap.org/ws/2005/05/identity/claims/mail';
  7. $wgSimpleSAMLphp_UsernameAttribute = 'http://schemas.xmlsoap.org/ws/2005/05/identity/claims/uid';

I'm not sure what else could be the misconfiguration in the simplesamlphp library that can cause the table to recreate. :(


User:Seb35

77.102.174.187 (talkcontribs)

Something wrong inpermation un evdendely display why something about topic

now the government private precaution behalf of the topic

Seb35 (talkcontribs)

I’m sorry, I have no idea how to solve it. In my case I used SQLite, perhaps you can try, it’s quick and simple: in config.php: 'store.type' => 'sql','store.sql.dsn' => 'sqlite:/tmp/sessions.sqlite',. In any case, store.type=phpsession is reported as non-working.

EDIT: well, /tmp is on Linux, obviously you have to adapt it on Windows.

This post was hidden by Bawolff (history)
77.102.174.187 (talkcontribs)

we have to hold the matter to clifiey the event

Reply to "Mediawiki SSO: Table ‘simplesamlphp_kvatore’ already existed"

Use visual editor in LAN-only mediawiki

3
RMisaki (talkcontribs)

So, I made a LAN-Only mediawiki for sharing of information about a project here that I don't want to make public

I tried enabling the visualeditor, but I had 3 problems with it:

The first one was a HTTP error, which I solved by enabling SSL on the server, the second one was a cURL error, because the SSL wasn't trusted, so I added the self-signed certificate as a trusted certificate to the apache2 configurations, but now I'm getting a HTTP 500 error which I'm not being able to find the source because it doesn't even get put into PHP error logs... So... How do I go about debugging it?

"Error contacting the Parsoid/RESTBase server (HTTP 500)"

Bawolff (talkcontribs)

Thats a restbase error so its more likely to be parsoid logs not php.


Newer versions of mediawiki use php parsoid i think (i havent fully kept up with it) which might be easier. Try using the latest version.

RMisaki (talkcontribs)

I am using the latest (or at least very recent) version with PHP Parsoid, but I don't know where to look for the error logs for Parsoid, if I knew what was causing the server error I'd go and fix it, but unfortunately, I don't have a clue...

Reply to "Use visual editor in LAN-only mediawiki"

linking existing contributions to new user account

1
Srgreene76 (talkcontribs)

I've been making modest contributions monthly for some time but evidently had not created a user name. Now that I've done that how do I connect my contributions to my log in so I stop seeing the fundraising requests? Thank you.

Reply to "linking existing contributions to new user account"

How do I host a wiki locally?

3
Wortwortwort3 (talkcontribs)

How can I host a wiki locally from my computer that only I can access? Maybe something similar to DokuWiki on a Stick

Fokebox (talkcontribs)

Some years ago I used Denwer for local server. I can install any CMS using it.

Bawolff (talkcontribs)

Generally the same way as you would install mediawiki on a server.


Install apache and php (i would suggest using sqlite for db in this case, which doesnt require installing anything),install mediawiki.

There are also docker images if you like docker.

Reply to "How do I host a wiki locally?"
BugDroid (talkcontribs)

hi


I installed 3 wikis on my hostgator hosting:

mypage.com/en.mywiki

mypage.com/es.mywiki

mypage.com/pool.mywiki


on the first 2 I removed the folders docs, extensions, includes, languages, maintenance, resources, skins, tests and vendor; in order to save space, according to Manual:Wiki family/pl#Multiple wikis sharing common resources

now I should create symlinks and modifiy some configuration files. I`m not sure how to do this. IMHO the instructions on the page above are rather confusing. Can someone shine some light on this please?

Reply to "wiki family symlinks"

Update Mediawiki 1.23.5 version to latest

4
Maddyyard (talkcontribs)

Hello there,

I would like to know is there a way to update my 1.23.5 of mediawiki to the latest stable version i.e 1.37? If so can you please help me.


Regards

Fokebox (talkcontribs)

And I would suggest to make update to LTS versions. 1.23.5 to 1.27 then to 1.31 then to 1.35.

As for 1.37 I tried to install it but I faced some php errors of this version.

Malyacko (talkcontribs)
Jonathan3 (talkcontribs)

Yes, that page says "Since Version 1.36, MediaWiki only commits to supporting upgrades from two LTS releases ago (see phab:T259771). Upgrades from older versions of MediaWiki will have to be performed in multiple steps. This means that if you want to upgrade to 1.36 from 1.23 or earlier, you'll first have to upgrade your 1.23 wiki to 1.27 (or 1.35), and, from 1.27 (or 1.35), you'll be able to upgrade to 1.36."

So you could either go from 1.23 --> 1.27 --> 1.37

or 1.23 --> 1.35 --> 1.37

Reply to "Update Mediawiki 1.23.5 version to latest"

Я подтверждаю свой email aleksejnetreba25681@gmail.com

2
2A00:1FA1:418A:A382:DD09:842F:9781:A638 (talkcontribs)

Я подтверждаю мой email aleksejnetreba25681@gmail.com почему мне не приходят Ваши сообщения на этот почтовый ящик

AhmadF.Cheema (talkcontribs)
Reply to "Я подтверждаю свой email aleksejnetreba25681@gmail.com"