Hi,
we've Problems with changes User names:
app.php/gallery/image/5/edit
Fatal error: Call to a member function sql_query() on null in /www/htdocs/xxx/xxx.de/phpBB3/ext/phpbbgallery/core/image/image.php on line 112
This Error can be bypassed with adding global $db:
Code: Select all
if ($username)
{
if (!function_exists('user_get_id_name'))
{
$this->url->_include('functions_user', 'phpbb');
}
user_get_id_name($user_id, $username);
}
if (empty($user_id))
{
return false;
}
$sql = 'SELECT username, user_colour, user_id
FROM ' . USERS_TABLE . '
WHERE user_id = ' . (int) $user_id[0];
$result = $db->sql_query($sql);
$row = $db->sql_fetchrow($result);
$db->sql_freeresult($result);
return $row;
}
Change to:
Code: Select all
if ($username)
{
global $db;
if (!function_exists('user_get_id_name'))
{
$this->url->_include('functions_user', 'phpbb');
}
user_get_id_name($user_id, $username);
}
if (empty($user_id))
{
return false;
}
$sql = 'SELECT username, user_colour, user_id
FROM ' . USERS_TABLE . '
WHERE user_id = ' . (int) $user_id[0];
$result = $db->sql_query($sql);
$row = $db->sql_fetchrow($result);
$db->sql_freeresult($result);
return $row;
}
But after that there's missing a class:
[/Fatal error: Class 'phpbbgallery\core\controller\phpbb_gallery_user' not found in /www/htdocs/xxx/xxx.de/phpBB3/ext/phpbbgallery/core/controller/image.php on line 835quote]
It seems it's a gallery class from PHPBB Version 3.0.x...
Next is missing a modul in ACP => Extension => Gallery Protocoll, Modul not accessable.
Any ideas?
Best regards