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

Can I use the MediaWiki engine for a social media website that works similar to Facebook?

6
Sapphire Williams (talkcontribs)

I am planning to design a social media site that functions similar to Facebook but using the MediaWiki engine in addition to the Social tools and perhaps Semantic MediaWiki. I don't have any servers yet and I plan to learn PHP, HTML, and Javascript,. How it would work is that the website would have user profiles where they can edit their own profiles, and have personal name spaces for their messages, blogs, personal pages, and posts. Also the users are able to friend other users, and create and join groups, with the group having their own fourm and wiki pages in which the group members can edit, as well as having group chatrooms. Users can also create pages about their businesses and interests. MediaWiki would also be useful for special rights over each groups and the entire wiki. Perhaps I can research some extensions that can be useful, and if there isn't an extension that I need I can develop my own for the website.

Do you think MediaWiki can be used to create a social media site, and if so is it a good idea to use MediaWiki or give it any wiki functionality?

Sapphire Williams (talkcontribs)

And if any traditional social media site has used MediaWiki, may you please give me examples?

AhmadF.Cheema (talkcontribs)

Wouldn't it probably be much easier to use some forum, or better yet, social networking open source application for this purpose?

For all the things you will want in your social wiki, will require MediaWiki to be heavily modified while most of those should be available out-of-the-box for social networking applications.

To make a website successful, a lot of the work needs to be put into the content of the website. If you end up spending most of your time in learning "PHP, HTML, and Javascript" (I'm assuming you already don't have a working knowledge of them) and further customizing extensions, you are going to have no time left for the more important work needed to make a website popular.

See Social Networking and Forum applications for a relevant list. Discourse is one forum application that I think can do all the things you want to do, out-of-the-box.

Sapphire Williams (talkcontribs)

I have two questions: If I decide to make a wiki - based social media site, can I use a wiki engine other than MediaWiki?

Or can the above applications can be used with MediaWiki or other wiki engines?

This comment was hidden by Sapphire Williams (history)
AhmadF.Cheema (talkcontribs)

You can use other Wiki applications too, but you will have to look through the different services to see what fits your needs. I don't have the personal experience to be sure what would be the best fit for you.

Some things one type of application does better, while in other things another type of application is better. Mainly depends on what kind of a community you are trying to create.

Most of your needs in one way or another do get fulfilled by MediaWiki, but it doesn't provide the most smooth and intuitive user experience. For example, live chat extension for MediaWiki is not that impressive while other Social Networking applications and Discourse does much better. A good (but far from the best) chat implementation that I saw used with MediaWiki was a third-party chat application like the one you can see used on some sites for customer support. The feature to restrict all but one group of users from editing a particular page, although does get implemented by a few extensions, as far as I remember, all of them suffered from one issue or another.

It is also possible to use multiple web applications at the same time. For example, to have wiki.sitename.com as the Wiki part of the site and forum.sitename.com as the Forum. However, you might need a very supportive community to make such an implementation popular.

Reply to "Can I use the MediaWiki engine for a social media website that works similar to Facebook?"

Cannot start editing (create) Common.css

4
B.Shapoval (talkcontribs)

When I type mysitename/mediawiki/w/index.php?title=MediaWiki:Common.css (or MediaWiki:Common.css in serachbox) it shows "Internal Error". Lower in my language someyhing like "[WXcnzmRZrap6EUtZM1v@VwAAAUo] 2017-07-25 11:13:18: Exception cannot be solved «Symfony\Component\Process\Exception\RuntimeException» (Italic is my translation, not exactly). What can I do with this? MediaWiki:Sidebar is working at the same time.

AhmadF.Cheema (talkcontribs)

Do you have syntaxhighlighting enabled?

B.Shapoval (talkcontribs)

It is seen in Special:Version. How does it help me?

AhmadF.Cheema (talkcontribs)

Did you install the extension from Git?

If you did, then it requires composer installation too. Through SSH change to the directory containing the extension and run the following commands:

chmod a+x /pygments/pygmentize
composer install

If composer install, had been run once before and this time the extension was updated then run: composer update.

Reply to "Cannot start editing (create) Common.css"
68.185.215.47 (talkcontribs)

I have installed ImageMagick -- I went through the installation through PuTTy and it tells me that it is installed correctly, and I can see in the directory where it is, and I can see the convert in the place it's supposed to be, and my LocalSettings set $wgUseImageMagick to true and set the location. I doubled the $MaxShellMemory and tripled the $MaxShellTime Even after all this, GIF images refuse to create thumbnails at all, and still only 1 GIF thumbnail renders.

http://wikizilla.org/wiki/ShinGoji#First_Form

Here are the stats of the wiki. http://wikizilla.org/wiki/Special:Version --- Linux hosting. $wgCacheEpoch didn't work, and regardless I tried to upload small GIF images after I got ImageMagick and even those don't render properly.Manual:Image_administration#Image_thumbnailing I am guessing the two possible things I can have wrong are the "absolute path" for the $wg ImageMagick location thing, which is located outside of the /wiki/ folder ------- or that "the command is executable by the web server process," which I don't know what that means.

We've had this non-rendering GIFs problem for a year now, so please help me out.

Reply to "GIFs choose not to render."

How to make it so images appear at full size in search engines?

1
68.185.215.47 (talkcontribs)

Say I have a page with a gallery with all the images sized 120px. How do I make it so that these images appear at full size on Google Images, like they do on Wikia? If a gallery on Wikia also had images at 120px, their images would actually appear at their proper size.

Reply to "How to make it so images appear at full size in search engines?"

Improved search in deleted pages archive

1
MediaWiki message delivery (talkcontribs)

During Wikimedia Hackathon 2016, the Discovery team worked on one of the items on the 2015 community wishlist, namely enabling searching the archive of deleted pages. This feature is now ready for production deployment, and will be enabled on all wikis, except Wikidata.

Right now, the feature is behind a feature flag - to use it on your wiki, please go to the Special:Undelete page, and add &fuzzy=1 to the URL, like this: https://test.wikipedia.org/w/index.php?title=Special%3AUndelete&fuzzy=1. Then search for the pages you're interested in. There should be more results than before, due to using ElasticSearch indexing (via the CirrusSearch extension).

We plan to enable this improved search by default on all wikis soon (around August 1, 2017). If you have any objections to this - please raise them with the Discovery team via email or on this announcement's discussion page. Like most Mediawiki configuration parameters, the functionality can be configured per wiki. Once the improved search becomes the default, you can still access the old mode using &fuzzy=0 in the URL, like this: https://test.wikipedia.org/w/index.php?title=Special%3AUndelete&fuzzy=0

Please note that since Special:Undelete is an admin-only feature, this search capability is also only accessible to wiki admins.

Thank you! CKoerner (WMF) (talk) 18:36, 25 July 2017 (UTC)

Hur skapar man rubriker/kategorier, såsom diskografi, på en sida?

3
Popspark73 (talkcontribs)

Hej! 

Jag har tre frågor inför att vi inom kort kommer uppdatera In Deed /musikgrupps) Wikipedia-sida, då vi (In Deed) snart ska släppa ett nytt album! Hoppas någon kan svara på detta:

1) Andra bandsidor, t ex Brainpool Musikgrupp, finns kategorierna Medlemmar och diskografi. Hur skapar man dessa rubriker/kategorier när man uppdaterar?

2) Vi kommer göra en sida på engelska också. Gör man en ny sida då som man kopplar ihop? Hur funkar det? 

3) Vi vill gärna lämna ett bidrag till Wikipedias verksamhet. Hur går vi till väga då?

Tacksam för svar! 

//In Deed the band

AhmadF.Cheema (talkcontribs)

This support desk is primarily for support regarding technical issues related to the MediaWiki software on which Wikipedia runs.

For questions regarding the content on the Swedish Wikipedia, maybe you should ask here: https://sv.wikipedia.org/wiki/Wikipedia:Deltagarportalen.

Popspark73 (talkcontribs)

Aha, thanx!

Bachounda (talkcontribs)

How do I view a PDF file in my mediawiki?

I tried using PdfHandler and PDF Integrate without success.

I added the plugin to the server / and modified the LocalSettings.php file

you can see the specialpage in : http://wikiageing.org/index.php?title=%D8%AE%D8%A7%D8%B5:%D9%86%D8%B3%D8%AE%D8%A9

I forget a setting or what?

MacFan4000 (talkcontribs)

MediaWiki 1.23 is unsupported, we recomend upgrading.

Reply to "My PDF's Files cant viewed / Showed"
Starnikser (talkcontribs)

I want that instead of the name of the participant, at the entrance, another attribute from the database should be displayed. For example user_real_name. In the upper right corner. How to do it?

AhmadF.Cheema (talkcontribs)

Maybe Extension:Realnames will work?

Reply to "Display uname"

Trying to run Mediawiki on a Raspberry PI A ~20s loadtimes

1
81.96.127.254 (talkcontribs)

Hi, I'm trying to create a site on a Raspberry PI A running Raspbian, and whilst everything works, and pages are very slow, whether I'm logged in or not. I'm using Apache as the server, and postgres as the backend. I was wondering if I was doing something wrong, or if this hardware is just too light for this. The traffic on the site will be negligible, barely a few hits a day, almost none concurrent.

I don't really have enough memory to install memcached and I tried installing XHprof but couldn't work out how to do that on an RPi.

I've tried to install libapache2-mod-fcgid, (a replacement for fastcgi) in apache, and I've tried implementing some of the solutions in here; https://www.mediawiki.org/wiki/User:Aaron_Schulz/How_to_make_MediaWiki_fast

Here's the LocalSettings.php, any help you can offer would be appreciated, James

<?php
# This file was automatically generated by the MediaWiki 1.28.2
# installer. If you make manual changes, please keep track in case you
# need to recreate them later.
#
# See includes/DefaultSettings.php for all configurable settings
# and their default values, but don't forget to make changes in _this_
# file, not there.
#
# Further documentation for configuration settings may be found at:
# https://www.mediawiki.org/wiki/Manual:Configuration_settings

# Protect against web entry
if ( !defined( 'MEDIAWIKI' ) ) {
        exit;
}

## Uncomment this to disable output compression
# $wgDisableOutputCompression = true;

$wgSitename = "viewwiki";
$wgMetaNamespace = "Viewwiki";

## The URL base path to the directory containing the wiki;
## defaults for all runtime URL paths are based off of this.
## For more information on customizing the URLs
## (like /w/index.php/Page_title to /wiki/Page_title) please see:
## https://www.mediawiki.org/wiki/Manual:Short_URL
$wgScriptPath = "/viewswiki";

## The protocol and server name to use in fully-qualified URLs
$wgServer = "http://192.168.2.213:8080";

## The URL path to static resources (images, scripts, etc.)
$wgResourceBasePath = $wgScriptPath;

## The URL path to the logo.  Make sure you change this from the default,
## or else you'll overwrite your logo when you upgrade!
$wgLogo = "$wgResourceBasePath/images/HydrogenSonata.jpg";

## UPO means: this is also a user preference option

$wgEnableEmail = true;
$wgEnableUserEmail = true; # UPO

$wgEmergencyContact = "<blanked>";
$wgPasswordSender = "<blanked>";

$wgEnotifUserTalk = false; # UPO
$wgEnotifWatchlist = false; # UPO
$wgEmailAuthentication = true;

## Database settings
$wgDBtype = "postgres";
$wgDBserver = "127.0.0.1";
$wgDBname = "wikidb";
$wgDBuser = "wikiuser";
$wgDBpassword = "<blanked>";

# Postgres specific settings
$wgDBport = "5432";
$wgDBmwschema = "mediawiki";

## Shared memory settings
$wgMainCacheType = CACHE_ACCEL;
#changes 22nd
$wgSessionCacheType = CACHE_DB;
#Changed by JA 20th July
$wgUseFileCache = true;
$wgMessageCacheType = CACHE_ACCEL;
$wgCacheDirectory = '/var/www/apache/www/viewswiki/cache';
$wgUseLocalMessageCache =true;
$wgParserCacheType = CACHE_DB;
$wgUseGzip = true;
$wgEnableSidebarCache = true;
$wgDisableCounters = true;
$wgMiserMode = true;

$wgCompressRevisions = true;
$wgRevisionCacheExpiry =  3*24*3600;
$wgParserCacheExpireTime = 14*24*3600;


$wgMemCachedServers = [];

## To enable image uploads, make sure the 'images' directory
## is writable, then set this to true:
$wgEnableUploads = false;
$wgUseImageMagick = true;
$wgImageMagickConvertCommand = "/usr/bin/convert";

# InstantCommons allows wiki to use images from https://commons.wikimedia.org
$wgUseInstantCommons = false;

# Periodically send a pingback to https://www.mediawiki.org/ with basic data
# about this MediaWiki instance. The Wikimedia Foundation shares this data
# with MediaWiki developers to help guide future development efforts.
$wgPingback = true;

## 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
$wgShellLocale = "en_GB.utf8";

## Set $wgCacheDirectory to a writable directory on the web server
## to make your wiki go slightly faster. The directory should not
## be publically accessible from the web.
#$wgCacheDirectory = "$IP/cache";

# Site language code, should be one of the list in ./languages/data/Names.php
$wgLanguageCode = "en";

$wgSecretKey = "<blanked>";

# Changing this will log out all existing sessions.
$wgAuthenticationTokenVersion = "1";

# Site upgrade key. Must be set to a string (default provided) to turn on the
# web installer while LocalSettings.php is in place
$wgUpgradeKey = "<blanked>";

## For attaching licensing metadata to pages, and displaying an
## appropriate copyright notice / icon. GNU Free Documentation
## License and Creative Commons licenses are supported so far.
$wgRightsPage = ""; # Set to the title of a wiki page that describes your license/copyright
$wgRightsUrl = "https://creativecommons.org/licenses/by/4.0/";
$wgRightsText = "Creative Commons Attribution";
$wgRightsIcon = "$wgResourceBasePath/resources/assets/licenses/cc-by.png";

# Path to the GNU diff3 utility. Used for conflict resolution.
$wgDiff3 = "/usr/bin/diff3";

# The following permissions were set based on your choice in the installer
$wgGroupPermissions['*']['createaccount'] = false;
$wgGroupPermissions['*']['edit'] = false;

## Default skin: you can change the default skin. Use the internal symbolic
## names, ie 'vector', 'monobook':
$wgDefaultSkin = "DuskToDawn";

# Enabled skins.
# The following skins were automatically enabled:
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:
wfLoadExtension( 'Cite' );
wfLoadExtension( 'Gadgets' );
wfLoadExtension( 'ImageMap' );
wfLoadExtension( 'PdfHandler' );
wfLoadExtension( 'SyntaxHighlight_GeSHi' );
wfLoadExtension( 'WikiEditor' );


# End of automatically generated settings.
# Add more configuration options below.

wfLoadSkin( 'DuskToDawn' );
Reply to "Trying to run Mediawiki on a Raspberry PI A ~20s loadtimes"

Common.css ~ Where is it?

13
Summary by Ciencia Al Poder

MediaWiki:Common.css is a page on your wiki, not a file. See also Manual:Interface/Stylesheets. You can access it and edit it like any other page on your wiki, except that the edits are restricted to users with a specific right (usually sysops).

Codi727 (talkcontribs)

I guess I am dumber than a rock...I can't find the file common.css so I can do changes to it even though I have basically searched for a day and a half. Can someone please tell me where the file is located. I am using the current version 1.16.2 – 2011-02-01 and the Vector skin.

please email me with the info codi727@gmail.com

I appreciate any help you can give me.

Thanks

Codi

Reach Out to the Truth (talkcontribs)

Edit the page MediaWiki:Common.css on your wiki. If you want to change only the CSS for the Vector skin, edit the page MediaWiki:Vector.css.

Codi727 (talkcontribs)

There again I have found no file by the name of Vector.css in addition to common.css. I'm very new at setting up a Wiki so maybe I'm missing something. You say "Edit the page MediaWiki:Common.css on your wiki" NOW I'M ASSUMING I DO THAT WITH A PHP EDITOR NOT THROUGH THE "URL"

Reach Out to the Truth (talkcontribs)

No, I specifically chose the words "on your wiki" to tell you that you should be editing pages on your wiki. Do not edit any external files. Type MediaWiki:Common.css in your wiki's search box. It will bring you to that page. Click the edit button and add whatever you need to.

75.95.141.2 (talkcontribs)

Thanks for you clearer comeback....it really helped me greatly. Your assistance will always be appreciated by me.

Codi727

92.20.202.82 (talkcontribs)

Thanks so much for this!

Ядерный Трамвай (talkcontribs)

It's good that you notice "in search box". Because when I tried to type this in address bar, it show me error — there is no such file. This address contain "/w/", but would "/wiki/".

84.144.208.131 (talkcontribs)

I do not know where is Common.css.

Reach Out to the Truth (talkcontribs)

MediaWiki:Common.css

It's a page on your wiki, not a file.

80.201.121.202 (talkcontribs)

Be also sure to be logged with sysop permission otherwise the page is locked for changes.

Woiow (talkcontribs)

I made a change to my Common.css at WOIsite.com and I no longer can see my pages (I'm sure it was a dimension change that shows 'none'). I don't know how to change it back since I can't see the pages (see pic below).

Running current everything: http://i.imgur.com/12ccy.png

MarkAHershberger (talkcontribs)

You linked your site, but not your wiki. Could you start a new thread with a link directly to your wiki so that I can see your Common.css?