q2a / question2answer

Question2Answer is a free and open source platform for Q&A sites, running on PHP/MySQL.
http://www.question2answer.org/
GNU General Public License v3.0
1.63k stars 630 forks source link

Unable to block or delete users when IP address blocking is enabled #1008

Open weaverba137 opened 3 days ago

weaverba137 commented 3 days ago

Describe the bug Blocking IP addresses causes unexpected changes to User controls.

To Reproduce

  1. Add one or more IP addresses to "Blocked IP addresses" in the Spam admin panel.
  2. Go to the list of users, click on any user.
  3. All the User control buttons are missing. No Block, no Delete.
  4. Remove all IP addresses from "Blocked IP addresses".
  5. Go to the list of users, click on any user.
  6. The User control buttons reappear.

Expected behavior I would not expect the blocking of IP addresses to have anything to do with User controls.

System information:

pupi1985 commented 2 days ago

I've tested this in PHP 8.3 and Q2A 1.8.8 and it is working fine. Maybe the theme or a plugin might be interfering in your setup.

weaverba137 commented 21 hours ago

Thank you, I will pass this on to the admin.