#93 Cannot redeclare wfRegisterParserFunctions()

1.20.1
closed
nobody
None
1
2014-08-12
2013-04-01
Anonymous
No

Any help with this would be astounding. BlueSpice looks like an amazing program to add to my mediawiki installation but I seem to be having trouble installing it. Any help would be great.

The wiki installation is at www.researchevolved.com/w/

This is the error I get everytime I try to access the mediawiki installation (with BlueSpice) I am working with.

Fatal error: Cannot redeclare wfRegisterParserFunctions() (previously declared in /home/content/82/10527682/html/w/extensions/ParserFunctions/ParserFunctions.php:57) in /home/content/82/10527682/html/w/bluespice-mw/ext-dist/ParserFunctions/ParserFunctions.php on line 87

This is the error I get everytime I install BlueSpice to the mediawiki installation I am working with.

Fatal error: Cannot redeclare wfRegisterParserFunctions() (previously declared in /home/content/82/10527682/html/wiki/extensions/ParserFunctions/ParserFunctions.php:57) in /home/content/82/10527682/html/wiki/bluespice-mw/ext-dist/ParserFunctions/ParserFunctions.php on line 87

Checking PHP extensions:

Checking: curl - OK
Checking: dom - OK
Checking: gd - OK
Checking: json - OK
Checking: mbstring - OK
Checking: mysql - OK
Checking: mysqli - OK
Checking: pcre - OK
Checking: tidy - FAILED!

Checking fileinfo usability: OK (Example output for /home/wiki/installcheck.php: text/x-c++; charset=us-ascii)
Checking PHP file uploads:

Checking /tmp/ - OK
Checking PHP session save path:

FAILED! session.save_path is not set. Set session.save_path to point to a path writable by the web server in your php.ini.
Checking PHP error log:

WARNING! error_log is not set. Set error_log to point to a path writable by the web server in your php.ini.
Checking php.ini values:

Checking: memory_limit - OK (64M)
Checking: max_execution_time - WARNING! max_execution_time should be at least 120 (current value: 30). Set max_execution_time = 120 in your php.ini.
Checking: post_max_size - OK (33M)
Checking: upload_max_filesize - OK (32M)
Checking: register_globals - OK (Off)
Checking write access:

Checking images/ - OK
Checking bluespice-core/config/ - OK
Checking bluespice-core/data/ - OK
Checking bluespice-mw/config/ - OK
Checking for "common" directory:

Looking for bluespice-skin/common - OK
Checking error handling:

FAILED! Your system is configured to display warning messages. Either set display_errors to false or lower the value for error_reporting in your php.ini.
Checking allow_url_fopen:

OK

Informational:

PHP Configuration File:

Configuration file in use: /web/conf/php5.ini (determined by internal PHP function)
Single-Sign-On:

$_SERVER['REMOTE_USER'] is not set. SSO is not configured correctly and WILL NOT WORK!
Checking time zone:

Your current time zone is America/Phoenix (MST)
Server time:

Sun, 31 Mar 2013 21:48:59 -0700
PHP version:

5.3.21 (cgi-fcgi)
PHP Temp Directory:

/var/chroot/home/tmp
PHP_Uname:

Linux p3nlhg779.shr.prod.phx3.secureserver.net 2.6.32-279.19.1.el6.x86_64 #1 SMP Wed Dec 19 07:05:20 UTC 2012 x86_64
PHP Bytecode Caches:

Nice, found a bytecode cache! (detected: apc)
For optimal performance make sure you set $wgMainCacheType = CACHE_ACCEL; (more info)
PHP Thread Safety:

Thread Safety: disabled
PHP Server API:

Server API: CGI/FastCGI
$_SERVER['DOCUMENT_ROOT']:

$_SERVER['DOCUMENT_ROOT'] = /var/chroot/home/html
dirname(FILE):

dirname(FILE) = /home/wiki
PHP modules:

Array
(
[0] => apc
[1] => bcmath
[2] => calendar
[3] => cgi-fcgi
[4] => Core
[5] => ctype
[6] => curl
[7] => date
[8] => dba
[9] => dom
[10] => ereg
[11] => exif
[12] => fileinfo
[13] => filter
[14] => ftp
[15] => gd
[16] => gettext
[17] => hash
[18] => iconv
[19] => imagick
[20] => json
[21] => libxml
[22] => mbstring
[23] => mcrypt
[24] => mhash
[25] => mysql
[26] => mysqli
[27] => openssl
[28] => pcre
[29] => PDO
[30] => pdo_mysql
[31] => pdo_sqlite
[32] => Phar
[33] => pspell
[34] => Reflection
[35] => session
[36] => SimpleXML
[37] => soap
[38] => SPL
[39] => SQLite
[40] => sqlite3
[41] => standard
[42] => tokenizer
[43] => wddx
[44] => xml
[45] => xmlreader
[46] => xmlrpc
[47] => xmlwriter
[48] => xsl
[49] => zip
[50] => zlib
)

Fatal error: Call to undefined function apache_getenv() in /home/content/82/10527682/html/wiki/installcheck.php on line 487

Discussion

  • tweichart
    tweichart
    2013-04-02

    I've looked at the page you've posted and I could not findf any error. Could you please give me a more detailed description of the step of installation your error occurs?

     

  • Anonymous
    2013-04-04

    hey check in your LocalSettings.php if some require once´s are two time´s in your settings like require_once( "$IP/extensions/ParserFunctions/ParserFunctions.php" );
    1 time in your mediawiki settings and a second time in your BlueSpice insert. i had the same problem before ;)

    greets schulzxore

     

    • Anonymous
      2013-04-04

      remove one :)

       


Anonymous


Cancel   Add attachments