Recent Topics

1 May 03, 2011 13:00    

My b2evolution Version:

Hi there,

I got sometimes an error if I change the Admin-Skin in the backend. The errormessage:

Notice: Undefined variable: edited_User in /var/www/xyz/html/b2evolution405/inc/users/user.ctrl.php on line 346

Notice: Trying to get property of non-object in /var/www/xyz/html/b2evolution405/inc/users/user.ctrl.php on line 346

Notice: Undefined variable: edited_User in /var/www/xyz/html/b2evolution405/inc/users/user.ctrl.php on line 346

Notice: Trying to get property of non-object in /var/www/xyz/html/b2evolution405/inc/users/user.ctrl.php on line 346

Notice: Undefined variable: edited_User in /var/www/xyz/html/b2evolution405/inc/users/user.ctrl.php on line 350

Notice: Trying to get property of non-object in /var/www/xyz/html/b2evolution405/inc/users/user.ctrl.php on line 350

Warning: Cannot modify header information - headers already sent by (output started at /var/www/xyz/html/b2evolution405/inc/users/user.ctrl.php:346) in /var/www/xyz/html/b2evolution405/inc/_core/_template.funcs.php on line 59

Warning: Cannot modify header information - headers already sent by (output started at /var/www/xyz/html/b2evolution405/inc/users/user.ctrl.php:346) in /var/www/xyz/html/b2evolution405/inc/_core/_template.funcs.php on line 243

Warning: Cannot modify header information - headers already sent by (output started at /var/www/xyz/html/b2evolution405/inc/users/user.ctrl.php:346) in /var/www/xyz/html/b2evolution405/inc/_core/_template.funcs.php on line 244

Warning: Cannot modify header information - headers already sent by (output started at /var/www/xyz/html/b2evolution405/inc/users/user.ctrl.php:346) in /var/www/xyz/html/b2evolution405/inc/_core/_template.funcs.php on line 245

Warning: Cannot modify header information - headers already sent by (output started at /var/www/xyz/html/b2evolution405/inc/users/user.ctrl.php:346) in /var/www/xyz/html/b2evolution405/inc/_core/_template.funcs.php on line 246


Switching to the frontend and then back to the backend, "resolves" the problem temporarly. I figured out, that somehow the $edited_User is not available. So I wrote a "fix" for this.


Add at inc/users/user.ctrl.php at Line 49 
(after L47:$UserCache = & get_UserCache();)
if(!isset($edited_User))
{
	$vDump = array_values(&$UserCache->cache_login);
	$edited_User = $vDump[0];
	unset($vDump);
}

This seems to work, but maybe its not the best solution :?:

greetings
b1gag3 | Chris

2 May 28, 2011 07:18

Is this happening on a specific page? I can't reproduce the error in CVS version.

3 May 30, 2011 08:36

No this doesn't appear on a specific page. I doesn't checked the current CVS Version because I need a stable page, so maybe on the next stable release the error "disappeared" :)


Form is loading...