Hi i have a problem when i logout from vBulletin 3.5.4 using PHP5 SOAP version with joomla.
Code:
Warning: Invalid argument supplied for foreach() in /includes/connector/joomla.class.php on line 107
Warning: Cannot modify header information - headers already sent by (output started at /home/newansi/joomla/forums/includes/class_core.php:2984) in /includes/connector/joomla.class.php on line 112
Warning: Cannot modify header information - headers already sent by (output started at /home/newansi/joomla/forums/includes/class_core.php:2984) in /includes/connector/joomla.class.php on line 113
Warning: Cannot modify header information - headers already sent by (output started at /home/newansi/joomla/forums/includes/class_core.php:2984) in /includes/connector/joomla.class.php on line 114
i have been looking in the file and it is the following that causes the problem:
PHP Code:
function logout()
{
if(is_null($this->__res))
{
return $this->__status;
}
$lifetime = time() - 1800;
// cookies setzen
foreach ( $this->__res->_cookies as $name => $value)
{
setcookie($name, $value[0], $lifetime, $value[1]);
}
// force logout, falls _cookies nicht exestiert
setcookie( "usercookie[username]", " ", $lifetime, "/" );
setcookie( "usercookie[password]", " ", $lifetime, "/" );
setcookie( "usercookie", " ", $lifetime, "/" );
}
I have noted it doesnt happen with my non admin profile.
What could be the problem of this?