Project:Support desk

Jump to: navigation, search

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?

2
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?

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

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"

Cannot start editing (create) Common.css

1
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.

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

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?

Cannot save general settings, texts, or email templates

2
2A02:8388:6981:9E80:CABC:C8FF:FED6:C3B8 (talkcontribs)

I was given all the user rights necessary, but still, when I try to change something in general settings, text elements or email templates, by clicking the save-button (if there is one at all), it takes me back to the survey's main screen. When I enter general settings, email templates etc. again, none of my changes were saved.

I don't know what to do, I emptied the Cache, I tried with 2 different computers and 3 different browsers, nothing works.

AhmadF.Cheema (talkcontribs)

Is your question related to MediaWiki?

Reply to "Cannot save general settings, texts, or email templates"
77.108.66.140 (talkcontribs)

Hi, I have just install mediawiki-1.29.0 ( tryed 1.28.2, before... - same problem) on localhost OpenServer 5.2.2.

After sucessful instalation I copied LocalSettings.php, opened the start page and got the error:

Warning: md5_file(D:\soft\OpenServer64\OpenServer\domains\mediawiki/../resources/assets/wiki.png): failed to open stream: No such file or directory in D:\soft\OpenServer64\OpenServer\domains\mediawiki\includes\OutputPage.php on line 3802

Warning: OutputPage::transformFilePath: Failed to hash D:\soft\OpenServer64\OpenServer\domains\mediawiki/../resources/assets/wiki.png [Called from OutputPage::transformFilePath in D:\soft\OpenServer64\OpenServer\domains\mediawiki\includes\OutputPage.php at line 3804] in D:\soft\OpenServer64\OpenServer\domains\mediawiki\includes\debug\MWDebug.php on line 309

after this i make test file:

 <?php $hash = md5_file( "D:\soft\OpenServer64\OpenServer\domains\mediawiki\resources\assets\mediawiki.png" );

  echo $hash ?>

- same error

 <?php $hash = md5_file( "http://mediawiki/resources/assets/mediawiki.png" );

  echo $hash ?>

- without errors, md5_file is working

Why wediawiki using local paths ? it's normaly ?

how can I test transformFilePath() from OutputPage.php ?

I am a beginner in MW, please help me to start it.

Any advice would be appreciated, thanks

77.108.66.140 (talkcontribs)

http://mediawiki - is correct local domane name

Reply to "transformFilePath() or path problem"