Bug tracker

This ticket has been moved to our new tracker. Open Ticket PHPBB3-1875 now.

UCP - Manage groups - undefined function (fix completed in vcs)

Go to your UCP -- manage groups -- manage users

Try to add a known user and hit submit.

Error:

Code: Select all
Fatal error: Call to undefined function cache_moderators() in /var/www/web16/html/area51/includes/functions_user.php on line 2227


The user itself was added to the group.

Only the function cache_moderators is not defined.
( functions_admin.php )

From ACP it works without error.

Comments / History

Posted by blueray2048 on Oct 19th 2006, 03:42

It seems the ucp.php have not included the functions_admin.php. But I'am not know is this the right way.

Code: Select all
$phpbb_root_path = './';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
require($phpbb_root_path . 'common.' . $phpEx);
require($phpbb_root_path . 'includes/functions_user.' . $phpEx);
require($phpbb_root_path . 'includes/functions_module.' . $phpEx);

// Basic parameter data
$id    = request_var('i', '');

Linked ticket with changeset: r6511

Action performed by Anonymous (I am too lazy to register) on Oct 19th 2006, 13:55

Ticket details

Related SVN changesets