-
Notifications
You must be signed in to change notification settings - Fork 253
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot properly edit ban trigger #4867
Comments
Here a proper backtrace (after I fixed the backtrace):
|
This one also needs the "has fix" label, PR identified above. |
I'm using SMF 2.1 RC3+ (commit d248131) with PHP 8.0. Forum details: Forum version: SMF 2.1 RC3 (more detailed) |
did you try the fix? |
Yes, the error is the same. |
Maybe, it's needed to open new issue, especially for PHP 8.0 ? |
yea, if you able to copy you board. |
As only one trigger value is shown in the edit ban trigger view it is unnecessary to show all fields. As this is causing errors when the triggers is updated, hide the fields that it not part of this trigger. Fixes SimpleMachines#4867 Closes SimpleMachines#4875 Signed-off-by: Oscar Rydhé <oscar.rydhe@gmail.com>
Applies on 22bf54f, probably earlier too.
Type of error: General
2: Invalid argument supplied for foreach()
http://localhost/SMF2.1/index.php?action=admin;area=ban;sa=edittrigger
D:/xampp_php7/htdocs/SMF2.1/Sources/ManageBans.php (Line 930)
Backtrace:
#0: smf_error_handler()
Called from unknown on line -1
#1: saveTriggers()
Called from unknown on line -1
#2: BanEditTrigger()
Called from unknown on line -1
#3: call_helper()
Called from unknown on line -1
#4: Ban()
Called from unknown on line -1
#5: AdminMain()
Called from unknown on line -1
The text was updated successfully, but these errors were encountered: