Hi Johan Janssens!
An important question:
Did you install on Windows with IIS?If not, then probably you won't get this error. But on Windows + IIS 5 + PHP 5.1.2 + MySQL 5.0.18, you cannot login to the admin surface after installation of rev. 2329, but you will get this error.
I tried to debug this error and found that the error message is:
Quote:
Incorrect integer value: '' for column 'guest' at row 1
SQL=UPDATE jos_session SET `time`='1139840561',`userid`='62',`usertype`='Super Administrator', `username`='admin',`gid`='2',`guest`='' WHERE session_id='1e6bb241d664c535d6265c73722c1848'
See
lines 410 and 411 of libraries/joomla/database/database/mysql.php:
Quote:
if( $v == '' ) {
$val = $this->isQuoted( $v ) ? $this->Quote( '' ) : 0;
If your SQL statement contains a
fildname=0 (e.g. in this case:
guest=0) then the
if( $v == '' ) clause will be
true on Windows + IIS 5 + PHP 5.1.2 + MySQL 5.0.18, thus since
isQuoted( $v ) will be also
true, the above code will set
$val = $this->Quote( '' ) which means that
$val will be an
empty string ('') instead of the correct
'0' value.
Probably on Unix/Linux environments this
isQuoted() returns
false or
if( $v == '' ) clause will be
false in case of
$v = 0. That's why I think this bug will only be reproducible on Win32 environments.
But I do not really know what determines
isQuoted() and also don't understand why
$v=='' is
true when
$v=0.
Can you probably tell me in what circumstances will
isQuoted() be true or false? What does it depend on?
See also my bug report:
http://forge.joomla.org/sf/go/artf3506?nav=1Best regards,
Tibor