| Article: |
Installing a Wiki on Your iBook | |
| Subject: | Wiki: php warnings | |
| Date: | 2003-06-17 00:09:09 | |
| From: | adam_alexander | |
|
Awesome article, thanks for the learning experience!
|
||
Showing messages 1 through 1 of 1.
| Article: |
Installing a Wiki on Your iBook | |
| Subject: | Wiki: php warnings | |
| Date: | 2003-06-17 00:09:09 | |
| From: | adam_alexander | |
|
Awesome article, thanks for the learning experience!
|
||
Showing messages 1 through 1 of 1.
I assume that you're running with a locale set so you could fix up the messages by starting Apache in the C locale, e.g. if you log in as the root user using the bash shell, you can use the command:
LC_ALL=C apachectl start
to start Apache. This will set the default locale in Apache's environment. That should get rid of the messages, but it's a bit of a bind. You can also get rid of them by commenting out line 145 of lib/config.php in the installed PHPwiki directory. i.e. change this:
if (!$newlocale) {
trigger_error(fmt("Can't set locale: '%s'", $loc), E_USER_NOTICE);
$loc = setlocale(LC_ALL, ''); // pull locale from environment.
to this:
if (!$newlocale) {
// trigger_error(fmt("Can't set locale: '%s'", $loc), E_USER_NOTICE);
$loc = setlocale(LC_ALL, ''); // pull locale from environment.