MyBB Community Forums

Full Version: [F] Admin/user error
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

I'm not sure if it's a bug or not, if it turns out not to be one please feel free to move this thread.

On the administration users page I get this error:

Warning [2] Invalid argument supplied for foreach() - Line: 1779 - File: C:\xampp\htdocs\mybb14\admin\modules\user\users.php PHP 5.2.5 (WINNT)
File 	Line 	Function
C:\xampp\htdocs\mybb14\admin\modules\user\users.php 	1779 	errorHandler->error
C:\xampp\htdocs\mybb14\admin\modules\user\users.php 	1695 	build_users_view
C:\xampp\htdocs\mybb14\admin\index.php 	363 	require
Warning [2] Invalid argument supplied for foreach() - Line: 2260 - File: C:\xampp\htdocs\mybb14\admin\modules\user\users.php PHP 5.2.5 (WINNT)
File 	Line 	Function
C:\xampp\htdocs\mybb14\admin\modules\user\users.php 	2260 	errorHandler->error
C:\xampp\htdocs\mybb14\admin\modules\user\users.php 	2058 	build_user_view_table
C:\xampp\htdocs\mybb14\admin\modules\user\users.php 	1695 	build_users_view
C:\xampp\htdocs\mybb14\admin\index.php 	363 	require
Warning [2] Invalid argument supplied for foreach() - Line: 2260 - File: C:\xampp\htdocs\mybb14\admin\modules\user\users.php PHP 5.2.5 (WINNT)
File 	Line 	Function
C:\xampp\htdocs\mybb14\admin\modules\user\users.php 	2260 	errorHandler->error
C:\xampp\htdocs\mybb14\admin\modules\user\users.php 	2058 	build_user_view_table
C:\xampp\htdocs\mybb14\admin\modules\user\users.php 	1695 	build_users_view
C:\xampp\htdocs\mybb14\admin\index.php 	363 	require
Warning [2] Invalid argument supplied for foreach() - Line: 2260 - File: C:\xampp\htdocs\mybb14\admin\modules\user\users.php PHP 5.2.5 (WINNT)
File 	Line 	Function
C:\xampp\htdocs\mybb14\admin\modules\user\users.php 	2260 	errorHandler->error
C:\xampp\htdocs\mybb14\admin\modules\user\users.php 	2058 	build_user_view_table
C:\xampp\htdocs\mybb14\admin\modules\user\users.php 	1695 	build_users_view
C:\xampp\htdocs\mybb14\admin\index.php 	363 	require

Here is a screenshot as well:
http://kepfeltoltes.hu/080709/mybb_www.k...es.hu_.gif
How to reproduce?
Did you somehow modify a "View"?
Ok, so it looks like you deleted the only view you had. I've prevented users from deleting views if they only have 1 left. To fix the error on your side create a view.
Thank you for your bug report.

This bug has been fixed in our internal code repository. Please note that the problem will not be fixed here until these forums are updated.
Ok thanks, I'm glad it's been sorted out.