Project:Support desk
Welcome to MediaWiki.org's Support desk, the central on-wiki place to ask MediaWiki questions!
The greater purpose of this page is to make our Manual and other available help so good that you do not have to come here to ask questions, or making them easier to find.
There are other ways for of communication as well (IRC, Mailing lists etc.), read more here.
[edit] Before you post
- Please read through our technical manual and end-user help.
- Project:Current issues is where you should discuss issues about mediawiki.org wiki itself.
- Sandbox: Test wiki editing.
[edit] Post a new question
1. To help us answer your questions, please always indicate which versions you are using:
-
- MediaWiki (reported by your wiki's Special:Version page)
- PHP (likewise)
- Database (likewise, e.g. MySQL 4.1)
2. Please include the URL of your wiki unless you absolutely can't. It's often a lot easier for us to identify the source of the problem if we can look for ourselves.
3. To start a new thread, click "Start a new discussion".
Archiving topics
Topics are automatically archived when they have been inactive for three weeks. If a question you have asked is approaching this limit and still has not been answered, please 'bump' it to prevent it being archived. However do not 'bump' for other reasons.
Contents
![]() First page |
![]() Previous page |
![]() Next page |
![]() Last page |
1. Configuration: MediaWiki - 1.17.0beta1, PHP - 5.3.5, MySQL - 5.1.53
2. No link to wiki available - it is on private network behind firewall.
I am using SemanticBundle extensions to populate pages with various tables bases on Category and Property conditions. After upgrading to MediaWiki 1.17 beta it still showing as a table, but no borders, no gray background for header row and no checkbox next to header to sort the table.
Example of the code
{{#ask: [[Category:Variables]] [[Part of::Table1]] |?Description=Description |?Has Data Type=Type |? HasFormat= Format | format=table | limit=100 | default=nothing found in Category: Variables }}
To verify that this is a bug in MediaWiki 1.17, please temporarily disable your extensions in LocalSettings.php, then create a new page with the following content:
{| class="wikitable sortable" ! Foo ! Bar |- | Lorem | Ipsum |- | Dolor | Sit |- | Amet | Consectetuer |}
Foo | Bar |
---|---|
Lorem | Ipsum |
Dolor | Sit |
Amet | Consectetuer |
Please report back here with your test results !
Thank you for quick response. After disabling extensions in LocalSettings.php one at a time I found that I can restore “sortable table” feature by disabling following line:
require_once( "$IP/extensions/semantic-bundle/SemanticBundleSettings.php" );
I tried to narrow the issue down and one at a time disabled every require_once statements in the SemanticBundleSettings.php – was not able to reproduce the problem. Looks like issue between 1.17 and core of SemanticMediawiki. Same set of semantic extentions were working fine with 1.16. Please, advice.
Instead of display a logo image, I would like to display the name of the site in plain text. What is the variable for displaying that in the skin PHP file.
I've tried echo $this->html( 'sitetitle' ) and echo $this->html( 'sitename' ) but those don't work.
All I really want to do is grab the value of $wgSitename and display it in place of the image-based logo.
Thanks for your help.
Is it possible that a user from the default-group "can only edit pages which he himself has created"?
BTW: This thread should be moved to Project:Support desk
I have the same question. I have been looking to the explanation at http://www.mediawiki.org/wiki/Manual:Interface/Sidebar. But it is totally unclear how to get the newly made sidebar visible. I am administrator of the following mentioned site.Therefore the following statement in the localsettings should be enough to change the sidebar: require_once( "$IP/includes/DefaultSettings.php" );
Therefore I have the following questions:
1) I made a new page "DIY_Book_Scanner_Wiki:sidebar" because $wgSitename = "DIY Book Scanner Wiki"; $wgDefaultSkin = 'monobook';
In the explanation it says: //yourdomain/yourwiki/index.php?title=MediaWiki:Sidebar&action=edit
Well the original mainpage looks like this http://diybookscanner.org/wiki/index.php?title=Main_Page
So the new sidebar should be made by this http://diybookscanner.org/wiki/index.php?title=Wiki:Sidebar&action=edit
but this gives an error: Bad title
The requested page title was invalid, empty, or an incorrectly linked inter-language or inter-wiki title. It may contain one or more characters which cannot be used in titles. Return to Main Page.
Then I tried http://diybookscanner.org/wiki/DIY Book Scanner Wiki/index.php?title=MediaWiki:Sidebar&action=edit
Since "DIY Book Scanner Wiki" is the namespace for the wiki.
Then I will get:
The requested URL /wiki/DIY Book Scanner Wiki/index.php was not found on this server
Maybe the fault here are the spaces in the namespace.
So I tried:
http://diybookscanner.org/wiki/index.php?title=DIY_Book_Scanner_Wiki:Sidebar&action=edit
and this made the page.
However it doesn't replace the original sidebar. In the Manual:Interface/Sidebar is nothing which tells what to add or delete to any file on our server.
What did i do wrong or what went wrong during the installation of the Wikisite
2) In the sidebar I try to implement a menu in the menu like this
-Commercial book scanners -- V-shaped book scanners -- Planetary book scanners -Hardware -- Guides for building DIY V-shaped book scanners -- Guides for building DIY planetary book scanners -- Material guidance
So, a kind of collapsable menu. Is this possible with monobook or is programming necessary to become this available?
Thank you in advance for answering and educating me. Yours truly
As the manual says, you edit the side bar at:
http://diybookscanner.org/wiki/index.php?title=MediaWiki:Sidebar&action=edit
If we do not have anyone in our area to create a wiki site, is there a central group we could go to who would do this for various areas?
I may be misunderstanding you but mediawiki (a wiki) is free to anyone. You can download mediawiki to anywhere in the world from:
http://www.mediawiki.org/wiki/MediaWiki
Further info re wikis
http://www.wikihow.com/Start-a-Wiki
http://www.wiki-site.com/index.php/Wiki_Creation_-_Create_A_Wiki_For_Free%21
http://en.wikibooks.org/wiki/Starting_and_Running_a_Wiki_Website
Regards
- MediaWiki 1.15.4
- PHP 5.3.0 (apache2handler)
- MySQL 5.1.36-community-log
I am hoping that someone may be able to assist me. I have been using the ‘SiteGround’ method of backing-up my wiki, unfortunately, there is a problem with the memory size shown in apache faults:
Tue May 24 10:09:35 2011] [error] [client 127.0.0.1] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 128368641 bytes) in C:\\wamp\\apps\\phpmyadmin3.2.0.1\\export.php on line 190, referer: http://localhost/phpmyadmin/db_export.php?db=mediawiki&server....
I have checked line 190 of export.php as below, which does not make any sense to me at all!
189 // We export as file - output normally
190 echo $line;
191 }
Kind regards
I have just made things worse. I did some research and came up with changing the memory limit in php.ini from 128M to 150M and now I am unable to export anything, even after changing back to 128M
I would be grateful if anyone can help.
Unchecked memory use is probably a given for that method. Increase the memory limit or find a better method (which might involve finding a better host).
Thank you for your response. I have tried increasing the memory to no avail. I am using media wiki on my pc so I cannot change to a better host. Regards
If increasing the memory limit isn't working, you're probably doing it incorrectly.
Since you're on your own machine, though, you don't actually have to use phpMyAdmin for your export.
I think that you are probably correct in that I must be doing something incorrectly.
Many thanks for directing me to the discussion page which led me to:
However, the information did not take me any further. One problem I have had is determining which php.ini should be edited! There are two php.ini files one under the PHP directory and the other under Apache/bin. Of course, there is another php.ini file that can be accessed from the taskbar. RJ45 Technologies was of some assistance but following their instructions did not help:
http://www.rj45tech.com/increasing_php_memory_limit_and_file_upload_size_wamp
I am not alone. There are many more people with the same problem as a quick Google of '134217728 bytes exhausted' shows.
I have looked at the mediawiki backup page. The instructions are fine if you know what they mean. You need to have more than a basic understanding of mediawiki to be able to follow the instructions. I could get into more trouble than I am already in if I tried to follow the instructions. To be honest I would not know where to start.
http://www.mediawiki.org/wiki/Manual:Backing_up_a_wiki
Many thanks though for at least responding.
fresh install of version 1.16.5 with php 5.3.6 and MySql lead to timeouts after setup, both in ws2003 32 bits + apache 2.2 AND ws2008 64 bits +iis
Hi,
I've tryed twice to get MediaWiki running on my 2 servers.
The first one is apache 2.2 + php 5.3.6 thread secure on windows 2003 server,
The second is iis + php 5.3.6 thread secure on windows 2008 64 bits,
Both are connected on Mysql on some linux instance,
In both cases, I get the setup done in approximately 15, then the link to the wiki only shows up after 1 minute, both from local server or remote browsers.
The database is created without any problem.
The result of the iis setup is as follow:
ON WIN 2003:
PHP 5.3.6 installed Found database drivers for: MySQL PostgreSQL SQLite PHP server API is apache2handler; ok, using pretty URLs (index.php/Page_Title) Have XML / Latin1-UTF-8 conversion support. Session save path (C:\WINDOWS\Temp) appears to be valid. PHP's memory_limit is 128M bytes. Couldn't find eAccelerator, APC or XCache; cannot use these for object caching. GNU diff3 not found. Found GD graphics library built-in, image thumbnailing will be enabled if you enable uploads. Installation directory: D:\web\wikis\fac2 Script URI path: Installing MediaWiki with php file extensions Environment checked. You can install MediaWiki. Warning: $wgSecretKey key is insecure, generated with mt_rand(). Consider changing it manually.
Generating configuration file... Database type: MySQL Loading class: DatabaseMysql PHP is linked with old MySQL client libraries. If you are using a MySQL 4.1 server and have problems connecting to the database, see http://dev.mysql.com/doc/mysql/en/old-client.html for help. Attempting to connect to database server as remote...success. Connected to mysql 5.0.32-Debian_7etch8-log; You are using MySQL 4.1 server, but PHP is linked to old client libraries; if you have trouble with authentication, see http://dev.mysql.com/doc/mysql/en/old-client.html for help.; enabling MySQL 4.1/5.0 charset mode Attempting to create database... Created database wikidb Creating tables... done. Populating interwiki table... done. Initializing statistics... Granting user permissions to wikiuser on wikidb... success. Created sysop account administrator.
Creating LocalSettings.php...
ON WIN 2008 SERVER:
PHP 5.3.6 installed Found database drivers for: MySQL PostgreSQL SQLite PHP server API is cgi-fcgi; using ugly URLs (index.php?title=Page_Title) Have XML / Latin1-UTF-8 conversion support. Warning: Your session.save_path value (C:\Windows\Temp) appears to be invalid or is not writable. PHP needs to be able to save data to this location for correct session operation. PHP's memory_limit is 128M bytes. Couldn't find eAccelerator, APC or XCache; cannot use these for object caching. GNU diff3 not found. Found GD graphics library built-in, image thumbnailing will be enabled if you enable uploads. Installation directory: E:\web\fac2wiki Script URI path: Installing MediaWiki with php file extensions Environment checked. You can install MediaWiki. Warning: $wgSecretKey key is insecure, generated with mt_rand(). Consider changing it manually.
Generating configuration file... Database type: MySQL Loading class: DatabaseMysql PHP is linked with old MySQL client libraries. If you are using a MySQL 4.1 server and have problems connecting to the database, see http://dev.mysql.com/doc/mysql/en/old-client.html for help. Attempting to connect to database server as remote...success. Connected to mysql 5.0.32-Debian_7etch8-log; You are using MySQL 4.1 server, but PHP is linked to old client libraries; if you have trouble with authentication, see http://dev.mysql.com/doc/mysql/en/old-client.html for help.; enabling MySQL 4.1/5.0 charset mode Database wikidb exists There are already MediaWiki tables in this database. Checking if updates are needed... DB user account ok
Feel free to check the speed on 2008 here:
Very fast for the setup result page: http://wiki3.fac2.be/config/index.php Very (very very) slow for the index or any page: http://wiki3.fac2.be/index.php?title=Accueil
Thank you very much for your help,
Kind regards,
Laurent C.
Greatings!
Im trying to Install MediaWiki 1.16.5 on an Windows 2008 R2 Server with IIS 7.5, PHP 5.3.6 and Postgres 9.0.4.
First Step in MediaWiki Installation was apparently sucessfull.
LocalSettings.php was generated and I copied it to the MediaWiki root Dir.
So in next Step I try to access the MediaWiki Website - following Error gets displayed:
A database error has occurred Query: INSERT INTO l10n_cache (lc_lang,lc_key,lc_value) VALUES ('en','messages:clearyourcache','s:438:"''''''Note: After saving, you may have to bypass your browser''s cache to see the changes.''''''
So I take a look in the DB - but the Table l10n_cache is just empty.
Can sombody help? Is this an Bug?
Thank you!
Is that all error information you see? Is there more information, like an exact cause of SQL error?
No there is a lot more of:
A database error has occurred Query: INSERT INTO l10n_cache (lc_lang,lc_key,lc_value) VALUES ('en','messages:clearyourcache','s:438:"'Note: After saving, you may have to bypass your browsers cache to see the changes.' 'Mozilla / Firefox / Safari:' hold 'Shift' while clicking 'Reload', or press either 'Ctrl-F5' or 'Ctrl-R' ('Command-R' on a Macintosh); 'Konqueror: 'click 'Reload' or press 'F5'; 'Opera:' clear the cache in 'Tools → Preferences'; 'Internet Explorer:' hold 'Ctrl' while clicking 'Refresh,' or press 'Ctrl-F5'.";'),('en','messages:usercssyoucanpreview','s:83:"'Tip:' Use the "Show preview" button to test your new CSS before saving.";'),('en','messages:userjsyoucanpreview','s:90:"'Tip:' Use the "Show preview" button to test your new JavaScript before saving.";'),('en','messages:usercsspreview','s:91:"'Remember that you are only previewing your user CSS.' 'It has not yet been saved!'";'),('en','messages:userjspreview','s:106:"'Remember that you are only testing/previewing your user JavaScript.' 'It has not yet been saved!'";'),('en','messages:userinvalidcssjstitle','s:178:"'Warning:' There is no skin "$1". Remember that custom .css and .js pages use a lowercase title, e.g. User:Foo/monobook.css as opposed to User:Foo/Monobook.css.";'),('en','messages:updated','s:9:"(Updated)";'),('en','messages:note','s:11:"'Note:'";'),('en','messages:previewnote','s:81:"'Remember that this is only a preview.' Your changes have not yet been saved!";'),('en','messages:previewconflict','s:102:"This preview reflects the text in the upper text editing area as it will appear if you choose to save.";'),('en','messages:session_fail_preview','s:179:"'Sorry! We could not process your edit due to a loss of session data.' Please try again. If it still does not work, try logging out and logging back in.";'),('en','messages:session_fail_preview_html','s:338:"'Sorry! We could not process your edit due to a loss of session data.'
'Because MediaWiki has raw HTML enabled, the preview is hidden as a precaution against JavaScript attacks.'
'If this is a legitimate edit attempt, please try again.' If it still does not work, try logging out and logging back in.";'),('en','messages:token_suffix_mismatch','s:259:"'Your edit has been rejected because your client mangled the punctuation characters in the edit token.' The edit has been rejected to prevent corruption of the page text. This sometimes happens when you are using a buggy web-based anonymous proxy service.";'),('en','messages:editing','s:10:"Editing $1";'),('en','messages:editingsection','s:20:"Editing $1 (section)";'),('en','messages:editingcomment','s:24:"Editing $1 (new section)";'),('en','messages:editconflict','s:17:"Edit conflict: $1";'),('en','messages:explainconflict','s:323:"Someone else has changed this page since you started editing it. The upper text area contains the page text as it currently exists. Your changes are shown in the lower text area. You will have to merge your changes into the existing text. 'Only' the text in the upper text area will be saved when you press "Save page".";'),('en','messages:yourtext','s:9:"Your text";'),('en','messages:storedversion','s:15:"Stored revision";'),('en','messages:nonunicodebrowser','s:184:"'Warning: Your browser is not unicode compliant.' A workaround is in place to allow you to safely edit pages: non-ASCII characters will appear in the edit box as hexadecimal codes.";'),('en','messages:editingold','s:135:"'Warning: You are editing an out-of-date revision of this page.' If you save it, any changes made since this revision will be lost.";'),('en','messages:yourdiff','s:11:"Differences";'),('en','messages:copyrightwarning','s:406:"Please note that all contributions to MediaWiki are considered to be released under the $2 (see $1 for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. 'Do not submit copyrighted work without permission!'";'),('en','messages:copyrightwarning2','s:394:"Please note that all contributions to MediaWiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see $1 for details). 'Do not submit copyrighted work without permission!'";'),('en','messages:editpage-tos-summary','s:1:"-";'),('en','messages:longpagewarning','s:182:"'Warning:' This page is $1 kilobytes long; some browsers may have problems editing pages approaching or longer than 32kb. Please consider breaking the page into smaller sections.";'),('en','messages:longpageerror','s:132:"'Error: The text you have submitted is $1 kilobytes long, which is longer than the maximum of $2 kilobytes.' It cannot be saved.";'),('en','messages:readonlywarning','s:253:"'Warning: The database has been locked for maintenance, so you will not be able to save your edits right now.' You may wish to cut-n-paste the text into a text file and save it for later.
The administrator who locked it offered this explanation: $1";'),('en','messages:protectedpagewarning','s:156:"'Warning: This page has been locked so that only users with administrator privileges can edit it.' The latest log entry is provided below for reference:";'),('en','messages:semiprotectedpagewarning','s:134:"'Note:' This page has been locked so that only registered users can edit it. The latest log entry is provided below for reference:";'),('en','messages:cascadeprotectedwarning','s:186:"'Warning:' This page has been locked so that only users with administrator privileges can edit it, because it is included in the following cascade-protected pages:";'),('en','messages:titleprotectedwarning','s:171:"'Warning: This page has been locked so that specific rights are needed to create it.' The latest log entry is provided below for reference:";'),('en','messages:templatesused','s:51:"Templates used on this page:";'),('en','messages:templatesusedpreview','s:54:"Templates used in this preview:";'),('en','messages:templatesusedsection','s:54:"Templates used in this section:";'),('en','messages:template-protected','s:11:"(protected)";'),('en','messages:template-semiprotected','s:16:"(semi-protected)";'),('en','messages:hiddencategories','s:78:"This page is a member of $1 hidden categories:";'),('en','messages:edittools','s:61:"";'),('en','messages:nocreatetitle','s:21:"Page creation limited";'),('en','messages:nocreatetext','s:157:"MediaWiki has restricted the ability to create new pages. You can go back and edit an existing page, or log in or create an account.";'),('en','messages:nocreate-loggedin','s:47:"You do not have permission to create new pages.";'),('en','messages:sectioneditnotsupported-title','s:29:"Section editing not supported";'),('en','messages:sectioneditnotsupported-text','s:46:"Section editing is not supported in this page.";'),('en','messages:permissionserrors','s:18:"Permissions errors";'),('en','messages:permissionserrorstext','s:86:"You do not have permission to do that, for the following reasons:";'),('en','messages:permissionserrorstext-withaction','s:81:"You do not have permission to $2, for the following reasons:";'),('en','messages:recreate-moveddeleted-warn','s:222:"'Warning: You are recreating a page that was previously deleted.'
You should consider whether it is appropriate to continue editing this page. The deletion and move log for this page are provided here for convenience:";'),('en','messages:moveddeleted-notice','s:100:"This page has been deleted. The deletion and move log for the page are provided below for reference.";'),('en','messages:log-fulllog','s:13:"View full log";'),('en','messages:edit-hook-aborted','s:45:"Edit aborted by hook. It gave no explanation.";'),('en','messages:edit-gone-missing','s:59:"Could not update the page. It appears to have been deleted.";'),('en','messages:edit-conflict','s:14:"Edit conflict.";'),('en','messages:edit-no-change','s:62:"Your edit was ignored, because no change was made to the text.";'),('en','messages:edit-already-exists','s:47:"Could not create a new page. It already exists.";'),('en','messages:addsection-preload','s:0:"";'),('en','messages:addsection-editintro','s:0:"";'),('en','messages:expensive-parserfunction-warning','s:183:"'Warning:' This page contains too many expensive parser function calls.
It should have less than $2 calls, there are now $1 calls.";'),('en','messages:expensive-parserfunction-category','s:51:"Pages with too many expensive parser function calls";'),('en','messages:post-expand-template-inclusion-warning','s:87:"'Warning:' Template include size is too large. Some templates will not be included.";'),('en','messages:post-expand-template-inclusion-category','s:45:"Pages where template include size is exceeded";'),('en','messages:post-expand-template-argument-warning','s:137:"'Warning:' This page contains at least one template argument which has a too large expansion size. These arguments have been omitted.";'),('en','messages:post-expand-template-argument-category','s:43:"Pages containing omitted template arguments";'),('en','messages:parser-template-loop-warning','s:30:"Template loop detected: $1";'),('en','messages:parser-template-recursion-depth-warning','s:44:"Template recursion depth limit exceeded ($1)";'),('en','messages:language-converter-depth-warning','s:44:"Language converter depth limit exceeded ($1)";'),('en','messages:undo-success','s:161:"The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.";'),('en','messages:undo-failure','s:67:"The edit could not be undone due to conflicting intermediate edits.";'),('en','messages:undo-norev','s:70:"The edit could not be undone because it does not exist or was deleted.";'),('en','messages:undo-summary','s:75:"Undo revision $1 by $2 (talk)";'),('en','messages:cantcreateaccounttitle','s:21:"Cannot create account";'),('en','messages:cantcreateaccount-text','s:118:"Account creation from this IP address ('$1') has been blocked by $3.
The reason given by $3 is '$2'";'),('en','messages:cantcreateaccount-nonblock-text','s:0:"";'),('en','messages:viewpagelogs','s:23:"View logs for this page";'),('en','messages:nohistory','s:39:"There is no edit history for this page.";'),('en','messages:currentrev','s:15:"Latest revision";'),('en','messages:currentrev-asof','s:24:"Latest revision as of $1";'),('en','messages:revisionasof','s:17:"Revision as of $1";'),('en','messages:revision-info','s:23:"Revision as of $1 by $2";'),('en','messages:revision-info-current','s:1:"-";'),('en','messages:revision-nav','s:65:"($1) $2 | $3 ($4) | $5 ($6)";'),('en','messages:previousrevision','s:18:"← Older revision";'),('en','messages:nextrevision','s:18:"Newer revision →";'),('en','messages:currentrevisionlink','s:15:"Latest revision";'),('en','messages:cur','s:3:"cur";'),('en','messages:next','s:4:"next";'),('en','messages:last','s:4:"prev";'),('en','messages:page_first','s:5:"first";'),('en','messages:page_last','s:4:"last";'),('en','messages:histlegend','s:279:"Diff selection: mark the radio boxes of the revisions to compare and hit enter or the button at the bottom.
Legend: '(cur)' = difference with latest revision, '(prev)' = difference with preceding revision, 'm' = minor edit.";'),('en','messages:history-fieldset-title','s:14:"Browse history";'),('en','messages:history-show-deleted','s:12:"Deleted only";'),('en','messages:history_copyright','s:1:"-";'),('en','messages:histfirst','s:8:"Earliest";'),('en','messages:histlast','s:6:"Latest";'),('en','messages:historysize','s:31:"($1 bytes)";'),('en','messages:historyempty','s:7:"(empty)";'),('en','messages:history-feed-title','s:16:"Revision history";'),('en','messages:history-feed-description','s:42:"Revision history for this page on the wiki";') Function: LCStore_DB::set Error: 1 FEHLER: Zeichen 0xe28692 in Kodierung »UTF8« hat keine Entsprechung in »WIN1252«
Backtrace:
- 0 C:\inetpub\wwwroot\MediaWiki\includes\db\Database.php(538): DatabasePostgres->reportQueryError('FEHLER: Zeiche...', 1, 'INSERT INTO l10...', 'LCStore_DB::set', )
- 1 C:\inetpub\wwwroot\MediaWiki\includes\db\DatabasePostgres.php(810): DatabaseBase->query('INSERT INTO l10...', 'LCStore_DB::set', )
- 2 C:\inetpub\wwwroot\MediaWiki\includes\LocalisationCache.php(822): DatabasePostgres->insert('l10n_cache', Array, 'LCStore_DB::set')
- 3 C:\inetpub\wwwroot\MediaWiki\includes\LocalisationCache.php(617): LCStore_DB->set('messages:histor...', 'Revision histor...')
- 4 C:\inetpub\wwwroot\MediaWiki\includes\LocalisationCache.php(352): LocalisationCache->recache('en')
- 5 C:\inetpub\wwwroot\MediaWiki\includes\LocalisationCache.php(262): LocalisationCache->initLanguage('en')
- 6 C:\inetpub\wwwroot\MediaWiki\includes\LocalisationCache.php(205): LocalisationCache->loadItem('en', 'deps')
- 7 C:\inetpub\wwwroot\MediaWiki\includes\LocalisationCache.php(514): LocalisationCache->getItem('en', 'deps')
- 8 C:\inetpub\wwwroot\MediaWiki\includes\LocalisationCache.php(352): LocalisationCache->recache('de')
- 9 C:\inetpub\wwwroot\MediaWiki\includes\LocalisationCache.php(262): LocalisationCache->initLanguage('de')
- 10 C:\inetpub\wwwroot\MediaWiki\includes\LocalisationCache.php(205): LocalisationCache->loadItem('de', 'fallback')
- 11 C:\inetpub\wwwroot\MediaWiki\languages\Language.php(2526): LocalisationCache->getItem('de', 'fallback')
- 12 C:\inetpub\wwwroot\MediaWiki\languages\Language.php(173): Language::getFallbackFor('de')
- 13 C:\inetpub\wwwroot\MediaWiki\languages\Language.php(136): Language::newFromCode('de')
- 14 C:\inetpub\wwwroot\MediaWiki\includes\StubObject.php(126): Language::factory('de')
- 15 C:\inetpub\wwwroot\MediaWiki\includes\StubObject.php(103): StubContLang->_newObject()
- 16 C:\inetpub\wwwroot\MediaWiki\includes\StubObject.php(57): StubObject->_unstub('getCode', 5)
- 17 C:\inetpub\wwwroot\MediaWiki\includes\StubObject.php(121): StubObject->_call('getCode', Array)
- 18 C:\inetpub\wwwroot\MediaWiki\includes\GlobalFunctions.php(576): StubContLang->__call('getCode', Array)
- 19 C:\inetpub\wwwroot\MediaWiki\includes\GlobalFunctions.php(576): StubContLang->getCode()
- 20 C:\inetpub\wwwroot\MediaWiki\includes\MessageCache.php(506): wfGetLangObj(true)
- 21 [internal function]: MessageCache->get('mainpage', true, true)
- 22 C:\inetpub\wwwroot\MediaWiki\includes\StubObject.php(58): call_user_func_array(Array, Array)
- 23 C:\inetpub\wwwroot\MediaWiki\includes\StubObject.php(76): StubObject->_call('get', Array)
- 24 C:\inetpub\wwwroot\MediaWiki\includes\GlobalFunctions.php(742): StubObject->__call('get', Array)
- 25 C:\inetpub\wwwroot\MediaWiki\includes\GlobalFunctions.php(742): StubObject->get('mainpage', true, true)
- 26 C:\inetpub\wwwroot\MediaWiki\includes\GlobalFunctions.php(707): wfMsgGetKey('mainpage', true, true, true)
- 27 C:\inetpub\wwwroot\MediaWiki\includes\GlobalFunctions.php(655): wfMsgReal('mainpage', Array, true, true)
- 28 C:\inetpub\wwwroot\MediaWiki\includes\Title.php(284): wfMsgForContent('mainpage')
- 29 C:\inetpub\wwwroot\MediaWiki\includes\Wiki.php(117): Title::newMainPage()
- 30 C:\inetpub\wwwroot\MediaWiki\index.php(61): MediaWiki->checkInitialQueries(NULL, 'view')
- 31 {main}
Thnak you!
Hi,
I am stuck with the installation on Windows Server 2008 x64. The error I get is the following complaining about the config folder not being writable. I tried giving full access to the network service account to the config folder but still getting the same message as below. I installed it under http://localhost/mediawiki/. Any help is highly appreciated.
Thank you.
MediaWiki 1.16.5 Installation Can't write config file, aborting In order to configure the wiki you have to make the config subdirectory writable by the web server. Once configuration is done you'll move the created LocalSettings.php to the parent directory, and for added safety you can then remove the config subdirectory entirely.
To make the directory writable on a Unix/Linux system:
cd C:\inetpub\wwwroot\mediawiki chmod a+w config Afterwards retry to start the setup.
Hi, I am building Flash app which will use the MediaWiki API to load some articles from Wikipedia, localy everything works fine I use such link to load the articles http://en.wikipedia.org/w/api.php?action=query&prop=revisions&titles=Something&rvprop=content but when I upload my app to the server it doesn't load the articles. My question is how can I use the API from the server side?
hmm, I dont think so, where can I do that and what is this agent string? Could you share a link with some explanation?
I kind of know what you mean by 'user agent string' but I dont know where can I get it and how can I included in my link http://en.wikipedia.org/w/api.php?action=query&prop=revisions&titles=Something&rvprop=content
See meta:User-Agent policy. But you mentioned it's Flash-based, so it should already be using the User-Agent string provided by your browser. It's unlikely that this is the problem.
What are the contents of the response you're receiving from the API?
Hi, I am trying right now to get the xml by PHP script but I get the User-Agent error, how should I set the user-agent in my URL? http://en.wikipedia.org/w/api.php?action=query&prop=revisions&titles=Something&rvprop=content Please provide an example :(
You can see an example at meta:User-Agent policy, but there's really no standard format that UA strings have to adhere to.
How to add a header to each page assuming that header should depend on current page name?
Dear colleagues! I have a mediawiki instance at office. It has different adresses if one access to it from office network and from Internet. It is quite boring to send links to the news to my colleagues because I have to manually create one address from another. I thought I created a template which shows those two adresses like this:
http://%inner_address%/index.php/{{FULLPAGENAMEE}} - to access from office<br> http://%outer_address%/index.php/{{FULLPAGENAMEE}} - to access from outside
and then I can just copy this information to clipboard. Template works fine, but I want to place this template at each page of my wiki. I can do it manually but this is not a good way. I tried to put this template into mediawiki:Sitenotice page, but it shows links to mediawiki:Sitenotice page, not to the current... Please answer, is it possible to automatically add this link to all pages and how can one do it?
Hi, I am using the MediaWiki to display some articles in my Flash app. I have run into a problem when I try to display an image because, all that API gives me is File:Name of image.jpg but for example for image File:Krilleyekils.jpg the path that I can recreate is http://en.wikipedia.org/wiki/File:Krilleyekils.jpg but to display the image elsewhere I need this path http://upload.wikimedia.org/wikipedia/commons/thumb/6/64/Krilleyekils.jpg/627px-Krilleyekils.jpg any idea how can I get it?
If you can figure out some way to access {{filepath:}}
through the API, then read Help:Magic_words#URL data. Alternatively, using the "Media:" namespace instead of "File:" should take you straight to the image, so read Help:Namespaces#-2: Media.
The filepath is what I need but I dont know how can I use it ;/ To get articles from wikipedia I use this link-> http://en.wikipedia.org/w/api.php?action=query&prop=revisions&titles=Heart&rvprop=content but I dont know where could I put the Any ideas?
On this page, there are folders named from REL1_1 to REL1_18 which must be MediaWiki v1.1-v1.18. However, there is also a folder called wmf which comprises of 1.16wmf1-4 and 1.17wmf1 and another folder called wmf-deployment. What is the difference between MediaWiki releases like REL1_16 and REL1_17 and versions in wmf?
What does phase3 mean? and what does tags and trunk mean under this directory]?
Thanks guys!
REL1_1 through REL1_18 are branches for the various versions of MediaWiki. REL1_17 and REL1_18 will continue to receive commits as they haven't been released yet. trunk is the current development branch, which will eventually be branched to REL1_19.
Because branches are not stable, it's recommended that you use the tags, which are actual MediaWiki releases. Once a tag is created, they never change. REL1_16_5 is MW 1.16.5, the most recent stable release. You could also try REL1_17_0beta1, but note that it is a beta. When 1.17 is released, a REL1_17_0 tag will be created.
wmf-deployment used to be the Wikimedia deployment branch, but the wmf branches are now used for that purpose. 1.17wmf is the branch that all Wikimedia wikis run on, including Wikipedia and this very site. You shouldn't use this branch as it's been customized for Wikimedia use. Note that MediaWiki and Wikimedia are not the same thing, despite the similar names.
phase3 is MediaWiki core. The name has historical significance, indicating that it was the third phase of the Wikipedia software. It doesn't mean much any more. All you need to know is that core is in the phase3 directory, and extensions are in the extensions directory.
Thank you very much!
So is it true that the MediaWiki 1.17 software is still a beta version but Wikimedia Projects such as Wikipedia are already running on a Wikimedia-customized version of MediaWiki 1.17 software which is also a beta one?
and when will the 1.17 become a stable 'tag'? I am planning to build a MediaWiki site in my school in the next couple of months? Do you suggest that I use a 1.16.5 stable or a 1.17/1.18 from SVN?
According to the roadmap 1.17 is "very nearly complete". Release should be soon, I hope.
It's probably okay to use the 1.17 beta and then upgrade when the official release is made available. It's hard to be certain though; there could still be unforeseen problems. While 1.17 works fine for Wikimedia, it is quite a different environment than what you'll be running. There are still some issues with the new installer, but most of them are minor.
Installation. Database and user already created in cpanel. Installation cannot complete because mediawiki wants to create or grant database user privileges, and so fails.
I am installing mediawiki 1.17 beta.
I have created the database, and database user (and assigned to database with full permissions) in cpanel.
Media wiki installation wants to create the user, or add privileges itself. It fails because the user already exists and mediawiki can't have permission to create or grant the user privileges.
However if I try to let media wiki create the user somehow, by using an existing user for during installation and let media wiki create a new user for webaccess (for after installation). Then the installation tells to me that it fails because the installation user (my cpanel account on shared hosting) does not have root permissions to create or give permissions to a new user.
I could install media wiki if only the step about creating or granting privileges to a new user is able to be skipped. So that I can install with the user already created in cpanel beforehand.
Is there a way to skip the step of mediawiki trying to create or grant database user privileges. When I have already created the database and user before installation?
If i can't remove this step. Then I can't install media wiki.
Also I have looked on google for this issue, and it seems to have been existing for several years with other people asking for the same help.
When I asked my host. They told me I can't have root access to mysql (which is shared I guess) for security reasons. And asked me why does media wiki needs root access when other scripts do not? And told me to ask you if there is a way to install without root access. With a normal pre - created user, as normal with cms, forums, and other scripts.
Please help.
Thank you.
dave
P.S.
the mysql error is: 1044
I don't have permissions to create the new user.
So therefore I need mediawiki's installation to accept an existing user and database that I have already created before in cpanel.
I am the person who asked the question.
The installation does not complete when the database and user already exist. It tries to grant privileges to the user itself and then fails.
I am using dokuwiki now.
It sounds like you might be filling in the "root user" field. You can leave that blank.
It's not the root user. I have the same problem.
Fresh Media Wiki 1.17.0 beta 1 installation.
DB has been created as pbgeex, DB username has been created as pbgeex with all privileges to the DB called pbgeex.
Set the DB access settings so that mediawiki can talk to the DB.
First go around, I'll leave it as the same account, since that's what I want to do.
No Dice.
Setting the username/password to an account that already exists and has all permissions.
Similar error.
Erasing the first set of DB credentials generates this error, after getting it and re-filling in the credentials I'm greeted with this -
Obviously we aren't doing an upgrade, but this fools the installer into preforming one, and allowing us to copy the localsettings.php file and having a functioning wiki.
Hello,
I searched this MediaWiki and the FAQ but couldn't find what I was looking for. So I was hoping someone over here could help me.
To start, the information of the wiki the question is about; MediaWiki: 1.11.2 PHP: 5.1.6 (apache2handler) MySQL: 5.0.77 I cannot provide a link, since this wiki is for my work and I'm not allowed to share the link, though I don't think/hope it's necessary for my question.
My question is this: Since a shortwhile, wikipedia (and this wiki as well) has dorpdown (?) menu's in the sidebar. That when you click on it, it shows/hides things. Now I would be very interested in implementing this for the wiki of my work. The problem is, I can't find how to do this. Is it because our MediaWiki is too old? Or am I not searching wel even.
I hope someone can help me with this, and I hope I explained it correctly, English is not my native language, so I don't know precisely what everything is called.
The dropdown menus are part of Extension:Vector. You might need to upgrade your wiki to MediaWiki 1.17 for that extension to work. You would also need the vector skin to work too.
MediaWiki 1.16.0 PHP 5.2.15 (cgi-fcgi) MySQL 5.1.53-log
I'm trying to install the LiquidThreads extension and need to run the update.php script to update the database. However, when I tried to run it I got the following error:
Fatal Error: Call to a member function getDbType() on a non-object in /home/[username]/[host]/w/maintenance/doMaintenance.php on line 79
I have the following extensions installed:
- Semantic Mediawiki
- Admin Links
- ParserFunctions
- CategoryWatch
- CreatePage
- MooTools12Core
- MultiBoilerplate
- WYSIWYG Extension
Any ideas?
It looks like this is actually regarding any maintenance script I try to run. I just tried to run "runJobs.php" and I got the same error.
This is line 79 from doMaintenance.php and the surrounding code:
// Load settings, using wikimedia-mode if needed // Fixme: replace this hack with general farm-friendly code if( file_exists( "$IP/wmf-config/wikimedia-mode" ) ) { # TODO FIXME! Wikimedia-specific stuff needs to go away to an ext # Maybe a hook? global $cluster; $wgWikiFarm = true; $cluster = 'pmtpa'; require_once( "$IP/includes/SiteConfiguration.php" ); require( "$IP/wmf-config/wgConf.php" ); $maintenance->loadWikimediaSettings(); require( $IP.'/wmf-config/CommonSettings.php' ); } else { require_once( $maintenance->loadSettings() ); } LINE 79 ------> if ( $maintenance->getDbType() === Maintenance::DB_ADMIN && is_readable( "$IP/AdminSettings.php" ) ) { require( "$IP/AdminSettings.php" ); } $maintenance->finalSetup(); // Some last includes require_once( "$IP/includes/Setup.php" ); require_once( "$IP/maintenance/install-utils.inc" ); // Much much faster startup than creating a title object $wgTitle = null; // Do the work try { $maintenance->execute(); // Potentially debug globals $maintenance->globals(); } catch( MWException $mwe ) { echo( $mwe->getText() ); exit( 1 ); }
Are $wgDBuser and $wgDBpassword set? Are $wgDBadminuser and $wgDBadminpassword set?
Hello everyone,
Sorry if that has been asked before but I couldn't find anything for days.
I'm looking for a way to prevent images (thumbnails or not) to NOT overlap the separators of sub-titles, even if that means empty space between each paragraphs.
Thank you in advance
You can do this for new pages by placing a "clear=all" before the sub-section titles, thus:
[edit] Sub-title
Alternatively, you can add "clear = all;" to the CSS definitions of all headers, and that will apply to all existing and new pages.
A have an old version of a wikiBot who logs in without any token
I have seen in an discussion below, that in MediaWiki 1.16 Tokens are required.
In my opinion, it seems to be much easier to downgrade to an older version of MediaWiki then to implement the token-feature
Which is the newest MediaWiki-Version without Tokens for bots?
Thank you very much
I've set up my wiki on a localhost for testing and troubleshooting purposes. However, I can't figure out how to run the php scripts. I am using xampp for my localhost and I normally use putty to run the scripts, but I can't seem to connect it to my localhost.
Help?
Hi.
Varnish cache PURGE does not work since Varnish 2.x. It seems like Varnish will not any more accept the MediaWiki format (according to http://www.mediawiki.org/wiki/Manual:Varnish_caching):
PURGE http://domain.com/url HTTP/1.0
But it will rather want a compliant request such as:
PURGE /url HTTP/1.0 Host: domain.com
I have modified the SquidPurgeClient.php to reflect the following:
public function queuePurge( $url ) {
$url = str_replace( "\n", , $url ); $urlArr = parse_url($url); if($urlArr['query'] != "") $urlQuery = "?" . $urlArr['query']; else $urlQuery = ""; $this->requests[] = "PURGE " . $urlArr['path'] . $urlQuery . " HTTP/1.0\r\n" . "Host: " . $urlArr['host'] . "\r\n" . "Connection: Keep-Alive\r\n" . "Proxy-Connection: Keep-Alive\r\n" . "User-Agent: " . Http::userAgent() . ' ' . __CLASS__ . "\r\n\r\n"; if ( $this->currentRequestIndex === null ) { $this->nextRequest(); }
}
Which seems to successfully PURGE pages with Varnish 2.x and 3.x.
In addition I have done the following to the VCL to purge both entries for www.domain.com and domain.com:
if (req.request == "PURGE") {
if (client.ip != "....<edited>....") { error 405 "Not allowed."; } purge("req.url == " req.url " && req.http.host ~ ^(www.)?" regsub(req.http.host, "www\.(.*)", "\1")); error 200 "Purged.";
}
Yours,
Mikael
Hi, I am trying to install and configure media wiki for an internal project. However I have been through the config and can only get as far as "Fatal error2, "Configuration problem". If I turn off debugging then I just get an IIS 500 error. Everything is setup locally (IIS7.5, database and the media wiki files) but I just can't seem to het the install to complete. With debugging on I get the following: Fatal Error: configurator.php:133 Error: Configuration problem:
"ADMIN_USER not defined in "C:\inetpub\wwwroot\iWiki\config\config.ini". Cannot continue: You have to fix that manually. Notice: "missing config setting for ADMIN_USER" (...repeated 4 times) Notice: "Constant SERVER_URL already defined" Notice: "Constant PATH_INFO_PREFIX already defined" Notice: "Constant PHPWIKI_BASE_URL already defined" configurator.php:133 Error: Configuration problem: ADMIN_USER not defined in "C:\inetpub\wwwroot\iWiki\config\config.ini". Cannot continue: You have to fix that manually."
When I check the config.ini file I can clearly see that the Admin_user is configured with a username and password....
Any ideas where I should be looking next to fix this?
Drac PS The worse thing is I managed to get a test environment working on the same machine last week. But I decided to reconfigure it and start again, the other one still works I just forgot the admin password...doh!
This is a MediaWiki support desk, you're trying to install something else, apparently - MW has no config.ini nor configuratior.php.
This appears to be PhpWiki. The project's support page lists some ways you might be able to get help.
![]() First page |
![]() Previous page |
![]() Next page |
![]() Last page |