Description of problem: Running the following from a cron to update the mediawiki search index: cd /export/web/cora/intranet; php /usr/share/mediawiki/maintenance/updateSearchIndex.php -q results in: PHP Notice: Undefined variable: DIR in /usr/share/mediawiki/maintenance/commandLine.inc on line 185 A copy of your installation's LocalSettings.php must exist and be readable in the source directory. Version-Release number of selected component (if applicable): mediawiki-1.14.0-45.el5 This is the fix I'm using: --- mediawiki-1.14.0/maintenance/commandLine.inc.commoncode 2008-06-16 14:21:26.000000000 -0600 +++ mediawiki-1.14.0/maintenance/commandLine.inc 2009-04-06 08:45:20.000000000 -0600 @@ -6,6 +6,8 @@ * @defgroup Maintenance Maintenance */ +$DIR = getcwd(); + $wgRequestTime = microtime(true); /** */
Hi, this is due to a Fedora-only patch that we're discussing in bug 484855. I'm going to mark this as a duplicate of that bug for now so that we can centralize discussion there, feel free to reopen if I'm mistaken in doing this. *** This bug has been marked as a duplicate of bug 484855 ***
mediawiki-1.15.0-47.fc10 has been submitted as an update for Fedora 10. http://admin.fedoraproject.org/updates/mediawiki-1.15.0-47.fc10
mediawiki-1.15.0-47.fc11 has been submitted as an update for Fedora 11. http://admin.fedoraproject.org/updates/mediawiki-1.15.0-47.fc11
mediawiki-1.15.1-48.fc10 has been pushed to the Fedora 10 stable repository. If problems still persist, please make note of it in this bug report.
mediawiki-1.15.1-48.fc11 has been pushed to the Fedora 11 stable repository. If problems still persist, please make note of it in this bug report.
The bug is stil present. Patch attached.
Created attachment 368155 [details] Do not overwrite $DIR when contains correct value from config.php
This bug prevents database update after upgrade form 1.14.x version which leads to non-working History and more. Just viewing works so this is a serious trouble. I tested mediawiki-1.15.1-50.fc11
This message is a reminder that Fedora 11 is nearing its end of life. Approximately 30 (thirty) days from now Fedora will stop maintaining and issuing updates for Fedora 11. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as WONTFIX if it remains open with a Fedora 'version' of '11'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version prior to Fedora 11's end of life. Bug Reporter: Thank you for reporting this issue and we are sorry that we may not be able to fix it before Fedora 11 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora please change the 'version' of this bug to the applicable version. If you are unable to change the version, please add a comment here and someone will do it for you. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete. The process we are following is described here: http://fedoraproject.org/wiki/BugZappers/HouseKeeping
Fedora 11 changed to end-of-life (EOL) status on 2010-06-25. Fedora 11 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug. If you can reproduce this bug against a currently maintained version of Fedora please feel free to reopen this bug against that version. Thank you for reporting this bug and we are sorry it could not be fixed.