Topic on Project:Support desk

[RESOLVED] problems to migrate from Mediawiki 1.17.0 to 1.23.2 under Windows

12
87.139.247.230 (talkcontribs)

Hi all,

I am having problems to migrate from Mediawiki 1.17.0 to 1.23.2 under Windows. I am following the instructions in in http://www.mediawiki.org/wiki/Manual:Upgrading. I reached the chapter "Run the update script" and:

The call "php update.php" simply does nothing.

My php installation seems to be ok, a call like "php info.php" runs fine.

  • OS: Windows Server 2003
  • PHP version: 5.3.8
  • MySQL version: 5.1.45


Thank you Hartmut

Florianschmidtwelzow (talkcontribs)

What you mean with nothing? Is there _no_ output?

87.139.247.230 (talkcontribs)

right. 'php update.php' returns immediatly with no output.

Hartmut

Florianschmidtwelzow (talkcontribs)

Hmm, have you changed the value of error_reporting in your php.ini (for the cli, not for webserver!)? Can you try to run the update from the webinstaller (make a backup!!!)?

87.139.247.230 (talkcontribs)

I have error-reporting made more verbose and used the webinstaller, but the behaviour is the same and no logging. The update did not start at all. as i post before, a simple php sript runs. can I persuade php to tell more?

thanks hartmut

Florianschmidtwelzow (talkcontribs)

Yeah, set error_reporting in php.ini to "E_ALL" :)

87.139.247.230 (talkcontribs)

I did

Florianschmidtwelzow (talkcontribs)

And there is no error message in Webinstaller?

88.130.83.134 (talkcontribs)

Maybe Hartmut does not see an error message currently, but there must be one (and without it we won't be able to help in any way useful).

I just thought that error messages in the update script might get directed to /dev/null and I know this is being done in runJobs.php. However, I remember seeing error messages when running update.php myself, so I deactivated error messages by the script might not be the problem.

See How to debug for two lines of PHP code, which you should add to the bottom of LocalSettings.php:

error_reporting( -1 );
ini_set( 'display_errors', 1 );

And then try again...

87.139.247.230 (talkcontribs)

Hi, the update script gives errors now. The solution was to set display_errors = On display_startup_errors = On in the php.ini file, only changing the LocalSettings.php was not successful. The update script didn't run because an extension was missing - and as a default there was no output and no logging. After fixing that I activated the $wgDBadminuser user, and the update script runs and finishes successfully.

But now the next one. When I am calling the wiki the exception "MWException" occurs. After setting $wgShowExceptionDetails = true; in LocalSettings the following Stacktrace appears:


[f1038c4e] /plathwiki/index.php/Hauptseite Exception from line 1651 of C:\work\wwwroot\plathwiki\includes\Skin.php: Call to undefined method SkinMonoBook::makeLink

Backtrace:

  1. 0 C:\work\wwwroot\plathwiki\extensions\DynamicArticleList.php(87): Skin->__call(string, array)
  2. 1 C:\work\wwwroot\plathwiki\extensions\DynamicArticleList.php(87): SkinMonoBook->makeLink(string, string)
  3. 2 [internal function]: DynamicArticleList(string, array, Parser, PPTemplateFrame_DOM)
  4. 3 C:\work\wwwroot\plathwiki\includes\parser\Parser.php(4019): call_user_func_array(string, array)
  5. 4 C:\work\wwwroot\plathwiki\includes\parser\Preprocessor_DOM.php(1178): Parser->extensionSubstitution(array, PPTemplateFrame_DOM)
  6. 5 C:\work\wwwroot\plathwiki\includes\parser\Parser.php(3487): PPFrame_DOM->expand(PPNode_DOM)
  7. 6 C:\work\wwwroot\plathwiki\includes\parser\Preprocessor_DOM.php(1113): Parser->braceSubstitution(array, PPFrame_DOM)
  8. 7 C:\work\wwwroot\plathwiki\includes\parser\Parser.php(3153): PPFrame_DOM->expand(PPNode_DOM, integer)
  9. 8 C:\work\wwwroot\plathwiki\includes\parser\Parser.php(1216): Parser->replaceVariables(string)
  10. 9 C:\work\wwwroot\plathwiki\includes\parser\Parser.php(395): Parser->internalParse(string)
  11. 10 C:\work\wwwroot\plathwiki\includes\content\WikitextContent.php(322): Parser->parse(string, Title, ParserOptions, boolean, boolean, integer)
  12. 11 C:\work\wwwroot\plathwiki\includes\WikiPage.php(3614): WikitextContent->getParserOutput(Title, integer, ParserOptions)
  13. 12 C:\work\wwwroot\plathwiki\includes\poolcounter\PoolCounterWork.php(112): PoolWorkArticleView->doWork()
  14. 13 C:\work\wwwroot\plathwiki\includes\Article.php(710): PoolCounterWork->execute()
  15. 14 C:\work\wwwroot\plathwiki\includes\actions\ViewAction.php(44): Article->view()
  16. 15 C:\work\wwwroot\plathwiki\includes\Wiki.php(428): ViewAction->show()
  17. 16 C:\work\wwwroot\plathwiki\includes\Wiki.php(292): MediaWiki->performAction(Article, Title)
  18. 17 C:\work\wwwroot\plathwiki\includes\Wiki.php(588): MediaWiki->performRequest()
  19. 18 C:\work\wwwroot\plathwiki\includes\Wiki.php(447): MediaWiki->main()
  20. 19 C:\work\wwwroot\plathwiki\index.php(46): MediaWiki->run()
  21. 20 {main}

What can I do?


Thanks Hartmut

88.130.102.170 (talkcontribs)

You have installed the extension DynamicArticleList, which tries to call makeLink() on SkinMonobook (an extended class of SkinTemplate), which doesn't exist. makeLink() is a function of BaseTemplate. Upgrade the DynamicArticleList extension!

87.139.247.230 (talkcontribs)

After updating 'DynamicArticleList' the wiki runs.

Thank you all for the support.

Hartmut

Reply to "[RESOLVED] problems to migrate from Mediawiki 1.17.0 to 1.23.2 under Windows"