Last modified: 2010-05-15 15:41:13 UTC
This causes the following problem when you want to configure it: You have to explicitly go to the following directory in order to access it, which by itself ain't a problem: http://localhost/mediawiki But, the configuration link in the page you get when you haven't configured it yet: -> Please setup the wiki first. -> points to http://localhost/config/index.php when it should be pointing to http://localhost/mediawiki/config/index.php if that's the case. Originally reported on: http://qa.mandriva.com/show_bug.cgi?id=25590
We have no control over third-party packages (and we strongly recommend against them). Please contact Mandriva for problems with Mandriva's packaging, which we did not create and cannot fix.
Well, I've reported this bug originally on Mandriva's bugzilla and was told to report it here. At any rate, I believe this is an issue with MediaWiki, since, no matter how the packaging goes, the index.php was possibly never tampered in any way amd it has a hard coded path. Shouldn't simply be a case of changing the link's path to a relative one since the configure file will be always inside the MediaWiki root dir?
The path isn't hardcoded, it is relative.
Well, you are correct, it ain't hardcored, my bad, but I also believe it could be improved. The current link is: echo( 'Please <a href="../config/index.php" title="setup">setup the wiki</a> first.' ); Which causes the following problem in a scenario like this: MediaWiki installed on /var/www/mediawiki and DocumentRoot pointing to /var/www/html MediaWiki will be on http://localhost/mediawiki, the link for the configuration page will point to http://localhost/config/index.php , which will obviously not work. Of course that's no problem if DocumentRoot points to where MediaWiki was installed. At any rate, removing one dot of the link, by changing it to: echo( 'Please <a href="./config/index.php" title="setup">setup the wiki</a> first.' ); Will make it work in all scenarios. Unless I'm terribly mistaken the config diretory will always be one level below the index's main page.
In 1.7.1, as in all previous versions to my knowledge, the link appears as: <a href="config/index.php" title="setup"> There definitely does not appear a "../". If it does appear, it must be added by a custom patch in the package, and the package should probably be fixed. You can see the original file here: http://svn.wikimedia.org/viewvc/mediawiki/tags/REL1_7_1/phase3/index.php In 1.8 (not yet released) it appears to try to additionally guess the correct path, which can correct for some more complicated cases (eg visiting index.php/Page_Title directly when LocalSettings.php has been removed).
Yes, you are correct, I've just downloaded the latest stable tarbal and confirmed it, it must be a problem with Mandriva Packging indeed.