Server error log
XF\Db\Exception: MySQL statement prepare error [1146]: Table '[mydatabase].xf_sv_warning_log' doesn't exist
src/XF/Db/AbstractStatement.php:230
[HEADING=2]Stack trace[/HEADING]
SELECT warning_id
FROM xf_warning
WHERE warning_id > ?
AND NOT exists (SELECT warning_id FROM xf_sv_warning_log WHERE xf_sv_warning_log.warning_id = xf_warning.warning_id)
ORDER BY warning_id
LIMIT 100
------------
#0 src/XF/Db/Mysqli/Statement.php(198): XF\Db\AbstractStatement->getException('MySQL statement...', 1146, '42S02')
#1 src/XF/Db/Mysqli/Statement.php(41): XF\Db\Mysqli\Statement->getException('MySQL statement...', 1146, '42S02')
#2 src/XF/Db/Mysqli/Statement.php(56): XF\Db\Mysqli\Statement->prepare()
#3 src/XF/Db/AbstractAdapter.php(96): XF\Db\Mysqli\Statement->execute()
#4 src/XF/Db/AbstractAdapter.php(172): XF\Db\AbstractAdapter->query('
SELECT war...', Array)
#5 src/addons/SV/ReportImprovements/Job/WarningLogMigration.php(32): XF\Db\AbstractAdapter->fetchAllColumn('
SELECT war...', Array)
#6 src/XF/Job/AbstractRebuildJob.php(30): SV\ReportImprovements\Job\WarningLogMigration->getNextIds(0, 100)
#7 src/XF/Job/Atomic.php(40): XF\Job\AbstractRebuildJob->run(8)
#8 src/XF/Job/Manager.php(260): XF\Job\Atomic->run(8)
#9 src/XF/Job/Manager.php(202): XF\Job\Manager->runJobInternal(Array, 8)
#10 src/XF/Job/Manager.php(171): XF\Job\Manager->runJobEntry(Array, 8)
#11 src/XF/Cli/Runner.php(223): XF\Job\Manager->runById(76122, 8)
#12 src/XF/Cli/Runner.php(112): XF\Cli\Runner->postExecutionCleanUp(Object(Symfony\Component\Console\Output\ConsoleOutput))
#13 cmd.php(15): XF\Cli\Runner->run()
#14 {main}
- Fix typo in admincp phrase
- Fix error during updating when Report Improvements files exist, but the add-on isn't active
- Change "Warning Escalating Defaults" related phrases text to "Escalating default warning expiry" phrases to better reflect the feature
Warning; All user group titles will be visible if they are applied in a Warning Action
Both, but this can be controlled by the view warning action permission(s).Who are the group titles visible to? Staff, or the members who receive the warnings?
- Fix Report Improvements integration for warning edits now showing disabled reactions flag correctly
array(4) {
["url"] => string(52) "/threads/geist-in-novi-pazar-gesichtet.203073/page-2"
["referrer"] => bool(false)
["_GET"] => array(0) {
}
["_POST"] => array(0) {
}
}
array(4) {
["url"] => string(64) "/threads/krajina-serben-aus-dem-heutigen-kroatien.383388/page-17"
["referrer"] => string(45) "https://balkanforum.info/goto/post?id=5258833"
["_GET"] => array(0) {
}
["_POST"] => array(0) {
}
}
Yes. If you set an explicit warning category, the warning category will only count points for warnings in that category. This is a fairly powerful advanced feature,@Xon
When creating/editing a warning action, does the Warning Category configure the action to only consider points applied by warnings in that category, or is it just for organization?
View attachment 275966
This is a fairly powerful advanced feature,
Warnings/Bans with time-based expiry are now be removed on the 1st visit after the expiry time, rather than needing to wait for the hourly cron task to run.
Delete expired bans
cron runs. In the example below, the member was supposed to be unbanned at 9:57AM (current time is 10:15AM).Job run trigger
to Activity based trigger
, in case this was causing the issue. We normally leave this set to Server based trigger
, so the server cronjob is still configured (not sure if this makes a difference without the option set to server based trigger).@Joe Link check thexf_user_option.sv_pending_warning_expiry
field for that user is being set correctly. It should have an value set to 1 hour after the ban.
This will help isolate which part of the code is being buggy
1699645276
(Friday, November 10, 2023 11:41:16 AM PST). This is the correct date of the warning expiry, but I believe that's independent of the ban expiry which was triggered by a warning action (as a result of the warning).xf_user_ban
and it has the correct expiration for a new test ban (same as the other, the warning action is configured to ban the member for one hour). It appears to have the correct expiry time of 1668623797
(Wednesday, November 16, 2022 10:36:37 AM). The next Delete expired bans cron runs at 10:45AM. I have a timer set to observe whether the ban expires when it's supposed to per the Warning Improvements feature (Wednesday, November 16, 2022 10:36:37 AM) or not until the cron runs.
xf_user_ban
. The ban ends date/time was correct, but the member was not unbanned until the cron ran.If I understand correctly, you will have to set the cron for that to run more often, to get closer to what you want.Warnings/Bans with time-based expiry are now be removed on the 1st visit after the expiry time, rather than needing to wait for the hourly cron task to run.
I'm having an issue with this feature not working correctly. The ban expiration date and time is correct, but the member isn't getting unbanned until theDelete expired bans
cron runs. In the example below, the member was supposed to be unbanned at 9:57AM (current time is 10:15AM).
View attachment 276485
Any idea as to what I can check next?
- The member was banned via a Warning Action with the expiry set to 1 hour.
- I did log in as the member from a private browser (to trigger the unban).
- I changed
Job run trigger
toActivity based trigger
, in case this was causing the issue. We normally leave this set toServer based trigger
, so the server cronjob is still configured (not sure if this makes a difference without the option set to server based trigger).
The add-on should be causing the user ban to expire on the next page load after it's expiry date. But that isn't working in this case
- Rename some missed phrases when updating "Escalating default warning expiry" feature
- Fix removing expired warnings/bans for a user on the next page load was not triggering as expected
We use essential cookies to make this site work, and optional cookies to enhance your experience.