MyBB Community Forums

Full Version: 1.8.20 Error when activate with no selected users from acp
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

  1. On index page it's announcement There is 1 account awaiting activation. Please go to your ACP to activate the user. Go to the ACP.
  2. Click Go to the ACP
  3. Dont select anything of users
  4. Click Activate Users
  5. Confirm modal window
  6. There are errors while reloading the page.
  7. You have info after reloading without errors top. You did not select any users.
[attachment=41580]

MyBB 1.8.20 clean install, not update
PHP Version 7.0.32
WWW server on nazwa.pl
I can confirm, it happens only when you dont select any user to activate.
no problem with php 7.2.15
Seems like there's no check if $mybb->input['user'] is an actual array.
Should be pretty easy fix, just needs to be checked if any users were passed to the script.
PS: It's just warnings - should be fixed, but it won't cause any real problems.
Simple fix -> PR please Smile
I will do it today (if my server will start to show me warnings), yesterday I had no energy to mess with code too much Toungue
I will make maybe 2-3 PRs today. Depends on how much time I will have. Big Grin
Hi,

Thank you for your report. We have pushed this issue to our Github repository for further analysis where you can track our commits and progress with fixing this bug. Discussions regarding this bug may also take place there too.

Follow this link to visit the issue on Github: https://github.com/mybb/mybb/issues/3593

Thanks for contributing to MyBB!

Regards,
The MyBB Group