Project:Support desk/Flow/2011/10
| 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. |
Unable to complete installation: Database returned error 1146: table interwiki doesn't exist
1.
- MediaWiki 1.17.0
- PHP Version 5.3.5
- MYSQL 5.1
2. I am trying to install a MediaWiki at mariano.bplaced.net/wiki. The installation process fails at the point of creation of interwiki tables:
Interwikitabellen werden eingerichtet…Es ist ein Datenbankfehler aufgetreten. Der Grund kann ein Programmierfehler sein. Die letzte Datenbankabfrage lautete:
SELECT * FROM `wiki_interwiki` LIMIT 1
aus der Funktion „DatabaseInstaller::populateInterwikiTable“. Die Datenbank meldete den Fehler „1146: Table 'mariano.wiki_interwiki' doesn't exist (localhost)“.
This problem has ocurred before (see here for error in English). I can access my database via phmyadmin, there is no interwiki-table. I dropped all tables and repeated the installation procedure, with the same result. I have tried to create the table (as described here) by hand via phpmyadmin but failed, as I do not have all necessary information.
Any help would be appreciated. Could this error be caused by limited user rights?
Best regards! Marianoju (talk) 11:18, 1 October 2011 (UTC)
- MediaWiki has now been successfully installed, after I contacted the support (via ticket system). I do not know, if the supprt changed any settings convering the server, PHP or whatever. Mariano-J 11:43, 1 October 2011 (UTC)
- I've got the same problem. Could anyone can help me? Airnix 22:02, 6 October 2011 (UTC)
- The solution is to give all privileges for mysql user on wiki database Airnix 22:20, 12 October 2011 (UTC)
- I got the same problem, I'm using my master login name for everything, so it has all the priviledges and it is still not working. Any other ideas? 173.51.1.66 20:24, 6 December 2011 (UTC)
- I've got the same problem. Could anyone can help me? Airnix 22:02, 6 October 2011 (UTC)
Error in SVGMetadataExtractor
Anyone know what might be causing this error:
- Fatal error: Class 'XMLReader' not found in .../includes/media/SVGMetadataExtractor.php on line 52 Bud0011 (talk) 20:04, 1 October 2011 (UTC)
- Your PHP is built without XMLReader support. Max Semenik 04:29, 2 October 2011 (UTC)
"404: not found" page instead of file pages
[1] [2] This is the problem. You can insert thumbnails in articles, but if you go to file pages, you get 404 error. Why does that happen and how to fix it? Thanks. Beznogim (talk) 23:01, 1 October 2011 (UTC)
- It looks like your webserver (or a reverse proxy in front of it) is misconfigured. —Emufarmers(T|C) 23:59, 1 October 2011 (UTC)
#arraymap does not split string by delimiter
Hello,
the following template:
{{#get_web_data:
url=http://datapoke.org/somepage/somepage/?function=somefunction&var1={{{var1}}}&var2={{{var2}}}
|format=JSON
|data=region_full=region_full,region=region,location=location
}}
{{#for_external_table:
{{#set:keyword={{{region_full}}}}}
==={{{region_full}}}===
{{#arraymap:{{{location}}}|,|x|[[Location:x|x]]|\n\n}}
}}
Location is returned as a string such as:
"Dutch Harbor,Juneau,Nome,Fairbanks,Anchorage"
Which should be split by "," and joined by "\n\n" to produce:
Dutch Harbor Juneau Nome Fairbanks Anchorage
- arraymap works fine when used like this:
{{#arraymap:{{#external_value:location}}|,|x|[[Location:x|x]]|\n\n}}
But in this case only the first value of location is returned for every iteration of the loop.
- arraymap breaks when I omit #external_value.
Any feedback is appreciated.
Thanks Beau 99.64.90.110 (talk) 01:42, 3 October 2011 (UTC)
I'm a member of a wiki with no admins, bureaucrats or sysops
I became a contributor to a wiki a little more than a month ago. I realized about two weeks ago that I'm the sole contributor on the site. Shortly after, I realized that all of the admins, sysops and bureaucrats are inactive. The main thing that bothered me about this is that the front page was outdated, sloppy and uneditable.
So then I started browsing the Recent Changes hoping to find users other than myself updating the wiki, and what I noticed was a MASSIVE amount of spam being created hourly. I tried e-mailing one of the bureaucrats to bring the issues to his attention and I never got a reply.
Seeing no other ways to improve the situation, I decided to follow the link at the bottom of the page to Mediawiki (which I'm completely unfamiliar with by the way, so please go easy on me if this is in the wrong place). What I'd like to know from you guys is if there's any way to either have new bureaucrats assigned or have the wiki shut down so that a new one can be made in its place.
Thank you! 70.251.54.136 (talk) 08:00, 4 October 2011 (UTC)
- Hi
- I am not very good at this either. I have a wiki on my computer. Others and the one you mention is on a server. It seems to me that you cannot do much about the situation without having access to the server account. This link is a typical server that hosts wikis: http://www.siteground.com/index.htm?referrerid=81231&gclid=CPGPo43vz6sCFYMPfAodl3HZVg
- You could have your own wiki on that or similar server. You will need to upoad mediawiki on to the server. I do not know much about doing that as I downloaded mediawiki onto my computer. I used this link http://guides.jlbn.net/setwiki/setwiki1.html for information on how to do it. The site is a litle out of date in that it suggests downloading mediawiki 1.12.0 which is an old version of mediawiki.
- PS: have a look at this link it will give you some idear on how to upload mediawiki http://www.siteground.com/site_search_results.htm?site_search_qry=mediawiki
- Best of luck Ron Barker 20:38, 4 October 2011 (UTC)
- No, there's nothing you can do except contact the other administrators for the site and hope one of them responds. Sorry. —Emufarmers(T|C) 00:59, 5 October 2011 (UTC)
Renaming #REDIRECT
On Wikipedia in my language, it is possible to make redirect using code #PREUSMERITEV instead of #REDIRECT. I am doing a wiki in same language, and I'm wondering, how can I make #PREUSMERITEV usable instead of #REDIRECT. Thanks. 109.182.84.40 (talk) 12:21, 4 October 2011 (UTC)
- So called magic words (like REDIRECT) are translated into many languages. They must be in the content language of your wiki.
- If your wiki has
$wgLanguageCodeset to"nl", then the wiki will parse#DOORVERWIJZINGjust like#REDIRECT. - If your wiki has
$wgLanguageCodeset to"sl", then the wiki will parse#PREUSMERITEVjust like#REDIRECT. Krinkle 18:13, 4 October 2011 (UTC)- Tnx, it works fine now. :D 89.142.77.12 13:00, 5 October 2011 (UTC)
Offering different content to different user groups
I am not a MediaWiki user yet. I am quite sure I will install it on my enterprise. Is it possible to offer different content to different user groups on MediaWiki software ? How can I set it up?
Thanks a lot. Jjeffman (talk) 18:52, 4 October 2011 (UTC)
- I too installed Mediawiki hoping to be able to have both a private and public version of the site. There are extensions such as ConfirmAccount that can help with limiting availability. That said, there are apparently many issues regarding restricting content. Security issues with authorization extensions covers some of the issues with using Mediawiki for this purpose, and it also links to Category:Page specific user rights extensions. I haven't experimented with these extensions, but perhaps this is a place to start? Hope this helps! --Policy Reformer(c) 01:37, 8 October 2011 (UTC)
I have Bad (Turkish) chracters. Upgrade to 1.17 from 1.16. all of the DB is bad.
I was run update.php, and all of the Database have wrong turkish chracters now.. I do not have backup. my site is going down.
ö is ö ı is ı Ş is ÅŸ ... all special chracters is converted to bad chracters.
how can i fix this??
I do too many updates ago.. but this is first. 88.236.202.239 (talk) 19:00, 4 October 2011 (UTC)
Creating multisite search using search-redirect.php script
Hello! I want to create a multisite structure like wikipedia.org, built on the mediawiki engine. It has to look as:
mysite.com ru.mysite.com en.mysite.com etc. .. I am going to create a main page like wikipedia.org. In other words, it is a static page consisting hyperlinks to ru.mysite.com, en.mysite.com and so on... But! There is 'Search' button. That search engine use search-redirect.php script. Where I can get this script and what I have to do else, that my search engine begin works in all sites? Thank you for help! 176.14.11.124 (talk) 20:34, 4 October 2011 (UTC)
snapshot download
Hello,
I have committed my extension FrequentPatternTagCloud Extension:FrequentPatternTagCloud to the mediawiki svn since two or three weeks.
When I want to download a snapshot of the extension via the infobox on the page, there is no entry of "FrequentPatternTagCloud" in the dropbox on page Special:ExtensionDistributor
What I need to do to get my extension appearing in the list?
Thanks for help! FrequentPatternTagCloud (talk) 09:54, 5 October 2011 (UTC)
Error in Rendering of main page Toolbox menu
Product Version MediaWiki 1.17.0 PHP 5.2.4-2ubuntu5.17 (apache2handler) MySQL 5.0.51a-3ubuntu5.8
Sorry my wiki is firewalled so I can't get you access. I can't add a screenshot yet as I'm a new user sorry.
Hi All,
I updated from 1.15.0 of MediaWiki to 1.17.0 I'm now getting the following error on the toolbox menu on most pages (Doesn't happen when I'm in "Special pages"). Fatal error: Using $this when not in object context in /usr/share/mediawiki/includes/Linker.php on line 2065
After the upgrade I have upgraded all of my extensions except for AWC. I did however disable AWC and still got the error.
I also had to fix the ownership permissions on the images directory to get uploading images working again.
Any help would be appreciated. 120.151.157.197 (talk) 01:08, 6 October 2011 (UTC)
- Having the exact same error though with "collection" extension. 178.135.63.122 09:02, 23 January 2012 (UTC)
- Make sure the file Linker.php is the correct file that's distributed with the official MediaWiki sources for whatever version you have. try temporarily disabling all extensions to see if it makes the error go away (using A 1.18 or later extension with MW 1.17 would probably cause this error) Bawolff 21:35, 23 January 2012 (UTC)
mediawiki installation without webinstaller??
i install nearly every day medawikis for users. since 1.17.0 i have to download the localsettings.php and copy it via scp to the webserver. in 1.16 i only have to move it from config folder to main folder, this was much easier. Is there some possibility to install medawiki without the webinstaller? this would be awesome.
thanks
kero 134.76.4.194 (talk) 09:06, 6 October 2011 (UTC)
- 1.17 has maintenance/install.php command-line script. We haven't advertised it much because it's a bit unfinished, but it should work in most cases. Just run it to see what parameters it expects. Max Semenik 10:19, 6 October 2011 (UTC)
- great...i will try
- thanks 134.76.4.194 11:03, 6 October 2011 (UTC)
- We try
- php install.php --dbname wiki_test --dbpass 123456 --dbserver 1.2.3.4 --dbtype mysql --dbuser wikidbuser --email wikiadmin@example.com --installdbpass 123456 --installdbuser wikidbuser --pass 123456 --scriptpath /wiki TESTWIKI WikiSysop
- it creates Localsettings.php in /var/www/wiki but the script path is wrong, the sriptpath is set to
- $wgScriptPath = "install.php";
- instead of
- $wgScriptPath = "/wiki";
- and the email for WikiSysop is not set.
- any ideas?
- thanks
- kero 134.76.4.194 13:36, 6 October 2011 (UTC)
- The solution is to set these manually :/ Thanks for the report, I'll take a look at these issues. Max Semenik 15:36, 6 October 2011 (UTC)
- --scriptpath seems to work on trunk, while --email does nothing, indeed. I've removed it in r99118. Max Semenik 17:02, 6 October 2011 (UTC)
Short URL
Hi
I need to setup site to view wiki instead of index in link. Can you help me? my email tut2222 AT zoznam DOT sk
I appreciate your helps 95.102.42.184 (talk) 14:47, 6 October 2011 (UTC)
- Is this what you are looking for: Manual:Short URL? TBloemink 15:17, 6 October 2011 (UTC)
- Yes it is. I know about that but I am not able to do that. :( I need help to setup it up. 78.98.155.90 07:10, 7 October 2011 (UTC)
- I try it but my LocalSettings is empty. 78.98.155.90 07:20, 7 October 2011 (UTC)
- Yes it is. I know about that but I am not able to do that. :( I need help to setup it up. 78.98.155.90 07:10, 7 October 2011 (UTC)
User Login Problem
Hello, The only way I can actually get into the areas of the Wiki is to check the checkbox that says “remember my account information”, and I’m unable to update the site with new information. I get the error: "Sorry! We could not process your edit due to a loss of session data. Please try again. If it still doesn't work, try logging out and logging back in." 24.97.58.82 (talk) 18:23, 6 October 2011 (UTC)
- Try clear browser cache. Same problem with other browsers or on different computers? 87.123.185.7 12:55, 12 October 2011 (UTC)
- thanks but it didnt work. the problem does appear to be widespread. Do you think it may require an update? I am not sure what version I am at currently but I think it is older. Thanks again... 24.97.58.82 19:53, 13 October 2011 (UTC)
1044 Error Cannot Create Database
- MediaWiki version 1.17.0
- PHP version 5.2.14
- MySQL version 5.0.92-community
- Below is a copy and paste of the installation error. My correct user name has been replaced with USER, and the directory path has been removed up to the actual wiki folder. The DB user name is correct as I used it 2 days ago to install another wiki software but removed due to lack of support.
- MediaWiki 1.17.0 installation
- Setting up database...A database query syntax error has occurred. This may indicate a bug in the software. The last attempted database query was:
- CREATE DATABASE `wiki`
- from within function "MysqlInstaller::setupDatabase". Database returned error "1044: Access denied for user 'USER'@'localhost' to database 'wiki' (localhost)".
- Backtrace:
- 0 /wiki/includes/db/Database.php(751): DatabaseBase->reportQueryError('Access denied f...', 1044, 'CREATE DATABASE...', 'MysqlInstaller:...', false)
- 1 /wiki/includes/installer/MysqlInstaller.php(415): DatabaseBase->query('CREATE DATABASE...', 'MysqlInstaller:...')
- 2 /wiki/includes/installer/Installer.php(1314): MysqlInstaller->setupDatabase(Object(MysqlInstaller))
- 3 /wiki/includes/installer/WebInstallerPage.php(1084): Installer->performInstallation(Array, Object(MysqlInstaller))
- 4 /wiki/includes/installer/WebInstaller.php(250): WebInstaller_Install->execute(Array, Array)
- 5 /wiki/mw-config/index.php(46): WebInstaller->execute()
- 6 /wiki/mw-config/index.php(14): wfInstallerMain()
- 7 {main} 24.93.251.64 (talk) 16:22, 7 October 2011 (UTC)
19:36, 7 October 2011 (UTC) 22:02, 12 December 2011 (UTC)
- I had the same issue... I could create the dbase manually but I am getting the same error... what is the trouble? I am guessing this is a simply misconfiguration on my part my I am missing it... 161.43.253.57 00:58, 20 January 2012 (UTC)
- Ouch - overlooked a very critical piece.
- 1. create the table yourself in cpanel or whatever you use.
- 2. note the exact table name... often this is USERNAME_tablename
- --- this is where I screwed up because I was just trying tablename
- And then it worked. 161.43.253.57 01:18, 20 January 2012 (UTC)
- I had the same issue... I could create the dbase manually but I am getting the same error... what is the trouble? I am guessing this is a simply misconfiguration on my part my I am missing it... 161.43.253.57 00:58, 20 January 2012 (UTC)
- Have you permissions to create a new database? Try to create it manually. wargo 12:35, 8 October 2011 (UTC)
- Basically, this is a probably a case of privilege. You do not have privilege to create a new database (i.e. wiki). But you can still create new table. So what you can do is:
- Under database, enter your existing database (check via phpmyadmin)
- Under prefix, enter 'wiki_' (the underscore will separate the table name and the prefix)
- This should resolve the error, as it did for me. Kai 20:22, 25 January 2013 (UTC)
- This is a very very late reply, but I had the same problem today and just figured out a solution that wasn't listed here. If you're installing MediaWiki through certain hosting companies (HostGator in my case) you have to not only create the database and db user in your cPanel, but you also have to give your user permission to control the database in cPanel before MW can complete the install. 173.81.177.176 (talk) 18:11, 4 May 2020 (UTC)
- Seems that I am getting this same error with my roster (Ionos, formerly 1and1). What is weird for me is that it's getting a 'Error 1044: Access denied for user "<some random username that looks like a password>". With Sonos, you create the username/pw/database all ahead of time and I put it into the setup. It seems like MediaWiki is trying to create something that already exists. With a WP install, I simply put these credentials into a config file and the install goes smoothly. Any advise would be greatly appreciated! DragnDon (talk) 18:59, 15 October 2021 (UTC)
Error Page is not parsing wikitext in System Message
- Mediawiki:1.17.0
- PHP: 5.2.9 (apache2handler)
- MySQL: 5.0.92-log
Link to example of problem: http://clubs.uci.edu/sba/w/Special:EmailUser/Law.Student
What I'm trying to do: When a user receives an Error because they are not logged in, I'd like have that Error Message point to Special:Mailto/(Username they were trying to email) so that they can use Special:Mailto. (I realize it'd be easier to just always use Special:Mailto, but I'd prefer to have them use EmailUser if they are logged in.
How I'm trying to do it: Within LocalSettings.php I have:
require_once("$IP/extensions/EmailUserAnon.php");
$wgHooks['EmailUserPermissionsErrors'][] = 'emailUserAnon';
$wgNamespacesWithSubpages[NS_SPECIAL] = true;
Manual:Hooks/EmailUserPermissionsErrors
Body of EmailUserAnon.php:
function emailUserAnon( $user, $editToken, &$hookErr ) {
$hookErr = array('permError', 'parseinline', 'sendToAnonEmail' );
return true;
}
Text of those system messages: http://clubs.uci.edu/sba/w/MediaWiki:PermError , http://clubs.uci.edu/sba/w/MediaWiki:SendToAnonEmail
Below are some more funny things I found as I was digging, but I don't believe they affect this problem. Again, I think I just need to figure out how to get it to parse the wikitext in the system message.
| Extended content |
|---|
|
Note: $hookErr looks like it's out of order, but as you see on the page I initially referenced, it's finding the right system message. Explanation: When I tried to use just permError and sendToAnonEmail, I got a fatal PHP error because it won't take NULL for the third term (which it infers when I specify only 2 terms). First up, here's the call of OutputPage::ShowErrorPage from SpecialEmailUser.php: $error = self::getPermissionsError( $wgUser, $wgRequest->getVal( 'wpEditToken' ) );
switch ( $error ) {
case null:
# Wahey!
break;
case 'badaccess':
$wgOut->permissionRequired( 'sendemail' );
return;
case 'blockedemailuser':
$wgOut->blockedPage();
return;
case 'actionthrottledtext':
$wgOut->rateLimited();
return;
case 'mailnologin':
$wgOut->showErrorPage( $error, "{$error}text" );
return;
case 'usermaildisabled':
$wgOut->showErrorPage( $error, "{$error}text" );
return;
default:
# It's a hook error
list( $title, $msg, $params ) = $error;
$wgOut->showErrorPage( $title, $msg, $params );
return;
}
from getPermissionsError: public static function getPermissionsError( $user, $editToken ) {
...
wfRunHooks( 'UserCanSendEmail', array( &$user, &$hookErr ) );
wfRunHooks( 'EmailUserPermissionsErrors', array( $user, $editToken, &$hookErr ) );
if ( $hookErr ) {
return $hookErr;
}
Diving through the code, I found this in OutputPage::showErrorPage: array_unshift( $params, 'parse' ); array_unshift( $params, $msg ); $this->addHTML( call_user_func_array( 'wfMsgExt', $params ) ); And within GlobalFunctions.php, wfMsgExt has the code below. I believe this is causing the weird interpretation of my params: function wfMsgExt( $key, $options ) {
global $wgOut;
$args = func_get_args();
array_shift( $args );
array_shift( $args );
$options = (array)$options;
...
if( in_array( 'parse', $options, true ) ) {
$string = $wgOut->parse( $string, true, !$forContent );
} elseif ( in_array( 'parseinline', $options, true ) ) {
$string = $wgOut->parse( $string, true, !$forContent );
$m = array();
if( preg_match( '/^<p>(.*)\n?<\/p>\n?$/sU', $string, $m ) ) {
$string = $m[1];
}
} elseif ( in_array( 'parsemag', $options, true ) ) {
global $wgMessageCache;
if ( isset( $wgMessageCache ) ) {
$string = $wgMessageCache->transform( $string,
!$forContent,
is_object( $langCode ) ? $langCode : null );
}
}
|
--Policy Reformer(c) 20:00, 7 October 2011 (UTC)
- Fixed it. As mentioned above (in extended content), the line that actually outputs the error is:
$wgOut->showErrorPage( $title, $msg, $params );- When examining OutputPage::show:ErrorPage(), you find:
$this->addHTML( call_user_func_array( 'wfMsgExt', $params ) );- addHTML() doesn't parse wikitext. addWikiText does. I couldn't figure out a way to avoid editing SpecialEmailUser.php to avoid this, so I made the following modifications to core files.
- I added the following as a new function to OutputPage.php.
/** Added by Ed Wunch for SpecialEmailUser.php */ public function showErrorPageWiki( $title, $msg, $params = array() ) { if ( $this->getTitle() ) { $this->mDebugtext .= 'Original title: ' . $this->getTitle()->getPrefixedText() . "\n"; } $this->setPageTitle( wfMsg( $title ) ); $this->setHTMLTitle( wfMsg( 'errorpagetitle' ) ); $this->setRobotPolicy( 'noindex,nofollow' ); $this->setArticleRelated( false ); $this->enableClientCache( false ); $this->mRedirect = ''; $this->mBodytext = ''; array_unshift( $params, 'parse' ); array_unshift( $params, $msg ); $this->addWikiText( call_user_func_array( 'wfMsgExt', $params ) ); $this->returnToMain(); }
- I then modified the calling line in SpecialEmailUser.php.
$wgOut->showErrorPageWiki( $title, $msg, $params );- Again, this is the lazy man's version. I'm sure that if I spent some time on it, I could've avoided modifying OutputPage.php, and put the function above in an extension file, and called on global $wgOut, and just replaced all instances of $this above with $wgOut. Still, I don't know how to avoid that calling line showErrorPage() which calls the bad function.
- Anyway, hope this helps! --Policy Reformer(c) 05:23, 10 October 2011 (UTC)
MediaWiki installation doesn't work
Hi, I installed MediaWiki to by subdomain (for example wiki.website.com) but I have some problems:
- When I open the subdomain wiki.website.com I got the following message:
MediaWiki 1.17.0 LocalSettings.php not found. Please set up the wiki first.
The logo picture at the top of the page cannot be found.
- I I click the link 'Please set up the wiki first' I go to the page 'http://mw-config/index.php' instead of 'http://wiki.website.com/mw-config/index.php'. - If I open the website 'http://wiki.website.com/mw-config/index.php' directly I got the following errors: MessagesEn.php is missing.
Backtrace: --11 error codes here--
How is that possible?
The source code for my localhost and live website is also different: (but I'm using the same MediaWiki version and code)
- Localhost: Please <a href="/wiki.website.com/mw-config/index.php"> set up the wiki</a> first.
- Live website: Please <a href="\/mw-config/index.php"> set up the wiki</a> first.
Thanks for the help! Jordy8 (talk) 11:53, 8 October 2011 (UTC)
- check if exists file: languages/messages/MessagesEn.php wargo 12:17, 8 October 2011 (UTC)
- Yes, it exists. But I know what the problem is, but I don't know how to solve it. MediaWiki cannot get the right path: It should be '/wiki.website.com/' but it is only '/'. HOw is that possible? Please help! Jordy8 12:28, 8 October 2011 (UTC)
- Give your adress wargo 12:41, 8 October 2011 (UTC)
- I don't think you need it, correct me if I'm wrong. I think it's the webserver. If I replace $path to '/' in includes/templates/NoLocalsettings.php the redirects for that page are correct. So the code:
- $script = $_SERVER['SCRIPT_NAME'];
- $path = pathinfo( $script, PATHINFO_DIRNAME ) . '/';
- $path = str_replace( '//', '/', $path );
- $ext = pathinfo( $script, PATHINFO_EXTENSION );
- returns \/ but it should return /
- Is that wrong in the webserver or??? Jordy8 12:45, 8 October 2011 (UTC)
- Give your adress wargo 12:41, 8 October 2011 (UTC)
- Yes, it exists. But I know what the problem is, but I don't know how to solve it. MediaWiki cannot get the right path: It should be '/wiki.website.com/' but it is only '/'. HOw is that possible? Please help! Jordy8 12:28, 8 October 2011 (UTC)
API - Data
Is there anyway to dump the data of everything in an article through the API? 86.150.47.78 (talk) 03:12, 9 October 2011 (UTC)
how to open images in a new window?
Hi I have a question about using images on wiki. I wanna learn how to use images on wiki that when clicking on it, it opens in a new window? how can I do that?
thanks in advance for your help Acc.hadad (talk) 17:41, 9 October 2011 (UTC)
- Have a look at: w:en:Wikipedia:Images_linking_to_articles Ron Barker 10:09, 11 October 2011 (UTC)
- Thanks a lot dear friend
- I read all of this page and the other linked pages. But it didn't help me...
- My question is that when you click on an image, how it opens in a new window?
- Thanks, Thanks and Thanks for your help :) Acc.hadad 12:42, 12 October 2011 (UTC)
$wgExternalLinkTargetlets you open external links in a new window. Doesn't affect links to wiki pages though.- If you click a link with Ctrl or the middle mouse button, that should open it in a new tab/window. It might be your only option. Reach Out to the Truth 16:19, 12 October 2011 (UTC)
- Thanks
- It helped me :) Acc.hadad 17:40, 13 October 2011 (UTC)
Trouble with pictures at screen
Hello,
I have started a wiki about degus (small rodents). I have complete installation, people can change and write webpages normally. But for pictures (and the subject need illustrations absolutly ) I can load pictures on the wiki or from the wiki on my computer, but the pictures do not appears on the page (I have only empty squares).
I thought first that was my host but I found a lot of wiki on the same host (called Free for people who know it) so I m not sure of the causes.
the wiki: http://dinguedestodons.free.fr/Wiki/index.php?title=Accueil
sorry for my english I didn't practice for too long.
I hope I didnt ask something with a answer in the FAQ.
Thank you 82.241.249.141 (talk) 12:46, 10 October 2011 (UTC)
- Hi dear friend
- I saw and registered in your website.
- I saw some of your pages, I think your problem is that you don't use ".jpg" OR ".png" OR .... in your links.
- for example this is not a correct form:
- [[Portail:Alimentation]]
- the correct form is:
- [[Portail:Alimentation.jpg]] Acc.hadad 12:39, 12 October 2011 (UTC)
Forcing justification of a line
Hi, a technical user question that I hope someone knows a solution for:
Is there any way when using the Mediawiki software to force justification (both left and right) for the last line of a paragraph? The idea is that the last line of the paragraph (or the only line if there is only one line of text in the paragraph), rather than showing blank space after the text ends, will be justified on both sides (this would obviously force the spaces between words to be expanded).
This function is necessary for the presentation of texts with specialized format at Wikisource. If possible, it would be employed both for "regular" wikitext as well as for text within the cells of tables. I'd be grateful to anyone who can suggest a solution. Thanks, Dovi 13:47, 10 October 2011 (UTC)
- It does seem you can justify: w:en:Justification_(typesetting) Ron Barker 10:00, 11 October 2011 (UTC)
- That doesn't mention the type of justification Dovi is looking for. I'm not sure it even exists. And if it doesn't exist in CSS, there's nothing we can do about it. Reach Out to the Truth 14:34, 11 October 2011 (UTC)
- Thanks for the input guys. If anyone does come up with any sort of trick that might allow for accomplishing this I would be grateful. Dovi 17:51, 13 October 2011 (UTC)
- Hi, it turns out that this is a known function in word processors called "forced justify."
- And I found some old discussion of doing it in CSS here and here. So is there any trick that could make it possible in Mediawiki?
- Also, are there any other Mediawiki forums where it might be appropriate to ask a question like this?Dovi 11:39, 2 November 2011 (UTC)
- Ah, good. Then just add that style to your text. If CSS supports it, MediaWiki supports it. Reach Out to the Truth 15:05, 2 November 2011 (UTC)
- I have no idea how to use CSS (I just found the results from a Google search). Could you give me an example of how to add the style in order to format a sample paragraph that way? Dovi 16:25, 2 November 2011 (UTC)
- Since it does seem possible, could anyone give me a boost and explain how to write the code using CSS? Dovi 15:06, 3 November 2011 (UTC)
- I tried giving you an example of how to do it, but it looks like MediaWiki's sanitizer is removing it. Additionally, my browser is old and doesn't support it. I have no access currently to newer browsers, so I can't determine which browsers would support it. Reach Out to the Truth 15:14, 3 November 2011 (UTC)
- "but it looks like MediaWiki's sanitizer is removing it"
- What does that mean??? :-)
- Could you leave the code on my user page and I'll try it with my browsers? Thanks, Dovi 15:20, 3 November 2011 (UTC)
- I tried giving you an example of how to do it, but it looks like MediaWiki's sanitizer is removing it. Additionally, my browser is old and doesn't support it. I have no access currently to newer browsers, so I can't determine which browsers would support it. Reach Out to the Truth 15:14, 3 November 2011 (UTC)
- Since it does seem possible, could anyone give me a boost and explain how to write the code using CSS? Dovi 15:06, 3 November 2011 (UTC)
- I have no idea how to use CSS (I just found the results from a Google search). Could you give me an example of how to add the style in order to format a sample paragraph that way? Dovi 16:25, 2 November 2011 (UTC)
- Ah, good. Then just add that style to your text. If CSS supports it, MediaWiki supports it. Reach Out to the Truth 15:05, 2 November 2011 (UTC)
- Thanks for the input guys. If anyone does come up with any sort of trick that might allow for accomplishing this I would be grateful. Dovi 17:51, 13 October 2011 (UTC)
- That doesn't mention the type of justification Dovi is looking for. I'm not sure it even exists. And if it doesn't exist in CSS, there's nothing we can do about it. Reach Out to the Truth 14:34, 11 October 2011 (UTC)
API:Upload data formatting with bash and curl
I'm having trouble importing a file to my mediawiki installation with curl and bash. I can export an XML file from one MW install, and I can login and authenticate, and I can request and receive an import token, but I can't get it to accept my imported file.
API:Import#XML file is very vague on this point, particularly the example: "api.php ? action=import & xml=dumpcontentgoeshere". The page says that the "xml" parameter "is not a file name, but the actual contents of the file." However, there isn't any suggestion of how to pass those contents.
I've tried putting actual xml into the parameter: "xml=<xml>text</xml>" And I've tried making it a bash command: "xml=$(cat exported.xml)" But I get the result "You didn't upload a file." This could either be interpreted to mean "Your upload failed" or "You should upload a file first."
So assuming the second interpretation, I'm now trying to upload a file. I can request and receive an edit token, but I can't get the API to accept my upload.
The example on http://www.mediawiki.org/wiki/API%3aEdit_-_Uploading_files#Uploading_directly is similarly vague: "action=upload & filename=Test.txt & file=file_contents_here". The talk page says it should be passed "as part of the request in multipart/form-data format" but no matter what kind of entry I try for the "file" param, I receive the error "<error code="missingparam" info="One of the parameters sessionkey, file, url, statuskey is required"/>"
Through some experimentation I've found I can get a different error if I also include "&sessionkey=0": "<error code="nomodule" info="No upload module set" />".
As far as I can tell, I've met the requirements listed on Manual:Configuring file uploads. I'm running MediaWiki 1.17.0, PHP 5.2.6 (cgi-fcgi), and MySQL 5.1.55-rel12.6. What am I missing? Pjrich (talk) 21:01, 10 October 2011 (UTC)
- To upload a file through curl, the MW api requires that the file be sent with a MIME/multipart header. The -d flag in curl specifies the "application/x-www-form-urlencoded" mime-type, whereas the -F flag specifies a miltiport form submission mime-type. So the command:
- curl -d "param1=param¶m2=param" URL
- Would be represented as:
- curl -F "param1=param" -F "param2=param" URL
- I'll add some guidance to the help page. Cheers! Pjrich 21:35, 11 October 2011 (UTC)
- Get "No upload module set" too...no solution found. 82.119.4.104 10:11, 11 February 2013 (UTC)
- What MediaWiki version are you using? What steps are you following (api parameters)? Ciencia Al Poder (talk) 10:30, 11 February 2013 (UTC)
- Get "No upload module set" too...no solution found. 82.119.4.104 10:11, 11 February 2013 (UTC)
Web installer not updating database schema.
Hello help desk.
Media Wiki 1.11.0, PHP 5.2.17(cgi), MySQl 5.0.92
Installed this wiki about 4 years ago and only have FTP/HTTP access. Don't know a whole lot about Linux and MySQL as you will now see.
Tried to upgrade to wiki ver 1.17.0 following the instructions here Manual: MediaWiki 1.16 and earlier Encountered problems:
Instructions make no mention about whether the installer is expecting all the new wiki files to be located under a particular master directory or not - does the installer just figure this out? Presume it's relative ../mw-config/index.php. If so can I run the installer and then later rename the master folder to ../w/.. later and all the paths still work? Meanwhile some directories need to have their permissions changed eg "config" or is that "mw-config" or both - any others? and what should the permissions be set to - 777?
Instructions say to rename the old LocalSettings.php. Persumably a new one is created and placed somewhere? Install program finds an existing wiki and asks you to insert "$wgUpgradeKey = 'abcdefghij..xyz';" into LocalSettings.php - how can can you if the LocalSettings.php has been renamed? OK - so I upload an old copy of LocalSettings.php with the key and that seems OK but I now have an out of date LocalSettings.php file, as it's not been generated by Ver1.17.0?
Next it appears I need to add these variables: $wgDBadminuser and $wgDBadminpassword in LocalSettings.php (as opposed to AdminSettings.php). Do I set them to the same values as $wgDBname and $wgDBuser - if not - I can't proceed as I have no idea what they should be set to. The instructions cited above just say "3.Make sure the database user has full rights to the database" - how?
So installer then crashs with: "Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, webmaster@xyz.org and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log." I don't have access to the server logs.
If I try and run the wiki I get this message re: l10n_cache. The database has not been upgraded and fortunately I can switch back to my old wiki install and everything works as it always did. So it appears the installer is having trouble updating the database and noting I can't run ../maintenance/update.php - any ideas? Sorry for being so ignorant and thanks in advance ;--)) 124.191.112.254 (talk) 23:39, 10 October 2011 (UTC)
- Since you are upgrading to 1.17, you should follow the instructions for upgrading to 1.17+. —Emufarmers(T|C) 07:43, 11 October 2011 (UTC)
- The problem still remains as originally expressed and noting this wiki is small with the db being 3 MB when compressed. Instructions for both suggest the web installer, which it is what I used and all I have acccess to:
- http://www.example.com/w/mw-config/index.php
- I interpret "Web (MediaWiki 1.16 and earlier)" as meaning upgrading from Web (MediaWiki 1.16 and earlier) to 1.17 and that Web (MediaWiki 1.17 and later) means upgrading from Web (MediaWiki 1.17 and later) to 1.18rc(s)/nightly builds. If you can please confirm I have this back to front, I will change the instructions to be more specific. 124.191.112.254 00:02, 12 October 2011 (UTC)
- That interpretation is backwards. I would actually just go ahead and remove the instructions for upgrading to 1.16; the only reason I haven't already done so is that 1.16 is still supported for 2 more weeks. —Emufarmers(T|C) 10:56, 16 October 2011 (UTC)
Can you control page access
Hi. I am interested in setting up MediaWiki for internal use in my department (I work at a university).
The plan would be to make all the pages invisible unless a user is on the whitelist for that page. One feature that would be nice is for the creator of a page to have the authority to add access to other users. So they would be a "sysops" for their pages. More appropriately, they would be "subops" in a sense.
Is this possible to do with MediaWiki? Eljablo (talk) 01:37, 11 October 2011 (UTC)
- I'm interested in getting this function, too! 62.15.161.17 16:59, 17 November 2011 (UTC)
RTL problem in title with Hebrew & Numbers.
i'm having hard time to find fix for my RTL problem, i've written something but the number gets flipped from the beginning of the sentence, to the end of the sentence. you can see it here: http://צדקחברתי.org.il/index.php?title=15_%D7%91%D7%90%D7%95%D7%A7%D7%98%D7%95%D7%91%D7%A8
i've found this, but i'm not sure if it helps and if so, how to use it Directionality support
anyone has any idea !? 82.166.27.80 (talk) 07:40, 11 October 2011 (UTC)
How to modify Signature?
Hello,
is it possible to modify the output of user signature? I want to remove the "(CEST)" behind the posting time. I,m using the wiki for my Intranet, so I don't really need this info. And so sometimes the sign is too long for the template I use.
I want to change
--User 14:15, 12. Okt. 2011 (CEST)
into
--User 14:15, 12. Okt. 2011
using Mediawiki 1.15.1
What do I have to edit to change this output?
thanking you in anticipation 87.123.185.7 (talk) 12:49, 12 October 2011 (UTC)
PHP Notice: unserialize(): Error at offset 0
- I'm trying to get Mediawiki working with Postgresql 9.1 and Php 5.3.3 but am continually seeing a php unserialize error when trying to run multiple scripts from the maintenance directory (rebuildall.php, refreshLinks.php, importdump.php). I've tried this with MW 1.17 and 1.16.5 The import completes and the functionality seems fine but I'd like to get to the bottom of this error. There's a ton of stuff about an old MW bug under version 1.11 but nothing current (I did check to make sure the patch to that bug was in both versions I've tried). When running the scripts I see the output "PHP Notice: unserialize(): Error at offset 0 of 53 bytes in /usr/local/apache2/htdocs/mediawiki/includes/BagOStuff.php on line 437" to standard out. It's also written to my php error logs. Jacksonwiki (talk) 19:27, 12 October 2011 (UTC)
- After doing a few more installations with different versions the unserialize issues seems to be tied to Postgresql 9.1. I reverted to 8.4 and no longer see the problem, using both my 1.16.5 and 1.17 installations. I was also seeing a problem with a null insert when trying to run the rebuildall type scripts after data import on 9.1 that has also disappeared switching to 8.4.7. Jacksonwiki 15:01, 13 October 2011 (UTC)
- Correction, the problem with the null insert looks to be present on a fresh install of 1.17 and also after upgrading a working 1.16.5. Below is the error after updating from 1.16.5 to 1.17 with Postgresql 8.4.7 and php 5.3.3.
- [mediawk@linuxvmc mediawiki]$ php maintenance/rebuildall.php
- Rebuilding recentchanges table:
- Loading from page and revision tables...
- $wgRCMaxAge=7862400 (91 days)
- Updating links and size differences...
- PHP Warning: pg_query(): Query failed: ERROR: invalid input syntax for integer: "NULL" at character 167 in /usr/local/apache2/htdocs/mediawiki/includes/db/DatabasePostgres.php on line 237
- A database query syntax error has occurred.
- The last attempted database query was:
- "UPDATE recentchanges SET rc_last_oldid = '2843',rc_new = '0',rc_type = '0',rc_old_len = '0',rc_new_len = 'NULL' WHERE rc_cur_id = '393' AND rc_this_oldid = '45954'"
- from within function "RebuildRecentchanges::rebuildRecentChangesTablePass2".
- Database returned error "1: ERROR: invalid input syntax for integer: "NULL" at character 167"
- Is the appropriate forum for posting errors and bugs? I've put a few of these up and have yet to see a response. Jacksonwiki 13:55, 17 October 2011 (UTC)
- It can require some legwork to get support for MediaWiki with Postgres, because most people use MySQL. I recommend you try IRC or the mailing list. —Emufarmers(T|C) 09:39, 18 October 2011 (UTC)
- I'm running into this problem as well, although it doesn't seem to affect functionality at all. I just get big error logs.
- I'd be glad to help out with fixing the problem, but I don't know where to start.
- --Petdance (talk) 17:18, 8 March 2012 (UTC)
- It can require some legwork to get support for MediaWiki with Postgres, because most people use MySQL. I recommend you try IRC or the mailing list. —Emufarmers(T|C) 09:39, 18 October 2011 (UTC)
- After doing a few more installations with different versions the unserialize issues seems to be tied to Postgresql 9.1. I reverted to 8.4 and no longer see the problem, using both my 1.16.5 and 1.17 installations. I was also seeing a problem with a null insert when trying to run the rebuildall type scripts after data import on 9.1 that has also disappeared switching to 8.4.7. Jacksonwiki 15:01, 13 October 2011 (UTC)
- i ran into this today after performing a brutish dump/restore of a database, and exec'ing into a container and running `php maintenance/update.php` seems to have cleared it up and I've not seen any other problems with the wiki.
- hope this helps someone else out there. Wilson0x4d (talk) 22:37, 9 June 2023 (UTC)
http content negotiation
Hello, I have heard that wikipedia uses http content negotiation to serve svg images when supported and png / other files if not.
For a long time, I have been relentlessly trying to re-create this code in PHP, but it keeps on failing. Meaning, my code makes sense, but browsers that I know support SVG do not accept the svg image (act as if they don't)
So I figured that since media-wiki powers wikipedia, I was hoping someone here could help me understand and know the syntax that Wikipedia uses for content negotiation (serving svg when supported or other file-types otherwise) successfully.
I would really appreciate it if someone here could help me with this or point me in the direction of someone how can.
Thanks in Advance & Best Regards :-) 35.11.243.70 (talk) 02:45, 13 October 2011 (UTC)
slow wiki browsing
im having a lot of problems getting my wiki site to move a lot quicker. every page takes a really long time to load and i cant seem to see why. is there any way one of the geniuses out there can take a look at http://d6holocron.com/wiki/index.php?title=D6_Holocron_Wiki and see if there is something obvious that i can change or install to get the pages loading faster. note im not on a dedicated server so accelerators are not an option. thank you
BSDOblivion bsdoblivion@d6holocron.com Bsdoblivion (talk) 03:23, 13 October 2011 (UTC)
There is a problem with CategoryTree extension
Hello! I have installed CategoryTree extantion v96695 on MediaWiki. When I try to use tag <categorytree> I have error:
Обнаружена ошибка синтаксиса запроса к базе данных. Это может означать ошибку в программном обеспечении. Последний запрос к базе данных: (SQL запрос скрыт) произошёл из функции «CategoryTree::renderChildren». База данных возвратила ошибку «1054: Unknown column 'cl_type' in 'where clause' (localhost)».
It is as "Database error A database query syntax error has occurred. This may indicate a bug in the software. The last attempted database query was: (SQL query hidden) from within function "CategoryTree::renderChildren". Database returned error "1054: Unknown column 'cl_type' in 'where clause' (localhost)"."
How does it repair? Tnx 176.14.234.196 (talk) 20:15, 13 October 2011 (UTC)
infinite loop Redirection
Hi there.
To start, here are my version informations : MediaWiki 1.16.0 PHP 5.2.6-1+lenny13 (apache2handler) MySQL 5.0.51a-24+lenny5
Well, I just ran into quite an intriguing problem. Here it is.
Due to de sudden death of our server, we (the other administrators of the mediawiki I administrate and me) had to move our wiki on a new location (on a associative server).
So we were given the addresse broceliande.campus.ecp.fr, which is an alias for perso.campus.ecp.fr/~broceliande .
When we at first connected to broceliande.campus.ecp.fr, after connecting, the wiki redirected us to the address in perso ..., so this wouldn't work wery well.
So I put in LocalSettings.php the lines : $wgServer = "http://broceliande.campus.ecp.fr"; $wgScriptPath = ""; Which I would find more elegant than putting what is right now on production. $wgScriptPath = "/~broceliande";
But then, the Mediawiki started to enter an infinite loop of "403 permanent redirection" when trying to access to broceliande.campus.ecp.fr.
Do you see a workaround I could use to obtain the behaviour i was expecting (which is using http://broceliande.campus.ecp.fr as it's base url and not asking any further if it is legitimate or not) ? 88.166.244.26 (talk) 03:15, 14 October 2011 (UTC)
Adding <meta> tag as the first <meta> tag in <head> in all pages
Hi,
I am working on resolving a bug in Mathjax(www.mathjax.org) that I use inside mediawiki. Using Internet explorer 8 mathjax renders some math markup wrong. The fix for this issue is to force IE 8 to use IE 7 rendering mode via a meta tag. I managed to add the meta tag to the head element by doing this:
$out->addHeadItem('Meta',' <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7">');
The problem is that this puts in to the bottom of <head>. Is it possible to put it as first in the list of <meta> tags? This must be the first <meta> in order to make it work. 194.248.0.190 (talk) 10:54, 14 October 2011 (UTC)
- You can use
$out->addMeta( 'http:X-UA-Compatible', 'IE=EmulateIE7' );but it will be added at the end of the <meta> list. If you want to add it at the top, you will need to hackincludes/OutputPage.php. iAlex 08:12, 15 October 2011 (UTC)
I can't change user groups when using short URLs.
I have started using a en.domain.com/wiki/page_title URL, and while I use it, I can't change the user groups at the User Rights Management page.
The long URL is en.domain.com/index.php?title=page_title.
Do you know what is causing the problem? MediaWiki Website User (talk) 21:23, 14 October 2011 (UTC)
- I also can't use the Check User extension, even though I have the right for it. MediaWiki Website User 21:28, 14 October 2011 (UTC)
migrate oo other directory
hi to all i need to migrate wiki to other directory, some domain some db, there is a tutorial? i found only how to migrte to other host... how can i do this? Rounderstyle (talk) 14:00, 15 October 2011 (UTC)
- no tutorial for this? 151.26.13.188 21:56, 15 October 2011 (UTC)
- Move the directory. Update
$wgScriptPathto point to the new location. That's it, I think. If you have any other settings that refer to absolute paths, update them, but you shouldn't have any of those because they should be using $wgScriptPath. Reach Out to the Truth 22:19, 15 October 2011 (UTC)- thx man but it's not enough, graphics is corrupted and show only text, then permalinks read $wgScriptPath twice, in this way www.name.it/directory1/wiki/directory1/wiki/index.......
- i dont know why because i add only one directory to path and i tried ./ only / and without / but its the same.
- this is too strange
- other parameter or file to set as with localsetting??? 151.26.13.188 01:09, 16 October 2011 (UTC)
- I just relocated a test wiki of mine and it worked without issue. Hmm... Have you perhaps set up short URLs for your wiki? Reach Out to the Truth 00:44, 17 October 2011 (UTC)
Changing Commons file notice
How do I change the message ("This file is from Wikimedia Commons and may be used by other projects. The description on its file description page there is shown below.") above "description pages" of file at Commons? Great Recreation (talk) 14:20, 15 October 2011 (UTC)
Does this work on your wiki?!
Hi to all
does this codes work on your wiki? (I tested it, it just work on some wikis!)
{{#time:xij xiF xiY}}
It doesn't show any thing in my wiki.
does any one know how can I solve this problem?
Thanks for your help.
Acc.hadad (talk) 18:49, 15 October 2011 (UTC)
- Use ParserFunctions extension wargo 19:15, 15 October 2011 (UTC)
How to modify API result with APIQueryAfterExecute hook?
In my extension need to i.e. change some elements of result ApiQueryAllPages module. mResult object marked as private, and I can't access him. Deniynbre (talk) 20:31, 15 October 2011 (UTC)
- $result = $module->getResult(); Reach Out to the Truth 20:41, 15 October 2011 (UTC)
- Yes, I know.
- I need to modify result. If I use follow example code in APIQueryAfterExecute hook:
if($module instanceof ApiQueryAllPages) { $data = $module->getResultData(); foreach( $data['query']['allpages'] as $row ){ if( $row['title'] === 'Main page' ) { $row['title'] = 'Example'; } } } return true;
- This is don't work, API request return 'Main page', not 'Example'. Deniynbre 22:43, 16 October 2011 (UTC)
- Why do you want to change it ? Simply create a new API module extending ApiQueryAllPages and use that. Krinkle 00:06, 17 October 2011 (UTC)
- I need to this modifications return through original module, or through clone module and disable main module. This needed to completely remove from API result some entries or parameters.
- Or allow to use module only by sysops without apply patch to core files. Deniynbre 00:24, 17 October 2011 (UTC)
- Subclass whatever module you want, override the execute() method, do your extra permissions checks, and then call parent::execute() if it can carry on
- Register it in the autoloader (use a different name) and change the target module in $wgAPIModules, $wgAPIMetaModules, $wgAPIPropModules, $wgAPIListModules to point at your new class name
- Seems easy enough to me
public ApiComparePagesNoHideUser extends ApiComparePages { public function execute() { global $wgUser; if ( $wgUser->isAllowed( 'hideuser' ) ) { $this->dieUsage( 'You suck', 'lolololol' ); // No return needed } parent::execute } }
- Then in LocalSettings.php
$wgAutoloadClasses['ApiComparePagesNoHideUser'] = $dir . '/ApiComparePagesNoHideUser.php'; $wgAPIModules['compare'] = 'ApiComparePagesNoHideUser'
- Job done, no core hacks (only into LocalSettings.php), and doesn't mean you need to start arbitarily changing input Reedy 16:50, 11 December 2011 (UTC)
cannot perform login into mediawiki from a page outiside /wiki in the same domain
Hi,
basically i want to log into the wiki from another page in the same server/domain, using a username/password already created in the wikiDB. this page will be located in http://www.xxxx.org/index.html and the login will be done through urlloader in as3 that loads a login.php which uses a wikibot.php. it works on local but it does not work using http://www.xxxx.org/.
DB connection using a test.php in the domain URL http://www.xxxx.org/test.php works fine, using: $conexion=mysql_connect("localhost","wikiuser","password");
the login.php is working on a localhost testing evironment, but only using URL http://localhost/ in the url. with two scripts ----- login.php, and wikibot.php (included in login)
versions: Ubuntu 10.04 MediaWiki 1.15.1 PHP 5.3.2-1ubuntu4.9 (apache2handler) MySQL 5.1.41-3ubuntu12.10
edited------------------------------------------------------
found out the version i was using on local was different 1.16.4, and i think it could be a wrong configuration of the virtualhost domain names, or the $wiki/$cookiesdomain variables in the wikibot, i think i might have to install mediawiki 1.7 and start all over again to get out of this hole
any ideas are welcomed, thanks Pherse0 (talk) 21:36, 15 October 2011 (UTC)
- Ok. found the problem.... it was the curl library! i did not have it installed in my server. Arggg...:) Pherse0 22:33, 18 October 2011 (UTC)
Two tables side-by-side
I have the following two tables:
{| cellpadding="2" style="border: 1px solid darkgray; background:#f9f9f9;"
| colspan=3 style="text-align:left"|
|-
|- align="left"
| style="border: 1px solid #C0C0C0;" width=596|
X
|}
{| cellpadding="2" style="border: 1px solid darkgray; background:#f9f9f9;"
| colspan=3 style="text-align:left"|
|-
|- align="left"
| style="border: 1px solid #C0C0C0;" width=596|
A
|}
How do I get these two tables to sit side-by-side? 90.203.247.110 (talk) 18:48, 16 October 2011 (UTC)
How-to add new tab to the "Top Tabs" bar?
Hi! In my own Wiki (based on MediaWiki engine), in LocalSettings.php config file I created new custom namespace with the name of "Foo":
$wgExtraNamespaces[101] = "Foo";
I have a question. How do I get to create a new tab with the same name "Foo"? As a result, the tabs bar would look like this: "Article", "Discussion" and the "Foo". As for example, the additional tab in the Wiktionary is a "Citation" tab.
In advance thank you very much for the help.
Best regards,
-- Danny373 (talk) 12:03, 17 October 2011 (UTC)
- Use the hooks SkinTemplateTabs (for monobook) and SkinTemplateNavigation (for Vector). You can see the example of that in the following extensions: Extension:Collaboration_Diagram and Extension:Semantic Forms
- And please if you have time write a bit of manual on that, I promise to help!!! The current programming documentation is very incomplete. Katkov Yury 12:21, 17 October 2011 (UTC)
Not deprecated way to get Title object of the current page
Hello everyone! What is the right way to get the Title object of the current page when I write an extesnion? I have used $wgTitle and $wgArticle for that but now they both are going to be deprecated. There is no information of alternatives neither on Manual:$wgArticle nor on Manual:$wgTitle.
The way I found seem like wrong and horrible workaround:
Title::newFromText($wgRequest->getText('title'))
Katkov Yury (talk) 12:07, 17 October 2011 (UTC)
- You should not need to use that to get a Title object, but rather get from an object you get in your hook or parser function: Parser, OutputPage, Skin and other have a Title object that you can get by calling their
getTitle()method. There is however no replacement for$wgArticle; if you need one you will need to create it, but some parts from the Article class are now also available in Title. iAlex 13:34, 17 October 2011 (UTC)- Oh, that's clear now, thanks! I'll figure out the details and added the description to the Manual:$wgArticle and Manual:$wgTitle pages. Katkov Yury 10:12, 18 October 2011 (UTC)
"Error in the data transmission was detected"
Hi, I'm new at creating wikis using MediaWiki. Here's my page: http://goodliving.us/wiki/index.php?title=Main_Page
When I click the links in the left navigation bar (e.g., Desserts), I get an error (see subject line). I thought I should be able to create new pages by simply replacing "Main_Page" with new text.
Thanks for any tips at resolving this.
Robyn Robynwright7 (talk) 01:33, 18 October 2011 (UTC)
Removing namespace
I have defined a manual namespace and have used it for few pages. Now I want to remove this namespace. How can I remove it?? Mithiwiki (talk) 13:07, 18 October 2011 (UTC)
Search Weird Behavior
Hi Nice People out there,
I have my wiki project up and running. www.constituicao-angola.info It can find text inside pages without problems. I am facing a weird behavior in my wiki, concerning the search function:
1. If i search using the name of the page using "ARTIGO 99º" it will not find the page and will ask me to create it. 2. If i search for any word inside article 99º, it shows the page... then i copy the page title (ARTIGO 99º) and paste it to the search box and it finds the page. 3. If you copy and paste and change ARTIGO 99º to ARTIGO 100º it will be able to find the page.
What i really want is to be able to find pages by their names ARTIGO 89º or Artigo 89º or artigo 89º.
If you know something that can put me on the right direction i would appreciate.
Kindly Regards,
Evaldo Santos 41.210.252.69 (talk) 18:03, 18 October 2011 (UTC)
Mediawiki in iFrame
- MediaWiki 1.17.0
- PHP 5.2.17 (cgi)
- MySQL 5.1.56
- I've run into the issue of not being able to edit pages or view special pages while loading Mediawiki in an iframe. I was able to find documentation about the setting $wgEditPageFrameOptions = 'DENY'; in DefaultSettings.php and a potential solution by placing $wgEditPageFrameOptions = 'SAMEORIGIN'; in LocalSettings.php.
- Unfortunately, that doesn't seem to be working. If I set $wgEditPageFrameOptions = 'false'; in LocalSettings.php, it works perfectly: I can edit and view special pages inside of the iframe. But SAMEORIGIN does not work, even though the website and the wiki are housed on the same domain and server. Leaving the setting at 'false' seems to be a huge security risk, so I would prefer to get the SAMEORIGIN setting working.
- Any help would be appreciated! Gondi63 (talk) 20:52, 18 October 2011 (UTC)
- I have the same problem as this guy. I want to allow Edit and other sensitive pages in a iframe, but for my domain only (where the wiki and the website with iframe are). 89.208.114.177 14:28, 9 October 2012 (UTC)
- I am having the same issue 3atrous (talk) 20:09, 8 May 2023 (UTC)
My pages, my talk, not working
- Hi. So I installed and have mediawiki up and running. Problem is that the admin (or user) and My Talk links above result in an error message via both IE and FF. So I guess that means there is a problem accessing or creating my pages. This happens whether I am logged in as admin or as another reader/user that I created. I also notice that a few links on the sidebar have the same issue; namely community portal and current events (those links were installed in the default installtion).
- On IE, I get a "page cannot be displayed error"
- On FF, I get the following error:
- "Corrupted Content Error
- The page you are trying to view cannot be shown because an error in the data transmission was detected.
- The page you are trying to view cannot be shown because an error in the data transmission was detected.Please contact the website owners to inform them of this problem."
- Can someone help or shed light on this? I really would like to get this operating right and am at a loss, struggling big time. Please don't kill me -- I'm a newbie at this. :-( Superduper~mediawikiwiki (talk) 06:10, 19 October 2011 (UTC)
- Bumping this because I'm having the exact same problem. Any suggestions? 76.211.85.245 17:20, 26 March 2012 (UTC)
- I am also having same issue 182.73.101.138 (talk) 12:14, 14 March 2018 (UTC)
[resolved]Blank Install page
When i go to install i click on the link on the initial page and it is blank.
I am running MediaWiki 1.17.0, PHP 5.3.5-1ubuntu7.2 with Suhosin-Patch, on Ubuntu server 11.04 with MySQL client version: 5.1.54 and Apache/2.2.17 (Ubuntu).
TO access the page go to benj545.ath.cx/wiki/ Ben545 (talk) 20:02, 19 October 2011 (UTC)
- i get error message
- PHP Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE in /home/benj545.ath.cx/wiki/includes/installer/Installer.i18n.php on line 5160 Ben545 00:16, 27 October 2011 (UTC)
- resolved by reuploading file Ben545 00:22, 27 October 2011 (UTC)
Graphing tools for wiki posters
Does Wikipedia have an option for plug-ins? For instance can users access graphing tools while creating articles? This would help create better and more visually appealing graphs on articles. There are multiple free graphing tools available. Would Wikipedia support such plug-ins to make it more accessible to users who create articles? 199.255.83.46 (talk) 00:02, 20 October 2011 (UTC)
Categorizing Commons images from $wgForeignFileRepos
Hi, I'm using $wgForeignFileRepos to cache images from Wikimedia Commons on my Mediawiki 1.17 installation. My settings are:
$wgForeignFileRepos[] = array( 'class' => 'ForeignAPIRepo', 'name' => 'shared', 'apibase' => 'http://commons.wikimedia.org/w/api.php', 'fetchDescription' => true, // Optional 'descriptionCacheExpiry' => 36000, // 12 hours, optional (values are seconds) 'apiThumbCacheExpiry' => 36000, // 12 hours, optional, but required for local thumb caching );
Is there a way to add these images to a particular category? For example, if there is a way to assign [[Category:Commons images]] to these images and show them as such on my wiki, I'd really like to use it.
Thanks Veryhuman (talk) 06:20, 20 October 2011 (UTC)
- Although I'd like to know if there is a (and if so, what is the) bigger goal behind this request, you can create the File-page on your local wiki and categorize it as you wish.
- For example, File:Example.svg is hosted on Commons. If you go to File:Example.svg and Create that page you can put
[[Category:Commons images]]on it and it'll categorize into Category:Commons images Krinkle 23:10, 24 October 2011 (UTC)- @Krinkle - Thanks for the response. My end purpose was to enable a gallery of such images using Semantic Results Formats. I cannot do that currently since the images do not exist in a category. I can indeed add such categories manually, but I was hoping there was some way of automatically assigning categories to such images. Veryhuman 19:51, 6 November 2011 (UTC)
need to add some extra code
I need to know which file to edit so I can control how accounts are created,
I will be checking the username and pass against a different table holding everyone's login's for other things and I want to make it so that only those people can register and then login to change things. 50.35.212.254 (talk) 06:30, 20 October 2011 (UTC)
- Do not change/edit core files.
- Instead find the appropriate hook and override/extend the default behavior to your liking from LocalSettings.php or create an extension. Krinkle 23:07, 24 October 2011 (UTC)
- AbortNewAccount looks like the appropriate hook to use here. Reach Out to the Truth 01:23, 25 October 2011 (UTC)
- What about using Extension:ConfirmAccount or creating a AuthPlugin to read against the other database table? Peachey88 02:50, 25 October 2011 (UTC)
users restriction
Hi, i want to create around 5 users accounts,then i want to give the rights to edit the site only at those accounts, and not at every user, how can i do that?
i did't found nothing like this on the manual, i saw only restriction by groups
TY,i use mediawiki 1.17.0 Skeith92 (talk) 07:35, 20 October 2011 (UTC)
Renaming/moving .wav files impossible, .ogg works
Hi, when I try to rename/move an uploaded .wav file, I get an error message telling me that the new file extension doesn't match the old one. But it's exactly the same, for example I want to rename "Sound.wav" to "Sound2.wav". However, doing the same with an .ogg file works perfectly. Why? How can I fix it? TomasRiker (talk) 08:20, 20 October 2011 (UTC)
- Ahh, I found a mistake in the mime.types file.
- Replace the following line:
audio/x-wav wav- by:
audio/wav wavTomasRiker 08:50, 20 October 2011 (UTC)
Box after creating a Artikel, why and how to remove?
Hi,
after I createt a new Artikel I got an interesting Box, here is a Screenshot: http://imageshack.us/photo/my-images/695/capturehpy.png/
What is the name of this Boxelement, how can I create it manual and how can I disable the automatic created Box in the Artikel?
many thanks for help Martin 143.93.249.124 (talk) 13:16, 20 October 2011 (UTC)
- That happens when you place a space at the beginning of the line. Reach Out to the Truth 15:21, 20 October 2011 (UTC)
- many thanks for help 143.93.249.72 14:39, 21 October 2011 (UTC)
Paragraph breaks being messed up when passed as template parameter (MW 1.17)
Hi-
I have a template on my wiki (currently on my localhost; sorry I can't link to the problem directly) which needs to be able to accept multi-paragraph parameters. When it does, however, it doesn't display them properly. If there is one blank line between the two paragraphs, they get merged together just like they would if there are no blank lines. If there are two blank lines, empty paragraph tags are inserted between the two paragraphs, which aren't wrapped in their own paragraph tags, causing an excessive amount of space between them. Adding paragraph tags manually seems to work, but isn't ideal for obvious reasons. Note that the template does add a <div> tag around the text being displayed, but I don't see why that should affect anything.
Thanks! AFigureOfBlue (talk) 13:20, 20 October 2011 (UTC)
- Ah, got it. Because of how the template was set up, the start of the paragraph was on the same line as the opening div tag which enclosed them. By putting a newline between the tag and the text, the parser seems to have figured it out. Drilnoth 20:32, 21 October 2011 (UTC)
- This is what solved my problem too in MW 1.33.4. PDXPhotoGuy84 (talk) 09:56, 1 February 2021 (UTC)
text symbols instead of texts and malfunctioning refreshlinks.php script
Hi all,
i upgraded my wiki from 1.16.5 to the current version 1.17. It all went fine and the wiki is up and running, but i noticed some minor errors: text-symbols aren't converted into text and i get errors when executing maintenance scripts.
When i open the special page version, it places text-symbols like <version-license-info> instead of the license information. It's the same for the compare pages link on the special pages overview. Instead of "compare pages" the link is named "<comparepages>". I recognized about a dozen of these errors.
So i went for the maintenance scripts and ran "refreshlinks.php". First, it all went fine, but then some errors showed up like: '"" is not a valid magic thingie for "articlepath"' or 'Retrieving illegal entries from pagelinks... 0..0'.
Wiki is running on OpenSuse 11.4, PHP 5.3.5 (apache2handler) and mysql 5.1.53-log. Language is german (de). As i got APC enabled, i purged cache several times, but it didn't help. Unfortunately i can't provide any link, as it's an internal website.
Thanks in advance for your help. 91.192.15.71 (talk) 13:25, 20 October 2011 (UTC)
- Actually it's not "<comparepages>" but " & lt ; comparepages & gt ;", without any space of course. 91.192.15.71 13:28, 20 October 2011 (UTC)
- Your messages are outdated. Please update all directories when upgrading, including the languages directory. Reach Out to the Truth 15:19, 20 October 2011 (UTC)
- Hello,
- great, it worked! Thank you very much! I copied each folder gradually and except for languages every directory was complete. Though i don't know how it could happen, as i followed all instructions on the upgrade guide.
- I still get errors while running refreshlinks.php:
- Retrieving illegal entries from pagelinks... 0..0
- Retrieving illegal entries from imagelinks... 0..0
- Retrieving illegal entries from categorylinks... 0..0
- Retrieving illegal entries from templatelinks... 0..0
- Retrieving illegal entries from externallinks... 0..0
- Any further ideas about this? 85.115.28.130 07:53, 21 October 2011 (UTC)
- hi,
- I have the same problem trying to upgrade from 1.16 to 1.17, I override my 1.16 sources with 1.17. So, I guess i've updated all directories (including /languages), but I still get & lt ; comparepages & gt ; on special pages.
- I also run the script /maintenance/update.php with success.
- What do you think ? 193.109.251.41 18:06, 15 November 2011 (UTC)
- I found a solution to my problem, I had to truncate table prefix_l10n_cache to get it all work. 193.109.251.41 09:51, 16 November 2011 (UTC)
- ... That didn't seem to help me.. ran php maintenance/rebuildall.php and truncate prefix_l10n_cache too.. stilll get
- Retrieving illegal entries from pagelinks... 0..0
- Retrieving illegal entries from imagelinks... 0..0
- Retrieving illegal entries from categorylinks... 0..0
- Retrieving illegal entries from templatelinks... 0..0
- Retrieving illegal entries from externallinks... 0..0
- Retrieving illegal entries from iwlinks... 0..0
- Retrieving illegal entries from langlinks... 0..0
- Retrieving illegal entries from redirect... 0..0
67.51.77.7 14:37, 20 March 2012 (UTC)
- I found a solution to my problem, I had to truncate table prefix_l10n_cache to get it all work. 193.109.251.41 09:51, 16 November 2011 (UTC)
image path changed after upgrade
I have upgraded to MediaWiki 1.17.0 version. After the update, the images on my wiki disappeared.
Before the update, all of the images were in the images folder. After the update, the wiki is looking for the images in the subfolders. However, since the files are still in the same place, they are not viewed.
For example, the image path on MediaWiki 1.16 : /images/sample.jpg the image path on MediaWiki 1.17 : /images/7/73/sample.jpg
How can I fix this? 78.185.141.26 (talk) 07:19, 21 October 2011 (UTC)
- I removed the # symbol in front of $wgHashedUploadDirectory code, which solved the problem.
- Thank you. 78.185.141.26 09:33, 21 October 2011 (UTC)
[WW][Resolved] Fatal error ParserCache.php after upgrade from 1.16 to .1.17
I have upgraded MW from 1.16 into 1.17 and after I have got such a message on mainpage:
Fatal error: Call to undefined method User::optionsHash() in /includes/parser/ParserCache.php on line 186
When I acces directly to the pages it works fine but on the main page i can find this message. What is wrong ? 212.14.11.13 08:47, 21 October 2011 (UTC)
- I have to add that the problem occures lso when I generate brand new LocalSettings.php 212.14.11.13 10:18, 21 October 2011 (UTC)
- The problem was oocured by FlaggedRevs that needed to be updated too... 212.14.11.13 14:30, 2 November 2011 (UTC)
- How do I update FlaggedRevs ? I ran into the same problem as well.
- thanks. 64.124.125.2 19:40, 30 November 2011 (UTC)
- You should always upgrade extensions at the same time as you upgrade MediaWiki.
- Go to Extension:FlaggedRevs, click "Download snapshot" and download the right version. Make sure, as always, to make a backup of your install and your database before you upgrading stuff. And it's recommended to create a testwiki/clone of your production site and try it there. Krinkle 21:58, 30 November 2011 (UTC)
- The problem was oocured by FlaggedRevs that needed to be updated too... 212.14.11.13 14:30, 2 November 2011 (UTC)
How to prevent code injection when executing programs from extesnion
Hi! I need to run ImageMagick from my extension. Is there any standard way to run programs from mediawiki scripts that will escape everything that is needed or should I use exec and care about the security by myself? Katkov Yury (talk) 10:29, 21 October 2011 (UTC)
- Maybe wfShellExec() will be of help. It uses PHP's escapeshellarg() function (well, on Linux it does). There is also wfEscapeShellArg(), which seems to be a wrapper for escapeshellarg() which fixes some issues with that function. MrBlueSky 18:03, 22 October 2011 (UTC)
- Thank you very much! Katkov Yury 04:20, 23 October 2011 (UTC)
Error on page editing
Whenever I edit a page on my wiki, I get the following error:
A database query syntax error has occurred. This may indicate a bug in the software. The last attempted database query was:
(SQL query hidden)
from within function "LinksUpdate::getExistingInterwikis". Database returned error "1146: Table 'yugiohtu_yugi.iwlinks' doesn't exist (localhost)".
Despite this error, the page still gets edited. How can I fix this. 78.185.141.26 (talk) 11:40, 21 October 2011 (UTC)
- Run update.php. Reach Out to the Truth 14:48, 21 October 2011 (UTC)
- I don't have access to command line. How can I run it?
- I get 403 Forbidden error when I go to /maintenance/update.php on my browser. 78.185.141.26 15:57, 21 October 2011 (UTC)
- This is what you want Johnduhart 16:02, 21 October 2011 (UTC)
- Browsing to /mw-config/index.php is the same as running update.php?
- I always get 500 Internal Server Error when I try to update on /mw-config/index.php so I thought it was a different update method.
- How can I prevent the Internal Server Error? 78.185.141.26 18:52, 21 October 2011 (UTC)
- This is what you want Johnduhart 16:02, 21 October 2011 (UTC)
Hello, in german-language Wikipedia there's global Notice which links here. Surely someone has to understand english for solving the tasks, but all others should imho understand it as well, even if they can't help (maybe they know a friend and would tell if they get what's the challenge about). I will write a translation, if there's positive feedback here.
Greets Hæggis (talk) 13:18, 21 October 2011 (UTC)
Unified Login system Error
I found I could not open a new account under the username "Charles Ferdinand" (a common username I always use) because it already existed in the "Unified Login System", but I can't login with my usual passwords either, so I'm stuck. I was trying to sign in to the Wiki Coding Challenge so it's kind of urgent. Any input or suggestions really appreaciated. Thanks in advance! Regards! 201.164.138.195 (talk) 20:07, 21 October 2011 (UTC)
Adding custom text to editing page
Along with additional editing shortlinks, I want to add a reminder for users of my wiki to editing page, because they sometimes forget to insert paragraphs. Is that possible and how to do that? Beznogim (talk) 14:34, 23 October 2011 (UTC)
unable to login or add new users on newly uploaded site http://www.wikiomni.org
My site works fine locally but when I uploaded it to a www server I cannot login nor add new users 64.134.148.171 (talk) 20:36, 23 October 2011 (UTC)
wikiBot: login to Salesforce
Hello
My precursor wrote a wiki-Bot who reads some reports from Salesforce (a Customer-Relationship-Management Tool) and writes a new Page with its content. Unfortunately Salesforce is really secure which in detail means, that you need to verify every computer at first login with a verification Code. After port the website from one server to another (from the same host-company), the Bot did not work already.
I first connected via SSH tunneling to the server and activated Salesforce in the point of the server. After starting the bot, the output file from the reports showed that the Bot was not logged in. In my opinion there might be two causes which occurred this problem:
- The Bot did not log in correct - The Bot could not write or read the cookies.
Because I am sure that the Bot logged in correctly I looked after the cookies. I found a file cookie.txt in the Bot-Folder, which contains a lot of (for me not understandable) informations including twice the IP-Address of the old Server. Unfortunately just changing the IP-Address to the new one did not solver the problem?
Do you have any idea where I have to search the solution? Can you solve it with further informations (Bot-Code, cookie.txt, ...)? Do you know a company, who could solve this?
Thank you for your response 82.130.76.168 (talk) 08:26, 24 October 2011 (UTC)
Including values from a list in my text
Is there a way write text that includes values from a list such that changes to the list values get reflected in the text?
For example my text would say "The current replacement cost is two thousand dollars and the residual value is one thousand dollars"
(italics used to show variable text, would be plain text in practice)
My values list on another page would be
| Variable | Value |
|---|---|
| current replacement cost | two thousand dollars |
| residual vale | one thousand dollars |
If this has already been documented please suggest keywords I can search on.
Thanks Andjak.mediawiki (talk) 14:40, 24 October 2011 (UTC)
- I found a way to do what I want using the External Data MediaWiki extension. The following link provides a demo.
- http://discoursedb.org/wiki/Germany Andjak.mediawiki 04:15, 25 October 2011 (UTC)
Permission Denied error
We're getting this error: Warning: mkdir() [function.mkdir]: Permission denied in /home/.../GlobalFunctions.php on line 1943
It doesn't have to do with either the image directory, nor the upload directory - both are writeable by the webserver.
Suggestions?
MW 1.14.0 using php 5.2.11 69.181.186.56 (talk) 22:19, 24 October 2011 (UTC)
- That would be wfMkdirParents. Unfortunately, that doesn't tell us what directory was supposed to be created. Newer versions of MediaWiki use a custom error message indicating the directory, but 1.14 doesn't. Reach Out to the Truth 01:13, 25 October 2011 (UTC)
[WW][Resolved] How can I edit / remove the Powered by MediaWiki image in the footer
- Hello, I cant find the line "
- <?php
if($this->data['poweredbyico']) { ?>- <?php $this->html('poweredbyico') ?>"
- " In the Footer /skins/MonoBook.php can someone please help or tell me how to remove this "Powered by Media Wiki" ( I cant find this in the code ) 90.215.80.134 (talk) 12:46, 25 October 2011 (UTC)
- What version of MediaWiki are you using? Reach Out to the Truth 14:55, 25 October 2011 (UTC)
- MediaWiki 1.17
- Does this help ? 90.215.80.134 16:28, 25 October 2011 (UTC)
- Manual:$wgFooterIcons wargo 16:56, 25 October 2011 (UTC)
- Ok Thank you very much, and if i wanted to add a link on the NAV bar or Add groups is there a link you could find for me , that would be great ?? 90.215.80.134 17:02, 25 October 2011 (UTC)
- Specifically, you'd want to do this:
unset ($wgFooterIcons['poweredby']['mediawiki']);
- You can't just set it to false because that will cause the image to be set later in Setup.php
- Can you clarify which "nav bar" you're referring to? Is it the sidebar on the left, or somewhere else? Reach Out to the Truth 17:17, 25 October 2011 (UTC)
- The sidebar on the left, and cant I just delete the Code for the "PoweredBy" and is this kept here /skins/MonoBook.php ??? 90.215.80.134 17:23, 25 October 2011 (UTC)
- You should not delete or modify any core code. It will be overwritten when you upgrade, it makes it more difficult to get support, and in both of these cases it's entirely unnecessary. See Manual:Interface/Sidebar. Reach Out to the Truth 18:06, 25 October 2011 (UTC)
- Ok so for the "PoweredBy" where to do I go ( What file ) to edit this? 90.215.80.134 18:11, 25 October 2011 (UTC)
- LocalSettings.php. All your site-specific configuration changes should be made there, and not in core or extension files. Reach Out to the Truth 18:16, 25 October 2011 (UTC)
- Ok I have done it Thank you very much for your time and help ? 90.215.80.134 18:22, 25 October 2011 (UTC)
- I am trying hard but still not getting as in how do I remove the icon by using localsettings.php please.. 82.22.79.168 16:44, 29 October 2011 (UTC)
- Reach Out to the Truth 16:54, 29 October 2011 (UTC)
unset ($wgFooterIcons['poweredby']['mediawiki']);
- Thank you so much. Ashish 10985 23:29, 29 October 2011 (UTC)
- I am trying hard but still not getting as in how do I remove the icon by using localsettings.php please.. 82.22.79.168 16:44, 29 October 2011 (UTC)
- Ok I have done it Thank you very much for your time and help ? 90.215.80.134 18:22, 25 October 2011 (UTC)
- LocalSettings.php. All your site-specific configuration changes should be made there, and not in core or extension files. Reach Out to the Truth 18:16, 25 October 2011 (UTC)
- Ok so for the "PoweredBy" where to do I go ( What file ) to edit this? 90.215.80.134 18:11, 25 October 2011 (UTC)
- You should not delete or modify any core code. It will be overwritten when you upgrade, it makes it more difficult to get support, and in both of these cases it's entirely unnecessary. See Manual:Interface/Sidebar. Reach Out to the Truth 18:06, 25 October 2011 (UTC)
- The sidebar on the left, and cant I just delete the Code for the "PoweredBy" and is this kept here /skins/MonoBook.php ??? 90.215.80.134 17:23, 25 October 2011 (UTC)
- Manual:$wgFooterIcons wargo 16:56, 25 October 2011 (UTC)
- What version of MediaWiki are you using? Reach Out to the Truth 14:55, 25 October 2011 (UTC)
- I've copied "Reach Out to the Truth"-'s line and the "powered by BlueSpice"-Button is still there.
- What am I missing? 217.6.123.242 (talk) 12:43, 2 September 2016 (UTC)
- The BlueSpice button is different from the MediaWiki button.
- You can remove the BlueSpice button with this line in LocalSettings.php:
unset ($wgFooterIcons['poweredby']['bluespice']);87.123.34.37 (talk) 14:00, 2 September 2016 (UTC)- The unset method doesn't work anymore, bluespice is very hard ;-)
- Has anybody a solution? Pojpla (talk) 14:49, 19 December 2021 (UTC)
- Maybe this solution still works. AhmadF.Cheema (talk) 23:16, 19 December 2021 (UTC)
- Thanks for reaction, it works not for the bluespice icon. Pojpla (talk) 23:28, 19 December 2021 (UTC)
- If it is unset in LocalSettings.php, it is re-set in ./extensions/BlueSpiceFoundation/includes/DefaultSettings.php again.
- In LocalSettings.php, set it to a bogus value like
- $GLOBALS['wgFooterIcons']['poweredby']['bluespice']=' ';
- Worked for me. 141.58.7.192 (talk) 11:04, 24 July 2024 (UTC)
[Resolved] Web Installation Not Completing
Hi,
I am attempting to install mediawiki via the web form. I get to the point where it's supposed to set things up, and nothing gets returned in my browser (FireFox 7.0.1). I get a blank screen at this URL : mw-config/index.php?page=Name
I've scanned the FAQs and install instructions, and don't see anything that addresses this. I also don't see any errors being reported that I can fix. Does anybody have any thoughts?
Installing mediawiki 1.17.0 with PHP 5.2.4 and MySQL 4.1.
Thanks!
Mark 32.97.110.64 (talk) 17:22, 25 October 2011 (UTC)
- You should try to find what's up in PHP logs. Also, what's your PHP memory limit (memory_limit in php.ini)? Max Semenik 18:03, 25 October 2011 (UTC)
- It seems that wiki software required that php to be compiled with pcre library which supports utf8. In order to have this we had to upgrade php to 5.2.14 and mysql to 5.0.45. Now all works fine! 174.30.140.110 14:47, 26 October 2011 (UTC)
[WW][Resolved] SyntaxHighlight Geshi Extension : box around every line
Hi!
- MediaWiki : 1.16.0
- PHP : 5.3.0
- MySQL : 5.1.36
I have installed the Extension:SyntaxHighlight GeSHi. Following advices in the 2008 discussion archives (see here), I modified the SyntaxHighlight_GeSHi.class.php file so that borders and background would be properly displayed when I use the <pre> tag.
I now face a problem : when I ask for line numbers to be displayed within a <syntaxhighlight> tag, a box is drawn around every line. This problem is not apparent when no line numbers are required. Here is a printscreen from my wiki were I display 2 blocs of code : one with and one without line numbers. You can see how ugly it gets...
I posted the problem on the Extension discussion page about a month ago, but got no feedback. If anyone had an idea on how to solve this, I would really appreciate :)
Thank you very much for your time and help! Nouklea (talk) 17:58, 25 October 2011 (UTC)
- Don't modify the extensions' classes. Instead do a clean install and use the MediaWiki:Geshi.css page on your wiki (editing that page is restricted to administrators), and in there add which ever css rules you want. Krinkle 18:39, 31 October 2011 (UTC)
- Thanks for your help! I reinstalled the extension and deleted the changes I made to the skins. Then I tried updating the css within the wiki page. I had trouble proceeding, until I figured out I was updating the MyWiki:Geshi.css page instead of the MediaWiki.css page. This little block of code on the MediaWiki.css page solved my problem :
div.mw-geshi { padding: 1em; margin: 1em 0; border: 1px dashed #2f6fab; background-color: #f9f9f9; }
- Thanks again! Nouklea 14:22, 1 November 2011 (UTC)
- You're welcome :) Krinkle 18:07, 1 November 2011 (UTC)
Add copyright to footer
How to add A "Copyright © example 2011" at the bottom on the MediaWiki Page, I am using MediaWiki Version 1.17 ????????? 90.215.80.134 (talk) 00:07, 26 October 2011 (UTC)
- Edit MediaWiki:Copyright on your wiki. Reach Out to the Truth 00:23, 26 October 2011 (UTC)
- I dont understand where do I do this ?? 90.215.80.134 10:47, 26 October 2011 (UTC)
- On your wiki. Go to that page on your wiki. If you're logged in as administrator you will be able to edit it. Reach Out to the Truth 14:49, 26 October 2011 (UTC)
- I dont understand where do I do this ?? 90.215.80.134 10:47, 26 October 2011 (UTC)
[resolved] watchlist notification
I've been looking for a way to provide notification to the user that there are freshly modified pages in their watch list but can't seem to find a configuration setting or extension that provides that. User's don't want to be emailed for each change to a page, but a visual notification since the last time they visited the site. (I would even like that here...) I'm assuming this is just a feature request if neither exists. Best Regards, --Skunark 05:19, 26 October 2011 (UTC)
- Manual:$wgEnotifWatchlist —Emufarmers(T|C) 03:48, 27 October 2011 (UTC)
- Thanks Emu Farmers, i've already looked into that but the idea is to have a notification for changes on their watch list (which includes other user's talk pages) without emailing the user. This setting emails you. Which extension provides "Special:NewMessages", perhaps it's part of this forum extension? The "my new messages" is exactly what i'm after. Skunark 06:01, 27 October 2011 (UTC)
- Extension:LiquidThreads Peachey88 06:47, 27 October 2011 (UTC)
- Killer! Thanks Peachey88! Guessing that will do the trick nicely and then some Skunark 00:54, 28 October 2011 (UTC)
- Extension:LiquidThreads Peachey88 06:47, 27 October 2011 (UTC)
- Thanks Emu Farmers, i've already looked into that but the idea is to have a notification for changes on their watch list (which includes other user's talk pages) without emailing the user. This setting emails you. Which extension provides "Special:NewMessages", perhaps it's part of this forum extension? The "my new messages" is exactly what i'm after. Skunark 06:01, 27 October 2011 (UTC)
My mediawiki thumbnail is weird
After I upload an image to my wiki, the thumbnail turns out to be the same file size as the image I uploaded. For example, I upload image A and A's origin size is "1,024×768". The code becomes "<img src="A.jpg" alt="" width="800" height="600" />". The file size is still the same as A.jpg. In Wikipedia, it seems to be another solution to thumbnail. Take A.jpg for example again. A's origin size is "1,024×768". But the thumbnail code is "<img width="800" height="600" src="800px-A.ipg" alt="">". It means it automatically creates a smaller picture against the origin one. How could my wiki do the same thing like that? I 280139092 (talk) 06:49, 26 October 2011 (UTC)
- You need either GD or ImageMagick for server-side thumbnailing. See Manual:Image_Administration#Image_thumbnailing. —Emufarmers(T|C) 03:51, 27 October 2011 (UTC)
Secure keys ($wgSecretKey en $wgUpgradeKey) generated during installation are not completely safe. Consider changing them manually.
During installation I got the following error:
Secure keys ($wgSecretKey en $wgUpgradeKey) generated during installation are not completely safe. Consider changing them manually.
Is it a problem or a securty risk?
Thanks! Jordy8888 (talk) 18:11, 26 October 2011 (UTC)
[Resolved] User rights management
It there a way that I can add new User rights management and Groups if so please can I have a detailed user guide ? 90.215.80.134 (talk) 02:57, 27 October 2011 (UTC)
- Manual:User rights Reach Out to the Truth 04:13, 27 October 2011 (UTC)
- Ok thank you. 90.215.80.134 18:06, 27 October 2011 (UTC)
[Resolved] QUESTION
What does the following mean?
MediaWiki.org's content is available under the $1.
?? 90.215.80.134 (talk) 03:00, 27 October 2011 (UTC)
- $1 will be replaced with the value of
$wgRightsText, and then the completed message will be printed at the bottom of each page. If you're changing MediaWiki:Copyright like you said in the other thread, you don't need to keep $1 in the message. Reach Out to the Truth 04:11, 27 October 2011 (UTC)- ok, I found the setting, but is has "Content is available under" in before my text where do I go to change this? 90.215.80.134 18:06, 27 October 2011 (UTC)
- That is in MediaWiki:Copyright, like I said. Reach Out to the Truth 19:50, 27 October 2011 (UTC)
- I Dont undestand 90.215.80.134 14:14, 28 October 2011 (UTC)
- The text that appears at the bottom of the page can be customized by editing MediaWiki:Copyright on your wiki. The text that will replace $1 can be customized by changing $wgRightsText in your LocalSettings.php file.
- But if you leave $1 out of the new text of MediaWiki:Copyright, you don't need to worry about $wgRightsText at all because it won't be seen.
- And please, try it on your wiki. You can't do anything to the message on this wiki. Reach Out to the Truth 14:47, 28 October 2011 (UTC)
- ok thanks 90.215.80.134 12:38, 29 October 2011 (UTC)
- Ok thanks for your help once again :) 90.215.80.134 12:39, 29 October 2011 (UTC)
- I Dont undestand 90.215.80.134 14:14, 28 October 2011 (UTC)
- That is in MediaWiki:Copyright, like I said. Reach Out to the Truth 19:50, 27 October 2011 (UTC)
- ok, I found the setting, but is has "Content is available under" in before my text where do I go to change this? 90.215.80.134 18:06, 27 October 2011 (UTC)
How To Enable Browse Categories or Table of Contents?
Hi,
I've been searching the documentation high and low, and can't quite find the answer. I have set up a new wiki, and would like to enable Browse Categories or have a table of contents of created pages (much like on Wikipedia). I cannot find an extension or configuration parameter than enables either of these. Could somebody point me in the right direction?
Thanks!
Mark 32.97.110.64 (talk) 16:48, 27 October 2011 (UTC)
[Resolved] Email From Name HELP
Hello once again, When a user signs up and gets email from us it uses our email address but the name is "MediaWiki" how do I change this, so for example it would say:
To: signupuser@hotmail.com Subject: --- From: MediaWiki <myemail@mydomain.com>
how do I change the from name "MediaWiki"??????????????? 90.215.80.134 (talk) 18:21, 27 October 2011 (UTC)
- I believe you want Manual:$wgPasswordSenderName Peachey88 01:06, 28 October 2011 (UTC)
- Where is this file kept?? 90.215.80.134 14:14, 28 October 2011 (UTC)
- ?????????????? 90.215.80.134 12:43, 29 October 2011 (UTC)
- LocalSettings.php in the root of your MediaWiki installation. Reach Out to the Truth 15:51, 29 October 2011 (UTC)
- ok thank you 90.215.80.134 15:52, 29 October 2011 (UTC)
- Where is this file kept?? 90.215.80.134 14:14, 28 October 2011 (UTC)
Would like to provide text (tips) on Special:Search page
Any easy way to either add text or include information on Special:Search to provide tips on how to search. i.e. using intitle: AND, OR, etc. Skunark (talk) 00:58, 28 October 2011 (UTC)
- Bumping.. This seems like a pretty reasonable idea/request, any thoughts on how to do this? Skunark 03:00, 6 November 2011 (UTC)
- You can edit MediaWiki:Search-summary. The text provided on that page will show up at the top of Special:Search. MrBlueSky 14:57, 6 November 2011 (UTC)
Fatal error when trying to open File List
When I click on File list I get the error message "Fatal error: Call to a member function toHtml() on a non-object in /var/www/mediawiki/includes/specials/SpecialListfiles.php on line 163". What can I do to prevent this? Mediawiki version is 1.17.0. 194.114.62.71 (talk) 05:32, 28 October 2011 (UTC)
Extension:JIRA
I'm using extension_:JIRA with this configuration: <jiralist projects="JIRA">Open</jiralist> I get java.lang.NullPointerException. 188.94.193.154 (talk) 14:27, 28 October 2011 (UTC)
Infobox Question / Help!
Hey Guys! (I'am from Germany and my english is not the best)
I want to build a Infobox for a roleplay mediawiki,i use a template from Wikia and reconstructed it a little bit...now it looks it works but there are word's or symbol's from the template code that shows in the template when i use it...see for yourself:
http://img600.imageshack.us/img600/5394/infobox.jpg
I used the following code:
http://img502.imageshack.us/img502/7143/infoboxcode.jpg
Sorry for the Screens,when i post the code here,the Thread look like my template then.
Hope you can help me... :-( Seriana (talk) 16:51, 28 October 2011 (UTC)
- Just upload the template for better help:
- http://www.megaupload.com/?d=KS92KOKG
- And i try to search the symbols and delete them but then the templete looks totaly destroyed :-( Seriana 16:54, 28 October 2011 (UTC)
- Nobody an idea ? :-( Seriana 03:05, 29 October 2011 (UTC)
Removing _talk namespaces from advanced search
Mediawiki 1.17.0 // PHP 5.2.8 // MySQL 6.0.8-alpha-community
Hi. I'm looking for a way to remove the *_talk namespaces from the Advanced Search page so that the Main, User, Wiki, File, Mediawiki, Template, Help, and Category namespaces are left but their associated _talk checkboxes are gone. The wiki I'm admin'ing doesn't need search functionality for those pages. Can someone enlighten me? It'd be much appreciated. :) 173.164.68.137 (talk) 17:43, 28 October 2011 (UTC)
[RESOLVED] Upload not functioning, no error messages
Hi all,
Love Mediawiki, very useful, however I'm having trouble getting file uploads to work. System is: MediaWiki 1.16.4 PHP 5.1.6 (apache2handler) MySQL 5.0.77
file uploads are turned on in php images folder has 777 permissions $wgEnableUploads = true;
When I upload a file, the file does not upload and no database entries are made. There is no error message whatsoever (I went through the apache, php and syslog, didn't see anything out of the ordinary), and it appears to correctly process. The server uploads correctly on other (non-wiki) systems on the same server. I've also tried installing on my dev server, which also produces similar results.
Unfortunately the site is not available to the external web so I can't offer a url, but I've really been pulling my hair out on this one, does anyone have any idea what could be going wrong?
I appreciate any help that anyone can offer Westcoastwiki (talk) 23:24, 28 October 2011 (UTC)
- I have exactly this issue myself with an internally used system (details below)
- MediaWiki 1.16.0
- PHP 5.2.4-2ubuntu5.17 (apache2handler)
- MySQL 5.0.51a-3ubuntu5.8
- I've looked at folder permissions, it loads a similar file of the same type (I'm uploading a .zip file). I suspect it's some size related thing (the file is 9Mb whereas my test zip file is smaller). I extended the allowed file size in LocalSettings.php and php.ini and restarted Apache but although the upload page now showing 100MB it still doesn't change the response (wasn't sure if the Mb vs MB distinction is being made here, ie megabits of megabytes, so I whacked it up to a vastly bigger limit). I also added the allowed types to include the two file types within the zip to cover the unlikely event that it somehow looks inside (I don't think it's that sophisticated, but I haven't done that deep an investigation into the code)
- Does anyone know where we could look to see any logging of what's going on? Presumably that might indicate a specific cause for the failure.
- Many thanks,
- Neil 94.31.14.3 10:36, 15 December 2011 (UTC)
- I've experienced similar behavior when changing upload settings for file types. Make sure you don't have any blacklisted that shouldn't be. Additionally I would check these settings, Manual:$wgCheckFileExtensions Manual:$wgStrictFileExtensions Manual:$wgVerifyMimeType. 19:45, 16 December 2011 (UTC)
- Note: Zip files were blacklisted in earlier versions of MW since there was concern they could be used to sneak java .jar's into your wiki (newer versions of MediaWiki check for this). Bawolff 07:07, 18 December 2011 (UTC)
- Hello, in my hosted MediaWiki 1.18 there ist just the same. Any help?
$wgEnableUploads = true;$wgFileExtensions = array('png', 'gif', 'jpg', 'jpeg', 'mp3', 'doc', 'xls', 'apk', 'mpp', 'pdf', 'ppt', 'tiff', 'bmp', 'docx', 'xlsx', 'pptx', 'ps', 'msi', 'zip', 'rar');$wgVerifyMimeType = false;$wgMimeDetectorCommand = "file -bi";$wgCheckFileExtensions = true;$wgFileBlacklist = array();$wgGroupPermissions['*']['read'] = false;$wgWhitelistRead = array ("Special:Userlogin", "MediaWiki:Common.css", "MediaWiki:Common.js", "MediaWiki:Monobook.css", "MediaWiki:Monobook.js", "Spezial:Benutzerkonto_beantragen", "-");$wgGroupPermissions['*']['createaccount'] = false;$wgGroupPermissions['*']['edit'] = false;62.227.46.176 22:51, 19 December 2011 (UTC)- Ha, found the reason. I used a shared SSL (HTTPS) and then the upload does not work. Using Mediawiki 1.18 by a HTTP Page upload works. So i checked the $wgServer and it pointed to HTTP://XYZ.dom, i changed it to $wgServer = "https://XYZ.dom"; (with "s") and all worked fine. 62.227.46.176 22:51, 19 December 2011 (UTC)
- Note: Zip files were blacklisted in earlier versions of MW since there was concern they could be used to sneak java .jar's into your wiki (newer versions of MediaWiki check for this). Bawolff 07:07, 18 December 2011 (UTC)
- Take a look at the post_max_size setting in php.ini. This may need to be increased as well as upload_max_filesize 62.171.198.6 13:52, 28 November 2013 (UTC)
- I've experienced similar behavior when changing upload settings for file types. Make sure you don't have any blacklisted that shouldn't be. Additionally I would check these settings, Manual:$wgCheckFileExtensions Manual:$wgStrictFileExtensions Manual:$wgVerifyMimeType. 19:45, 16 December 2011 (UTC)
Having 2 issues (One template, one a class call)
Been dying for hours trying to figure this out. Hopefully someone can help me out. My current wiki is: http://www.zepherus.com/wiki
Product Version MediaWiki 1.17.0 PHP 5.2.17 (cgi) MySQL 5.0.91-log
Can anyone explain to me why this template will not work:
<includeonly>{{ #ifexpr: {{{1}}} < 1 | [[Image:Menu_bullet.png]] | [[Image:Menu_hover_bullet.png]] }}{{ #ifexpr: {{{1}}} < 2 | [[Image:Menu_bullet.png]] | [[Image:Menu_hover_bullet.png]] }}{{ #ifexpr: {{{1}}} < 3 | [[Image:Menu_bullet.png]] | [[Image:Menu_hover_bullet.png]] }}{{ #ifexpr: {{{1}}} < 4 | [[Image:Menu_bullet.png]] | [[Image:Menu_hover_bullet.png]] }}{{ #ifexpr: {{{1}}} < 5 | [[Image:Menu_bullet.png]] | [[Image:Menu_hover_bullet.png]] }} {{ #ifexpr: {{{1}}}>5
| [[Image:Menu_hover_bullet.png]]{{ #ifexpr: {{{1}}} < 7 | [[Image:Menu_bullet.png]] | [[Image:Menu_hover_bullet.png]] }}{{ #ifexpr: {{{1}}} < 8 | [[Image:Menu_bullet.png]] | [[Image:Menu_hover_bullet.png]] }}{{ #ifexpr: {{{1}}} < 9 | [[Image:Menu_bullet.png]] | [[Image:Menu_hover_bullet.png]] }}{{ #ifexpr: {{{1}}} < 10 | [[Image:Menu_bullet.png]] | [[Image:Menu_hover_bullet.png]] }} }}</includeonly><noinclude>Returns a graphical representation of the number of "dots" in a [[Storytelling System]] power, Skill or Attribute. For example:
<nowiki>{{dot|4}} returns {{dot|4}}<br />
{{dot|7}} returns {{dot|7}}
Please keep the number of dots between 0 and 10.
See also: {{tl|10dot}}</noinclude></nowiki>
and secondly..why this class call won't work:
{| class="wiki-sidebar"
| colspan="2" |
|-
| class="odd" | Name:
| class="even" | Assamite
|-
| class="odd" | Plural:
| class="even" | Assamites
|-
| class="odd" | Pronunciation:
| class="even" | ah-sahm'-iyt
|-
| class="odd" | Nicknames:
| class="even" | Assassins, Saracens, Children of Haqim (the latter 2 are Dark Ages terms for the clan)
|-
| class="odd" | Antediluvian:
| class="even" | [[Haqim]]
|-
| class="odd" | Faction:
| class="even" | [[Independent (VTM)|Independent]]
|-
| class="odd" | Disciplines:
| class="even" | Warrior: [[Celerity (VTM)|Celerity]], [[Obfuscate (VTM)|Obfuscate]], [[Quietus (VTM)|'''Quietus''']], Vizier: [[Auspex (VTM)|'''Auspex''']], [[Celerity (VTM)|Celerity]], [[Quietus (VTM)|'''Quietus''']], Sorceror (Dark Ages): [[Assamite Sorcery]], [[Auspex (VTM)|'''Auspex''']], [[Quietus (VTM)|'''Quietus''']], Sorceror (VTM): [[Assamite Sorcery]], [[Obfuscate (VTM)|Obfuscate]], [[Quietus (VTM)|'''Quietus''']],
|}
Might be asking a lot but i'm stumped. 24.246.8.184 (talk) 07:54, 29 October 2011 (UTC)
- Disregard the tamplate issue, just can't get the class call to work now
- 24.246.8.184 08:04, 29 October 2011 (UTC)
{| class="wiki-sidebar" | colspan="2" | |- | class="odd" | Name: | class="even" | Assamite |- | class="odd" | Plural: | class="even" | Assamites |- | class="odd" | Pronunciation: | class="even" | ah-sahm'-iyt |- | class="odd" | Nicknames: | class="even" | Assassins, Saracens, Children of Haqim (the latter 2 are Dark Ages terms for the clan) |- | class="odd" | Antediluvian: | class="even" | [[Haqim]] |- | class="odd" | Faction: | class="even" | [[Independent (VTM)|Independent]] |- | class="odd" | Disciplines: | class="even" | Warrior: [[Celerity (VTM)|Celerity]], [[Obfuscate (VTM)|Obfuscate]], [[Quietus (VTM)|'''Quietus''']], Vizier: [[Auspex (VTM)|'''Auspex''']], [[Celerity (VTM)|Celerity]], [[Quietus (VTM)|'''Quietus''']], Sorceror (Dark Ages): [[Assamite Sorcery]], [[Auspex (VTM)|'''Auspex''']], [[Quietus (VTM)|'''Quietus''']], Sorceror (VTM): [[Assamite Sorcery]], [[Obfuscate (VTM)|Obfuscate]], [[Quietus (VTM)|'''Quietus''']], |}- Do you mean the CSS class wiki-sidebar, odd, and even? For them to work they need to be defined in any of the CSS Style Sheets that MediaWiki loads. You probably need to define them in MediaWiki:Common.css of your wiki, as described in Manual:Interface/Stylesheets. Ciencia Al Poder (talk) 14:32, 9 June 2013 (UTC)
09:55, 9 June 2013 (UTC) Schulen (talk) 10:02, 9 June 2013 (UTC)
API available for iOS Programming?
Hi Community
Is there an API available to build in the Wiki into a iOS Application? If yes, where can I find it? Thanks a lot... 212.147.16.114 (talk) 10:13, 29 October 2011 (UTC)
- There is an API, and you could use that to build an iOS app, or various other things if you wish. Reach Out to the Truth 15:49, 29 October 2011 (UTC)
Search problem with update from 1.12 to 1.17
With the upgrade done the text search returns no values at all. Furthermore both the page and text search are only applied to the default namespaces but not to the custom namespaces that I have running. Of course they are enabled for searching.
The same behaviour is even when I enable the sphinx search.
Has anybody a clue? 193.16.163.244 (talk) 14:48, 29 October 2011 (UTC)
- I found out that the searchindex table is empty, even after a run of rebuildindex. 193.16.163.244 15:49, 30 October 2011 (UTC)
- What MySQL version? Does it have MyISAM support enabled? Max Semenik 16:31, 30 October 2011 (UTC)
Extension distributor doesn't work
Hi, Special:ExtensionDistributor/OnlineStatusBar doesn't seem to work, what is wrong? Petrb (talk) 16:25, 29 October 2011 (UTC)
- Stuff doesn't gets automatically added there, file a request in Bugzilla if you want your extension to be distributed this way. Max Semenik 16:33, 30 October 2011 (UTC)
Creating your own skin
Mediawiki offers few skins and css and java customize options, But there is no way to add your own skin (that I know of). Does anyone know of external tools that would help me to do that?
For example, stylish addon for chrome and FF, allows me to tweak the skin to my personal preference(similar to mediaiwiki customis css but easier to use), But I am looking for something stronger, for example on our wiki we use a vector based skin like here and the admin decided to move the search bar from its default location to the right sidebar, which I personally find confusing and not optimal use of space and other than an ugly css tweak which there is no way to fix it other than trying to force my prefernce on everyone else...
so is there any suggestions to personalize my experience? --Mor2 02:28, 30 October 2011 (UTC)
- Documentation is poor, but it is possible. See Manual:Skinning if you dare. Reach Out to the Truth 03:15, 30 October 2011 (UTC)
- From what I understand there, this way I can create a new skin for the whole wiki, not a personal skin. which is not really an option since we cannot start uploading skin for everyone taste...
- which is why I am looking for away to create a personal skin for me, for example maybe there is a program that can redirect/replace/supersede vector.php on the server to vector.php on my local hard drive so I can do my tweaks.
- thanks, --Mor2 05:55, 30 October 2011 (UTC)
- Okay, I got it now. If
$wgAllowUserCssand$wgAllowUserJsare enabled, users can customize their own stylesheets and JavaScript per skin. In MediaWiki 1.17+, they can also have custom CSS and JS that applies to all skins. - in trenta anni che e pasato e anche adeso io sono codanato per fare bruti cose per me stesso obligamento in diversi modi sono in turtura [er dare il mio colo ce tante cose da spiegare che non si po spiegare fanno diversi esami per esempio io toco col di una donna o rubo e ongi parole che dico in qualche giorni viene repetuto o in strda vado vedo certi personi che stanno cambinando e in bocca come che mangiano cibo..............................perche Reach Out to the Truth 16:04, 30 October 2011 (UTC)
- Okay, I got it now. If
Template loop detected! – can I allow it?
I have a template which I want to be able to call itself. Is there Is there any way to allow this, perhaps to a max depth? $wgMaxTemplateDepth only affects non-repeating templates, right?
If there isn't any way, is there at least a way to handle the loop detection quietly, so that the "Template loop detected" warning doesn't appear?
Thanks! Pjrich (talk) 02:32, 30 October 2011 (UTC)
- I know this is an old question, but I would really like to know this, too. I have a template that calls itself on purpose, creating a recursive loop that stops when no successor is defined for a page. 46.237.233.111 (talk) 14:22, 22 April 2016 (UTC)
- When a template includes itself, this in fact is an infinite loop.
- From reading the docs, Manual:$wgMaxTemplateDepth seems to be able to do what you want: After the according number of levels, it aborts execution.
- If on the other hand, instead of the "loop detected" error message, the number of levels from $wgMaxTemplateDepth would be used, then it would be possible to kill a template by adding such a loop - no matter if there also are other problems with depth levels.
- You see there are pros and cons - I am undecided which of the options I prefer currently. After all, the only solution from MediaWiki Core in fact is to abort at some point. Proper execution, which means execution of infinite levels, is not possible anyway. Ending in an abort should not be your target. I think that having such a loop in a template is a mistake. The _right_ solution would be not to do such a loop. 87.123.55.67 (talk) 14:54, 22 April 2016 (UTC)
- Use Extension:Scribunto to use true programming tools to achieve loops and similar things with better performance Ciencia Al Poder (talk) 14:34, 23 April 2016 (UTC)
Geshi SyntaxHighlighter CSS missing on diff-pages (or: How to disable AJAX?)
Hi,
when I show the revision history of a page that contains source code (I use the mwGeShi extension), the CSS is not included in the "current version of the article" that is displayed below the diff table. So all the code is unformatted and looks very ugly. I noticed that the current version gets loaded via AJAX, probably that's the source of the problem. And it seems like AJAX is disabled on Wikipedia, so they don't have this problem.
Setting $wgUseAjax to false doesn't change anything.
I can disable the feature completely by setting "diffonly" to true for all users and hiding the preference. But this is not what I really want!
How can I disable AJAX in the version history?
Any ideas? TomasRiker (talk) 08:27, 30 October 2011 (UTC)
- What is mwGeSHi? Reach Out to the Truth 15:46, 30 October 2011 (UTC)
- It's an extension that highlights sourcecode in Wiki articles.
- However it outputs CSS to the page's head section, which is not copied to the overall page's head section during AJAX. TomasRiker 16:24, 30 October 2011 (UTC)
- It's not listed on MediaWiki.org. Do you have a link to where this code is hosted? Reach Out to the Truth 16:27, 30 October 2011 (UTC)
- Hm. Extension:SyntaxHighlight GeSHi outputs a mw-geshi class. Is this the extension you're using? It works fine on this site. Reach Out to the Truth 16:48, 30 October 2011 (UTC)
- On this site, AJAX is not used, probably for this reason. The current version is just output right away.
- My question was how to disable AJAX. TomasRiker 00:02, 31 October 2011 (UTC)
- And that's why I want to know the specific extension. Is it in fact the same extension used on this site, or a different one? I'm not sure the GeSHi extension used on this wiki ever loaded its stylesheet that way.
- You could probably just copy the styles to MediaWiki:Common.css, so you don't have to rely on the extension loading it. Reach Out to the Truth 01:22, 31 October 2011 (UTC)
- This wiki uses the same extension.
- The CSS is embedded in the page header. Look at the HTML code of SyntaxHighlight_GeSHi, you will find:
<style type="text/css">/*<![CDATA[*/ .source-php {line-height: normal;} .source-php li, .source-php pre { line-height: normal; border: 0px none white; } /** * GeSHi Dynamically Generated Stylesheet * -------------------------------------- * Dynamically generated stylesheet for php * CSS class: source-php, CSS id: * GeSHi (C) 2004 - 2007 Nigel McNie, 2007 - 2008 Benny Baumann * (http://qbnz.com/highlighter/ and http://geshi.org/) * -------------------------------------- */ .php.source-php .de1, .php.source-php .de2 {font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;} .php.source-php {font-family:monospace;} .php.source-php .imp {font-weight: bold; color: red;} // ...
- And now look here:
- http://www.mediawiki.org/w/index.php?title=Extension%3ASyntaxHighlight_GeSHi&action=historysubmit&diff=448677&oldid=446097
- This is the page I'm referring to.
- Below the diff you find the "Latest revision as of 15:49, 28 October 2011", which is statically integrated into the page.
- On my wiki, this part of the page is loaded dynamically using AJAX. But it fails to copy the loaded page's embedded CSS to the overall page and therefore the sourcecode looks very ugly (not just not highlighted, but when you use line numbers, every single line has a border around it).
- So, somehow the AJAX part must have been disabled here. TomasRiker 08:10, 31 October 2011 (UTC)
- I found the source of the problem! It's the Flagged Revisions extension, which uses a ArticleContentOnDiff hook and inserts an AJAX call there ... :( TomasRiker 08:23, 31 October 2011 (UTC)
- Hm. Extension:SyntaxHighlight GeSHi outputs a mw-geshi class. Is this the extension you're using? It works fine on this site. Reach Out to the Truth 16:48, 30 October 2011 (UTC)
- It's not listed on MediaWiki.org. Do you have a link to where this code is hosted? Reach Out to the Truth 16:27, 30 October 2011 (UTC)
JIRA PLUGIN
I have a problem in using Jira extension. In Locasettings.php I follow indicated configuration , but when I use the plugin in a mediawiki page with this line:
<jiralist projects="JIRA">Open</jiralist>
I obtain a NullPointerException. What is wrong? Vikially (talk) 12:40, 30 October 2011 (UTC)
Enabling error msgs and debug also produces blank pages
Hi,
I installed mediawiki (in same server as joomla - public_html/mediawiki/kb) and did basic configuration and was able to see my icon, logo etc. However, i later installed an extension for auto-login joomla's users into mediawiki (haroldprins.nl). After this, I'm just getting blank pages and even enabling Error msg and/or debug messages are producing blank pages. How do I debug this now?
I contacted the extension developer and he feels something is wrong with my mediawiki install (& that perhaps the return page is incorrect). I'm not able to figure out whats wrong..
- TBD: remove later
- error_reporting( E_ALL );
- ini_set( 'display_errors', 1 );
- $wgShowDebug = true;
Thanks 117.192.230.99 (talk) 19:17, 30 October 2011 (UTC)
#TBD: remove later #error_reporting( E_ALL ); #ini_set( 'display_errors', 1 ); #$wgShowDebug = true;
- Is that the actual code you've put in your LocalSettings.php? If so, it's not being executed because it's commented out. Reach Out to the Truth 19:59, 30 October 2011 (UTC)
- The extension developer helped resolve this (He's awesome!). Turns out I had an unterminated string for one of the variables I added to LocalSettings.php as part of this extention.
- Then, in the extension's AuthJoomla2.php file, I had to remove this line : require_once('AuthPlugin.php');
- Thx
- ps: Maybe due to these errors, the error reporting variables didnt take effect? That would be a pity. Yes, I did have them uncommented first :) Special:Contributions/SriU 18:47, 31 October 2011 (UTC)
Media wiki pywikipedia bot
I'm trying to use pywikipedia for doing some automation in my project (e.g. I want to create wiki page on every Monday) but while testing the same I'm not able to login. Also to add I'm trying to connect to our internal wiki setup via bot and not to mediawiki.org. I'm not sure about where should I mention about internal wiki site http://mywiki.com/WikiUri or is it not possible to connect to internal wiki and do such operation?
# /appl/Python2.7.2/bin/python generate_user_files.py
1: Create user_config.py file
2: Create user_fixes.py file
3: The two files
What do you do? 1
1: anarchopedia
2: battlestarwiki
3: botwiki
4: celtic
5: commons
6: fon
7: gentoo
8: i18n
9: incubator
10: krefeldwiki
11: lockwiki
12: loveto
13: lyricwiki
14: mediawiki
15: memoryalpha
16: meta
17: mozilla
18: omegawiki
19: openttd
20: osm
21: southernapproach
22: species
23: strategy
24: supertux
25: test
26: twcareer
27: ubuntutw
28: uncyclopedia
29: vikidia
30: wekey
31: wesolve
32: wikia
33: wikibond
34: wikibooks
35: wikinews
36: wikipedia
37: wikiquote
38: wikisource
39: wikitech
40: wikitravel
41: wikitravel_shared
42: wikiversity
43: wiktionary
44: wowwiki
Select family of sites we are working on (default: wikipedia): 14
The language code of the site we're working on (default: 'en'):
Username (en mediawiki): bot
Which variant of user_config.py:
[S]mall or [E]xtended (with further information)? S
'user-config.py' written.
[root@myserver]# cat user-config.py
# -*- coding: utf-8 -*-
family = 'mediawiki'
mylang = 'en'
usernames['mediawiki']['en'] = u'bot'
[root@myserver]# /appl/Python2.7.2/bin/python login.py
Traceback (most recent call last):
File "login.py", line 436, in <module>
main()
File "login.py", line 431, in main
loginMan = LoginManager(password, sysop = sysop, verbose=verbose)
File "login.py", line 106, in __init__
raise pywikibot.NoUsername(u'ERROR: Username for %s:%s is undefined.\nIf you have an account for that site, please add such a line to user-config.py:\n\nusernames[\'%s\'][\'%s\'] = \'myUsername\ % (self.site.family.name, self.site.lang, self.site.family.name, self.site.lang))
pywikibot.exceptions.NoUsername: ERROR: Username for mediawiki:mediawiki is undefined.
If you have an account for that site, please add such a line to user-config.py:
usernames['mediawiki']['mediawiki'] = 'myUsername'
[root@myserver]# 65.91.151.195 (talk) 23:07, 30 October 2011 (UTC)
- Hi,
- I've got the same problem, how have you solved this ?
- thanks 2.2.55.107 15:38, 31 July 2012 (UTC)
Linking to files without importing them
Hello,
I have a server hosting many data files, to which I would like to place links in my wikimedia pages. These files are reachable through network drive mapping in the windows system. All I was able to do was import these files, but this is redundent and won't reflect changes in the original. Can this be achieved?
Thanks, Elad 62.219.224.152 (talk) 16:04, 31 October 2011 (UTC)
Determining the output of recursiveTagParse
I'm attempting to determine the output of recursiveTagParse, which I am calling from a parser function. To do so, I'm trying to return the output of recursiveTagParse wrapped in <pre></pre> tags, which I was hoping would show me the rendered HTML. I'm seeing some unexpected behavior. When I do this:
$parsedList = $parser->recursiveTagParse("* test");
return $parser->insertStripItem($parsedList, $parser->mStripState);
I get this:
- test
But when I do this:
$parsedList = $parser->recursiveTagParse("* test");
return $parser->insertStripItem('<pre>' . $parsedList . '</pre>', $parser->mStripState);
I get this:
* test
It's almost like the rendered HTML is being converted back into wikitext. I'm completely lost. Does anyone have any insight on this? Csagedy (talk) 16:14, 31 October 2011 (UTC)
After another few tests, recursiveTagParse() is clearly not rendering wikitext as the documentation claims it does. If I use $wgOut->parse(), I get something closer to what I expect, except with all those annoying newlines inserted. The page source shows this:
<p><br />
</p>
<pre><ul><li> test
</li></ul>
</pre>
Except instead of showing the HTML, Firefox is actually showing the list wrapped in a pre box. Is using $wgOut->parse() the way to go? Csagedy 22:15, 31 October 2011 (UTC)
How to change the text color in a preformatted text
I tried <span style="color: red;">...</span> it doesnt work (the command appears as text in the resulting page). I also tried <nowiki> to fix it, that breaks the editor... AlexCps (talk) 19:52, 31 October 2011 (UTC)
- You mean like this ?
- <pre style="color: red;">Awesome</pre>
- Krinkle 18:02, 1 November 2011 (UTC)
<pre style="color: red;">Awesome</pre>
[WW][Waiting] Template/table .... STILL NEED HELP
How to make/create a template/table on the left hand side like the ones on Wikipedia, for example we will use Microsoft::
So on microsoft's home page on the Wikipedia table/template it has, Type, Traded as, industry, Founded, Founder(s), Headquarters, Area served, Key people, Products, Services, Revenue, Operating income, Profit, Total assets, Total equity, Employees, Subsidiaries, Website. w:en:Microsoft
how do I make a template/table like this? 90.215.80.134 (talk) 21:31, 31 October 2011 (UTC)
- View source of w:Template:Infobox_company wargo 09:13, 1 November 2011 (UTC)
- The problem is when i try to use this is just says "Template:Infobox company"???????????? 90.215.80.134 15:50, 1 November 2011 (UTC)
- Example(add at beginning of wikicode):
- wargo 16:13, 1 November 2011 (UTC)
{{Infobox company | name = Microsoft Corporation | logo = [[File:Microsoft wordmark.svg|200px|alt=The word "Microsoft" in a black font, Microsoft's current corporate logo.]] | company_type = [[Public company|Public]] | traded_as = {{nasdaq|MSFT}}<br>{{NYSE|MSFT}}<br>[[Dow Jones Industrial Average|Dow Jones Industrial Average Component]]<br>[[NASDAQ-100|NASDAQ-100 Component]]<br>[[S&P 500|S&P 500 Component]]<br>{{pinksheets|MSFT}} | foundation = [[Albuquerque, New Mexico]] ({{Start date|1975|04|04}}) | founder = [[Bill Gates]]<br />[[Paul Allen]] | location = One Microsoft Way<br />[[Redmond, Washington]], {{nowrap|United States}} | area_served = Worldwide | key_people = [[Steve Ballmer]] <small>([[Chief executive officer|CEO]])</small><br />[[Bill Gates]] <small>([[Chairman]])</small> | industry = [[Computer software]]<br />[[Consumer electronics]]<br />[[Digital distribution]]<br />[[Computer hardware]]<br />[[Video game industry|Video games]]<br />[[Information technology consulting|IT consulting]]<br />[[Online advertising]]<br />[[Retailing|Retail stores]]<br />[[Automotive software]] | products = [[Microsoft#Product divisions|See products listing]] | services = [[Microsoft#Product divisions|See services listing]] | revenue = {{increase}} [[United States dollar|US$]] 69.94 billion <small>(FY 2011)</small> | operating_income = {{increase}} US$ 27.16 billion <small>(FY 2011)</small> | net_income = {{increase}} US$ 23.15 billion <small>(FY 2011)</small> | assets = {{increase}} US$ 108.7 billion <small>(FY 2011)</small> | equity = {{increase}} US$ 57.08 billion <small>(FY 2011)</small> | num_employees = 90,000 <small>(June 2011)</small> | subsid = [[List of mergers and acquisitions by Microsoft|List of acquisitions]] | homepage = {{URL|www.microsoft.com}} | intl = yes }}- Yes i used this but it did not work and still says "Template:Infobox company" 90.215.80.134 21:56, 1 November 2011 (UTC)
- ??????????????????? 90.215.80.134 12:03, 2 November 2011 (UTC)
- Did you created page caled "Template:Infobox company" with this source? wargo 14:53, 2 November 2011 (UTC)
- Yes but I don't know what to do AT ALL 90.215.80.134 18:39, 2 November 2011 (UTC)
- ?????????? 90.215.80.134 20:47, 3 November 2011 (UTC)
- Have you read Help:Templates first before you posted here?
- A common problem with copying templates from other places, such as Wikipedia, is that these templates are themselves dependent on other templates (which are themselves..., etc). You could export the WP template as XML via Special:Export, having checked the box "include templates" (or whatever it's called), and then import the XML file into your wiki via Special:Import. Would that solve the problem for you? Cavila MW 1.17, MySQL 5.5.16, Php 5.3.8 11:41, 6 November 2011 (UTC)
- ?????????? 90.215.80.134 20:47, 3 November 2011 (UTC)
- Yes but I don't know what to do AT ALL 90.215.80.134 18:39, 2 November 2011 (UTC)
- Yes i used this but it did not work and still says "Template:Infobox company" 90.215.80.134 21:56, 1 November 2011 (UTC)
- The problem is when i try to use this is just says "Template:Infobox company"???????????? 90.215.80.134 15:50, 1 November 2011 (UTC)
Using a parser hook to insert a template invocation
We just upgraded our wiki from 1.9 to the latest:
MediaWiki 1.17.0 PHP 5.3.2-1ubuntu4.10 (apache2handler) MySQL 5.1.41-3ubuntu12.10
This broke a really tricky template that relied on the old parser ordering to translate all instances of:
[somestuff]
into:
[{{ATemplate|somestuff}}]
such that ATemplate actually got invoked and would do some other stuff with "somestuff". It did this by using #replace on the square brackets so that "[" became "[{{ATemplate|" and "]" became "}}]"; the result of that would then go through the preprocessor and the template would get invoked.
So, with the new changes, that no longer works, and I understand why. My question is, what's another way to do it? I couldn't find any examples of this sort of usage in the migration guide. 12.234.39.130 (talk) 21:58, 31 October 2011 (UTC)
- Sorry, some of the text in that second to last paragraph got munged: the #replace trick I was talking about was to turn "[" into "[{{ATemplate|" and "]" into "}}]". (That way anything between the square brackets in the input would get passed as the parameter to ATemplate.) 12.234.39.130 22:01, 31 October 2011 (UTC)
I fixed your opening post by using
<code><nowiki>wiki stuff</nowiki></code>
for small snippets and<pre>wiki stuff</pre>
for larger snippets. Krinkle 00:57, 30 November 2011 (UTC)
- Anyone have any ideas? 12.234.39.130 00:40, 11 November 2011 (UTC)
- User:Brion VIBBER might know. Krinkle 00:57, 30 November 2011 (UTC)
- It might help to know why anyone would want to do that. I'm struggling to grasp what you are trying to accomplish with the setup you described. 23:55, 30 November 2011 (UTC)
- So, I have a page full of automated test results that come in from another tool. I use a template to pull together a bunch of parser functions to pretty-format the test results. One of the things I want to do is take pieces of output that are in square brackets (this indicates the test case), and turn what's inside the brackets into links to a special page that shows some other stuff (dynamically generated GraphViz render of the test case). So I have a template that generates the link; that's the thing that I want to insert into the square brackets, so that the correct links get auto-generated.
- Paste in a bunch of dumb test output, get color-coding and links to spiffy dynamically generated graphics. MediaWiki magic at its finest, at least when it's all working. Spamwise 20:13, 1 December 2011 (UTC)
- Can't you change whatever makes your pages to output
{{ATemplate|data}}instead of[date]? Should be easy. Krinkle 00:54, 7 December 2011 (UTC)
- It might help to know why anyone would want to do that. I'm struggling to grasp what you are trying to accomplish with the setup you described. 23:55, 30 November 2011 (UTC)