Difference between revisions of "Php error "Constant UNICODE HANGUL FIRST already defined""
From thelinuxwiki
(Pushed from thelinuxwiki.com.) |
Latest revision as of 19:01, 25 February 2013
Problem description:
- php errors encountered after installing a second mediawiki virtual server using webapp-config
- mediawiki instances were installed using the following commands:
webapp-config -I -h example.com/wiki_1 mediawiki 1.18.2 webapp-config -I -h example.com/wiki_2 mediawiki 1.18.2
- only one mediawiki instance would work at a time, when failing, the wiki main page could not be accessed. Only a page full of errors like below would be displayed.
error messages
browser errors:
Notice: Constant UNICODE_HANGUL_FIRST already defined in /var/www/example.com/wiki_2/includes/normal/UtfNormalDefines.php on line 3
Notice: Constant UNICODE_HANGUL_LAST already defined in /var/www/example.com/wiki_2//includes/normal/UtfNormalDefines.php on line 4
Notice: Constant UNICODE_HANGUL_LBASE already defined in /var/www/example.com/wiki_2/includes/normal/UtfNormalDefines.php on line 6
solution
uninstall mediawikis with webapp-config
webapp-config --clean -h example.com/wiki_1 mediawiki 1.18.2 webapp-config --clean -h example.com/wiki_2 mediawiki 1.18.2
reinstall mediawiki instances with webapp-config using soft links
webapp-config -I --soft -h example.com/wiki_1 mediawiki 1.18.2 webapp-config -I --soft -h example.com/wiki_2 mediawiki 1.18.2
re-setup mediawikis via browser to http://example.com/mw-config/