Last modified: 2010-05-15 15:28:56 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 T2618, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 618 - "Constant already defined" error message during installation of 1.3.5
"Constant already defined" error message during installation of 1.3.5
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Installer (Other open bugs)
1.3.x
All All
: Normal major (vote)
: ---
Assigned To: Nobody - You can work on this!
:
: 1258 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2004-10-01 10:22 UTC by foiret
Modified: 2010-05-15 15:28 UTC (History)
2 users (show)

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


Attachments
PHPinfo() output (45.35 KB, text/html)
2004-10-10 22:27 UTC, Oscar van Vliet
Details

Description foiret 2004-10-01 10:22:58 UTC
OS : Windows NT
Package : EasyPHP 1.6

MediaWiki 1.3.5 installation
Please include all of the lines below when reporting installation problems.
Checking environment...
WARNING: PHP 4.3.2 or higher is recommended. Older versions from 4.1.x up may work but 
are not actively supported. 
·	PHP 4.2.0: ok 
·	PHP server API is apache; ok, using pretty URLs (index.php/Page_Title) 
·	Have XML / Latin1-UTF-8 conversion support. 
·	PHP is configured with no memory_limit. 
·	No zlib support. 
·	Found GD graphics library built-in, image thumbnailing will be enabled if you 
enable uploads. 
·	Installation directory: d:\easyphp\www\mediawiki-1.3.5 
·	Script URI path: /mediawiki-1.3.5 Warning: $wgProxyKey is insecure 
Notice: Constant pear_error_return already defined in d:\easyphp\www\mediawiki-1.3.5
\PHPTAL-NP-0.7.0\libs\PEAR.php on line 24

Notice: Constant pear_error_print already defined in d:\easyphp\www\mediawiki-1.3.5
\PHPTAL-NP-0.7.0\libs\PEAR.php on line 25

Notice: Constant pear_error_trigger already defined in d:\easyphp\www\mediawiki-1.3.5
\PHPTAL-NP-0.7.0\libs\PEAR.php on line 26

Notice: Constant pear_error_die already defined in d:\easyphp\www\mediawiki-1.3.5\PHPTAL-
NP-0.7.0\libs\PEAR.php on line 27

Notice: Constant pear_error_callback already defined in d:\easyphp\www\mediawiki-1.3.5
\PHPTAL-NP-0.7.0\libs\PEAR.php on line 28

Fatal error: Cannot redeclare class pear in d:\easyphp\www\mediawiki-1.3.5\PHPTAL-NP-
0.7.0\libs\PEAR.php on line 72
Comment 1 Oscar van Vliet 2004-10-07 20:39:35 UTC
I have the same problem with Namespace constants on the Mac (setting Hardware/OS
to all/all if I can):

MediaWiki 1.3.5 installation

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

    * PHP 4.3.2: ok
    * PHP server API is apache; ok, using pretty URLs (index.php/Page_Title)
    * Have XML / Latin1-UTF-8 conversion support.
    * PHP is configured with no memory_limit.
    * Have zlib support; enabling output compression.
    * Couldn't find GD library or ImageMagick; image thumbnailing disabled.
    * Installation directory: /Library/WebServer/Documents/wiki
    * Script URI path: /wiki

      Notice: Constant NS_MEDIA already defined in
/Library/WebServer/Documents/wiki/includes/Namespace.php on line 8

      Notice: Constant NS_SPECIAL already defined in
/Library/WebServer/Documents/wiki/includes/Namespace.php on line 9

      Notice: Constant NS_MAIN already defined in
/Library/WebServer/Documents/wiki/includes/Namespace.php on line 12

      Notice: Constant NS_TALK already defined in
/Library/WebServer/Documents/wiki/includes/Namespace.php on line 13

      Notice: Constant NS_USER already defined in
/Library/WebServer/Documents/wiki/includes/Namespace.php on line 14

      Notice: Constant NS_USER_TALK already defined in
/Library/WebServer/Documents/wiki/includes/Namespace.php on line 15

      Notice: Constant NS_WP already defined in
/Library/WebServer/Documents/wiki/includes/Namespace.php on line 16

      Notice: Constant NS_WIKIPEDIA already defined in
/Library/WebServer/Documents/wiki/includes/Namespace.php on line 17

      Notice: Constant NS_WP_TALK already defined in
/Library/WebServer/Documents/wiki/includes/Namespace.php on line 18

      Notice: Constant NS_WIKIPEDIA_TALK already defined in
/Library/WebServer/Documents/wiki/includes/Namespace.php on line 19

      Notice: Constant NS_IMAGE already defined in
/Library/WebServer/Documents/wiki/includes/Namespace.php on line 20

      Notice: Constant NS_IMAGE_TALK already defined in
/Library/WebServer/Documents/wiki/includes/Namespace.php on line 21

      Notice: Constant NS_MEDIAWIKI already defined in
/Library/WebServer/Documents/wiki/includes/Namespace.php on line 22

      Notice: Constant NS_MEDIAWIKI_TALK already defined in
/Library/WebServer/Documents/wiki/includes/Namespace.php on line 23

      Notice: Constant NS_TEMPLATE already defined in
/Library/WebServer/Documents/wiki/includes/Namespace.php on line 24

      Notice: Constant NS_TEMPLATE_TALK already defined in
/Library/WebServer/Documents/wiki/includes/Namespace.php on line 25

      Notice: Constant NS_HELP already defined in
/Library/WebServer/Documents/wiki/includes/Namespace.php on line 26

      Notice: Constant NS_HELP_TALK already defined in
/Library/WebServer/Documents/wiki/includes/Namespace.php on line 27

      Notice: Constant NS_CATEGORY already defined in
/Library/WebServer/Documents/wiki/includes/Namespace.php on line 28

      Notice: Constant NS_CATEGORY_TALK already defined in
/Library/WebServer/Documents/wiki/includes/Namespace.php on line 29

      Fatal error: Cannot redeclare class namespace in
/Library/WebServer/Documents/wiki/includes/Namespace.php on line 57
Comment 2 Oscar van Vliet 2004-10-08 15:28:58 UTC
Setting severity to major because the web-based installer won't work in this way
and the potential workaround requires some work. 
Comment 3 Brion Vibber 2004-10-08 18:19:31 UTC
Can those of you experiencing this problem provide a dump of output from the phpinfo() function? There 
must be something causing it...
Comment 4 Oscar van Vliet 2004-10-10 22:27:38 UTC
Created attachment 81 [details]
PHPinfo() output

This is my PHPinfo() output file. I took out the document paths and the IP
adress of the server over privacy considerations. Other info:

Apple iBook G4, 800 MHZ, 640 MB RAM.
Comment 5 Oscar van Vliet 2004-10-25 16:04:44 UTC
It seems like I found the bug that was bothering my installation, though I don't
understand why the implementation is wrong. The problem goes away when I comment
out the following lines in config/index.php

require_once( "../includes/MagicWord.php" );
require_once( "../includes/Namespace.php" );

It takes a while to complete, but now I managed to get a completed
localsettings.php.
Comment 6 Brion Vibber 2004-12-05 21:02:51 UTC
Please test with 1.4beta.
Comment 7 Oscar van Vliet 2004-12-08 22:21:59 UTC
I tested this with 1.4beta1 and the installation works smoothly.
Still there in 1.3.8, though..

Any projection as to when 1.4 is going to hit production stability?
Comment 8 Brion Vibber 2004-12-09 00:18:08 UTC
Thanks for the feedback! Resolving as fixed.

1.4.0 should be released within the next week or two.
Comment 9 Zigger 2005-01-05 13:53:09 UTC
*** Bug 1258 has been marked as a duplicate of this bug. ***
Comment 10 Oscar van Vliet 2005-03-21 15:01:09 UTC
Just installed 1.4.0 and got the old problem again.
I could still fix it in the same way: just comment out the two offending lines:

    # require_once( "../includes/MagicWord.php" ); 
    # require_once( "../includes/Namespace.php" );

Sorry. Though I am a lot more worried about bug 1727, which makes my wiki all
but unusable.
Comment 11 Brion Vibber 2005-04-22 12:03:53 UTC
Please test with 1.4.2; changes to the include path in the installer have been made.
Comment 12 Brion Vibber 2005-06-02 05:11:27 UTC
No response from user who reopened the bug. Resolving as FIXED again.

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


Navigation
Links