Warning Improvements by Xon

Warning Improvements by Xon 1.7.2

No permission to download
After upgrading from 1.3.x (not entirely sure which version) I'm unable to see warnings or warning categories in the Admin CP. I'm in the "Registered" usergroup.

I've tried creating new warning categories and warnings with all user groups in the "Allowed User Groups", I'm still unable to see them, the whole list is empty.

2018-02-02_0050.webp

If I use a direct URL to the warning, I can still edit the page.

2018-02-02_0052.webp

On the moderation side, I'm still able to issue warnings and everything apart from Admin CP warnings page appears to function.

Advanced Application Forms 1.2.16
Agree to Terms of Service by Waindigo 1.0.0
Change Author 2.9
Chat 1.25.1
Conversations Access by Waindigo 1.0.2
Defer JS 2.2.4
Digital Point Syntax Highlighter 1.3.0
Display Staff Members 1.1.2
GoodForNothing Kraken 1.1.2
Hide Poll Results 1.1.6
Icewind Staff 1.2.0
Live Update 4.0.1
Master Badge 2.1.3
Mini Avatar with Tags 1.0.2
Moderator Essentials 1.11.5
Nodes As Tabs 1.5.1
Post Ratings 1.7.5
Quick Reply Preview 1.4.4
Report Improvements 1.9.2
s9e Media Pack 20161123
Shared IP Date Range 1.0.1
Similar Threads Plus 1.5
SK Mark Thread as Thread 1.2.0
TaigaChat Pro 1.4.7
TPU: Detect Spam Registrations 1.6.4
TPU: Show Warning for Old Threads 1.0.2
User Banners on Member Cards for XenForo 1.2.x 1.0.0
Warning Improvements 1.6.2
Warnings by Waindigo 1.1.7
XenForo Enhanced Search 1.1.7
XenForo Resource Manager 1.2.4
[8wayRun.Com] XenPorta 2 (Portal) PRO 1.2.0
[8wayRun.Com] XenRio (Live Streams) PRO 1.2.2
[AD] UI.X 1.0.11
[bd] API Consumer 1.0.1
[bd] Attachment Store 1.2.1
[bd] Cache 1.1.0
[bd] Forum Watch 2.1.1b
[bd] Widget Framework 2.6.3
[Extra License] Usernotes 1.2.4
[InfisJSC] Topic starter's permissions 1.2.12
[Nobita] Ignore Threads 1.1.1
[rellect] Favicon for Links 2.1.0
[TH] Login As User 1.2.2
[TH] Slack 1.1.1
[WMTech] - Double Post Merge 1.3.1
 
Last edited:
@Tai Coromandel try flushing your browser cache. Sometimes see weird things like this after an upgrade. Are there any javascript errors in your browser's console? (F12 normally, then 'console')

My guess is the jsTree is failing to load.
 
@Tai Coromandel try flushing your browser cache. Sometimes see weird things like this after an upgrade. Are there any javascript errors in your browser's console? (F12 normally, then 'console')

My guess is the jsTree is failing to load.

Google Chrome console output:
style.min.css Failed to load resource: the server responded with a status of 404 ()
style.min.css Failed to load resource: the server responded with a status of 404 ()
jstree.min.js:1 Uncaught SyntaxError: Unexpected token <
warnings.js:1 Uncaught SyntaxError: Unexpected token <
xenforo.js,q_v=6c17bf02.pagespeed.jm.09zkMjLwJV.js:226 XenForo.activate(#document)
filter_list.js,q_v=6c17bf02.pagespeed.jm.0xc0fzGisD.js:11 XenForo.FilterList e.fn.init(0)
xenforo.js,q_v=6c17bf02.pagespeed.jm.09zkMjLwJV.js:212 XenForo.init() 15ms. jQuery 1.11.0/1.2.8-dev
style.min.css Failed to load resource: the server responded with a status of 404 ()

Firefox console output:
SyntaxError: expected expression, got '<'[Learn More] jstree.min.js:1
SyntaxError: expected expression, got '<'[Learn More] warnings.js:1
XenForo.activate(
HTMLDocument https://starmadedock.net/admin.php?warnings/
) xenforo.js:226:176
XenForo.FilterList
Object { length: 0, prevObject: {…}, context: ol.FilterList.Scrollable, selector: "input[name=\"filter\"]" }
filter_list.js:11:17
XenForo.init() 35ms. jQuery 1.11.0/1.2.8-dev xenforo.js:212:379

Cleared my browser cache and tried it with another browser, still doesn't appear.
 
jstree.min.js and warnings.js are failing to load, it looks like you have some pagespeed voodoo happening or the files do not exist

Please ensure they are not being mangled and that you have uploaded the require javascript files in the distributable zip.
 
Xon updated Warning Improvements by Xon with a new update entry:

1.7.0 - Feature update

  • Per-Warning definition option to allow moderators to edit a warning's title when issuing a warning (default disabled)
  • Global minimum characters count for note field (default disabled)
  • Enforce minimum php & XenForo version in installer
  • Fix custom text field is not being focused
  • Enable XenForo's form ajax support, thus when any errors occur the moderator does not need to start from scratch to issue a warning.

Read the rest of this update entry...
 
jstree.min.js and warnings.js are failing to load, it looks like you have some pagespeed voodoo happening or the files do not exist

Please ensure they are not being mangled and that you have uploaded the require javascript files in the distributable zip.

Fixed, was a permissions issue.
 

Updated to 1.7.0, after clicking the "Warn Member" button on the warning page I get "Your changes have been saved" but I'm not redirected from the warn page. So it appears as if nothing happened. A warning is issued, but there's not enough visual feedback to show that it's happened and results in mods accidentally issuing multiple warnings.
 
Hello Xon,

I installed 1.7.1 but it seems it still redirects to main page of forum after warning. Could it be something else conflicting?
 
I installed 1.7.1 but it seems it still redirects to main page of forum after warning. Could it be something else conflicting?
What content type are you issuing the warning against? User/Post/profile post/etc
 
Didn't see this in the addon description. Does this addon give the option to output what was sent to the user when they get warned into a thread in a designated forum?
 
That is not supported.

You can log all warnings (global option) to a specific existing thread, and specific warning actions can log to a forum or an existing thread.
 
Is it possible in XF1 to have the ability to choose which user will be sending the PM to the user being warned. We would like an account created for sending these to send the PM if it were possible.

Happy to work on a paid solution if that's something you do.
 
Is it possible in XF1 to have the ability to choose which user will be sending the PM to the user being warned. We would like an account created for sending these to send the PM if it were possible.
I didn't think the XF1 version could do that, you sure it wasn't another add-on somewhere?

It is possible I'm not remembering it right.

Happy to work on a paid solution if that's something you do.
Sure, send me a PM and we can discuss it. It shouldn't be difficult to implement, and be fairly quick
 
Last edited:
I didn't think the XF1 version could do that, you sure it wasn't another add-on somewhere?

It is possible I'm not remembering it right.


Sure, send me a PM and we can discuss it. It shouldn't be difficult to implement, and be fairly quick

Was just a suggestion based on our first use of the product. I will send a PM :-)
 
Can you this query:
Code:
            SELECT count(*)
            FROM xf_warning_action_trigger

This will give you an idea on how many records it is scanning for fix ups
HI Xon,

I'm also seeing lots of tasks in the deferred section running this fixup class. Something seems to be constantly re-creating these tasks with trigger dates well in the past.

The SQL query above gives me the result 2, but I'm seeing 5-6 tasks in the xf_deferred table with the deferred_id constantly changing, and at any one time, a good proportion of my PHP handlers are dealing with deferred.php.

1523884153630.webp
 
Back
Top Bottom