2018-11-17, 02:09 PM
(This post was last modified: 2018-11-17, 03:49 PM by gungrave41.)
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...
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...