Re: Step 2 installation error PLEASE HELP!!! [message #160792 is a reply to message #160791] |
Sat, 24 October 2009 08:02 |
DimOK
Messages: 6 Registered: October 2009
Karma:
|
Junior Member |
|
|
lolm funny thing is that Ripley tried in on the same host... so it is probably problem of my own server - it doesn't creat tables containing 'h' letter...
Digging deeper...
request to db_query subroutine... comes already broken, so it is your's problem, haha
in line 940 install.php if (!dbquery($q)) { - it is broken...
ok, it is get broken here:
if (($q = make_into_query(trim($q)))) {
Before this line request is ok, after - letters 'h' are changed to spaces...
tadam...
return trim(str_replace('{SQL_TABLE_PREFIX}', $_POST['DBHOST_TBL_PREFIX'], preg_replace('!\h+!', ' ', preg_replace('!\#.*$!s', '', $data))));
Go learning regexp's, guys
Afaik, there is no '\h' metasymbol, but i am not that good with regexp, to fix this line myself...
Well, this variant worked well...
return trim(str_replace('{SQL_TABLE_PREFIX}', $_POST['DBHOST_TBL_PREFIX'], preg_replace('!\h+!', 'h', preg_replace('!\#.*$!s', '', $data))));
I don't know why do you need this regexp, please take a closer look.
[Updated on: Sat, 24 October 2009 09:54] Report message to a moderator
|
|
|