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

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T2957, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 957 - Installation problem, version 1.3.8
Installation problem, version 1.3.8
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Installer (Other open bugs)
1.3.x
PC Linux
: Normal blocker (vote)
: ---
Assigned To: Nobody - You can work on this!
: testme
Depends on:
Blocks:
  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: ---


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

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)) {
        array_shift($match);
        return $match;

---

    return array($path, false);
}
}

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


Navigation
Links