tetsuo13 / MediaWiki-to-DokuWiki-Importer

Convert MediaWiki to DokuWiki
31 stars 10 forks source link

MediaWiki key wgDBprefix does not exist #25

Closed YSmetana closed 8 years ago

YSmetana commented 11 years ago

Hi! I am getting the following error:

root@vm103:/var/www/dokuwiki/src/MediaWiki2DokuWiki# php index.php 
MediaWiki key wgDBprefix does not exist

My LocalSettings.php:

# MySQL specific settings
$wgDBprefix         = "";
tetsuo13 commented 11 years ago

Introduced in #23 that I should've caught with more extensive testing. Thanks for finding it so quickly!

valx76 commented 8 years ago

Hi, the problem is still here..

As the script does not accept empty wgDBprefix, you can replace $mediaWikiSettings->getSetting('wgDBprefix') with '' in the Environment.php file.

That worked !

tetsuo13 commented 8 years ago

So the bug that remains here is that $wgDBprefix may not exist at all which would be the same thing as if it were $wgDBprefix = ''