Project:Support desk/Flow/2011/03
This page is an archive. |
Please ask questions on the current support desk. |
This page used the LiquidThreads extension to give structured discussions. It has since been converted to wikitext, so the content and history here are only an approximation of what was actually displayed at the time these comments were made. |
(SOLVED) Maintenance Script, rebuildall.php, where are the database info calls etc
I asked my host to run the rebuildall.php maintenance script and they cam back and said "we can't run that as you are on a shared server and that will run on all databases on the server". Yeah right, as if anyone would be stupid enough to write code like that. Anyway, I have been trying to work out which part of the code it goes off to get the details from the admin configuration file etc, and I can't work it out. I want to educate the "help" person that it wont do what they think it will. Means I wont have to do it via longer ways in the future. Any insight? Dr DBW | talk 02:26, 1 March 2011 (UTC)
- Take a look at Maintenance.php.
- Sounds like it's time to find a new host. —Emufarmers(T|C) 04:51, 1 March 2011 (UTC)
- Thanks for the reply.
- Opps, sorry should have said I have v 1.14 (yes, need to get around to updating), and Maintenance.php didn't make an appearance until 1.16. In rebuildall.php for v 1.14 it has the following:
/** */
require_once( "commandLine.inc" );
#require_once( "rebuildlinks.inc" );
require_once( "refreshLinks.inc" );
require_once( "rebuildtextindex.inc" );
require_once( "rebuildrecentchanges.inc" );
$dbclass = 'Database' . ucfirst( $wgDBtype ) ;
$database = new $dbclass( $wgDBserver, $wgDBadminuser, $wgDBadminpassword, $wgDBname );
- D'oh, now I see it, it comes via commandLine.inc, there are calls in that to the various configuration file. Dr DBW | talk 23:09, 1 March 2011 (UTC)
Got to have [ 'mw' is undefined ] error message
Hi all,
MediaWiki 1.15.1 / PHP 5.3.0 / MySQL 5.1.37
After running clear_stat.php script I got to have below message for every page in IE.
'mw' is undefined
index.php Line7
Code:0 Char:1
URL: http://........
Please help me to fix it.
Thanks in advance. 152.62.44.58 (talk) 04:55, 1 March 2011 (UTC)
Kangmin 05:05, 1 March 2011 (UTC)
- Looks like you've copy-pasted into your site or user JS something that requires a later version of MediaWiki. Go to error location (sorry, don't remember how to do that in IE) and find out what causes that error. Max Semenik 08:21, 1 March 2011 (UTC)
Adding structure via fieldset (html tag)
MediaWiki 1.16.2 PHP 5.2.11 (apache2handler) MySQL 5.0.77
I am trying to use <fieldset> and <legend> tags in wiki articles alongside wikitext. To make things more strained I'm trying to make the legend element compatible with the wikitext headlines.
The rationale is, I'd like to document to the bit, in a very clear fashion, some binary file formats and data structures. My hope is to arrive at a feasible system which can be adopted for this purpose once and for all. The thinking is, the wiki document headline model is a little too unstructured, or at least, the structure is not explicitly evident. The hope is to make things a little more presentable with an encapsulated presentation...
A table is not really a capsule. The fieldset model does a good job of encapsulation. Think, nested "tables" with each table only having one cell. It can be argued that doing that with tables is an abuse of tables (much like table page layouts)
I'd prefer myself if there was a wikitext way to do this. Seems like a simple lightweight treatment of the table syntax would be in order. At present, fieldset and legend are not included in Sanitizer.php. I've added them for this purpose. Btw, fieldset and legend are used on pages such as "recent changes"; in fact that was the first place I had ever seen a fieldset element.
I first tried naively to make a template around this, but it was obvious the transclusion model upon which templates depend would not be able to generate headlines for an article, and was not an ideal way to encapsulate large amounts of wikitext.
For now I've experimented with just manually placing html tags in the article. Along with some clever CSS, this does get the job done. But it's a little intimidating to editors. The highly technical pages however are not meant to be maintained by casual/novice editors. So it's not a big wooping deal.
The only problem is the parser refuses to play nice. Placing arbitrary opening/closing p tags throughout the page where the html is used. There doesn't seem to be a way to arrange the html tags in the article to work around this. If not for all the permitted tags in the Sanitizer.php file, I'd guess that mixing html and wikitext was a big no no. So at this point, A) I'm wondering if the parser is just not respecting the new tags the way it would other block tags, because they've not been fully integrated somehow (you'd think MediaWiki would know better than to nest blocks in p's period) or if B) I should setup some kind of tag hook in order to filter out the malformed html generated by MediaWiki.
Either way, I strongly encourage MediaWiki developers to integrate fieldsets into wikitext. The fieldset is a clean way to present all kinds of information, and would probably even have something to add to the likes of Wikipedia.
Please advise me any way you can. I'd really like to make this work, non-invasively as possible.
PS: The concept is simple. In short, each headline becomes a block with a border, nested within the headline above it. Non-headline fieldsets are cool too. If you've never heard of fieldset, there's an illustration at w3schools. Will include links to the page I'm experimenting with if desirable. 67.54.192.52 (talk) 05:27, 1 March 2011 (UTC)
- BUMP I SUPPOSE,
- Is there a better place to being looking for guidance with this sort of thing?
- Thanks 72.173.160.50 02:51, 3 March 2011 (UTC)
Parser removing valid HTML from the output of extension
I am trying to format the html that this extension below is writing. But for some weird reason, the parser keeps removing the closing
tag even though the html does not have any bugs.
Is there a way to tell the parser to stop trying to sanitize the html output? It is rendering the html invalid. To me this looks like a bug.
MediaWiki 1.16.0 PHP 5.2.14 (cgi) MySQL 5.1.48
Here is the code: the closing
after the
at the end of the while statement is getting chopped off.
<?php
/*
* Installation:
* require_once("extensions/PHPBB_ShowForum/PHPBB_ShowForum.php"); in LocalSettings.php
* update $phpbbDBSERVER, $phpbbDBUSER, $phpbbDBUSERPW, $phpbbDBNAME, $phpbb_home, $phpbb_icon_path
* Usage:
* <phpbb_forum>forumID|Number of post|Background Color</phpbb_forum>
*
* @version 0.2 marcolino7
*
* 0.2 - Added Path for the Icon
* Disabled Caching
* 0.1 - Initial Release
*
* http://www.mediawiki.org/wiki/Extension:PHPBB_ShowForum
*/
if( !defined( 'MEDIAWIKI' ) ) {
echo( "This is an extension to the MediaWiki package and cannot be run standalone.\n" );
die( -1 );
}
// Extension credits that will show up on Special:Version
$wgExtensionCredits['parserhook']['PHPBB_ShowForum'] = array(
'name' => 'PHPBB Show Forum',
'version' => '0.2',
'author' => 'marcolino7, [http://www.mediawiki.org/wiki/User:Marcolino7]',
'description' => 'Link to Show PHPBB Forum in MediaWiki',
'url' => ''
);
$wgExtensionFunctions[] = "wfPHPBBExtension";
function wfPHPBBExtension() {
global $wgParser;
$wgParser->setHook( "phpbb_forum", "showForum" );
}
function showForum( $input, $argv, &$parser) {
$phpbbDBSERVER="localhost";
$phpbbDBUSER="DBUser";
$phpbbDBUSERPW="DBPassword";
$phpbbDBNAME="DBname";
$phpbbDBPrefix="phpbb_";
$phpbb_home = "<your forum home>";
$phpbb_icon_path = "templates/subSilver/images/folder.gif";
# --------------------------------------------
//Disabling Cache
$parser->disableCache();
//Split input in 2 Parameters
list($forumID, $topicID, $postLimit) = split('[|.-]', $input);
$link = mysql_connect($phpbbDBSERVER,$phpbbDBUSER ,$phpbbDBUSERPW);
if ( !$link ) { return "<hr><b>Error while connecting to host \"$phpbbDBSERVER\" !</b><hr>"; }
$db_selected = mysql_select_db($phpbbDBNAME, $link);
if (!$db_selected) {return "<hr><b>Error while selecting database \"$phpbbDBNAME\" !</b><hr>"; }
$sql = "SELECT p.post_subject, p.post_text, p.topic_id, p.post_id, p.post_time, p.forum_id,
p.post_username, u.username as user, u.user_id as id, u.user_avatar as avatar, u.user_avatar_width as width, u.user_avatar_height as height
FROM
". $phpbbDBPrefix ."posts AS p,
". $phpbbDBPrefix ."users AS u
WHERE p.topic_id in ( $topicID )
AND p.poster_id = u.user_id
AND p.forum_id in ( $forumID )
ORDER BY p.post_id DESC
LIMIT 0, $postLimit";
$qryres = mysql_query($sql);
if (!$qryres) { return "<hr><b>Error while MySQL Query :". mysql_error() ;}
$out = "<div id=\"comments\"><h3>Comments</h3><ol class=\"commentlist\">";
$row_count = 0;
//Cycle inside recordset and populate page
while ($row = mysql_fetch_row($qryres))
{
$out = $out . "<li class=\"comment byuser comment-author even thread-even depth-1\" id=\"li-comment\">
<div id=\"comment\"><div class=\"comment-author vcard\">
<img alt='' src=\"".$phpbb_home."download/file.php?".$row[9]."\" class=\"avatar avatar-40 photo\" height=\"".$row[11]."\" width=\"".$row[10]."\" />
<cite class=\"fn\"><a href= \"".$phpbb_home."profile.php?mode=viewprofile&u=".$row[8]."\">".$row[7]."</a></cite> <span class=\"says\">says:</span></div>
<div class=\"comment-meta commentmetadata\"><a href=\"".$phpbb_home."viewtopic.php?f=$forumID&t=".$row[2]."#".$row[3]."\">".$row[0]."</a>
".date("D, d M Y H:i",$row[4])."</div>
<div class=\"comment-body\">".$row[1]."</div></li>
";
} //End While
$out = $out . "</ol><br>Post a Comment</div>";
mysql_free_result($qryres);
return $out;
}
?>
71.198.88.229 (talk) 06:57, 1 March 2011 (UTC)
membership software integration
Hello, I'd like to know if there is any membership software that can be integrated into MediaWiki. I'd like to use MediaWiki as a closed environment to build content and then offer such content to free and paid subscribers using a membership software.
I have found mention here, but as a non tech savvy person don't understand much about it.
http://amember.com/forum/showthread.php?t=11574&highlight=mediawiki http://amember.com/forum/showthread.php?t=12959&highlight=mediawiki http://amember.com/forum/showthread.php?t=5260&highlight=mediawiki http://amember.com/forum/showthread.php?t=5169&highlight=mediawiki http://amember.com/forum/showthread.php?t=3801&highlight=mediawiki
Thank you Hagane~mediawikiwiki (talk) 14:00, 1 March 2011 (UTC)
Add text to footer
Hi!
I'd like to add a completely different text in the footer, something like "i love u" (along with "disclaimer", "lastmod").
I looked here: "http://www.mediawiki.org/wiki/Footer" and I found out how to change "$wgRightsText", but it's not what I'm looking for (it displays "Content is available under" before the text).
I've tried this way too, but it doesn't work either:
$footerlinks = array( 'copyright', 'lastmod', 'i love u', "i love u", 'disclaimer', ); $validFooterLinks = array();
I'd like to simply add some more text to this footer...seems easy, but I may have my blond moment...
Thanks! 89.246.214.0 (talk) 14:57, 1 March 2011 (UTC)
- I forgot to say I'm running MW v 1.16 ... 89.246.214.0 14:59, 1 March 2011 (UTC)
- If you use Vector skin, open Vector.php, find the following code:
<!-- footer --> <div id="footer"<?php $this->html('userlangattributes') ?>>
- and place your text just after that. 176.36.143.169 19:10, 19 August 2012 (UTC)
Edit / Hide sections of Mediawiki
I was wondering if it were at all possible to hide portions of the top and side bars in Mediawiki. For my purposes, I'm using a Mediawiki frame within another page, and I just find it a bit redundant and cluttering to have multiple links to the same thing on the same page. 24.113.175.159 (talk) 16:38, 1 March 2011 (UTC)
- That is possible.
- I'm not very familiar with the matter, but you might find what you are looking for in the skins-section: Skins
- Maybe there even is a suitable skin in the: Manual:Gallery_of_user_styles Sidcom 23:35, 1 March 2011 (UTC)
(Worked around) Custom tables with css
Hi
I want to change the styles of the wikitables (those created with {| |- and so on). I can do this, by adding a "table" design to my skin main.css.
But: this means every "table" in the wiki will have this design, which messes up all the other tables that are built in, like e.g. the login mask, recent changes, the TOC,...
I don't really have a clue, how to best go on about this. My thought was, to introduce an "id" that all markup-created tables should get. I suppose I could find a way to do that in the wiki sourcefiles, but there's another problem. We already have an id for tables in use. So my thought was to go into the Sanitizer.php and somehow make it check if: along the way comes a "table" element. If so, check if it has an id. If not, add the new "standarttable" id.
Well... obviously I don't really know how to do that exactly, otherwise I wouldn't ask :/
Also, maybe someone knows a better way :) Sidcom (talk) 23:30, 1 March 2011 (UTC)
- No need to change the core files at all.
- Edit MediaWiki:Common.css on your wiki and add something like
table.standardtable { yourstyles: go here; }
- Depending on what styles you want it to have you may find the build-in
.wikitable
good enough:
Head | Top |
---|---|
Content | Middle |
{| class="wikitable" !Head !Top |- |Content |Middle |}
- It does mean you have to use "class=wikitable" everywhere but I think that's worth it since in some cases you may want to use tables without this styling. (eg. for infoboxes) Krinkle 23:46, 1 March 2011 (UTC)
- Thanks Krinkle.
- It's kind of what I want to do anyway. Still, I'd rather have this "class..." added automatically, because ... well, tables should be skinable by default and since they are not, I want it even more ;)
- I guess, I'll at least give it a try and if it messes up, I can still go back to manually adding it. Anyway, any help on this is still welcomed. Sidcom 10:36, 2 March 2011 (UTC)
- You can use the descendant selector. I believe the content is in the div #bodyContent, so you should be able to do
- -- Bryan (talk|commons) 13:14, 2 March 2011 (UTC)
#bodyContent table { }
- That's a good idea, but the bodycontent isn't specific enough. Most of the tables, I don't want to be effected, will still be in the bodycontent-div - and I believe they are not created by wikimarkup (e.g.: the login mask), so that seems the best starting point to me. Sidcom 13:42, 2 March 2011 (UTC)
- If you want it to be added by default use the "edit toolbar" buttons.
- Edit your MediaWiki:Common.js and add the following:
/** ** Add custom edit toolbar buttons **/ if ( $.isArray( window.mwCustomEditButtons ) ) { mwCustomEditButtons[mwCustomEditButtons.length] = { 'imageFile': 'http://upload.wikimedia.org/wikipedia/commons/0/04/Button_array.png', 'speedTip': 'Insert new wikitable', 'tagOpen': '{| class="wikitable"\n|-\n', 'tagClose': "\n|}", 'sampleText': "! head 1\n! head 2\n! head 3\n|-\n| row 1, cell 1\n| row 1, cell 2\n| row 1, cell 3\n|-\n| row 2, cell 1\n| row 2, cell 2\n| row 2, cell 3" }; }
- Clicking this button will insert:
- Krinkle 20:49, 2 March 2011 (UTC)
{| class="wikitable" ! head 1 ! head 2 ! head 3 |- | row 1, cell 1 | row 1, cell 2 | row 1, cell 3 ..etc.. |}
- Hehe, thx Krinkle - again: that's what I had in mind (as Plan B) :D
- Plus thx for taking the effort and coding it out (or pasting the whole thing).
- I'll still give hard coding a try, but if it doesn't work out, those suggestions will do the trick pretty fine :) Sidcom 22:35, 2 March 2011 (UTC)
problems with update.php
I have recently installed the Facebook option... when I run maintenance/update.php I continuously get a fatal error. The following is the response I get.
Any suggestions?
Going to run database updates for wikipla1_wp Depending on the size of your database this may take a while! Abort with control-c in the next five seconds (skip this countdown with --quick) ... 0 ...have ipb_id field in ipblocks table. ...have ipb_expiry field in ipblocks table. ...already have interwiki table ...indexes seem up to 20031107 standards ...hitcounter table already exists. ...have rc_type field in recentchanges table. ...have user_real_name field in user table. ...querycache table already exists. ...objectcache table already exists. ...categorylinks table already exists. Already have pagelinks; skipping old links table updates. ...il_from OK ...have rc_ip field in recentchanges table. ...image primary key already set. ...have rc_id field in recentchanges table. ...have rc_patrolled field in recentchanges table. ...logging table already exists. ...have user_token field in user table. The watchlist table is already set up for email notification. ...watchlist talk page rows already present ...user table does not contain old email authentication field. ...page table already exists. ...have log_params field in logging table. logging table has correct log_title encoding. ...have ar_rev_id field in archive table. ...have page_len field in page table. revision timestamp indexes already up to 2005-03-13 ...rev_text_id already in place. ...have rev_deleted field in revision table. ...have img_width field in image table. ...have img_metadata field in image table. ...have user_email_token field in user table. ...have ar_text_id field in archive table. ...page_namespace is already a full int (int(11)). ...ar_namespace is already a full int (int(11)). ...rc_namespace is already a full int (int(11)). ...wl_namespace is already a full int (int(11)). ...qc_namespace is already a full int (int(11)). ...log_namespace is already a full int (int(11)). ...have img_media_type field in image table. ...already have pagelinks table. No img_type field in image table; Good. Already have unique user_name index. ...user_groups table already exists. ...user_groups is in current format. ...have ss_total_pages field in site_stats table. ...user_newtalk table already exists. ...transcache table already exists. ...have iw_trans field in interwiki table. ...trackbacks table already exists. ...wl_notificationtimestamp is already nullable. ...timestamp key on logging already exists. ...have ipb_range_start field in ipblocks table. Setting page_random to a random value on rows where it equals 0...changed 0 rows ...have user_registration field in user table. ...templatelinks table already exists ...externallinks table already exists. ...job table already exists. ...have ss_images field in site_stats table. ...langlinks table already exists. ...querycache_info table already exists. ...filearchive table already exists. ...have ipb_anon_only field in ipblocks table. Checking for additional recent changes indices... ...index `rc_ns_usertext` seems ok. ...index `rc_user_text` seems ok. ...have user_newpass_time field in user table. ...redirect table already exists. ...querycachetwo table already exists. ...have ipb_enable_autoblock field in ipblocks table. Checking for backlinking indices... Checking if pagelinks index pl_namespace includes field pl_from... ...index pl_namespace on table pagelinks seems to be ok Checking if templatelinks index tl_namespace includes field tl_from... ...index tl_namespace on table templatelinks seems to be ok Checking if imagelinks index il_to includes field il_from... ...index il_to on table imagelinks seems to be ok ...have rc_old_len field in recentchanges table. ...have user_editcount field in user table. ...page_restrictions table already exists. ...have log_id field in logging table. ...have rev_parent_id field in revision table. ...have pr_id field in page_restrictions table. ...have rev_len field in revision table. ...have rc_deleted field in recentchanges table. ...have log_deleted field in logging table. ...have ar_deleted field in archive table. ...have ipb_deleted field in ipblocks table. ...have fa_deleted field in filearchive table. ...have ar_len field in archive table. ...have ipb_block_email field in ipblocks table. Checking for categorylinks indices... Checking if categorylinks index cl_sortkey includes field cl_from... ...index cl_sortkey on table categorylinks seems to be ok ...have oi_metadata field in oldimage table. ...usertext,timestamp key on archive already exists. ...usertext,timestamp key on image already exists. ...usertext,timestamp key on oldimage already exists. ...have ar_page_id field in archive table. ...have img_sha1 field in image table. ...protected_titles table already exists. ...have ipb_by_text field in ipblocks table. ...page_props table already exists. ...updatelog table already exists. ...category table already exists. Populating category table, printing progress markers. Fatal error: Out of memory (allocated 12058624) (tried to allocate 90 bytes) in /home/wikipla1/public_html/includes/LocalisationCache.php on line 616 Wikiplan~mediawikiwiki (talk) 03:28, 2 March 2011 (UTC)
How to clear large number of New Messages?
Been awhile since I have been here, and in that time the New Messages feature has appeared. And as a result, I have over 1,200 new message for me and I cannot clear them. Going to the new messages page, it take forever to load then I get a popup asking if want to stop the script as it is not responding. On that then partially loaded page, if I click on mark all as read button, then again it takes ages then comes up with an error that the server is having some issues / is overloaded, try again later.
How can I clear this backlog of messages? Dr DBW | talk 03:34, 2 March 2011 (UTC)
- "Mark all as read", at the top of the page. Reach Out to the Truth 04:18, 2 March 2011 (UTC)
- As I already noted in my message, pressing that button results in a time out and gives an error. It does not work. Dr DBW | talk 21:46, 2 March 2011 (UTC)
- Oh, right. Sorry, I thought you were clicking the button on individual posts. You could try disabling JavaScript and clicking the button on each individual posts, but that would cause a full page reload after marking each post and take a long time. Reach Out to the Truth 22:34, 2 March 2011 (UTC)
- And it is now going past 1,300 messages!!!!!! Arrrggghhhhh ;-)+ Dr DBW | talk 23:03, 2 March 2011 (UTC)
- You should remove the LQT-enabled pages from your watchlist until this is resolved. It won't remove the message notifications that you've already received, but it will prevent new ones from being added. Also disable "Watch threads that I create or reply to" in your preferences. Reach Out to the Truth 23:20, 2 March 2011 (UTC)
- And it is now going past 1,300 messages!!!!!! Arrrggghhhhh ;-)+ Dr DBW | talk 23:03, 2 March 2011 (UTC)
- Oh, right. Sorry, I thought you were clicking the button on individual posts. You could try disabling JavaScript and clicking the button on each individual posts, but that would cause a full page reload after marking each post and take a long time. Reach Out to the Truth 22:34, 2 March 2011 (UTC)
- As I already noted in my message, pressing that button results in a time out and gives an error. It does not work. Dr DBW | talk 21:46, 2 March 2011 (UTC)
- I've filed two bugs about this, bug 27983 and bug 27984, but I don't have an immediate solution for you, unfortunately. —Emufarmers(T|C) 22:57, 10 March 2011 (UTC)
- Thanks.
- It has gone over 2,000 now. Dr DBW | talk 21:55, 22 March 2011 (UTC)
- OK, just coming back today and it is listing the number of messages as 422, vast improvement on what it was previously. Trying to load the message page to see if I can use it now, clear things out etc. Though it is loading as I type this and it taking quite a long time so far ..... Dr DBW | talk 21:31, 30 March 2011 (UTC)
- OK, just coming back today and it is listing the number of messages as 422, vast improvement on what it was previously. Trying to load the message page to see if I can use it now, clear things out etc. Though it is loading as I type this and it taking quite a long time so far .....
- Don't really understand why I am still getting messages though, all of the settings that send my notifications is off.
- OK, finally the message page loaded, but still ended up with a warming about script not responding, continue or stop it. Then clicking on the mark all as read, again comes up with the script error the the servers are experiencing a technical problem. Also tried it using IE browser (normally use FF), same deal. Seems that this is an issue exclusive to me. Thankfully doesn't impact on my use of the mediawiki site. Dr DBW | talk 21:31, 30 March 2011 (UTC)
Upload file / Upload Multiple files problem and a hidden error for WikiEditor extension
MediaWiki 1.17wmf1
PHP 5.2.12 (apache)
MySQL 5.0.90-log
I changed the location of my wiki site from /domainname.com/www/wiki to /domainname.com/www to have my site accessible just from the domainname.com address. After that I run webinstall again and /maintenance/rebuildall.php. I changed links in LocalSettings.php
Everything seems to work fine except two things:
1. When Upload a file or try to upload multiple files I have got the following internal error:
key 'nr18v590ge8l35sttb090ccpr65s77q.' is not in a proper format
Backtrace:
- 0 /home/u19329/hdlwiki.com/www/includes/upload/UploadBase.php(634): UploadStash->stashFile('/home/u19329/hd...', Array, NULL)
- 1 /home/u19329/hdlwiki.com/www/includes/upload/UploadBase.php(646): UploadBase->stashSessionFile(NULL)
- 2 /home/u19329/hdlwiki.com/www/includes/specials/SpecialUpload.php(367): UploadBase->stashSession()
- 3 /home/u19329/hdlwiki.com/www/includes/specials/SpecialUpload.php(461): SpecialUpload->showUploadWarning(Array)
- 4 /home/u19329/hdlwiki.com/www/includes/specials/SpecialUpload.php(192): SpecialUpload->processUpload()
- 5 /home/u19329/hdlwiki.com/www/includes/SpecialPage.php(579): SpecialUpload->execute(NULL)
- 6 /home/u19329/hdlwiki.com/www/includes/Wiki.php(250): SpecialPage::executePath(Object(Title))
- 7 /home/u19329/hdlwiki.com/www/includes/Wiki.php(63): MediaWiki->handleSpecialCases(Object(Title), Object(OutputPage), Object(WebRequest))
- 8 /home/u19329/hdlwiki.com/www/index.php(114): MediaWiki->performRequestForTitle(Object(Title), NULL, Object(OutputPage), Object(User), Object(WebRequest))
- 9 {main}
2. I checked the site log file provided by my host company and found the following error:
[Wed Mar 2 09:27:49 2011] [error] PHP Warning: filemtime() [<a href='function.filemtime'>function.filemtime</a>]: stat failed for /home/u19329/hdlwiki.com/www/wiki/extensions/WikiEditor/modules/./images/toc/grip.png in /home/u19329/hdlwiki.com/www/includes/resourceloader/ResourceLoaderFileModule.php on line 363
There were more lines regarding different files. In fact the WikiEditor extension works fine and I don't understand where and why does this error come from. It seems that there is a problem with a path since it changed from /wiki to /*.
I would appreciate any help to solve these problems? Thanks in advance Arkasha (talk) 06:53, 2 March 2011 (UTC)
Clearing out the image archive ie, getting rid of old image revisions and just keeping the latest version
Hi,
I was running a scheduled maintenance command, (eg '/maintenance/importImages.php --overwrite /images folder') while I was getting my images sorted out during a Wiki migration/upgrade. However I discover now that I have many archive versions of each file which are not needed.
So now that the Wiki is running well and there's no need for all those old images, how do I simply purge/delete them all?
Can I simply delete the 'wiki/images/archive' directory ? Will it recreate the archive from scratch?
What is the best method to do this ?
Many thanks....
marc 192.171.130.51 (talk) 09:33, 2 March 2011 (UTC)
Output: I have 2 blank lines before <!DOCTYPE
- MediaWiki 1.16.2
- PHP 5.3.2-1ubuntu4.7 (apache2handler)
- MySQL 5.1.41-3ubuntu12.7
My Problem is the following: I have two blank lines before the <!Doctype, which makes XML output not possible when using the api... Im using the Skin "Vector".
My Wiki is used in our Intranet so i cant send a link, but here is the beginning of the page source:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html lang="de" dir="ltr">
<head>
<title>AT-Portal – AT-wiki</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="MediaWiki 1.16.2" />
<link rel="canonical" href="/at-wiki/index.php/AT-Portal" />
194.187.160.94 (talk) 14:00, 2 March 2011 (UTC)
- Check your LocalSettings.php or any other file you've edited for whitespace or byte order marks before the initial <?php. Max Semenik 16:25, 2 March 2011 (UTC)
- Another possible cause is the closing of <?php in LocalSettings.php, leave it unclosed, the file should not end with
?>
Krinkle 20:50, 2 March 2011 (UTC)
upload_tmp_dir - MediaWiki ignores php specified path
- MediaWiki 1.17wmf1
- PHP 5.2.12 (apache)
- MySQL 5.0.90-log
- There is a problem with a temporary folder path resolving.
- Php on server side sets this directive as following:
- upload_tmp_dir = /home/XXXXX/hdlwiki.com/tmp
- and
- open_basedir = /home/XXXXX/
- However Wiki ignores these directives and tries to use /var/tmp
- which is out of the allowed path.
- This warning I received during Wiki installation:
Warning: is_dir() [function.is-dir]: open_basedir restriction in effect.
File(/tmp) is not within the allowed path(s): (/home/XXXXX/) in /home/XXXXX/hdlwiki.com/www/config/Installer.php on line 474
Warning: Your session.save_path value (/tmp) appears to be invalid or is not writable.
PHP needs to be able to save data to this location for correct session operation.
- As a result I cannot upload files by url. The system returns an error:
Warning: tempnam() [<a href='function.tempnam'>function.tempnam</a>]: open_basedir restriction in effect.
File(/var/tmp/) is not within the allowed path(s): (/home/XXXXX/)in/home/XXXXX/hdlwiki.com/www/includes/upload
/UploadFromUrl.php on line 101
- What can be a solution for such problem. Arkasha (talk) 17:17, 2 March 2011 (UTC)
- Set the TMP (or TEMP or TMPDIR) environment variables for what you want your temp directory. (for the upload by url error)
- For the install error, this can be caused if php is configured to store session files in the temp directory (sesssion.save_path in your php.ini). This should cause logins to not work at all, but perhaps only mediawiki is dissallowed, and php session handlers don't have the open_basedir restriction. If you get that warning when installing, but can still log in after the install is done, then the warning is in error, and is a bug in the installer (should probably file a bug about it). Bawolff 02:43, 9 March 2011 (UTC)
- Where should I set TMP variable?
- I have these in my LocalSettings.php
$wgEnableUploads = true; $wgAllowCopyUploads = true; $wgUploadPath = "{$wgScriptPath}/images"; $wgUploadDirectory = "{$IP}/images"; $wgTmpDirectory = "{$wgUploadDirectory}/temp"; $wgGroupPermissions['sysop']['upload_by_url'] = true;
- and I still have the above mentioned error. The folders for uploads are all writable. The Special:Upload shows Could not create temporary file. in red. Arkasha 10:55, 9 March 2011 (UTC)
- putenv("TMP={$wgUploadDirectory}/temp");
- UploadFromUrl appears to not support wgTmpDirectory, I believe this is a bug. -- Bryan (talk|commons) 14:06, 9 March 2011 (UTC)
- Really I'd consider it a bug in wfTempDir() function. Imports, and diffs (depending on config) are also affected. Bawolff 21:35, 9 March 2011 (UTC)
- I still see the problem in MediaWiki 1.41.1
- If you can edit webserver site, you need to configure PHP's sys_temp_dir (this is the server's variable MediaWiki uses!)
- If you can only edit CMS files, the only workaround is to add
$wgTmpDirectory = ini_get('upload_tmp_dir');
- to LocalSettings.php Narcis Garcia (talk) 08:49, 21 May 2024 (UTC)
- @Narcisgarcia that is actually very useful information. I have added it to Manual:Configuring_file_uploads#Make_sure_uploads_are_enabled_in_PHP. I do note that this essentially means you have a PHP setup that was not properly configured and you should report to your hoster. A PHP site that cannot make any tmp files is not a well functioning php installation. —TheDJ (Not WMF) (talk • contribs) 12:31, 30 May 2024 (UTC)
Put text below category output?
Hi all,
is it possible to put Text or images below the category output. Normally the pages that are in the category are listet after all text. But now I would like to add some text below the list of pages.
Thanks! 87.79.208.189 (talk) 18:37, 2 March 2011 (UTC)
$IP - Where do i have to put that?
I have the three lines in the config/index.php:
# Attempt to set up the include path, to fix problems with relative includes $IP = dirname( dirname( __FILE__ ) ); define( 'MW_INSTALL_PATH', $IP );
As my provider told me i have to put the include path manually in this file my quetsion: Where do i have to put this exactly? Can somebody give me an example? Mirko Marhenke (talk) 18:55, 2 March 2011 (UTC)
- Didn't you provide all the details using the installation script? See Manual:Config_script Dr DBW | talk 21:51, 2 March 2011 (UTC)
- Maybe i don't understand it to 100%. My provider told me to include '/home/strato/www/na/www.name.de/htdocs' - but where do i have to put that? Do i have to point there with my webbrowser or do i have to put that in the config/index.php oder config/installer.php? Thanks for a little help ;o) Djmirko 06:28, 3 March 2011 (UTC)
- You shouldn't have to define $IP anywhere, unless your provider did something weird. If that's the case you should ask your provider. Reach Out to the Truth 06:35, 3 March 2011 (UTC)
- @Dr DBW: I had a look on the instructions, yes, but it's quit not working for me. So this is why i am asking the questions above. Djmirko 11:38, 3 March 2011 (UTC)
- You need to provide more information. What didn't work? What did you try? What was the error? What are you trying to do? Dr DBW | talk 21:19, 3 March 2011 (UTC)
- I am trying to install into a new and fresh db.
- mediawiki 1.16.2
- PHP 5.2.17
- database: mysql 5.0.91
- After running the installation by following the installationguide the follwing appears:
- PHP 5.2.17 installed
- Found database drivers for: MySQL SQLite
- PHP server API is cgi-fcgi; using ugly URLs (index.php?title=Page_Title)
- Have XML / Latin1-UTF-8 conversion support.
- Warning: Your session.save_path value (;/var/tmp) appears to be invalid or is not
- writable. PHP needs to be able to save data to this location for correct session
- operation.
- PHP's memory_limit is 104M bytes.
- Couldn't find eAccelerator, APC or XCache; cannot use these for object caching.
- GNU diff3 not found.
- Found ImageMagick: /usr/bin/convert; image thumbnailing will be enabled if you enable
- uploads.
- Found GD graphics library built-in.
- Installation directory: /mnt/web3/10/92/5517492/htdocs/c_helmstedt-wiki
- Script URI path: /c_helmstedt-wiki
- Installing MediaWiki with php file extensions
- Environment checked. You can install MediaWiki.
- Generating configuration file...
- Database type: MySQL
- Loading class: DatabaseMysql
- Attempting to connect to database server as U859543...success.
- Connected to mysql 5.0.91-log; enabling MySQL 4.1/5.0 charset mode
- Database DB859543 exists
- There are already MediaWiki tables in this database. Checking if updates are needed...
- ...ipblocks table does not exist, skipping new field patch
- ...ipblocks table does not exist, skipping new field patch
- ...already have interwiki table
- Notice: Trying to get property of non-object in
- /mnt/web3/10/92/5517492/htdocs/c_helmstedt-wiki/includes/db/DatabaseMysql.php on line
- 264
- Warning: mysql_num_fields(): supplied argument is not a valid MySQL result resource in
- /mnt/web3/10/92/5517492/htdocs/c_helmstedt-wiki/includes/db/DatabaseMysql.php on line
- 264
- Fatal error: Call to a member function isMultipleKey() on a non-object in
- /mnt/web3/10/92/5517492/htdocs/c_helmstedt-wiki/maintenance/updaters.inc on line 329 Djmirko 05:42, 4 March 2011 (UTC)
- That's not a new and fresh db. —Emufarmers(T|C) 06:17, 5 March 2011 (UTC)
- OK, my fault. Sorry. Now i deleted the old db and created a fresh one. That runs better but results the following:
PHP 5.2.17 installed Found database drivers for: MySQL SQLite PHP server API is cgi-fcgi; using ugly URLs (index.php?title=Page_Title) Have XML / Latin1-UTF-8 conversion support. Warning: Your session.save_path value (;/var/tmp) appears to be invalid or is not writable. PHP needs to be able to save data to this location for correct session operation. PHP's memory_limit is 104M bytes. Couldn't find eAccelerator, APC or XCache; cannot use these for object caching. GNU diff3 not found. Found ImageMagick: /usr/bin/convert; image thumbnailing will be enabled if you enable uploads. Found GD graphics library built-in. Installation directory: /mnt/web3/10/92/5517492/htdocs/c_helmstedt-wiki Script URI path: /c_helmstedt-wiki Installing MediaWiki with php file extensions Environment checked. You can install MediaWiki. Generating configuration file... Database type: MySQL Loading class: DatabaseMysql Attempting to connect to database server as U864315...success. Connected to mysql 5.0.91-log; enabling MySQL 4.1/5.0 charset mode Database DB864315 exists Creating tables... done. Populating interwiki table... done. Initializing statistics... Created sysop account admin. Creating LocalSettings.php... Warning: fopen(LocalSettings.php) [function.fopen]: failed to open stream: Permission denied in /mnt/web3/10/92/5517492/htdocs/c_helmstedt-wiki/config/Installer.php on line 1351 Couldn't write out LocalSettings.php. Check that the directory permissions are correct and that there isn't already a file of that name here... Here's the file that would have been written, try to paste it into place manually: <?php # This file was automatically generated by the MediaWiki 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: # http://www.mediawiki.org/wiki/Manual:Configuration_settings # If you customize your file layout, set $IP to the directory that contains # the other MediaWiki files. It will be used as a base to locate files. if( defined( 'MW_INSTALL_PATH' ) ) { $IP = MW_INSTALL_PATH; } else { $IP = dirname( __FILE__ ); } $path = array( $IP, "$IP/includes", "$IP/languages" ); set_include_path( implode( PATH_SEPARATOR, $path ) . PATH_SEPARATOR . get_include_path() ); require_once( "$IP/includes/DefaultSettings.php" ); if ( $wgCommandLineMode ) { if ( isset( $_SERVER ) && array_key_exists( 'REQUEST_METHOD', $_SERVER ) ) { die( "This script must be run from the command line\n" ); } } ## Uncomment this to disable output compression # $wgDisableOutputCompression = true; $wgSitename = "MyWiki"; ## 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 please see: ## http://www.mediawiki.org/wiki/Manual:Short_URL $wgScriptPath = "/c_mywiki"; $wgScriptExtension = ".php"; ## The relative URL path to the skins directory $wgStylePath = "$wgScriptPath/skins"; ## The relative URL path to the logo. Make sure you change this from the default, ## or else you'll overwrite your logo when you upgrade! $wgLogo = "$wgStylePath/common/images/wiki.png"; ## UPO means: this is also a user preference option $wgEnableEmail = true; $wgEnableUserEmail = true; # UPO $wgEmergencyContact = "myname@website.de"; $wgPasswordSender = "myname@website.de"; $wgEnotifUserTalk = true; # UPO $wgEnotifWatchlist = true; # UPO $wgEmailAuthentication = true; ## Database settings $wgDBtype = "mysql"; $wgDBserver = "rdbms.strato.de"; $wgDBname = "mydbname"; $wgDBuser = "myusername"; $wgDBpassword = "mypassword"; # MySQL specific settings $wgDBprefix = "mw_"; # MySQL table options to use during installation or update $wgDBTableOptions = "ENGINE=InnoDB, DEFAULT CHARSET=binary"; # Experimental charset support for MySQL 4.1/5.0. $wgDBmysql5 = true; ## Shared memory settings $wgMainCacheType = CACHE_NONE; $wgMemCachedServers = array(); ## To enable image uploads, make sure the 'images' directory ## is writable, then set this to true: $wgEnableUploads = false; $wgUseImageMagick = true; $wgImageMagickConvertCommand = "/usr/bin/convert"; ## 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_US.UTF-8"; ## If you want to use image uploads under safe mode, ## create the directories images/archive, images/thumb and ## images/temp, and make them all writable. Then uncomment ## this, if it's not already uncommented: # $wgHashedUploadDirectory = false; ## If you have the appropriate support software installed ## you can enable inline LaTeX equations: $wgUseTeX = false; ## 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"; $wgLocalInterwiki = strtolower( $wgSitename ); $wgLanguageCode = "de"; $wgSecretKey = "af48ba7cec44badc781edfe3fab9e51f04849cbe5394063315c33e4d80035f96"; ## Default skin: you can change the default skin. Use the internal symbolic ## names, ie 'vector', 'monobook': $wgDefaultSkin = 'monobook'; ## 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. # $wgEnableCreativeCommonsRdf = true; $wgRightsPage = ""; # Set to the title of a wiki page that describes your license/copyright $wgRightsUrl = ""; $wgRightsText = ""; $wgRightsIcon = ""; # $wgRightsCode = ""; # Not yet used $wgDiff3 = ""; # When you make changes to this configuration file, this will make # sure that cached pages are cleared. $wgCacheEpoch = max( $wgCacheEpoch, gmdate( 'YmdHis', @filemtime( __FILE__ ) ) );
- So, the really problem is:
- Warning: fopen(LocalSettings.php) [function.fopen]: failed to open stream: Permission denied in /mnt/web3/10/92/5517492/htdocs/c_helmstedt-wiki/config/Installer.php on line 1351
- isn't it? Djmirko 07:58, 5 March 2011 (UTC)
- Make the config directory writable, or create LocalSettings.php yourself with the text the installer gave you. —Emufarmers(T|C) 21:52, 5 March 2011 (UTC)
- OK, thank you, it's running now ;o) But there it is, the next problem: i set imageupload to true. Then i tried to upload a picture. After selecting the file and then klicking the Upload-Button the following appears:
Warning: mkdir() [function.mkdir]: Permission denied in /mnt/web3/10/92/5517492/htdocs/c_helmstedt-wiki/includes/GlobalFunctions.php on line 2176 Warning: wfMkdirParents: failed to mkdir "/mnt/web3/10/92/5517492/htdocs/c_helmstedt-wiki/images/d/de" mode 511 in /mnt/web3/10/92/5517492/htdocs/c_helmstedt-wiki/includes/GlobalFunctions.php on line 2179
- Looking for help again ;o) Djmirko 15:48, 6 March 2011 (UTC)
- The images directory and its subdirectories need to be writable too. —Emufarmers(T|C) 00:19, 7 March 2011 (UTC)
- Make the config directory writable, or create LocalSettings.php yourself with the text the installer gave you. —Emufarmers(T|C) 21:52, 5 March 2011 (UTC)
- That's not a new and fresh db. —Emufarmers(T|C) 06:17, 5 March 2011 (UTC)
- I am trying to install into a new and fresh db.
- You need to provide more information. What didn't work? What did you try? What was the error? What are you trying to do? Dr DBW | talk 21:19, 3 March 2011 (UTC)
- @Dr DBW: I had a look on the instructions, yes, but it's quit not working for me. So this is why i am asking the questions above. Djmirko 11:38, 3 March 2011 (UTC)
Use --protocol=TCP in maintenance scripts
I'm having some trouble using the maintenance scripts because of the configuration of my host. I'm only allowed to connect to the database through TCP, and I can't seem to figure out how to do this when using the maintenance scripts. Is there any way to set the protocol (even by manually editing the .inc files?) Litso (talk) 08:37, 3 March 2011 (UTC)
- If you have
$wgDBserver = "localhost";
you can change it to$wgDBserver = "127.0.0.1";
to use a TCP connection instead of unix socket. iAlex 12:29, 4 March 2011 (UTC)- Thanks. Still nothing's happening though.. all the maintenance scripts that use the database just refuse to do anything, even --help doesn't show. Any way to start debugging this / narrowing down the problem? 87.213.24.66 12:40, 4 March 2011 (UTC)
SemanticGraph ... download not working properly
I've been trying to get the "SemanticGraph" Extension:Semantic_Graph download, but the file is marked as a tar.gz but doesn't open. Changing the extension to .zip and it opens, but doesn't contain any of the php files. I think there is something broken, but cannot find the contact details of the package creator. Can anyone please help..
Thanks
Peter 92.41.242.238 (talk) 11:47, 3 March 2011 (UTC)
- That's not a gzipped tarball, it's just a tarball. The program you're using to extract the file is expecting a gzip file, but it's getting a tar file. The program I use had no problem recognizing it as a tar file and opened it properly, but I guess some might not be that smart. Renaming the file to SemanticGraph_0-8-5.tar should do the trick. Reach Out to the Truth 17:09, 3 March 2011 (UTC)
Skins do not load after changing to short url
I recently changed my wiki to use short url. I used the GoDaddy Shared Linux (Not Subdomain) method.
Unfortunately the skin does not load.
My Wiki URL: http://haitipedia.org/wiki/Main_Page
Server information:
MediaWiki version 1.16.2
PHP 5.x
MySQL 5.0.91-log
Hosting: GoDaddy Shared Linux
Please help. Techies247 (talk) 19:58, 3 March 2011 (UTC)
- It looks like you've set $wgStylePath; you should leave it at the default. —Emufarmers(T|C) 23:53, 3 March 2011 (UTC)
- Thanks for helping! I modified the $wgStylePath to point to the actual directory: /w
- The relative URL path to the skins directory
- $wgStylePath = "$wgScriptPath/w/skins"; Techies247 00:12, 4 March 2011 (UTC)
Missing pages after upgrade from 1.10alpha to 1.16
I can't find related topics on this. I follow the upgrading page to upgrade from 1.10alpha to 1.16 by 1. copying 1.16 into 1.10alpha's directory. 2. run php update.php There's no error messages at all. Everything is smooth.
I can browse the wiki. But lots of data is missing, e.g. users, pages, images... The log shows only 1 activity from Sep. 08 to Jan. 11. We use this wiki to store research data. People access it quite frequently.
My system: Mysql 5.0.77 PHP 5.3.3
Any idea what's going on?
thanks in advnace 143.215.126.27 (talk) 20:29, 3 March 2011 (UTC)
- Go to page that you surely know to exist before the upgrade, what do you see? Is there anything in Special:AllPages? Are the missing pages present in page table? Max Semenik 14:59, 4 March 2011 (UTC)
- Could you link to the wiki in question ? Krinkle 15:28, 4 March 2011 (UTC)
How to remove old comments from an image/file?
I uploaded an image to my v1.14 wiki, put some text in the comment there, changed that text afterwards, and now want to remove the record of that comment from view. I used Manual:RevisionDelete, which works to remove it from the history page. However, the original text on the image page itself is still visible in the file history table on the image page. How do I go about remove the original comment? Found a comment at Manual:FAQ#How_do_I_delete_an_old_version_of_a_page.3F - "Administrators can delete an old revision of a page by deleting the page, and then selectively undeleting revisions to be kept". So then I delete the file and recover it? Dr DBW | talk 21:24, 3 March 2011 (UTC)
Wiki access is not updating with $wgGroupPermissions changes
Server info:
- Apache/1.3.41 (Unix) PHP/5.2.6 mod_psoft_traffic/0.2 mod_ssl/2.8.31 OpenSSL/0.9.8b mod_macro/1.1.2
- MySQL client version: 5.0.45
MediWiki Version = 1.16.2
I put this at the bottom of LocalSettings.php page and the change is being ignored in the use of the wiki. The page 'User Group Rights' reflects that 'read' permission has been removed for All but you can still access the pages as an anonymous user.
$wgGroupPermissions['*']['read'] = false; $wgGroupPermissions['user']['read'] = true; $wgGroupPermissions['sysop']['read'] = true; Vmoore (talk) 02:11, 4 March 2011 (UTC)
Upload file returns "internal error"
Uploading file fails with the "internal error"
key 'psbu8a87fe9iwj52kbqxy9opmdruluc.' is not in a proper format Backtrace: #0 /home/u19329/hdlwiki.com/www/includes/upload/UploadBase.php(634): UploadStash->stashFile('/home/u19329/hd...', Array, NULL) #1 /home/u19329/hdlwiki.com/www/includes/upload/UploadBase.php(646): UploadBase->stashSessionFile(NULL) #2 /home/u19329/hdlwiki.com/www/includes/specials/SpecialUpload.php(367): UploadBase->stashSession() #3 /home/u19329/hdlwiki.com/www/includes/specials/SpecialUpload.php(461): SpecialUpload->showUploadWarning(Array) #4 /home/u19329/hdlwiki.com/www/includes/specials/SpecialUpload.php(192): SpecialUpload->processUpload() #5 /home/u19329/hdlwiki.com/www/includes/SpecialPage.php(579): SpecialUpload->execute(NULL) #6 /home/u19329/hdlwiki.com/www/includes/Wiki.php(250): SpecialPage::executePath(Object(Title)) #7 /home/u19329/hdlwiki.com/www/includes/Wiki.php(63): MediaWiki->handleSpecialCases(Object(Title), Object(OutputPage), Object(WebRequest)) #8 /home/u19329/hdlwiki.com/www/index.php(114): MediaWiki->performRequestForTitle(Object(Title), NULL, Object(OutputPage), Object(User), Object(WebRequest)) #9 {main}
Does anyone know a solution for it? Arkasha (talk) 06:56, 4 March 2011 (UTC)
- bugzilla:27819; will be fixed before 1.17 release. -- Bryan (talk|commons) 08:51, 4 March 2011 (UTC)
- Do you think, upgrading to MW trunk (1.18) can solve this problem?
- When do you expect 1.17 release ready? Arkasha 18:30, 4 March 2011 (UTC)
- No, this bug is not fixed yet. However, we're planning to do that before releasing 1.17. Max Semenik 19:12, 4 March 2011 (UTC)
How to change the default Main Page title and the URL
- I'm trying to change the default Main Page title and the URL.
- I only see instructions on How do I change the Main Page title.
- I also would like to change the URL to reflect the new homepage title.
- I would like for my URL to go from this:
- http://haitipedia.org/wiki/Main_Page
- to that:
- http://haitipedia.org/wiki/Haitipedia
- Versions:
- MediaWiki version 1.16.2
- PHP 5.x
- MySQL 5.0.91-log
- Hosting: GoDaddy Shared Linux Techies247 (talk) 16:12, 4 March 2011 (UTC)
- Hi Techies247,
- You linked to the solution already: How do I change the Main Page title.
- So follow the instructions ;-)
How do I change the Main Page title reads:
Simply click on the "Move" tab, and move the page to the desired page title.
Usually you also want to change which page is the main page.- So
- Move the Main Page to Haitipedia (or create it as a new page)
- Configure that "Haitipedia" should now be shown when opening the wiki (→ change which page is the main page) Krinkle 17:06, 4 March 2011 (UTC)
- Great this is working fine for me..
- but the problem is I am able to do this is Authoring Wiki.
- When I pushing the content to English Wiki its not reflecting there.
- Can anyone help me please. 49.205.166.106 19:58, 17 April 2014 (UTC)
- Hi Krinkle,
- I followed up you instruction, it works on my local machine.
- However, when I moved everything on to my hosting server. The main page reverted to .../index.php/Main_Page (which is supposed to be .../index.php/New_Name)
- I repeat what I have done on my local machine, it just does not work on my hosting server.
- (in MediaWiki:mainpage, it still says New Name)
- The same issue happens to tab as well. (the value of MediaWiki:mainpage-nstab is ignored, and it still shows "Pages" on the main page)
- Can you shed some light on this issue?
- Cheers,
- Kevin 14.203.99.250 04:45, 20 November 2014 (UTC)
- Are there any different values in both LocalSettings.php (apart from database connection and maybe some URL)? Ciencia Al Poder (talk) 10:45, 20 November 2014 (UTC)
- Thanks for your reply.
- I just did a "diff" on both LocalSettings.php files (remote and local), the only different is the DB connection setting. Nothing else.
- Cheers,
- Kevin 14.203.99.250 23:48, 23 November 2014 (UTC)
- Try running the maintenance script rebuildmessages.php. If it fails, try also rebuildLocalisationCache.php --force Ciencia Al Poder (talk) 11:07, 24 November 2014 (UTC)
- Are there any different values in both LocalSettings.php (apart from database connection and maybe some URL)? Ciencia Al Poder (talk) 10:45, 20 November 2014 (UTC)
- i install wikimedia on my xamp localhost. in broser url like this one http://localhost/wikimedia/wiki/index.php/Main_Page
- i want to remove index.php from url. how to do it please provide me step by step guide because i am fresher in wikimedia. 122.170.185.112 (talk) 05:17, 29 November 2018 (UTC)
- See Manual:Short URL/Apache and Differences between Wikipedia, Wikimedia, MediaWiki, and wiki Ciencia Al Poder (talk) 10:11, 29 November 2018 (UTC)
- Hello. I tried to change the datename of Healthy Fandoms and Hatedoms wiki. Can you help me, please? QueenPeach10 (talk) 20:35, 29 July 2019 (UTC)
- Did you follow the instructions? What's the result? Can you post a link to the wiki? Ciencia Al Poder (talk) 09:32, 30 July 2019 (UTC)
Unable to login
Hi,
I have a problem with the wiki I ran. It has been running for more than a year now without problems but since a couple a days I have the following problem.
I made loggin in mandetory and that works fine. Now I have the problem that after loggin in the "login is mandetory" page appears. Clicking login brings me the Login page again. When I login for the second time the "login is mandetory" page appears for the second time. I used the "send me a new password" button, logged in with the new password (and had to enter a new password) and again the "login is mandetory" page appears. There is just no way to login!
Who can tell me what to do? I have full access to the wiki and the database, I just do not know where to start or where to look for errors?
Versions:
MediaWiki version 1.15.1
PHP 5.3.3
MySQL 5.1.49
Host: Synology NAS (DS207+) 83.82.37.103 (talk) 18:35, 4 March 2011 (UTC)
- Enable PHP warning logging and see if there are session-related warnings (see here how to do it). Max Semenik 12:13, 5 March 2011 (UTC)
- Thanx Max,
- That helped! I discovered that a device on my NAS was full. Now that I solved that problem I can login again.
- Emiel Ooms 193.173.113.126 16:06, 7 March 2011 (UTC)
Standard for attributes in gallery
Hello, I would like to ask what is a standard for attributes and values in gallery tag. I noticed that e.g. values for heights works all, even the combination of them: 50, 50px, "50", "50px" (even for heights and widths 50 versus "28px"). Is there any way how attributes of that tag can be listed? I.e. which goes first? How to use showfilename? There is no example on the help page. Juandev (talk) 08:48, 5 March 2011 (UTC)
Error creating thumbnail: sh: /usr/local/bin/convert: No such file or directory
- MediaWiki 1.12.0
- PHP 5.2.17 (cgi-fcgi)
- MySQL 5.0.91-log
I just moved FortWiki.com from 1and1 to Godaddy and all went well except that I get
Error creating thumbnail: sh: /usr/local/bin/convert: No such file or directory
I can successfully upload and thumbnail about two images a day and then it will no longer thumbnail images until the next day. See :
LocalSettings.php
$wgEnableUploads = true; $wgUseImageMagick = true; $wgImageMagickConvertCommand = "/usr/local/bin/convert";
I've checked the paths for ImageMagick and they return version numbers for both the 5.x and the 6.x versions so the paths and convert actually exist and they do work initially.
Any help appreciated... Two images a day just won't hack it. JohnStanton (talk) 23:38, 5 March 2011 (UTC)
- Purge the files. —Emufarmers(T|C) 03:26, 6 March 2011 (UTC)
- Didn't help. The symptoms are perplexing I uploaded an image tonight at http://fortwiki.com/Image:Fort_Yuma_California_1875.jpg and nothing I could do would make the thumbnail display but I can almost guarantee that the first time I access it in the morning it will work. Could this be a memory problem and which memory setting would impact ImageMagick thumbnails in this manner? JohnStanton 03:34, 9 March 2011 (UTC)
- Hi...
- I have another error too.
- When i upload .svg files, it said "Error creating thumbnail: env: python: No such file or directory".
- What error is it? Is the error because python problem?
- Thank you. Sephirothindra (talk) 01:23, 25 June 2013 (UTC)
- Didn't help. The symptoms are perplexing I uploaded an image tonight at http://fortwiki.com/Image:Fort_Yuma_California_1875.jpg and nothing I could do would make the thumbnail display but I can almost guarantee that the first time I access it in the morning it will work. Could this be a memory problem and which memory setting would impact ImageMagick thumbnails in this manner? JohnStanton 03:34, 9 March 2011 (UTC)
Corrupt namespace index?
I created two custom namespaces via LocalSettings after creating the content pages using those namespaces, then ran the namespaceDupes script to allocate the pages to the necessary index. I encountered an error due to a redirect page, then re-ran the script after deleting the offending page. Unfortunately, running the script may have corrupted the second namespace index, since the article tab (the link that points to the article, besides the Discussion tab) points to the first namespace index. Everything else is functioning properly, though.
Not a big deal, though, as I've moved the pages to a different index, but it would be great if I could re-use that index. So how do I fix it? I can't find which database table contains the namespace information. Or is there some cache I just need to clear? Fereal (talk) 21:08, 6 March 2011 (UTC)
- PGIWiki is namespace number 110. Test is namespace number 111. That makes Test the talk namespace for PGIWiki. Reach Out to the Truth 21:31, 6 March 2011 (UTC)
- I thought custom namespaces increment by one and Talk pages were generated automatically. Anyway, thanks. Fereal 21:36, 6 March 2011 (UTC)
MediaWiki deletes content
I just edited w:Shoah (film), fixing citations in one section ("Reception"). But when I saved the edit, the whole section was deleted. I tried to re-add it, but all of a sudden another section was deleted. How can that happen? --Bender235 22:34, 7 March 2011 (UTC)
EDIT: Great, I just tried to undo all of my edits, and now the entire article was deleted. What is going on there? --Bender235 22:38, 7 March 2011 (UTC)
- Maybe you're using a broken tool or gadget? —Emufarmers(T|C) 04:09, 8 March 2011 (UTC)
- I don't think so. Between that edit and the ones before and after I did not add or remove any gadget. This only happened on this particular article, by the way. I tested in the w:WP:SANDBOX, and then edited a couple of other articles without a problem. --Bender235 11:57, 8 March 2011 (UTC)
- What browser and what plgins do you use? Have you tried editing with JS disabled? Do you experience the same problem when logged off? I'm inclined to suspect your user JS. Max Semenik 16:36, 8 March 2011 (UTC)
- I don't think so. Between that edit and the ones before and after I did not add or remove any gadget. This only happened on this particular article, by the way. I tested in the w:WP:SANDBOX, and then edited a couple of other articles without a problem. --Bender235 11:57, 8 March 2011 (UTC)
Mediawiki 1.13.3 spam
I'm using MW 1.13.3. I have reCAPTCHA on every edit page. I also disabled API calls by setting $wgEnableAPI = false; spams still find their ways to create new page in my wiki. Could you tell me if there is anything else that I should take care of to prevent spams? Thanks. 24.118.121.212 (talk) 02:52, 8 March 2011 (UTC)
- Upgrade MediaWiki and use a better captcha. —Emufarmers(T|C) 04:04, 8 March 2011 (UTC)
- I thought reCAPTCHA is the best captcha out there. Is there a better one? 128.101.35.94 00:30, 9 March 2011 (UTC)
- It seems reCAPTCHA may have been broken. A number of reCAPTCHA users have been experiencing spam recently. Switching to one of the other available captcha types has solved the problem for others and may work for you. Reach Out to the Truth 01:31, 9 March 2011 (UTC)
- I thought reCAPTCHA is the best captcha out there. Is there a better one? 128.101.35.94 00:30, 9 March 2011 (UTC)
Not showing mediawiki in localhost
Hi I have downloaded media wiki and installed, its working fine on my system but we have a local host environment(mamp), there are not able to see the media wiki project but we have other projects on mamp running on wordpress they all are running fine, i am not sure why it is not showing on others can any one please help me please.
Cheers,
Ramith 165.228.96.28 (talk) 03:50, 8 March 2011 (UTC)
- What do you mean by "not see"? A blank page? Max Semenik 06:26, 8 March 2011 (UTC)
Collaboration in MediaWiki
Hello everyone, I'm fairly new to Wiki world so my apologies if my question is stupid and that's why it isn't listed in the FAQ/Support Desk.
The company I'm working for has set up a small mediawiki which serves as a manual for a software application for both the employees of the company and external clients. Of course, only employees can edit the media wiki and external clients have read-only access over the internet.
For better collaboration on the mediawiki among the employees, I am looking for a way to annotate / leave comments in the wiki that can only be read by people within the company and not by people from outside / the clients.
I was thinking about some browser Plugin..? I checked several addons / plugins but they all require some sort of account and have way too many features which we don't need. Any suggestions / ideas?
Thank you in advance, Regards, Marc 95.91.154.36 (talk) 12:53, 8 March 2011 (UTC)
- Not sure on this, as haven't looked into it, but it may be possible that you can limit those that can view the talk pages? You can set various permissions for access to features, that may be one of them? Something to check anyway. Dr DBW | talk 21:51, 9 March 2011 (UTC)
- Thanks for your suggestion, I will try it. 95.91.154.36 09:39, 10 March 2011 (UTC)
#ASK Syntax like SQL Select Distinct?
- == My Environment ==
- MediaWiki 1.17
- PHP 5.2.4-2ubuntu5.12wm1
- MySQL 5.1.47
- Semantic Extension: http://sourceforge.net/projects/semediawiki/
- == My Question ==
- Im looking for something similar like the SQL Statement "Select Distinct ..." for Inline Queries coded with #ask to supress multiple output records. SuterAd (talk) 14:55, 8 March 2011 (UTC)
- I would like to know that too! BIG RizZ (talk) 13:31, 16 January 2015 (UTC)
- The Answer is 42 Miles Fides (talk) 13:33, 16 January 2015 (UTC)
- I would like to know that too! BIG RizZ (talk) 13:31, 16 January 2015 (UTC)
- Still the same problem...
- But I found a good Workaround:
- Use the Extension:Arrays
- You can get the distinct values of a query by using the "unique" option. Miles Fides (talk) 11:23, 25 August 2015 (UTC)
LocalSettings.php file is not created
Dear community, I try to install mediawiki, you will found details on my www.mwusers.com forum post :
Best regards and many thanks 80.12.162.78 (talk) 15:00, 8 March 2011 (UTC)
- What happens if you set mediawiki/config/ premission to 777? Max Semenik 16:38, 8 March 2011 (UTC)
User Preferences Update issues and File Permissions
MediaWiki 1.17wmf1 (r83520)
PHP 5.2.17 (cgi-fcgi)
MySQL 5.0.91-log
I am a complete beginner with wiki's but I seem to have a site up and running...sorta.
I started with 1.16.2 and then upgraded to 1.18alpha for the wikieditor extension, which is wonderful, then backtracked to 1.17wmf1 for fear of the term alpha in 1.18. I updated the database with php update.php after every update.
But I seem to have killed my ability to edit user preferences. Check box changes are not recorded after save is pressed. Other posts indicate some lag time but I waited and the changed did not populate.
Thanks for any assistance with this issue. Sourceconscious (talk) 17:39, 8 March 2011 (UTC)
- Well, I figured it out but I cannot explain it.
- I tried to bring my wiki back to a blank state by disabling all of the extensions. To my fortune, my preferences saved fine with all the extensions disabled. I then re-enabled them one by one until it failed and it failed on the URL Shortner from Manual:Short URL.
- SHORT URLS:
- $wgScriptPath = ""; # Path to the actual files
- $wgArticlePath = "/wiki/$1"; # Virtual path
- $wgUsePathInfo = true;
- These settings caused it to fail.
- However, these settings work.
- SHORT URLS:
- $wgScriptPath = ""; # Path to the actual files
- $wgArticlePath = "/food/$1"; # Virtual path
- $wgUsePathInfo = true;
- I have not the slightest clue why the $wgArticlePath of wiki causes the user preferences to not save, but by changing it to anything other than wiki causes it to work fine.
- Also, I was having problems with Safari Browser producing blank pages without a PHP error, even though I forced error reporting via the FAQs. This also seemed to be fixed with the change in the article path. However, no other browsers were exhibiting this issue.
- Any explanation would be much appreciated so I don't run into a similar issue in the future, but I am just happy that I somehow stumbled upon a fix.
Sourceconscious 04:57, 9 March 2011 (UTC)- Question:
- In which directory do you have MediaWiki installed ? (LocalSettings.php, index.php, api.php, thumb.php etc.)
- If the answer is "
/wiki/
", then that is the cause of the problem. - When using the URL shortner the ArticlePath must not exist!
- If you want to use /wiki/PageName as short url, install mediawiki in a directory that is not "
/wiki/
" (for example in "/mw/
".). Krinkle 17:53, 9 March 2011 (UTC)- I have the mediawiki installed in the root ( / ) of the subdomain.
- What fines need to be in the root and what files needs to be in the /wiki/ or /mw/.
- Mainly this is a concern for the robots.txt file which is denying access to anything that starts with index.php?
- Thank you so much for your help. Sourceconscious 07:59, 24 March 2011 (UTC)
- I have the mediawiki installed in the root ( / ) of the subdomain.
- Also, please switch to /branches/REL1_17 instead of 1.17wmf1.
- 1.17wmf1 is a temporary branch for Wikipedia and it's sister projects. The REL1_17 branch is what will become the 1.17.0 release and will be kept up2date and stable from now on. Krinkle 21:52, 9 March 2011 (UTC)
- Switched to 1.17alpha.
- Thanks. Sourceconscious 07:59, 24 March 2011 (UTC)
- Switched to 1.17alpha.
How do I edit the sidebar? Which file should I look at?
How do I edit the sidebar? Which file should I look at? 71.57.66.214 (talk) 19:46, 8 March 2011 (UTC)
- See Manual:Interface/Sidebar.
- BTW: This thread should be moved to Project:Support desk Singlespeedfahrer 20:23, 8 March 2011 (UTC)
- I have the same question.
- I have been looking to the explanation at http://www.mediawiki.org/wiki/Manual:Interface/Sidebar. But it is totally unclear how to get the newly made sidebar visible.
- I am administrator of the following mentioned site.Therefore the following statement in the localsettings should be enough to change the sidebar:
- require_once( "$IP/includes/DefaultSettings.php" );
- Therefore I have the following questions:
- 1) I made a new page "DIY_Book_Scanner_Wiki:sidebar" because
- $wgSitename = "DIY Book Scanner Wiki";
- $wgDefaultSkin = 'monobook';
- In the explanation it says:
- //yourdomain/yourwiki/index.php?title=MediaWiki:Sidebar&action=edit
- Well the original mainpage looks like this
- http://diybookscanner.org/wiki/index.php?title=Main_Page
- So the new sidebar should be made by this
- http://diybookscanner.org/wiki/index.php?title=Wiki:Sidebar&action=edit
- but this gives an error: Bad title
The requested page title was invalid, empty, or an incorrectly linked inter-language or inter-wiki title. It may contain one or more characters which cannot be used in titles. Return to Main Page.
- Then I tried
- http://diybookscanner.org/wiki/DIY Book Scanner Wiki/index.php?title=MediaWiki:Sidebar&action=edit
- Since "DIY Book Scanner Wiki" is the namespace for the wiki.
- Then I will get:
The requested URL /wiki/DIY Book Scanner Wiki/index.php was not found on this server
- Maybe the fault here are the spaces in the namespace.
- So I tried:
- http://diybookscanner.org/wiki/index.php?title=DIY_Book_Scanner_Wiki:Sidebar&action=edit
- and this made the page.
- However it doesn't replace the original sidebar. In the Manual:Interface/Sidebar is nothing which tells what to add or delete to any file on our server.
- What did i do wrong or what went wrong during the installation of the Wikisite
- 2) In the sidebar I try to implement a menu in the menu like this
-Commercial book scanners
-- V-shaped book scanners
-- Planetary book scanners
-Hardware
-- Guides for building DIY V-shaped book scanners
-- Guides for building DIY planetary book scanners
-- Material guidance
- So, a kind of collapsable menu. Is this possible with monobook or is programming necessary to become this available?
- Thank you in advance for answering and educating me.
- Yours truly The.traveller 00:22, 3 June 2011 (UTC)
- As the manual says, you edit the side bar at:
- http://diybookscanner.org/wiki/index.php?title=MediaWiki:Sidebar&action=edit Hamilton Abreu 03:12, 3 June 2011 (UTC)
- Thank you for your reply. I tried it and it worked. Probably the person responsible for the server did something extra because I immediatly saw the page coming up as a sidebar.
- Would you please be so kind to help me with the second question.
- I would like to have a main page and su pages in the sidebar
- I have now on the page
* [[Hardware]] ** [[Guides for building DIY V-shaped book scanners]] ** [[Guides for building DIY planetary book scanners]] ** [[Material guidance]] * [[Commercial book scanners]] ** [[V-shaped book scanners]] ** [[Planetary book scanners]]
- How do I get the same effect as the sidebar on this page where there is a > beside Support and when I click on it it will open more pages (links) to choose from.
- So, a kind of collapsable menu. Is this possible with monobook or is programming necessary to become this available?
- Thank you in advance for answering and educating me. Yours truly The.traveller 23:31, 3 June 2011 (UTC)
- As far as I know they're not available in Monobook, and would require programming changes.
- They are currently available in the Vector skin, but I'm afraid I don't know since when. The Vector skin in your version, 1.16, doesn't seem to have them.
- Quite probably, the most advisable way for you to proceed and obtain them would be an upgrade to the latest version of MediaWiki, 1.17, and adopting the Vector skin as default. This would be preferable to customising it, because if it is customised you'll then have to carry the customisation forward on every future upgrade.
- Generally, it is wise to learn to upgrade your wiki and maintain it updated, so sooner or later you'll probably end up having to do it anyway. I would start now.
- But maybe someone more knowledgeable can provide a workable alternative. Hamilton Abreu 02:24, 4 June 2011 (UTC)
- I am a little confused with the above information. I may have gone about it the wrong way but what I did to be able to edit the sidebar was to click on 'special pages' go to 'Systems Messages' entered 'sidebar' in the search box, clicked on 'sidebar' and created 'mediawiki:Sidebar'. I was then able to edit the sidebar and for ease of use I made a link in the sidebar to the 'Mediawiki:Sidebar' page. Ron Barker 10:47, 4 June 2011 (UTC)
- Yes, I can relate to that confusion. The manual page clearly states in the initial paragraphs that one should edit MediaWiki:Sidebar. I told The traveller to edit MediaWiki:Sidebar in his wiki. You edited MediaWiki:Sidebar in your wiki and it worked. To end all this confusion we should just tell users to edit MediaWiki:Sidebar, instead. :) Hamilton Abreu 14:59, 4 June 2011 (UTC)
- Dear Sirs,
- Thank both of you for the information.
- The manual page for the sidebar is very unclear on how to go about.
- My initial thinking way was it had to have the name of the site just before :Sidebar&action=edit. (As you can see in my earlier post)
- @ Mr Barker: Where can people find your steps for changing the sidebar?
- @ Mr Abreu:
- Thank you for your advice conserning collapsable menu's.
- Since the Wiki is not running on full speed it might be advisable to consider installing another skin and/or version.
- By the way how can you see which version our wiki has? The.traveller 22:48, 6 June 2011 (UTC)
- In page Special:Version. Hamilton Abreu 04:31, 7 June 2011 (UTC)
- In the default sidebar there is a link to ‘Special Pages’ – click on that, it will take you to ‘Special Pages’. As a matter of interest you can find the version of mediawiki you have under 'Wiki data and tools'. Click on 'Version'
- For the sidebar still under 'Wiki data and tools' click on System messages at the top of the page there is a search portal. Enter the term ‘sidebar’ and click on the search tab that will take you to a link to your sidebar. Click on the link and it will take you to your sidebar where you can edit it. I made a link in the sidebar to this page to save me having to go through this procedure. Ron Barker 10:13, 9 June 2011 (UTC)
- Dear Sirs,
- Thank both of you for the information.
- I hope you can help me with the next step.
- At the beginning I had the following questions:
- 1 How to edit the sidebar --> This you have explained to me.
- 2 Can I get collapsable menu's in the sidebar --> This you have explained to me.
- 3 I have now the difficulty of getting new links to pages who don't exist yet or even if they exist not get a link working.
- Please have a look
- navigation
- mainpage|mainpage-description
- portal-url|portal
- Url-Hardware|Hardware
- software|Software
- shopping
- Url-Project_Stages|Description-Project_Stages
- navigation
- The last 3 entries: Hardware, Software and shopping don't give a link to a page.
- Only software will be blue but clicking on it will give a 404 error
- Not Found
- The requested URL /wiki/INVALID-TITLE was not found on this server.
- Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
- However a software page exist so it should come up.
- The strange thing is that "Project Stages" is linking to that page.
- Can you explain how to correctly make links to pages in the sidebar?
- The.traveller 19:31, 9 June 2011 (UTC)
- The last three examples do not look as though they could work. The red 'software' indicates that there is no page called 'Software' to link to. 'Shoping' is not the correct way to make a link. I am not sure about the last (third) example it will depend if there is a page called 'Url-Project_Stages'. I don't suppose all that makes much sense to you! I will try to explain!
- (1)To make a link to a page there has to be a page in exisistence.
- (2) the link can be made by using the page name or by using the url to the page.
- Examples:
- Interesting articles | Rubish
- This would show a link in the sidebar 'Rubish' that would link to the page Interesting articles
- You could use an url
- Of course you would not want a link called rubish and would probably use 'Articles'.
- If the page name is short that is fine. I have made a page called 'Sand box' where I mess about trying things out. I have made a link in the sidebar thus:
- Sidebar | Sidebar
- But if it was a long page name I would make a lot short link in the sidebar thus:
- Big long page name | Page
- In conclusion (I hope)
- You need to use the page name or url to the page followed a | and the name of the link you want to show in the sidebar.
- PS You can make a page by entering the page name you wish to create in the search box and clicking on 'Go'. That will take you a page with the suggesting 'do you want to crate this page. If by chance there already a page by that name you will be taken to that page name. If you click on that red 'Software' above it will take you to a page called 'Software' if you edit the page the page 'software' will be created. If you place double brackets round any word it will create a red link which you can create a new page thus:
- New Page what I have done is [[New page (leaving off the last two brackets) Ron Barker 23:06, 9 June 2011 (UTC)
- Dear Mr. Barker can you show your examples with so I can see the symantex of your examples. What I did now in my software example is this: <nowiki>* [[Software|Software]]
- So it is now a header on my sidebar page, the page "Software" already exists. But still I do not get a link to my page in the sidebar. I get rubbish.
- Have a look to the following files
- Picture of the above mentioned writing way
- I then tried to incorporate the complete URL of the page.
- Using the URL doesn´t make it better
- I am at a lost, nowhere on all the help pages there is a clear reference of what should be installed for the different versions of Mediawiki and with the different skins. And what should be installed for a certain skin to get it working. (Monobook.js and/or Monobook.php ????)
- We have Mediawiki version 1.16 and monobook as skin. The.traveller 15:41, 13 June 2011 (UTC)
- Hi traveller
- I do not know what our Dutch friend has said but it looks pretty good to me. But to address the above directly: You do not need to use brackets: it should be
* Software|Sofware
** http://my.imageshack.us/registration/ |Registration
- Should take you to the registration page
- Hope that helps Ron Barker 10:26, 14 June 2011 (UTC)
- In page Special:Version. Hamilton Abreu 04:31, 7 June 2011 (UTC)
- I am a little confused with the above information. I may have gone about it the wrong way but what I did to be able to edit the sidebar was to click on 'special pages' go to 'Systems Messages' entered 'sidebar' in the search box, clicked on 'sidebar' and created 'mediawiki:Sidebar'. I was then able to edit the sidebar and for ease of use I made a link in the sidebar to the 'Mediawiki:Sidebar' page. Ron Barker 10:47, 4 June 2011 (UTC)
- Hi The.traveller,
- I'll answer in Dutch as I understand from the image you are
:-)
- De handleiding (Engelstalig) op Manual:Interface/Sidebar beantwoord de meeste vragen, gelieve eerst die te raadplegen.
- Hoewel het wat verwarrend is op het eerste gezicht (en we zijn van plan dit in de toekomst anders aan te pakken) is het momenteel zo dat de "Sidebar" een andere syntax gebruikt dan normale wiki-pagina's. Code als
[[
en]]
werken daar dus niet! - In plaats daarvan hoef je alleen maar de paginanaam van het artikel en eventueel de weergave tekst in te voeren, zie onderstaand voorbeeld
*Appel|Lees meer over Appels
- Dit zorgt ervoor dat in de Sidebar een linkt komt naar het artikel "Appel" (zoals je in een normale wiki pagina met
[[Appel]]
zou doen, met als weergave tekst 'Lees meer over Appels'. - Het deel voor en naar het recht-op-staande streepje mag ook hetzelfde zijn:
*Software|Software
- En voor externe links (alleen gebruiken voor echte externe links, niet voor artikelen binnen je wiki)
- Groet, Krinkle 18:02, 13 June 2011 (UTC)
*http://en.wikipedia.org|Wikipedia
- Hi traveller
- I do not know what our Dutch friend has said but it looks pretty good to me. But to address the above directly: You do not need to use brackets: it should be
* Software|Sofware
** http://my.imageshack.us/registration/ |Registration
- Should take you to the registration page
- Hope that helps Ron Barker 10:45, 14 June 2011 (UTC)
Problem inserting wiki tags into DB text field
MediaWiki : 1.16.1 PHP : 5.2.16 MySQL : 5.0.91
I am developing an extension which stores some texts into DB as mediumblob type. Everything works fine unless texts don't have wiki tags such as <pre> or <math>. If tags are included, DB entry looks like UNIQ582c82a41e046f19-m-00000002-QINU. Does anyone have any clue?
Thanks, dwjang 23:11, 8 March 2011 (UTC)
User migration (Internal -> AD)
Hello everybody,
We have an intranet site running mediawiki 1.15. In this wiki we have 124 registered users, with configured groups personal sites etc. Now I have to change the accounts from internal wiki to M$ Active Directory. So far so good. I setup a test machine and import our wiki and change the login to AD. I now can login with my AD account to the wiki. But now I have two accounts, my old configured and the new AD one. Is it possible to migrate the 'new' AD account with the preferences of the old one?
Some tests direct in the mysql database (changing the user_id etc) weren't successful.
Best Regards, Stephan 79.224.124.54 (talk) 12:33, 9 March 2011 (UTC)
"no license selected" for any televersement . . .
hello, I just installed mediawiki, and when I try to make a upload a picture, I can not select a license, the option remains on "no license selected" need help: (
MediaWiki 1.16.2 PHP 5.2.17 (cgi) MySQL 5.0.51 90.60.167.51 (talk) 19:31, 9 March 2011 (UTC)
- You need to modify MediaWiki:Licenses. See Manual:Image Administration#Licensing for help. Reach Out to the Truth 19:41, 9 March 2011 (UTC)
- agreement is perfect thank you!! 90.60.167.51 07:29, 10 March 2011 (UTC)
WPML sort of thing for MediaWiki?
Good morning everyone,
the company that I work for has a German and English Wiki that serves as a manual for our software application. It would be great if we could just have one wiki instead of having two separate ones..there is WPML which works great for Wordpress (the translation feature where you can send your text to a professional translator is awesome!) and let's you easily switch languages. I was wondering if there is a similar program/plugin or workaround for MediaWiki..?
Thanks in advance for any ideas and suggestions, Regards, Marc 95.91.154.36 (talk) 09:51, 10 March 2011 (UTC)
Display 5 last articles
Hello everybody,
I'm looking for a function which could display the 5 last articles created. Is it possible ? Can you give me the way i've to forward ?
Tanks, Bye
Clément Clag (talk) 15:25, 10 March 2011 (UTC)
- {{Special:NewPages/5}}
26 June 2025
- 19:2119:21, 26 June 2025 Moderator Tools/Watchlist/Experiment (hist | edit) [1,950 bytes] OTichonova (WMF) (talk | contribs) (Created page with "The Moderator Tools team is currently working on 2 interventions for this quarter. One of the interventions is around the RecentChanges Language Agnostic Revert Risk Filtering T390058. For the second intervention, we will run a 2-4 week experiment where the 'group results by page' feature will be enabled for a subset of contributors to see if having their watchlist and recent ch...") Tag: 2017 source edit
- 11:4611:46, 26 June 2025 Contributors/Strategy (hist | edit) [12,130 bytes] Trizek (WMF) (talk | contribs) (draft) Tag: Visual edit
- 09:5209:52, 26 June 2025 Localisation/tt (hist | edit) [7,053 bytes] Ochpochmack (talk | contribs) (Created page with "Локальләштерү")
- 02:4202:42, 26 June 2025 ORES review tool/th (hist | edit) [5,888 bytes] 22f (talk | contribs) (Created page with "เครื่องมือตรวจทาน ORES")
25 June 2025
- 19:5019:50, 25 June 2025 Advertising/pl (hist | edit) [6,503 bytes] Igor123121 (talk | contribs) (Created page with "Reklama")
- Hi,
- Is it possible to display this rows but just with de date and links to edit, without this : "(Created page with "Whenever we deploy new changes to the core MW architecture we need to make sure that our Mobile gateway still functions correctly. = Redi...")"
- Like this :
* 13 mars 2011 à 01:36 This is a long title (hist) [12 octets] Krinkle (discuter | contributions)
* 11 mars 2011 à 14:49 ShoutWiki/Patches/Editcount (hist) [1 337 octets] Jack Phoenix (discuter | contributions)
* 11 mars 2011 à 14:38 ShoutWiki/Patches/Interwiki (hist) [13 482 octets] Jack Phoenix (discuter | contributions)
* 11 mars 2011 à 14:37 ShoutWiki/Patches (hist) [778 octets] Jack Phoenix (discuter | contributions)
* 11 mars 2011 à 01:36 WMF Projects/OWA/2011q2 plan (hist) [884 octets] RobLa-WMF (discuter | contributions)
Clag 10:24, 17 March 2011 (UTC)- ==> UP
- Have you got any solution for my problem ? Clag 11:53, 28 March 2011 (UTC)
Color of links
- Hi,
- I use the Vector skin and I have a question: How can I change the color of wiki- and external links.
- I can't find the right css-class...
- Thank you in advance 79.219.164.165 (talk) 23:10, 10 March 2011 (UTC)
- External links have the external class, normal wiki links don't have a class. -- Bryan (talk|commons) 11:14, 11 March 2011 (UTC)
- So, I can't change the color of wiki links? 88.217.227.129 13:52, 11 March 2011 (UTC)
- You can. Use "a" for normal wikilinks and "a.external" for external links. Also, red links are "a.new". Reach Out to the Truth 13:58, 11 March 2011 (UTC)
- Here is full instructions: w:en:Wikipedia:Link_color Igottheconch 21:40, 23 March 2011 (UTC)
- You can. Use "a" for normal wikilinks and "a.external" for external links. Also, red links are "a.new". Reach Out to the Truth 13:58, 11 March 2011 (UTC)
- So, I can't change the color of wiki links? 88.217.227.129 13:52, 11 March 2011 (UTC)
- External links have the external class, normal wiki links don't have a class. -- Bryan (talk|commons) 11:14, 11 March 2011 (UTC)
- How about links o different namespaces?
- I know no CSS classes are used to differentiate them by default.
- But does anyone recommend an extension that does this? Ahmad Gharbeia أحمد غربية (talk) 08:24, 23 October 2018 (UTC)
Things aren't wrapping correctly...
I can't seem to get my tables to wrap correctly. My pages look like jumbled messes. I would really appreciate some help :(
Example: http://wiki.clan-infinity.net/index.php?title=Seven_Roach_Rush 98.227.39.171 (talk) 03:35, 11 March 2011 (UTC)
How to add support for $wgEnableMWSuggest to a skin?
MediaWiki 1.15.3 PHP 5.2.6 (cgi) MySQL 5.0.91-community
How do I add support for AutoSuggest on search to a skin? I've added $wgEnableMWSuggest = true; and ##$wgScriptExtension = ".php5"; to LocalSettings.php
Is there something I need to have present in my skin to add this feature. Current skin active at http://www.medrevise.co.uk
Regards, Chris MedRevise (talk) 06:45, 11 March 2011 (UTC)
== line break in front of == MediaWiki: 1.14.0; PHP: 5.2.8(apache2handler); MySQL: 5.1.30-community Always when a page is saved or the review-button is pressed, there appears a new line break in front of each <nowiki> <nowiki> . This destroys the formatting of the whole page after a few times of editing. Is this a common Problem? I tested it on Windows XP-pro with IE6 and Firefox 3.6. The strange thing is that wie have a second MediaWiki with almost the same configuration on an another Server where the problem does not appear. Does anyone know a solution? RuedigerFuchs (talk) 08:54, 11 March 2011 (UTC)
Legal issues modifying MediaWiki locally
There must be a simple link to this but I can't find it! What legal issues are there if I modify the MediaWiki code for my own or my company's use? Do I need to submit the new code to the open source community? (The changes are always very minor and I usually do submit - I just want to know what would happen if I missed one.) Robinson weijman (talk) 09:45, 11 March 2011 (UTC)
- I don't know if I'm right, but I think MediaWiki software is open-source, so you can change it if you want. Not sure about that. TBloemink 10:43, 11 March 2011 (UTC)
- MediaWiki is published under the normal GPL, so changes you make do not have to be published. However, if you publish/redistribute your modified MediaWiki you are obliged to publish the changed source code under the GPL. -- Bryan (talk|commons) 11:12, 11 March 2011 (UTC)
- So if I understand correctly if I make changes and use them within my company, there are no legal obligations. But if I started handing them out (or selling them!) or putting them online, then I need to check distribute them here as well. Is that correct? Robinson weijman 11:18, 11 March 2011 (UTC)
- Indeed. Note that using MediaWiki to run a wiki, private or public is not considered "distributing" and does not require the distribution of the source code.
- MediaWiki is published under the well known General Public License and there should be many resources online concerning the legal consequences of the GPL. -- Bryan (talk|commons) 11:56, 11 March 2011 (UTC)
- Excellent, thank you Bryan! Robinson weijman 12:41, 11 March 2011 (UTC)
- So if I understand correctly if I make changes and use them within my company, there are no legal obligations. But if I started handing them out (or selling them!) or putting them online, then I need to check distribute them here as well. Is that correct? Robinson weijman 11:18, 11 March 2011 (UTC)
Wikis and Wikipedia discussion board using Stack Overflow technology
Probably many readers are aware of Stack Overflow, a very effective site for asking programming questions. This concept has now been extended to cover many other topics. One of these is Wikis and Wikipedia. This is currently in the "commitment phase" which means that when it achieves enough followers it will enter a live beta phase. If you want quick and useful answers to your wiki questions, this will be a useful resource. Robinson weijman (talk) 09:48, 11 March 2011 (UTC)
Managing user account creations
Hi,
I have a problem that I cannot figure out ... : I need a way to manage the creation of the user accounts. What I need is a way to allow uses to create accounts (or account requests) on my wiki but prohibit any activities until the administrator validated their account (manually).
Thanks 134.76.235.183 (talk) 11:03, 11 March 2011 (UTC)
- Install Extension:ConfirmAccount.
- Alternatively you can revoke all permissions from the 'user' group and create a new user group with the permissions from the 'user' group and add the validated accounts to that group. -- Bryan (talk|commons) 11:10, 11 March 2011 (UTC)
sourabh J sarkar
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hi, It seems to be silly question but I cannot find the answer anywhere. Is it possible to have different name of the page (displayed in URL) and the title of the page? I have found only this: {{DISPLAYTITLE:My new title}}
So if I have the page named "abc" and I use {{DISPLAYTITLE:Custom title}} on displayed page everything looks fine. But if I put this page in any category and I go to category view the page is displayed as "abc". This is expected behaviour from what I used. But I want to accomplish the following: 1. create page named "abc" that will be visible in URL as "http://.../abc" 2. giving the page a title (something like human readable title) that will be displayed to user (as page title, in categories, searches, ...)
From what I have found it looks that this is not possible but I found nothing saying explicitly anything about this.
So is it possible to have different title and name? If so, how do I achieve that?
Thx for answering. 212.55.243.184 (talk) 16:19, 11 March 2011 (UTC)
- If you mean renaming a page, that's done with the Move button, on Vector mouse-over the arrow down for it, on monobook (default I think) on the top bar of a page. TBloemink 16:24, 11 March 2011 (UTC)
- Sorry I did not make it clear.
- I do not mean renaming.
- I need to have a title ex.:
- This is a page about mediawiki with some loong title
- But the name of the page will be LongTitle
- So I have two things for one page:
- 1 - name=LongTitle
- 2 - title=This is a page about mediawiki with some loong title
- URL of the page will be http://.../LongTitle
- If I put the page in any category, it will be listed as "LongTitle". But I want it to be listed as "This is a page about mediawiki with some loong title" and when I click that I will get to http://.../LongTitle
- Something like having two properties of the page an URL and a title. It is like creating a link. You can write something like Click on this page. User sees something different than the name of the URL. 212.55.243.184 16:38, 11 March 2011 (UTC)
- [[Category:AnyCategory|This is a page about mediawiki with some loong title]]
- For searches you can create redirects. —Emufarmers(T|C) 22:10, 12 March 2011 (UTC)
- @Emufarmers: That will only change the sort position of where it is shown in the category listing, it won't change the display of the name in the category listing.
- @212.55.243.184: If you want to have the long version of the title everywhere, except for the URL, then the way to go is to create a redirect:
- Example: http://www.mediawiki.org/wiki/LongTitle Krinkle 01:38, 13 March 2011 (UTC)
- But then you'd have to categorize the redirect if you want it to be displayed in categories like that.
- Now that DISPLAYTITLE is stored in the page_props table, would it not be possible to create an extension or something that allows Categories to display the DISPLAYTITLE? Reach Out to the Truth 02:24, 13 March 2011 (UTC)
- Thanx a lot guys for your replies.
- Your answers were helpful.
- It really seems that it is not possible and only way would be to create extension. I was surprised nothing like that already exists :( 212.55.243.184 08:24, 14 March 2011 (UTC)
- [[Category:AnyCategory|This is a page about mediawiki with some loong title]]
- Hi there.
- You can do this by first setting $wgRestrictDisplayTitle = false;, which will lift Mediawiki's restriction mandating that page titles match page URLs. This will then permit you to use DISPLAYTITLE to create titles that differ from the page URL. See:
- http://www.mediawiki.org/wiki/Manual:$wgRestrictDisplayTitle 192.75.139.252 22:13, 23 November 2012 (UTC)
- Thank you for that, that was enormously helpful!!! 148.177.1.213 20:18, 14 May 2013 (UTC)
- Just to clarify this a bit:
- In your LocalSettings.php:
- $wgRestrictDisplayTitle = false;
- Then, on your individual wiki pages:
- { {DISPLAYTITLE:My Page Title Here} }
- (No spaces between the curly-braces.) Oliepedia (talk) 16:45, 5 May 2014 (UTC)
- Should that affect the displayed title on Category pages? No change for me at least :(. Only the displayed title page header. 195.234.150.70 11:56, 13 May 2014 (UTC)
- Extension:SemanticTitle may be of some use here. Cavila (MW 1.22, MySQL 5.5.37-0, Php 5.4.4-14 squeeze, SMW 1.9.2, SF 2.7) 12:42, 13 October 2014 (UTC)
- Should that affect the displayed title on Category pages? No change for me at least :(. Only the displayed title page header. 195.234.150.70 11:56, 13 May 2014 (UTC)
how to delete "copy-warn" for edit ?
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
- in fact I would never see "MediaWiki: Cpoyright"(which is a link to a page not created) when editing a page. . . : ( 90.60.167.51 (talk) 16:30, 11 March 2011 (UTC)
- and all :
- "Toutes les contributions à MediaWiki sont considérées comme publiées sous les termes de la Creative Commons Attribution-NonCommercial-ShareAlike 3.0 License (voir MediaWiki:Copyrights pour plus de détails). Si vous ne désirez pas que vos écrits soient modifiés et distribués à volonté, merci de ne pas les soumettre ici.
- Vous nous promettez aussi que vous avez écrit ceci vous-même, ou que vous l’avez copié d’une source provenant du domaine public, ou d’une ressource libre. N’UTILISEZ PAS DE TRAVAUX SOUS DROIT D’AUTEUR SANS AUTORISATION EXPRESSE !"
- (i don't remenber wich license i chose in the begining . . .) 90.60.167.51 16:49, 11 March 2011 (UTC)
- Create the MediaWiki:Copyrightwarning system message as an empty page. —Emufarmers(T|C) 22:13, 12 March 2011 (UTC)
- but i wan't have any "copyright" on my wiki . . . juste cc-by-sa-nc ^^" 90.16.147.143 07:01, 14 March 2011 (UTC)
- cc-by-sa-nc is a form of copyright. You are reserving several specific rights. And in any case that's just the system message name, you're free to put any content in it (If your wiki was say Public domain). Bawolff 17:18, 14 March 2011 (UTC)
- but i wan't have any "copyright" on my wiki . . . juste cc-by-sa-nc ^^" 90.16.147.143 07:01, 14 March 2011 (UTC)
- Create the MediaWiki:Copyrightwarning system message as an empty page. —Emufarmers(T|C) 22:13, 12 March 2011 (UTC)
Section link
Hi! I want to know if there is a way, that if I press a section in hebrew, the link of the page wont contain:"D6.H12" and like... is there a way to give "ID", like in ref for the name of the section, that is defferent from what displayed on the page? thanks Ofekalef (talk) 18:35, 11 March 2011 (UTC)
Initial whitespace problems
Hi,
Initial whitespace in any lines causes that lines to be displayed as code. How to disable this behavior? I've searched for an appropriate option in the DefaultSettings.php and didn't found anything.
Bug: active users:-1
In my romanian wiki it says active users:-1 under Special:Statistics. I considered reporting this bug, but i don't know where, sorry. check this out! (Utilizatori activi means active users) Note: This wiki is new and it is not released. THX, 86.124.179.36 07:47, 13 March 2011 (UTC)
- It says 1 for me. Does it still say -1 for you? —Emufarmers(T|C) 01:11, 14 March 2011 (UTC)
- I see 1 right now too, but I've also seen -1 on my wiki. I believe it was -1 after installation for example. Reach Out to the Truth 01:22, 14 March 2011 (UTC)
- No, now i see 1, but yesterday it said -1.
- Anyway, it didn't cause any problems, but I reported it as a bug.
- Anyway thx for anything,
- 86.124.179.36 14:07, 14 March 2011 (UTC)
- I see 1 right now too, but I've also seen -1 on my wiki. I believe it was -1 after installation for example. Reach Out to the Truth 01:22, 14 March 2011 (UTC)
Edit links only in namespace diskussion?(Editsection)
Hi,
I would like to have: $wgDefaultUserOptions['editsection'] = 0; That causes all EDIT link within every page to not be displayed. But now I would like to have teh edit link on every discussion page cause I use the extension: Discussion Threading and therefor I need to have these link. Now I was wondering if it is possible to achive this.
Thanks in advance 87.79.213.113 (talk) 14:30, 13 March 2011 (UTC)
Warning: mkdir() [function.mkdir]: Permission denied
I was uploading image files to my website when without warning, the script stopped working and I go this message:-
Warning: mkdir() [function.mkdir]: Permission denied in /home/wikikoi/public_html/includes/GlobalFunctions.php on line 2176
Warning: wfMkdirParents: failed to mkdir "/home/wikikoi/public_html/images/7/79" mode 511 in /home/wikikoi/public_html/includes/GlobalFunctions.php on line 2179
I had not made any changes to the script when this occured. It will not upload any image files to the site no matter which extension I use .gif, .png, .jpg etc...!
Any solution that will get me back up and running will be greatly appreciated. Codi727 (talk) 18:41, 13 March 2011 (UTC)
- Your webserver doesn't have permission to write to the image directory. You have to use the chmod command to give it permission. See also Manual:Image Administration. Bawolff 17:21, 14 March 2011 (UTC)
- I know I am late but it can be useful for others, as it took me a while to find out what my problem was.
- So... if you ever have this problem while uploading files to your mediawiki and your Linux system is running SElinux, that may be the source of your trouble. Check this page for a protential solution. It worked for me. Euloiix (talk) 14:31, 28 August 2012 (UTC)
Problem with signature cleaning
It appears that $wgCleanSignatures=false; does not work on my MediaWiki installation. That is, our customised signatures (e.g. including colours and links) get reverted to to a plain "real name" (just text). Yet this works OK on Wikipedia. Can anyone help? Robinson weijman (talk) 10:24, 14 March 2011 (UTC)
- In your preferences, click "Treat signature as wikitext (without an automatic link)". It does the same thing as on Wikipedia, it's just worded differently. Reach Out to the Truth 13:04, 14 March 2011 (UTC)
- Thanks Reach but that is not it. The signature will appear fine for 1 - 4 hours and then suddenly reverts to the old plain text. (I just tried your suggestion today after reading it.) Robinson weijman 15:33, 14 March 2011 (UTC)
- That sounds really weird. I don't know why that would be. Reach Out to the Truth 16:27, 14 March 2011 (UTC)
- OK, thanks anyway. I will try somewhere else and report back here if I find the solution. Robinson weijman 16:42, 14 March 2011 (UTC)
- >Yet this works OK on Wikipedia. Can anyone help?
- Well $wgCleanSignatures is set to true on Wikipedia, so there is your first difference.
- So you can set the sig to something fancy in your preferences, you can use this fancy sig on pages with ~~~~ and then randomly it gets set back to the default?
- After it gets back to the default sig, does only ~~~~ show the default, or does it also show the default in the signature field of Special:preferences?
- In some circumstances, illegal input in the signature field will set it back to default, but you usually have to put some rather weird stuff in it for that to happen (unclosed XML tags, or a sig longer than manual:$wgMaxSigChars for example) and it'd happen instantly, not after a time delay. Bawolff 17:14, 14 March 2011 (UTC)
- Bawolff - thanks for this. I switched $wgCleanSignatures to true and the same thing happened, after one hour. I wonder if it is to do with our load balancing, that we have some kind of caching problem.
- You wrote: "So you can set the sig to something fancy in your preferences, you can use this fancy sig on pages with Robinson weijman 09:15, 15 March 2011 (UTC) and then randomly it gets set back to the default?" Yes, that is pretty much it.
- To answer your second question: in my preferences I write:
[[User:MyName|<span style="color:lightseagreen">My Name</span>]] ([[User talk:MyName|<span style="color:lightseagreen">Talk</span>]])
- My signature on a talk page is therefore:
--[[User:MyName|<span style="color:lightseagreen">My Name</span>]] ([[User talk:MyName|<span style="color:lightseagreen">Talk</span>]]) <time date stamp>
- After one hour, the preference reverts to:
My Name
- And my signature becomes:
--My Name
Robinson weijman 09:15, 15 March 2011 (UTC)
- >Yet this works OK on Wikipedia. Can anyone help?
- OK, thanks anyway. I will try somewhere else and report back here if I find the solution. Robinson weijman 16:42, 14 March 2011 (UTC)
- That sounds really weird. I don't know why that would be. Reach Out to the Truth 16:27, 14 March 2011 (UTC)
- Thanks Reach but that is not it. The signature will appear fine for 1 - 4 hours and then suddenly reverts to the old plain text. (I just tried your suggestion today after reading it.) Robinson weijman 15:33, 14 March 2011 (UTC)
Create account page
Hello,
I want to add text to the create account page on my latest version of MediaWiki. How do I do this? Basically, right after "Already have an account? Log in." I want to add more text giving tips on what their username should be so that we do not mistaken it for a spam name and ban them. Please help me out and thank you in advance! 66.161.180.226 (talk) 01:06, 15 March 2011 (UTC)
- Any ideas at all? 66.161.180.226 09:37, 18 March 2011 (UTC)
- Edit the MediaWiki:Gotaccount system message. —Emufarmers(T|C) 16:26, 18 March 2011 (UTC)
Admin is unable to login - "invalid username"
All of a sudden MediaWiki returns an "invalid username" error message when I login to my wiki at www.chronistwiki.de (or "illegal username", the Wiki is German so I don't know what the exact English version is). All other users can sign in without problems. After the problem first appeared, I did some hacks to the database in order to change (or rather, cripple) my username (from Nuhrii the Metruan to Nuhrii the M) and I was able to login without further problems. I even tried to create a new account and assign my old username to it, but MediaWiki denied it as invalid. Afterwards, I restored the initial database because which I had backed up before I made any hacks. Do you have any advice how I could solve this problem and findally be able to login again? It would be very appreciated.
From Special:Version: MediaWiki 1.16.2 PHP 5.2.14 (cgi-fcgi) MySQL 5.0.77-log Nuhrii the Metruan (talk) 06:46, 15 March 2011 (UTC)
- Your account appears to be named NtM. —Emufarmers(T|C) 19:49, 15 March 2011 (UTC)
- I eventually renamed it with a renaming extension and now it works... the user name Nuhrii the Metruan still doesn't get accepted, neither at registration nor when renaming existing accounts, but otherwise, everything works. If you've got a solution, please tell me anyway. 91.47.112.105 19:47, 21 March 2011 (UTC)
Numbering of content is not shown in the document
The numbering of content (structure: 1.1, 1.1.1, 1.1.2, 2.4, 2.4.1, etc) is only shown in table of content, and not in the document itself. Edit: Also the little squares are not shown which can be added by * It doesn't matter if I'm logged in or not. 213.81.239.130 (talk) 08:12, 15 March 2011 (UTC)
Extesion: Image Plus
I am using the extension image plus and I would like to make 2 modifications. 1. The user should be able to click on the search field and the page Special: File list should appear. The user should be able to select animage fromthis list. 2. There should be a field Saying "Upload your own image" with a browse button. If anyone has done one or both of these modifications, please post the code. Rg~mediawikiwiki (talk) 09:56, 15 March 2011 (UTC)
add image to footer?
Hi all,
I run MW1.16 and I've tried to add a normal image (my logo) to my Vector footer, but I haven't found yet how to. This following code (in Vector.php) is wrong, but does someone know why? and could I fix it? Thx a lot!
ps: would the answer be the same for a simple text too?
$footerlinks = array(<span class="mw-default-size">[[File:MyImage.jpg|220x220px]]</span>, 'info' => array('lastmod','copyright',),'places' => array('disclaimer',),); [[Special:Contributions/89.246.221.190|89.246.221.190]] ([[User talk:89.246.221.190|talk]]) 09:59, 15 March 2011 (UTC) == Userright Move == I can't figure it out. Who can rename (move) a page. My Wiki editors complain that the sometimes can move a page, but mostly they cannot and only I (sysop) can move the page. How does this userright Move exactly work? Thanks for helping. 10:17, 15 March 2011 (UTC) :In your LocalSettings.php, you can set user rights as specified in [[Manual:User rights]]. If you want all members to be able to move pages, add $wgGroupPermissions['user']['move'] = true; to your LocalSettings.php. [[User:Nuhrii the Metruan|Nuhrii the Metruan]] 10:40, 15 March 2011 (UTC) ::Thanks, i did know that. I have the following settings of userrights. But my RfelexEditors can't move every page. It seems that the can only move pages that the have made and is not edited by anyone else. Some tips? ::<syntaxhighlight lang="php"> // Implicit group for all visitors $wgGroupPermissions['*']['read'] = False; $wgGroupPermissions['*']['createaccount'] = False; $wgGroupPermissions['*']['edit'] = False; $wgGroupPermissions['*']['createpage'] = False; $wgGroupPermissions['*']['createtalk'] = False; $wgGroupPermissions['*']['writeapi'] = False; // Implicit group for all logged-in accounts $wgGroupPermissions['user']['read'] = True; $wgGroupPermissions['user']['move'] = False; $wgGroupPermissions['user']['move-subpages'] = False; $wgGroupPermissions['user']['move-rootuserpages'] = False; // can move root userpages $wgGroupPermissions['user']['edit'] = False; $wgGroupPermissions['user']['createpage'] = False; $wgGroupPermissions['user']['createtalk'] = False; $wgGroupPermissions['user']['writeapi'] = False; $wgGroupPermissions['user']['upload'] = False; $wgGroupPermissions['user']['reupload'] = False; $wgGroupPermissions['user']['reupload-shared'] = False; $wgGroupPermissions['user']['minoredit'] = False; $wgGroupPermissions['user']['purge'] = False; // can use ?action=purge without clicking "ok" // Implicit group for all Reflex Editors $wgGroupPermissions['ReflexEditor']['edit'] = True; $wgGroupPermissions['ReflexEditor']['move'] = True; $wgGroupPermissions['ReflexEditor']['move-subpages'] = True; $wgGroupPermissions['ReflexEditor']['move-rootuserpages'] = True; // can move root userpages $wgGroupPermissions['ReflexEditor']['read'] = True; $wgGroupPermissions['ReflexEditor']['edit'] = True; $wgGroupPermissions['ReflexEditor']['createpage'] = True; $wgGroupPermissions['ReflexEditor']['createtalk'] = True; $wgGroupPermissions['ReflexEditor']['writeapi'] = True; $wgGroupPermissions['ReflexEditor']['upload'] = True; $wgGroupPermissions['ReflexEditor']['reupload'] = True; $wgGroupPermissions['ReflexEditor']['reupload-shared'] = True; $wgGroupPermissions['ReflexEditor']['minoredit'] = True; $wgGroupPermissions['ReflexEditor']['purge'] = True; // can use ?action=purge without clicking "ok" $wgGroupPermissions['ReflexEditor']['collectionsaveascommunitypage'] = true; </syntaxhighlight> [[User:Ploegvde|Erwin van der Ploeg]] 13:20, 15 March 2011 (UTC) :::Anyone who can tell me what I do wrong? [[User:Ploegvde|Erwin van der Ploeg]] 12:46, 17 March 2011 (UTC) :::"It seems that the can only move pages that the have made and is not edited by anyone else." :::That is not a feature of MediaWiki. What extensions do you have installed? [[User:Reach Out to the Truth|Reach Out to the Truth]] 13:21, 17 March 2011 (UTC) ::::Thanks for responding. This are the extensions we use: ::::*CategoryTree ::::*Collection (Versie 1.4) ::::*Contribution Scores (Versie 1.11) ::::*Flagged Revisions ::::*LastUserLogin (Versie 1.2.1) ::::*Replace Text (Versie 0.9.1) ::::*Special:DeleteOldRevisions (Versie Version 1.4.3, 2010-09-14) ::::*SpecialInterwiki ::::*UserRightsList (Versie 0.51) ::::*Balloons (Versie 0.4) ::::*CategoryTree ::::*DynamicPageList ::::*ParserFunctions (Versie 1.1.1) ::::*Widgets (Versie 0.9f) ::::*Add Article to Category 2 (Versie 0.2) ::::*DeletePagePermanently (Versie 2.1) ::::*DirList (Versie 0.1) ::::*Gadgets ::::*Google Analytics Integration (Versie 2.0.2) ::::*GoToCategory (Versie 1.0) ::::*PCR GUI Inserts (Versie 1.0-b1) ::::*UsabilityInitiative (Versie 0.1.1) ::::*Vector (Versie 0.2.0) ::::*WikiEditor (Versie 0.2.0) [[User:Ploegvde|Erwin van der Ploeg]] 13:10, 23 March 2011 (UTC) == Document rendering == Hi I've installed MediaWiki on my home server to make my private knowledge-base One of the thins I'm trying to do is to embed certain common types of documents in to the wiki, like word, excel, open office, visio, pdf,... The page would have the link to this document, or optionally the document would open in the wiki There are some solutions but they need the document to be in a remote server, like scribd, or at document access the document is uploaded to other server like AJAXDocumentViewer extension My intention is that the document's must be on my server, and the process of document rendering to be displayed on wiki must be local too. Is this possible? Thanks in advance Antonio Henriques [[User:Antoniomch|Antoniomch]] ([[User talk:Antoniomch|talk]]) 14:14, 15 March 2011 (UTC) == Fatal error: Class 'LinksUpdate' not found == I get this error :Fatal error: Class 'LinksUpdate' not found in /web/htdocs/www.ivys.it/home/wiki/includes/Article.php on line 3322 everytime i save changes on a page, or create a new page. If i open the page created or edited after the error i see the changes. I have mediawiki 1.16.2 on a linux server, MySQL: 5.0.91-enterprise-gpl-log Php: 5.2.17 http://www.ivys.it/wiki Thanks! [[Special:Contributions/213.203.135.77|213.203.135.77]] ([[User talk:213.203.135.77|talk]]) 15:20, 15 March 2011 (UTC) :Generally this means that your install somehow got corrupted or you are missing a file. :Check to make sure that the file /web/htdocs/www.ivys.it/home/wiki/includes/LinksUpdate.php exists, and actually has stuff in it. :You could perhaps try re-[[download]]ing the tar bar and re-installing. :>If i open the page created or edited after the error i see the changes. :This type of error (beside the whole fatal error bit) will probably make categories, special:whatlinkshere type features not work. [[User:Bawolff|Bawolff]] 15:29, 15 March 2011 (UTC) ::Thanks :), i solved uploading again /includes/LinksUpdate.php. It existed but maybe it was corrupted. [[Special:Contributions/213.203.135.77|213.203.135.77]] 15:37, 15 March 2011 (UTC) ::Thanks :), i solved uploading again /includes/LinksUpdate.php. It existed but maybe it was corrupted. [[Special:Contributions/213.203.135.77|213.203.135.77]] 15:37, 15 March 2011 (UTC) == [RESOLVED] Mangled my short URL setup: help spot my LocalSettings & htaccess errors! == I'm in the process of setting up short URLs following the [[Manual:Short_URL/wiki/Page_title_--_no_root_access]] for my [http://hexingtide.willphillips.org/slug/ private writing wiki], however I've managed to bungle it up something fierce. The examples in the manual aren't very intuitive for non-technies like myself, so I've made a misstep somewhere along the way. I'll post my changes to the LocalSettings and htaccess; hopefully my error will be glaringly clear for your veterans. At least, I hope it will. The wiki instillation itself, within my public html, is located in ''hexingtide/slug''. Hexingtide I've set up as a subdomain. Not sure if that makes a difference in this.<br /> '''LocalSettings'''<br /><br /> <nowiki>$wgScriptPath = "/slug"; # Physical path (right part of first rewrite rule).
$wgArticlePath = "/slug/wiki/$1"; # Virtual path (left part of first rewrite rule). MUST BE DIFFERENT from $wgScriptPath!
$wgScriptExtension = ".php";
.htaccess
RewriteRule ^/hexingtide/slug/?wiki/(.*)$ /hexingtide/slug/index.php?title=$1 [PT,L,QSA]
RewriteRule ^/hexingtide/slug/?wiki/*$ /hexingtide/slug/index.php [L,QSA]
RewriteRule ^/*$ /hexingtide/slug/index.php [L,QSA]
Help! WillPhillips (talk) 09:07, 16 March 2011 (UTC)
- Put the .htaccess file in the subdomain directory, not in the root directory.
- Remove the
/hexingtide
from .htaccess - Use a virtual article path that does not match or overlap with the script path.
- For example: wgScriptPath = /slug; wgArticlePath = /wiki/$1; (articlePath without slug)
- If still problems, read Manual:Short_URL/wiki/Page_title_--_no_root_access again to see if you might have skipped a step
- Report back here :-) Krinkle 00:23, 17 March 2011 (UTC)
- I set up things exactly as you prescribed and am now getting an interesting error.
- It seems the wiki is trying to run the short URLs, but when I'm directed to hexingtide.willphillips.org/wiki/XYZ, I get a 404 error (before was a 500). The hexingtide.willphillips.org/slug/index.php?title=XYZ method still works, however.
- So, I'm not sure where the problem is to be found, then, but I'd guess the .htaccess as it seems like there's a redirect/rewrite issue here.
- Going to try a couple of the alternate methods listed in the manual to see if I can hack together a workaround, but some help is still needed! kimmkatt 07:13, 17 March 2011 (UTC)
- Have now got everything set up and running correctly.
- Thanks for the feedback, Krinkle! WillPhillips 08:18, 17 March 2011 (UTC)
- DID YOU EMAIL ME AND SS EN ME A WORK SCHEDULTO TOING MAKE CHANGES TRYING TO UNDERSTAND WHO WHAT kkc 19:36, 2 April 2011 (UTC)
spammers avoiding bans by abusing gmail dot e-mail address feature
We have problem with spamming our local mediawiki site with e-mail registration and multiple anti-spam features enabled (captcha, dnsbl, word filter). The problem is that its not possible to ban an user (spammer) who has access to multiple IP addresses by blocking his gmail.com e-mail address. We have problem with such users keep coming back with different forms of the same address by adding random dots within the username. Ie:
spammer.spammer@gmail.com
spa.m.m.erspammer.@gmail.com
s.p.a.mmerspammer@gmail.com
Mediawiki considers these e-mails to be different, while they are actually the same. http://mail.google.com/support/bin/answer.py?hl=en&answer=10313#
While it is possible to resolve this by modifying includes/User.php I'd like this issue to be addressed in the official release of Mediawiki. Ie. enable mediawiki to recognize different forms of gmail address to be the same. Pavelxk (talk) 09:42, 16 March 2011 (UTC)
- bump Pavelxk 13:33, 25 March 2011 (UTC)
- You should open a bug on Bugzilla requesting this. Reach Out to the Truth 14:57, 25 March 2011 (UTC)
Attachments opening Link
Hey Forum,
i have a question about the attachments. I want that a programm automaticly opens, when i click on the attach. For example: There is a pdf-file, he should open it with his PDF-Reader!
Its there a funktion or extension, were i can do that?
Best regards and many thanks for your help. 194.25.241.26 (talk) 10:10, 16 March 2011 (UTC)
PNG Images Displaying Slightly Larger, and Blurry?
I have a series of PNGs that are sizing wrong, blowing up each image slightly. (We are running MediaWiki, recently updated, sorry I don't know the exact versions).
It's really weird, and makes all the text in the images just a LITTLE bit blurry. (I thought it was sizing off the transparent shadow or something, but I tested that.)
I will try to enclose the before and "while viewing screenshot".
Any recommendations, or is this just a bug in the way MediaWiki displays images?
- My image, before I uploaded it.
- A screenshot of my image, displayed with no additional attributes.
173.9.119.118 (talk) 12:29, 16 March 2011 (UTC)
- Okay, uh. It won't let me add the images? Not sure how to do that. Sorry, our wiki is behind a firewall.
- Anyone else encountering the slightly-larger-and-therefore-blurry image problem?
- I'll see if this works...
- [[:Image:]]
- [[:Image:]] 173.9.119.118 12:31, 16 March 2011 (UTC)
- Okay, I have an account now, but still can't figure out how to post my screenshots. So I guess that's TWO support questions... how do I post image examples to this thread?
- Thanks!
- -Douglas Beagley 12:35, 16 March 2011 (UTC)
- Once you're autoconfirmed you can use Special:Upload, as long as the image is available under a free license.
- But since you're not yet autoconfirmed, you can upload the images to an external image host and link to them. Reach Out to the Truth 14:06, 16 March 2011 (UTC)
- Okay, here's a screenshot of my original image:
- http://farm6.static.flickr.com/5099/5532247846_f73b403940_o.png
- And here's a screenshot of what it looks like displayed in Mediawiki:
- http://farm6.static.flickr.com/5175/5532247806_c1c515886c_o.png
- If I re-download the uploaded image, it looks correct! It is just something in the way Mediawiki is displaying it. Note: The image does have a drop-shadow transparency--I tested without that however, and got the same problem. Beagley 14:37, 16 March 2011 (UTC)
- I suggest you to test it on other browser
- also please try to reset zoom features on you browser, I think you might accidentally zoom the content 180.246.59.7 10:41, 18 March 2011 (UTC)
MediaWiki 1.16.2
Are there any Schema changes associated with going from MediaWiki 1.16.0 to 1.16.2?
Thank you,
Special:Upload
I want the users to be able to upload images on a page, other than the Special:Upload page. How do I run the script from the Special:Upload page elsewhere? 109.66.123.163 (talk) 21:05, 16 March 2011 (UTC)
query categorymembers not working with cmcontinue
I don't know if this is the right place to place this question. If not excuse me and if possible suggest me where to place my question. I'm doing some tests to use api. I have developed some code. It works for long time, now it looks that something is changed and the cmcontinue parameters is returned not as title but as pageid. But if I pass it to contine the query, the query doesn't work correctly. Here you have an example
<?xml version="1.0"?> <api>
<query> <categorymembers> <cm pageid="1510206" ns="100" title="Portale:Verona" /> <cm pageid="2951758" ns="0" title="Verona" /> <cm pageid="2262962" ns="0" title="Accademia di Agricoltura di Verona" /> <cm pageid="2262943" ns="0" title="Accademia Filarmonica di Verona" /> <cm pageid="2579584" ns="0" title="Campane alla Veronese" /> <cm pageid="2994436" ns="0" title="Canale Camuzzoni" /> <cm pageid="3140773" ns="0" title="Cappella Pellegrini (San Bernardino)" /> <cm pageid="1100139" ns="0" title="Cappella Pellegrini (Santa Anastasia)" /> <cm pageid="2779175" ns="0" title="Carnevale di Verona" /> <cm pageid="3360979" ns="0" title="Chiese di Verona" /> </categorymembers> </query> <query-continue> <categorymembers cmcontinue="1358867" /> </query-continue>
</api>
and then
that should return me the subsequent categories is instead returning me
<?xml version="1.0"?> <api>
<query> <categorymembers> <cm pageid="1510206" ns="100" title="Portale:Verona" /> <cm pageid="2951758" ns="0" title="Verona" /> <cm pageid="2262962" ns="0" title="Accademia di Agricoltura di Verona" /> <cm pageid="2262943" ns="0" title="Accademia Filarmonica di Verona" /> <cm pageid="2579584" ns="0" title="Campane alla Veronese" /> <cm pageid="2994436" ns="0" title="Canale Camuzzoni" /> <cm pageid="3140773" ns="0" title="Cappella Pellegrini (San Bernardino)" /> <cm pageid="2779175" ns="0" title="Carnevale di Verona" /> <cm pageid="3360979" ns="0" title="Chiese di Verona" /> <cm pageid="1358867" ns="0" title="Colle San Pietro" /> </categorymembers> </query> <query-continue> <categorymembers cmcontinue="2442453" /> </query-continue>
</api>
and as you can see it is not returning me the subsequent categories, but part of the previously returned categories.
This happens with all the formats I tried: xmlfm, xml, jsonfm, json. I have tried to replace 1358867 with the title of the category and other attempts, but no improvements.
Any hint to solve my problem?
Thank you very much.
Massimo 82.54.92.151 (talk) 09:54, 17 March 2011 (UTC)
Display 5 most visited pages on an article
Hello,
I try to display the five most visited pages on my entrance page.
I tried : {{Special:PopularPages/5}} but it dosen't work. What is the solution ?
Special:PopularPages/5 Clag (talk) 13:41, 17 March 2011 (UTC)
- Special:PopularPages cannot be transcluded. Reach Out to the Truth 14:01, 17 March 2011 (UTC)
- Ok, Thanks Clag 16:23, 17 March 2011 (UTC)
the media wiki error on install?
hello, sadly my database prefix username is too big as it is, even with the ending chosen username I am unable to register the wiki on my site, because of this issue, any way for me to go into an file and extend the length of text? or any way to fix this so I could use the wiki on my host, thanks. Vampirictorch (talk) 13:46, 17 March 2011 (UTC)
ParserFunctions, unexpected result of #time:
Hi,
after an upgrade to semantic mediawiki 1.5.6, 2010-03-01 gives back 2010-02-28 as well as every other date is shifted by 1.
Any hints what to look after?
I am using this configuration:
MediaWiki 1.16.0 PHP 5.3.2-1ubuntu4.7 (apache2handler) MySQL 5.1.41-3ubuntu12.9
Semantic Forms (Version 2.0.6) Semantic Internal Objects (Version 0.6.1) Semantic MediaWiki (Version 1.5.6) Semantic Project Management (Version 1.5) Semantic Result Formats (Version 1.5.2_1 [B268]) MediawikiPlayer (Version 0.3.0) ParserFunctions (Version 1.1.1) ScriptManager Extension (Version 1.0.1_0 [B268]) SemanticGraph (Version 0.8.5) SMWHalo Extension (Version 1.5.2_2-for-SMW-1.5.2 [B268]) StringFunctions (Version 2.0.3) URL Arguments (Version 1.0) Variables (Version 1.3) Semantic Forms Inputs (Version 0.3) Semantic Gardening extension (Version 1.3.3_0 [B89])
Kind regards 109.91.115.240 (talk) 17:41, 17 March 2011 (UTC)
- Sorry, the board took away the annotations, without curly brackets it wooldt be: #time: Y-m-d | 1 March 2010 with the above mentioned result.
- Kind regards 109.91.115.240 09:21, 18 March 2011 (UTC)
- An Update to Parser Functions 1.3.0 resolved the problem. 109.91.115.240 09:32, 21 March 2011 (UTC)
How to get main Wiki page as main website page
I have just started my site, having uploaded Wikimedia (1.16.2) using cPanelX. But my website main page (www.rusartnet.com) is just showing folders as of now, what do I have to do to make the main wiki page the main page for my whole website? Sumarokov-Elston (talk) 12:28, 18 March 2011 (UTC)
- Your main page should have been generated automatically! That is/should have been your starting point. I have just attempted to find your website without success:
- http://www.rusartnet.com/
- I note that you did not know where to find LocalSettings.php. I only mention that because the last thing I had to do when downloading mediawiki was to move LocalSettings.php to the root folder, in my case 'Mediawiki'
- I don't know much about mediawiki, only what I have found by my mistakes and assistence from research to try put them right. Ron Barker 13:12, 18 March 2011 (UTC)
- Hey, I have just tried again accessing your website and was directed to your 'index page' I clicked on the folder 'mediawiki' and your main page opened!! Ron Barker 13:15, 18 March 2011 (UTC)
- Here is your main page: http://www.rusartnet.com/mediawiki/index.php/Main_Page Ron Barker 13:23, 18 March 2011 (UTC)
- I have just left a message on your main page without even attempting to log on, so something is not quite right! Ron Barker 13:27, 18 March 2011 (UTC)
- I have got this awful feeling that $wgGroupPermissions['*']['createaccount'] = false; does not mean people are barred from editing pages!
- PS: There is no facility to create an account, so $wg above may mean visiors do not need to create an account to edit pages! I think that there is a $wg.. that restricts people from editing. Ron Barker 13:41, 18 March 2011 (UTC)
- To disable editing by unregistered users:
- Reach Out to the Truth 14:08, 18 March 2011 (UTC)
$wgGroupPermissions['*']['edit'] = false;
- Thanks for all the messages, including on the site - not really sure what is happening, but things are certainly not as they should be! Sumarokov-Elston 15:28, 18 March 2011 (UTC)
- I think that once you insert the $wg group permissions (provided by Reach Out to the Truth) in Local Settings everything will be ok. Your url to your main page seems ok. Ron Barker 15:33, 18 March 2011 (UTC)
- PS I see you have inserted the $wg. There is now no facility on the main page to edit and also no way to create an account, so you have done it. Ron Barker 15:36, 18 March 2011 (UTC)
- Yes, it seems to be so. Besides not being able to get my front page to be the Media Wiki page, I also have the following questions:
- (1) I know I can upload files just like any normal person going into a Wiki can, but is it better to officially upload them, using a file server? I would presume so, so that I can save them if I want to change things around, etc. Only, again, there seems to be no one way of doing this - I have looked at tutorials and they all have different approaches for different systems.
- (2) How do you change the title tag, meaning what is the route for getting in at the HTML text? Sumarokov-Elston 15:49, 18 March 2011 (UTC)
- I see that you have figured out how to change titles/pages names.
- Re: uploading files you need to configure media wiki:
- http://www.mediawiki.org/wiki/Manual:Configuring_file_uploads Ron Barker 17:44, 18 March 2011 (UTC)
- Yes, it seems to be so. Besides not being able to get my front page to be the Media Wiki page, I also have the following questions:
- (1) I know I can upload files just like any normal person going into a Wiki can, but is it better to officially upload them, using a file server? I would presume so, so that I can save them if I want to change things around, etc. Only, again, there seems to be no one way of doing this - I have looked at tutorials and they all have different approaches for different systems.
- (2) How do you change the title tag, meaning what is the route for getting in at the HTML text? Sumarokov-Elston 15:49, 18 March 2011 (UTC)
- PS I see you have inserted the $wg. There is now no facility on the main page to edit and also no way to create an account, so you have done it. Ron Barker 15:36, 18 March 2011 (UTC)
- I think that once you insert the $wg group permissions (provided by Reach Out to the Truth) in Local Settings everything will be ok. Your url to your main page seems ok. Ron Barker 15:33, 18 March 2011 (UTC)
- Thanks for all the messages, including on the site - not really sure what is happening, but things are certainly not as they should be! Sumarokov-Elston 15:28, 18 March 2011 (UTC)
- I have just left a message on your main page without even attempting to log on, so something is not quite right! Ron Barker 13:27, 18 March 2011 (UTC)
- Here is your main page: http://www.rusartnet.com/mediawiki/index.php/Main_Page Ron Barker 13:23, 18 March 2011 (UTC)
- Hey, I have just tried again accessing your website and was directed to your 'index page' I clicked on the folder 'mediawiki' and your main page opened!! Ron Barker 13:15, 18 March 2011 (UTC)
Wikia's Latest Photo and Latest Activity Modules modified for all mediawiki
Wikia has a latest photo and latest activity module which shows the last three images and last three edits in a box on the side of the wiki.
The coding for these two modules are here their names are:
- LatestActivityModule.class.php
- LatestPhotosModule.class.php
I don't have the technical expertise to convert these to work on generic mediawiki.
Is there any mediawiki.org extension in existence which already does this?
If not, would anyone be interested in converting this extension for use on mediawiki?
Thank you. Igottheconch (talk) 17:42, 18 March 2011 (UTC)
- I would also be interested in this for my wiki! 64.134.235.14 21:27, 17 September 2011 (UTC)
- I made this: http://deadislandwiki.com/wiki/MediaWiki:Sitenotice
- Which works very well. Igottheconch 23:04, 6 October 2011 (UTC)
Standart forum
How to include a standard forum? I tried it to make on an image of others wiki, but for me it doesn't work. 89.250.160.114 (talk) 20:38, 20 March 2011 (UTC)
Imagemap and category related questions
Well, Let's start it already.
I've just wondered- Let's say you make a page that contain the categories [<Brand Name>, <Vehicle>, <Type>] and you have more then three brand names. While looking at the category Brand names you would obviously see these three names listed. Clicking Vehicle though you bring up all of the Vehicles from each brand. Is there a way I could only display certain sorted categories? Such as. I wanna list "Foo" Vehicle's and exclude the rest.
The next one im not quite sure how to explain but... I've created a 16*32*32px icon file to my wiki and though "I'll just make a template that rops that image out of the big one itself and I just realized I have no idea how to do just that. Is it even possible via Mediawiki or will I have to use an external PHP/GD script to link these images? Having to split up/upload them one by one is not really the most convenient way to deal with the even bigger icon files we were going to use for this very purpoues. 83.227.29.102 (talk) 20:41, 20 March 2011 (UTC)
Two warnings ocurring only in Internet Explorer
Hi, I've installed MediaWiki on IIS. It works very well. But I've this issue: when opening a page in Internet Explorer I get these 2 warnings, that I can't find anywhere on the internet (I translate themfrom Italian to English):
Message: Incompatibility between types.
index.php
Line: 15513
Character: 3
Code: 0
URI: http://en.wikipedia.org/w/index.php?title=User:Cacycle/wikEd.js&action=raw&ctype=text/javascript
Message: Property or method not supported by the object
Line: 15492
Character: 4
Code: 0
URI: http://en.wikipedia.org/w/index.php?title=User:Cacycle/wikEd.js&action=raw&ctype=text/javascript
I need to solve it because I'm opening MediaWiki in an ActiveX control which always reports the warnings with alerts (very annoying for users).
Many thanks! 151.43.60.66 (talk) 09:50, 21 March 2011 (UTC)
- You've imported wikiEd, however it doesn't support IE. Max Semenik 20:20, 21 March 2011 (UTC)
- Ahhh.. And is there another component I can use to replace wikiEd, which supports IE too?
- Thanks! 151.43.60.66 10:09, 22 March 2011 (UTC)
error when accessing user preferences
When a user attempts to click the "My Preferences" link the get this error
Internal error lobal default '' is invalid for field editfont Backtrace:
- 0 /srv/http/SupportWiki/includes/Preferences.php(1152): Preferences::getPreferences(Object(User))
- 1 /srv/http/SupportWiki/includes/specials/SpecialPreferences.php(43): Preferences::getFormObject(Object(User))
- 2 /srv/http/SupportWiki/includes/SpecialPage.php(559): SpecialPreferences->execute(NULL)
- 3 /srv/http/SupportWiki/includes/Wiki.php(254): SpecialPage::executePath(Object(Title))
- 4 /srv/http/SupportWiki/includes/Wiki.php(64): MediaWiki->handleSpecialCases(Object(Title), Object(OutputPage), Object(WebRequest))
- 5 /srv/http/SupportWiki/index.php(117): MediaWiki->performRequestForTitle(Object(Title), NULL, Object(OutputPage), Object(User), Object(WebRequest))
- 6 {main}
our versions are as follows MediaWiki 1.16.0 PHP 5.3.5 (apache2handler) MySQL 5.1.54-log
my Wiki is internal to my organization so I am unable to provide an URL. I enabled MySQL logging and clicked the pref page and not able to determine where this value is set (or in a case maybe not set) I did find the Preferences.php that contained
$defaultPreferences['editfont'] = array( 'type' => 'select', 'section' => 'editing/advancedediting', 'label-message' => 'editfont-style', 'options' => array( wfMsg( 'editfont-default' ) => 'default', wfMsg( 'editfont-monospace' ) => 'monospace', wfMsg( 'editfont-sansserif' ) => 'sans-serif', wfMsg( 'editfont-serif' ) => 'serif', ) );
any help would be greatly appreciated. 99.107.241.162 (talk) 14:25, 21 March 2011 (UTC)
- We resolved this by upgrading from MW 1.16.0 to 1.16.2. Is there any notable bug fixes that would resolve this? 64.29.222.84 16:57, 21 March 2011 (UTC)
- This issue was resolved by upgrading to 1.16.2 99.107.241.162 17:06, 21 March 2011 (UTC)
How can i create page specific sidebar menu items
I'm using mediawiki version 1.16.0 and have setup the custom sidebar menu using Vector skin and the collapsible menus. However i would like to have specific menu displayed for certain pages or pages associated with a specific category.
Does anyone know how i might be able to do this?
I am setting up country specific categories that have associated pages and I would like to display only menu items specific to that country in the sidebar.
Thanks in advance,
Adam Greenitcompany (talk) 12:02, 22 March 2011 (UTC)
- Hi Adam, you might want to take a look - if you haven't already - at some of the extensions that have been created for customising sidebars, such as Extension:SidebarEx, Extension:CustomSidebar, Extension:DynamicSidebar (if the patch works for you), and others listed in appropriate categories. Cavila 11:17, 18 April 2011 (UTC)
- Thanks Calvia,
- I've installed the vector UsabilityInitiative extension and also enabled the Vector collapsible side menus, which work well. All apart from the fact that the first menu is always expanded no matter what i try to do. Any advice welcomed?
- I tried a few other extensions to see whether i could imitate the way i can do things in Drupal which is to be able to create a new page and menu link at the same time and also decide on its weight. I also wanted to try to be able to have the similar capability that i have in Drupal whereby i can create custom menu blocks that are switched on or off for specific pages or taxonomy terms and it seems Mediawiki cannot offer anything like it.
- In summary i have found that if i want to do this i have to create a custom template for specific pages and insert the specific menu code there, this way whenever i want a particular menu displayed on a page i can choose it from the multiboilerplateselection extension that i have installed. It works well but when you have over 200 countries to create templates for it becomes a huge amount of work when bearing in mind i have an introduction page and standard page for every country that needs to be created. This means over 400 different templates are being stored ready to call as and when required.
- I have found Mediawiki to lack very basic tools that are required for categorisation theming and menu creation. It also lacks many other tools that you would think to be standard requirements. It also seems that most wiki are pages are extremely long because of the lack of being able to have category theming available.
- A bit disappointed with MW on the whole.
- Adam Greenitcompany 08:38, 14 June 2011 (UTC)
- Well, for advice on using any particular extension, just go the respective talk page(s) and hopefully someone will respond. Customising the navigational menus in MediaWiki can be a bit of a bugger I know. I'm not too familiar with Drupal, so I'm not sure what exactly you're trying to achieve. Why for instance do you need that many different templates? Did you have a look at parser functions? Anyway, I think you're better off paying http://www.mwusers.com a visit, which is much more 'alive' compared to this place. Good luck! Cavila 17:43, 21 June 2011 (UTC)
Change Edit Page
Hello everyone i'm a new mediawiki user from italy. I wanted to ask how to configure mediawiki so that the toolbar in the edit_page of a page is like the mediawiki site.
Now the toolbar in my wiki is like this:
http://img692.imageshack.us/i/mywikieditpage.jpg/
And i want something like this:
http://img269.imageshack.us/i/mediawikieditpage.jpg/
It's possible? how can i do?
Thanks in advance
Carlo 83.103.117.254 (talk) 13:23, 22 March 2011 (UTC)
- Use Extension:WikiEditor (1.17) or Extension:UsabilityInitiative (1.16). Reach Out to the Truth 14:04, 22 March 2011 (UTC)
Password protected wiki - public pages
Hi,
For password protected wikis (requires login/password to view and edit), is it possible to create specific pages within that wiki which are public and can be viewed (not edited) by non-users? 140.147.236.194 (talk) 13:58, 22 March 2011 (UTC)
- Manual:$wgWhitelistRead —Emufarmers(T|C) 22:15, 22 March 2011 (UTC)
- check http://www.mediawiki.org/wiki/Manual:$wgWhitelistRead BRFR 22:17, 22 March 2011 (UTC)
Show sidebar only to users who are logged in
Hi,
I am wondering whether I can change the behavior of the sidebar so that the sidebar is only shown to user that are logged in. Anonymous users should not see the sidebar.
Is it possible to achieve this behavior? If yes, can you please show me how to do it?
Thanks very much for any help.
Cheers, Matthias 178.5.171.195 (talk) 16:13, 22 March 2011 (UTC)
- 1.Make a skin that has no sidebar.
- 2.Edit LocalSettings.php so this new skin is the default skin
- 3.Make sure that new user accounts created after step 2 change their skin to one with sidebar
- Note that hiding the sidebar does not protect the functions as such. Users who know mediawiki will still be able to access the functions, sidebar or not. Some more info about this topic can be found here: http://www.mediawiki.org/wiki/Extension:ChangeSessionSkin BRFR 22:14, 22 March 2011 (UTC)
Upgrade 1.15.1 --> 1.15.4 and move to new server simultaneously?
I'm rebuilding a development support system from Fedora 10 with MediaWiki 1.15.1 to Fedora 14 with MediaWiki 1.15.4 (on new hardware) and need to migrate a MediaWiki instance in the process. Can I simply export a 1.15.1 Wiki and import it on version 1.15.4? Or, do I need to do the migration between identical versions, I.e. install 1.15.1 on the new server, then migrate, and then upgrade the new server to 1.15.4? 64.129.61.130 (talk) 20:44, 22 March 2011 (UTC)
- Either method should work. Remember that you will need to copy over the images and extensions directories, and you will need to copy and update LocalSettings.php. You should also upgrade to 1.16. —Emufarmers(T|C) 22:23, 22 March 2011 (UTC)
"Browse Categories" option not available in bitnami bundle
Hello,
We have installed 3 Wiki databases on our bitnami virtual bundle. We are able to access create/modify pages. But we are not able to see "Browe Categories" Option in the left hand corner. We do have pages ties up with categories and now we have no way to see just the categories.
Any help would be appreciated. I am not able to post the link of the wiki site as we are using it behind the firewall and no one execpt my group has access to it. 65.91.151.194 (talk) 06:24, 23 March 2011 (UTC)
- Hi,
- A default installation of MediaWiki (not only in BitNami) doesn't have the "Browse Categories" link enabled by default. You need to manually add it. The steps below should be work in any MediaWiki installation although the main url may differ.
- Go to http://<ip>:<port>/mediawiki/index.php/MediaWiki:Sidebar and edit (or create if is the first time) this page. You can add:
- Category:Top_level|Browser categories
- Then when you create a category that you want to be shown in the Top_level page you need to add Category:Top_level in the category page.
- The links below include more information about how to modify the sidebar menu and how to create categories:
- MediaWiki:Sidebar
- Help:Categories --BitNami 14:00, 25 March 2011 (UTC)
Image table
I need to create an image table that users an searh through and select an image for their article. Anyone know how to do this? 79.181.115.232 (talk) 09:44, 24 March 2011 (UTC)
- very good Segmen 10:53, 24 March 2011 (UTC)
Please Help - How to get list of new features?
Hi, I am trying to get information for our NetOps group on the difference between our currently installed Mediawiki version and the latest version. I have looked around the site and simply cant find it, probably user error on my part.
Is there a quick way to see what new features, security updates, etc. are included in the current version in relation to our installed version?
We currently have this install config: MediaWiki: 1.6.10 PHP: 4.3.9 (apache2handler) MySQL: 4.1.22
I would appreciate any guidance or information.
Thanks!
Paul 216.68.206.241 (talk) 19:30, 24 March 2011 (UTC)
- Here are the release notes for the major releases which will cover most of what you are looking for: 1.7, 1.8, 1.9, 1.10, 1.11, 1.12, 1.13, 1.14, 1.15, 1.16. There of course is also security releases (For example: 1.16.2) and such to fix major issues. Peachey88 08:26, 25 March 2011 (UTC)
- Note that you can't install any newer MediaWiki versions unless you upgrade PHP. 83.87.76.163 13:32, 27 March 2011 (UTC)
How do I add restrictions some specific pages for specific user groups as well.
How do I add restrictions on viewing and editing of some specific pages for specific user groups as well. Example:
User Group A, only has permissions to view and change the home page and a page called Teacher. User Group B, only has permissions to view and change the home page and a page called Students.
Thks Rodrigopereira 20:17, 24 March 2011 (UTC)
- Do you achieved the configuration? Rbmodica 17:44, 28 December 2011 (UTC)
- This needs an extension like extension:Lockdown Bawolff 08:46, 29 December 2011 (UTC)
How do I add restrictions of some specific pages for specific user groups as well
How do I add restrictions on viewing and editing of some specific pages for specific user groups as well. Example:
User Group A, only has permissions to view and change the home page and a page called Teacher. User Group B, only has permissions to view and change the home page and a page called Students.
Thnks Rodrigopereira 20:19, 24 March 2011 (UTC)
new installation, Error 330 when accessing User Page after logging in
Hello, I have a new installation of mediawiki hosted on Windows server running PHP 5.2.14. Installation was a success and I am able to login as sysop and perform edits to the page content. Whenever I click on the sysop name to navigate to the User Page, I receive page not found error 330. I started clicking around the other built-in links, such as privacy, about, disclaimers, community portal, help and many other pages provide the same error.
I am new to the wiki engine, but proficient in PHP programming and IT related tasks. thanks. 96.56.210.46 (talk) 16:20, 25 March 2011 (UTC)
- Open the page's source in the browser. Examine the problematic links. What's the URL of the links, and what should it be? Hamilton Abreu 00:54, 27 March 2011 (UTC)
Help needed in a couple of areas
Hi all,
I'm working with semantic mediawiki, building a wiki of literature, and there are a couple of things that I tried to make work but couldn't figure out exactly how.
1. I have the form:author, which sends the entries to the category:authors, but they list by their first names, and I need it to list by their last names. I tried using DEFAULTSORT, but I don't know how to add it to the syntax of the form or template.
2. When you look at a person's page you see their occupation, for instance, author, which comes from the property occupation::author. I want this to link to the category:authors. I couldn't find any way to piped-link from a template at all.
3. I have the authors birth date separated from their birth year. Is there a way to pick and display a date without the year?
Thanks in advance, and sorry for the headache :)
Asaf
- MediaWiki 1.16.0
- PHP 5.2.15 (cgi-fcgi)
- MySQL 5.1.39-log 84.94.102.67 (talk) 08:43, 26 March 2011 (UTC)
table in template inclusion
Hi,
I have the following template, named "Highlight":
<div style="border: 1px solid #0080FF;">
{{{1}}}
</div>
If I try to include the template with an table in that way
{{Highlight|
<table>
<tr>
<td>some cell</td>
<td>some cell</td>
<td>some cell</td>
</tr><tr>
<td>some cell</td>
<td>some cell</td>
<td>some cell</td>
</tr>
</table>
}}
everything is fine. But if I add a additional attribute to the table, tr or td tag, the page is not rendered properly, only showing "{{{1}}}" as content of the div element defined in Template:Highlight.
{{Highlight|
<table class="wikitable">
<tr>
<td>some cell</td>
<td>some cell</td>
<td>some cell</td>
</tr><tr>
<td>some cell</td>
<td>some cell</td>
<td>some cell</td>
</tr>
</table>
}}
This shouldn't be the expected behaviour. So how can I add a table with some formatting (style and class attributes) in the template inclusion?
Any help is appreciated. René Schwarz (talk) 15:26, 26 March 2011 (UTC)
<gallery>
I have noticed that the gallery-feature now is variable in wide? Will this feature be in mediawiki 17 or do i have to install something to use taht on my wiki? By the way i am working with 1.16.2. Thank you for your answeres. Best Regards. Mirko Marhenke (talk) 18:04, 26 March 2011 (UTC)
Facebook I-like-Button
I would like to have an Facebook I-like-Button on each article page. Does this work? If so, what do i have to do without using the Extension:Facebook? Thank you for your anweres. Best Regards. Mirko Marhenke (talk) 18:06, 26 March 2011 (UTC)
Using the VOKI widget
Hey everyone!I'm trying to use the VOKI widget on my wiki,but it's not working =/ I used the code avaliable at this page http://www.mediawikiwidgets.org/Voki Can anyone suggest me a tutorial on how to do this?I've already enabled widgets,by putting the require once on the local settings and the widget floder on local extensions Thanks for you hel,and if you want to contact me,send a email to synister.gts@gmail.com Cheers 189.42.237.130 (talk) 14:55, 29 March 2011 (UTC)
- If your wiki is public, please provide a link to it so we can check. Reach Out to the Truth 17:13, 29 March 2011 (UTC)
- i've managed to get it working,thanks xD
- I just had to create the Widget:voki page
- My problem now is: where do i get that id,to use my voki with the widget? 189.42.237.130 11:05, 30 March 2011 (UTC)
XML Feeds
How to get the Biography Info in XML feeds for Sonia Gandhi? Gaurav.gssolutions1 (talk) 05:28, 30 March 2011 (UTC)
- You can look at m:Wikidata -- Bryan (talk|commons) 20:11, 2 April 2011 (UTC)
Annotations / Comments only visible for internal use
hello everybody,
I'm working at a company where we used MediaWiki to set up a guide for our customers how to use our software application. Now, we want to add annotations/comments so that we (people within the company) can see which parts of the guide can still be improved. I know about the "talking pages" but is there a way to see comments/annotations right in the text itself, and not on a different page?
So I'm looking for a way in which people with unrestricted access (company) can see the full page whereas people with limited access (customers) only see what they are meant to see...
Could you help me with that?
Regards, Marc 95.91.154.36 (talk) 13:50, 30 March 2011 (UTC)
- Mediawiki is inherently bad at "hiding" stuff. See Manual:Preventing access#Restrict viewing of certain specific pages. MediaWiki is not designed for your usage. (See bug 1924.) Data is not necessarily clearly delineated by namespace, page name, or other criteria, and there are a lot of leaks you'll have to plug if you want to make it so (see security issues with authorization extensions for a sample). Other wiki software may be more suitable for your purpose. You have been warned. If you must use MediaWiki, there are two basic possibilities which are delineated at that link. Banaticus 02:54, 4 April 2011 (UTC)
- You might be interested in Extension:ArticleComments. It would probably be possible to modify it so only certain groups see the comments. (One has to be careful one doing that though, since as Banaticus mentioned, access restriction in MediaWiki is trickery then it looks). Bawolff 14:23, 4 April 2011 (UTC)
- Thank you guys.
- Ok, here is my last idea :)
- Using templates in regular pages! { {ExampleXYZ} }
- The customers would only be able to see something like { {comments_firstpage} } in the "source" page and that would be it. And these templates would automatically load for someone with the regular/company access.
- We would have to have one template for every regular page we want to make comments about but I don't see this as too much effort.
- ..now I'm trying to figure out how to prevent the customers from loading/viewing those templates...does that make sense? 95.91.154.36 16:12, 5 April 2011 (UTC)
influence content based on domain
We have a wiki installation that is accessed from multiple similar domains. e.g. wiki.mydomain.com, wiki.mydomain.ca, wiki.mydomain.co.uk. Some wiki articles can apply to all domains but other articles apply to only one domain. We want to be able to cause the articles that apply to only one domain to be accessible on only one domain. For example, if you search for text in the article, it will not show up in search results, or the article will not appear in the list of articles belonging to a category.
Is this remotely possible?
One option is to have multiple wiki installations, each with its own database. But then you have a lot of duplicated content (I'm referring to the articles that apply to all domains) and have the extra overhead of, when you have to update an article, having to update the article on all installations. I don't think we want that. Camcam~mediawikiwiki (talk) 22:58, 30 March 2011 (UTC)
- You could use multiple wikis and enable Manual:$wgEnableScaryTranscluding to transclude pages from other wikis. -- Bryan (talk|commons) 20:10, 2 April 2011 (UTC)
- So you would have a master wiki and sub-wikis. The master wiki contains all of the content. The sub-wikis would have articles but the content of these articles would just transclude from the master wiki. Would the sub-wikis still index themselves? What is, if you search a sub-wiki for text that is in a master wiki article, will the sub-wiki return results? Camcam 22:46, 19 April 2011 (UTC)
Deleting account . . .
How can I delete my account???,,, i have 2, i dont want that... Thank you . . . Brg9820 (talk) 05:53, 31 March 2011 (UTC)
- Try: http://www.mediawiki.org/wiki/Extension:User_Merge_and_Delete Ron Barker 09:04, 1 April 2011 (UTC)
- Thanks Ron . . . I have another question, I`ll aprecciate if you can answer it too if you have the time . . .
- How can I delete some files that I updated in my account?
- Thanks a lot for your answer . . . 187.138.47.159 21:05, 1 April 2011 (UTC)
- I don't know which account that you are referring to but what I do know is that you need to be very careful about deleting files unless you know exactly what you are doing. Sorry that I cannot be of more help. Ron Barker 06:39, 2 April 2011 (UTC)
EventSource RC feed
Is there any way to get a javascript EventSource recent changes feed? Yair rand (talk) 07:36, 31 March 2011 (UTC)
- Recent changes updates itself automatically already. You mean you want something like an RSS feed of the RecentChanges page? Try this extension: Extension:RSS feed for recent changes. :) Banaticus 02:55, 4 April 2011 (UTC)
- No, I meant a feed of server-sent javascript events of the RecentChanges page, not RSS. Yair rand 04:47, 4 April 2011 (UTC)
- I'm not sure what you mean by server-sent js events of RC. We do support getting the contents of the recent changes page in JSON format ( http://www.mediawiki.org/w/api.php?action=query&list=recentchanges&rclimit=50&format=json ) Is that what you want.
- As an aside, in regards to Extension:RSS feed for recent changes. Such a feature is in core (Add ?feed=rss to the RC page), so that extension is not really needed. Bawolff 14:26, 4 April 2011 (UTC)
- Just requesting the json formatted RC requires repeatedly pinging the servers to keep have it continually up-to-date, and makes it impossible to really have a live feed. I meant an EventSource feed, with the server messaging the browser whenever there's a new edit. Yair rand 21:11, 4 April 2011 (UTC)
- Not in core, you'd need an extension of some sort. I am not aware of any that exist currently. (EventSource thing still seems very new from what I can tell). However, mediawiki supports sending a udp packet on each edit (used for irc channels currently), so all that's really needed is some sort of script to catch the udp packets, and output them in an EventSource manner, (or at least that's what I gather from a quick read of your link).
- I would not be surprised though if someone had implemented this on the toolserver. Bawolff 21:32, 4 April 2011 (UTC)
- Just requesting the json formatted RC requires repeatedly pinging the servers to keep have it continually up-to-date, and makes it impossible to really have a live feed. I meant an EventSource feed, with the server messaging the browser whenever there's a new edit. Yair rand 21:11, 4 April 2011 (UTC)
- No, I meant a feed of server-sent javascript events of the RecentChanges page, not RSS. Yair rand 04:47, 4 April 2011 (UTC)
Wikipedia clone runs very slow
We are having an issue with page access on our Wikipedia clone.
We used the latest MediaWiki, v. 1.16.2 as well as the January 15, 2011 Wikipedia dump fromdownload:enwiki/20101011/ Our server is running Ubuntu 10.10 64bit Desktop Edition. In addition, we are using PHP v. 5.3.3, MySQL v. 5.1.49, and Apache v. 2.2.16.
Depending on the page we query, response time varies from 15 second to simply timing out.
Has anybody seen this issue or know how we can achieve a query time on par with the actual Wikipedia website?
You can access the webpage from http://66.253.205.138/wikipedia
Thank You, TJ 66.253.205.138 (talk) 17:32, 31 March 2011 (UTC)
- Install php-apc. -- Bryan (talk|commons) 18:20, 1 April 2011 (UTC)
- Thank you for replying to our post Bryan.
- We installed php-apc, but this did not have any noticeable effect on the first time load speeds of our Wikipedia webpages.
- Do you have any idea what could be causing our load speed to be so slow?
- Thank You,
- TJ 66.253.205.138 19:00, 2 April 2011 (UTC)
- by any chance have you actually enabled it in LocalSettings.php with $wgMainCacheType? 75.137.144.177 19:29, 2 April 2011 (UTC)
- Check the tips in Manual:Performance_tuning -- Bryan (talk|commons) 19:57, 2 April 2011 (UTC)
- Have you tried reducing the number of calls on the parser? For instance, if you have say 400 {{cite...}} templates on a Wikipedia page, it may take 30 seconds for the page to load because of all the #if's in the citation template. Banaticus 03:04, 4 April 2011 (UTC)
- Thank you all for the responses.
- We installed memcached and enabled it in LocalSettings.php, however there was no noticeable gain in load times. We then attempted to enable output caching according to the Performance_tuning page, but the webpages are not being cached either.
- The settings we used in LocalSettings.php are the following:
- $wgMainCacheType = CACHE_MEMCACHED;
- $wgParserCacheType = CACHE_MEMCACHED;
- $wgMessageCacheType = CACHE_MEMCACHED;
- $wgMemCachedServers = array();
- $wgSessionsInMemcached = true;
- $wgUseFileCache = true;
- $wgFileCacheDirectory = "/var/www/wikipedia/cache";
- We created the cache directory with full read/write/execute (777) permissions for all users, so it should not be a permissions problem.
- Thank You,
- TJ 66.253.205.138 21:37, 6 April 2011 (UTC)
- If $wgMemCachedServers is set to an empty array, I don't think memcached will end up actually being used. —Emufarmers(T|C) 06:21, 8 April 2011 (UTC)
- Thanks for responding Emufarmers.
- We've changed out MediaWiki LocalSettings file as you suggested and added our server to the list of memcached servers:
- $wgMemCachedServers = array("127.0.0.1:11211");
- We then rebooted the server and tested to see if there was any noticeable changes.
- Unfortunately, there was no noticeable change in load speeds. The web pages are being successfully cached in the cache directory, however it does not appear that they are being used when initially loading the websites (initial load takes up to 10 minutes).
- Refreshing the pages is very fast, however it pales in comparison to the initial load time. 66.253.205.138 23:38, 8 April 2011 (UTC)
- You need an opcode cache, among other things. Look at Manual:Performance tuning and Manual:Cache more carefully. —Emufarmers(T|C) 09:57, 9 April 2011 (UTC)
- If $wgMemCachedServers is set to an empty array, I don't think memcached will end up actually being used. —Emufarmers(T|C) 06:21, 8 April 2011 (UTC)
- I suggest you to enable profiling to see which step slows your page.
- http://www.mediawiki.org/wiki/Manual:How_to_debug#Profiling 101.95.23.150 06:05, 29 November 2012 (UTC)
I'm New - Where do I go to start?
I just installed. Is there a Dashboard? Easy to use interface? I would like to do the basics like put my logo on and set up pages. Where can I find it? CChicago (talk) 20:14, 31 March 2011 (UTC)
- Try the manual at:
- Manual:Contents Technical Manual Or Consult the User's Guide for information on using the wiki software.
- Or use google: this is what I found using google
- Manual:FAQ#How do I change the logo.3F change logo
- http://kb.siteground.com/article/How_to_change_my_MediaWiki_logo_image.html SiteGround how to change logo
- What do you mean by "set up pages". You can create a new page by searching forthe title. If there is no such page then you will be given the option of creating the new page. Ron Barker 07:29, 1 April 2011 (UTC)
- There is no such thing as a user friendly administrator interface for MediaWiki. You might try Extension:Configure -- Bryan (talk|commons) 18:19, 1 April 2011 (UTC)