MyBB Community Forums

Full Version: ACP User Management error
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
When trying to add new View in User & Groups I get the following php errors

Warning [2] Invalid argument supplied for foreach() - Line: 3216 - File: C:\xampp\htdocs\mybb\privilege\modules\user\users.php PHP 7.2.8 (WINNT)

C:\xampp\htdocs\mybb\privilege\modules\user\users.php
3926
errorHandler->error
C:\xampp\htdocs\mybb\privilege\modules\user\users.php
3926
errorHandler->error
C:\xampp\htdocs\mybb\privilege\modules\user\users.php
3659
build_user_view_table
C:\xampp\htdocs\mybb\privilege\modules\user\users.php
3095
build_users_view
C:\xampp\htdocs\mybb\privilege\index.php
821
require

The error occurs when creating new user views, all userfields are disabled. Though the default 'all users' seems to be fine.

After running a quick file check with the default admin core files, I have found that a clause in 'admin/inc/class_page.php was commented out by the ACP Theme that I have installed.

if(file_exists(MYBB_ADMIN_DIR."styles/{$this->style}/{$this->active_module}.css"))
{
echo " <link rel=\"stylesheet\" href=\"styles/{$this->style}/{$this->active_module}.css\" type=\"text/css\" />\n";
}

This clause should be enabled...