Fatal error: Cannot redeclare gettext() (previously declared in /opt/apache/htdocs/cswiki/lib/IniConfig.php:682) in /opt/apache/htdocs/cswiki/lib/IniConfig.php on line 682
Trying to install phpwiki-1.3.11p1 on a linux box.
Running:
PHP 5.0.4
MySQL 4.1.12-standard
Line 682 of IniConfig.php is:
function gettext ($text) {
global $locale;
if (!empty ($locale[$text]))
return $locale[$text];
return $text;
}
I tried commenting this out, but didn't work.
Ideas?
TIA.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
For me, at least, this is due to the IniConfig() function loading the settings in config-dist.ini after loading config.ini. This causes fixup_dynamic_configs() to be called twice, which tries to define gettext() again. I removed config-dist.ini and the problem went away.
Apache/2.0.51
PHP/4.3.11
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm getting the error msg
Fatal error: Cannot redeclare gettext() (previously declared in /opt/apache/htdocs/cswiki/lib/IniConfig.php:682) in /opt/apache/htdocs/cswiki/lib/IniConfig.php on line 682
Trying to install phpwiki-1.3.11p1 on a linux box.
Running:
PHP 5.0.4
MySQL 4.1.12-standard
Line 682 of IniConfig.php is:
I tried commenting this out, but didn't work.
Ideas?
TIA.
For me, at least, this is due to the IniConfig() function loading the settings in config-dist.ini after loading config.ini. This causes fixup_dynamic_configs() to be called twice, which tries to define gettext() again. I removed config-dist.ini and the problem went away.
Apache/2.0.51
PHP/4.3.11
In what way didn't it work when you commented it out?