Bug 494362 - maintenance scripts fail
Summary: maintenance scripts fail
Alias: None
Product: Fedora
Classification: Fedora
Component: mediawiki
Version: 11
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Axel Thimm
QA Contact: Fedora Extras Quality Assurance
Whiteboard: ActualBug
Depends On:
TreeView+ depends on / blocked
Reported: 2009-04-06 14:46 UTC by Orion Poplawski
Modified: 2010-06-28 11:42 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2010-06-28 11:42:49 UTC
Type: ---

Attachments (Terms of Use)
Do not overwrite $DIR when contains correct value from config.php (334 bytes, patch)
2009-11-09 09:53 UTC, Milan Kerslager
no flags Details | Diff

Description Orion Poplawski 2009-04-06 14:46:33 UTC
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):

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);

 /** */

Comment 1 Ricky Zhou 2009-06-22 00:02:49 UTC
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 ***

Comment 2 Fedora Update System 2009-07-11 20:55:11 UTC
mediawiki-1.15.0-47.fc10 has been submitted as an update for Fedora 10.

Comment 3 Fedora Update System 2009-07-11 20:55:27 UTC
mediawiki-1.15.0-47.fc11 has been submitted as an update for Fedora 11.

Comment 4 Fedora Update System 2009-07-19 10:20:25 UTC
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.

Comment 5 Fedora Update System 2009-07-19 10:33:42 UTC
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.

Comment 6 Milan Kerslager 2009-11-09 09:52:27 UTC
The bug is stil present. Patch attached.

Comment 7 Milan Kerslager 2009-11-09 09:53:07 UTC
Created attachment 368155 [details]
Do not overwrite $DIR when contains correct value from config.php

Comment 8 Milan Kerslager 2009-11-09 09:57:08 UTC
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

Comment 9 Bug Zapper 2010-04-27 13:31:34 UTC
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: 

Comment 10 Bug Zapper 2010-06-28 11:42:49 UTC
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.

Note You need to log in before you can comment on or make changes to this bug.