Last modified: 2010-05-15 15:28:11 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 957 - Installation problem, version 1.3.8
Installation problem, version 1.3.8
Product: MediaWiki
Classification: Unclassified
Installer (Other open bugs)
PC Linux
: Normal blocker (vote)
: ---
Assigned To: Nobody - You can work on this!
: testme
Depends on:
  Show dependency treegraph
Reported: 2004-11-28 20:37 UTC by Jason Lee, AllyUnion
Modified: 2010-05-15 15:28 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---

Modified Context.php, fixing minor bug (9.50 KB, text/x-delimtext)
2004-12-06 02:59 UTC, Jason Lee, AllyUnion

Description Jason Lee, AllyUnion 2004-11-28 20:37:40 UTC
I can not install MediaWiki.  This is what I get:

MediaWiki 1.3.8 installation

Please include all of the lines below when reporting installation problems.
Checking environment...

    * PHP 4.3.6: ok
    * PHP server API is apache2handler; ok, using pretty URLs (index.php/Page_Title)
    * Have XML / Latin1-UTF-8 conversion support.
    * PHP's memory_limit is 24M. If this is too low, installation may fail!
    * Have zlib support; enabling output compression.
    * Found GD graphics library built-in, image thumbnailing will be enabled if
you enable uploads.
    * Installation directory: /home/acmusers/lug/.html/wiki
    * Script URI path: /~lug/wiki

      Fatal error: Cannot redeclare class phptal_context in
/home/acmusers/lug/.html/wiki/PHPTAL-NP-0.7.0/libs/PHPTAL/Context.php on line 66
Comment 1 Jason Lee, AllyUnion 2004-11-28 20:39:33 UTC
Database access is limited.  Database is named 'lug', username is also 'lug',
using some password.  Can not create new databases with username given.
Comment 2 Brion Vibber 2004-12-05 21:05:26 UTC
Please test with 1.4beta.
Comment 3 Jason Lee, AllyUnion 2004-12-06 02:59:28 UTC
Created attachment 153 [details]
Modified Context.php, fixing minor bug
Comment 4 Jason Lee, AllyUnion 2004-12-06 03:03:12 UTC
I fixed it myself, in Context.php, I merely used class_exists and
function__exists  to check if these classes were already defined.  If they were,
then they aren't defined.

if (!(class_exists('PHPTAL_ObjectResolver')))
class PHPTAL_ObjectResolver


        return $value;


if (!(class_exists('PHPTAL_ArrayResolver')))
class PHPTAL_ArrayResolver


            return PHPTAL_resolve($next, $temp, $array);


if (!(class_exists('PHPTAL_StringResolver')))
class PHPTAL_StringResolver


        $err = new NameError("string type has no method named '$first'");
        return $err;


if (!(function_exists('PHPTAL_resolve')))
function &PHPTAL_resolve($path, &$value, &$parent)


    return $err;


if (!(function_exists('PHPTAL_path_explode')))
function PHPTAL_path_explode($path)
    if (preg_match('|^(.*?)\/(.*?)$|', $path, $match)) {
        return $match;


    return array($path, false);

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