Topic on Project:Support desk

Problem installing MediaWiki

6
188.111.81.1 (talkcontribs)

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!

MaxSem (talkcontribs)

Is that all error information you see? Is there more information, like an exact cause of SQL error?

188.111.81.1 (talkcontribs)

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:

  1. 0 C:\inetpub\wwwroot\MediaWiki\includes\db\Database.php(538): DatabasePostgres->reportQueryError('FEHLER: Zeiche...', 1, 'INSERT INTO l10...', 'LCStore_DB::set', )
  2. 1 C:\inetpub\wwwroot\MediaWiki\includes\db\DatabasePostgres.php(810): DatabaseBase->query('INSERT INTO l10...', 'LCStore_DB::set', )
  3. 2 C:\inetpub\wwwroot\MediaWiki\includes\LocalisationCache.php(822): DatabasePostgres->insert('l10n_cache', Array, 'LCStore_DB::set')
  4. 3 C:\inetpub\wwwroot\MediaWiki\includes\LocalisationCache.php(617): LCStore_DB->set('messages:histor...', 'Revision histor...')
  5. 4 C:\inetpub\wwwroot\MediaWiki\includes\LocalisationCache.php(352): LocalisationCache->recache('en')
  6. 5 C:\inetpub\wwwroot\MediaWiki\includes\LocalisationCache.php(262): LocalisationCache->initLanguage('en')
  7. 6 C:\inetpub\wwwroot\MediaWiki\includes\LocalisationCache.php(205): LocalisationCache->loadItem('en', 'deps')
  8. 7 C:\inetpub\wwwroot\MediaWiki\includes\LocalisationCache.php(514): LocalisationCache->getItem('en', 'deps')
  9. 8 C:\inetpub\wwwroot\MediaWiki\includes\LocalisationCache.php(352): LocalisationCache->recache('de')
  10. 9 C:\inetpub\wwwroot\MediaWiki\includes\LocalisationCache.php(262): LocalisationCache->initLanguage('de')
  11. 10 C:\inetpub\wwwroot\MediaWiki\includes\LocalisationCache.php(205): LocalisationCache->loadItem('de', 'fallback')
  12. 11 C:\inetpub\wwwroot\MediaWiki\languages\Language.php(2526): LocalisationCache->getItem('de', 'fallback')
  13. 12 C:\inetpub\wwwroot\MediaWiki\languages\Language.php(173): Language::getFallbackFor('de')
  14. 13 C:\inetpub\wwwroot\MediaWiki\languages\Language.php(136): Language::newFromCode('de')
  15. 14 C:\inetpub\wwwroot\MediaWiki\includes\StubObject.php(126): Language::factory('de')
  16. 15 C:\inetpub\wwwroot\MediaWiki\includes\StubObject.php(103): StubContLang->_newObject()
  17. 16 C:\inetpub\wwwroot\MediaWiki\includes\StubObject.php(57): StubObject->_unstub('getCode', 5)
  18. 17 C:\inetpub\wwwroot\MediaWiki\includes\StubObject.php(121): StubObject->_call('getCode', Array)
  19. 18 C:\inetpub\wwwroot\MediaWiki\includes\GlobalFunctions.php(576): StubContLang->__call('getCode', Array)
  20. 19 C:\inetpub\wwwroot\MediaWiki\includes\GlobalFunctions.php(576): StubContLang->getCode()
  21. 20 C:\inetpub\wwwroot\MediaWiki\includes\MessageCache.php(506): wfGetLangObj(true)
  22. 21 [internal function]: MessageCache->get('mainpage', true, true)
  23. 22 C:\inetpub\wwwroot\MediaWiki\includes\StubObject.php(58): call_user_func_array(Array, Array)
  24. 23 C:\inetpub\wwwroot\MediaWiki\includes\StubObject.php(76): StubObject->_call('get', Array)
  25. 24 C:\inetpub\wwwroot\MediaWiki\includes\GlobalFunctions.php(742): StubObject->__call('get', Array)
  26. 25 C:\inetpub\wwwroot\MediaWiki\includes\GlobalFunctions.php(742): StubObject->get('mainpage', true, true)
  27. 26 C:\inetpub\wwwroot\MediaWiki\includes\GlobalFunctions.php(707): wfMsgGetKey('mainpage', true, true, true)
  28. 27 C:\inetpub\wwwroot\MediaWiki\includes\GlobalFunctions.php(655): wfMsgReal('mainpage', Array, true, true)
  29. 28 C:\inetpub\wwwroot\MediaWiki\includes\Title.php(284): wfMsgForContent('mainpage')
  30. 29 C:\inetpub\wwwroot\MediaWiki\includes\Wiki.php(117): Title::newMainPage()
  31. 30 C:\inetpub\wwwroot\MediaWiki\index.php(61): MediaWiki->checkInitialQueries(NULL, 'view')
  32. 31 {main}

Thnak you!

96.227.80.201 (talkcontribs)

Make sure your database is created as UTF8. Looks like you might be trying to force UTF8 data into Win1252.

158.74.35.11 (talkcontribs)

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.


Reply to "Problem installing MediaWiki"