I have a brand new install of Dokuwiki. The install.php script seemed to run fine. However, I am currently unable to login using the superuser username and password, and while I am able to edit the start page,
I consistently get these errors at the top of the page in the browser:
Warning: preg_replace() [function.preg-replace]: Compilation failed: invalid UTF-8 string at offset 64 in /home/sfss6546/wiki.sfss.ca/inc/utf8.php on line 373
Warning: preg_replace() [function.preg-replace]: Compilation failed: invalid UTF-8 string at offset 64 in /home/sfss6546/wiki.sfss.ca/inc/utf8.php on line 373
Warning: Cannot modify header information - headers already sent by (output started at /home/sfss6546/wiki.sfss.ca/inc/utf8.php:373) in /home/sfss6546/wiki.sfss.ca/inc/actions.php on line 141
Line 373 of utf8.php is the last line of this section:
/**
* Removes special characters (nonalphanumeric) from a UTF-8 string
*
* This function adds the controlchars 0x00 to 0x19 to the array of
* stripped chars (they are not included in $UTF8_SPECIAL_CHARS)
*
* @author Andreas Gohr <
andi@splitbrain.org>
* @param string $string The UTF8 string to strip of special chars
* @param string $repl Replace special with this string
* @param string $additional Additional chars to strip (used in regexp char class)
*/
function utf8_stripspecials($string,$repl='',$additional=''){
global $UTF8_SPECIAL_CHARS;
global $UTF8_SPECIAL_CHARS2;
static $specials = null;
if(is_null($specials)){
# $specials = preg_quote(unicode_to_utf8($UTF8_SPECIAL_CHARS), '/');
$specials = preg_quote($UTF8_SPECIAL_CHARS2, '/');
}
# line 373 follows
return preg_replace('/['.$additional.'\x00-\x19'.$specials.']/u',$repl,$string);
}
Not being a programmer, I have read up on what I can find, and checked the things that I could on the server, where I have root access:
- I checked my MySQL charset (utf8) and connection collation (utf8_unicode_ci).
I'm running:
Apache version 2.2.9 (Unix)
PHP version 5.2.6
MySQL version 5.0.67-community-log
I'm not sure what else to do. I've exhausted what I can find in the forums and manuals and by searching Google. Please accept my apologies if the problem is outside of Dokuwiki.