Hi all,
I’ve managed to run Modx in Linux Apache, WinXP Apache & WinXP IIS. Publishing pages was all ok. However, for WinXP Apache & WinXP IIS, adding a web user generates an error. I was hoping it’ll go away with 0.95 but after testing , the same problem persists.
Basically I’ve traced it back to the code on the file "save_web_user.processor.php" at the following lines.
$sql = "INSERT INTO $dbase.".$table_prefix."web_user_attributes(internalKey, fullname, role, email, phone, mobilephone, fax, zip, state, country, gender, dob, photo, comment, blocked, blockeduntil, blockedafter)
VALUES($key, '$fullname', '$roleid', '$email', '$phone', '$mobilephone', '$fax', '$zip', '$state', '$country', '$gender', '$dob', '$photo', '$comment', '$blocked', '$blockeduntil', '$blockedafter');";
$rs = mysql_query($sql);
if(!$rs){
webAlert("An error occurred while attempting to save the user's attributes.");
exit;
}
if(!$rs) seems to return false which triggered the error message and stopped the process. The record is created in "modx_web_users" table, but the entry in "modx_web_user_attributes" fails.
I’m running MySQL 5.0.2a-nt in, charset: UTF-8 Unicode (utf8), connection collation: utf8_unicode_ci.
If anyone else had a similar problem, appreciate if you can share the solution.
Ty for Modx! Cheers,
Nov2.