XF 2.2 Quick Reply jQuery error

apathy

Active member
Hey guys, I've had this little error for a while now but only got around to trying to sort it now. The problem is that when a user posts on my site with the quick reply, the post will successfully submit but the progress indicator will stay and the contents of the post will remain in the QR box. Not a huge issue, but kind of annoying.

I've disabled all my addons to no avail but I do know the problem doesn't happen on the default Xen theme. However, my 2 themes are basically reskins of the Xen theme, and since I don't know JS it's not really something I'd mess around with. The only additional JS I have added to the site is:

-- Rotating header (PAGE_CONTAINER)
-- Snow (PAGE_CONTAINER)
-- A preview when selecting different avatar borders from a dropdown (account_details)

I have made edits to other templates but it's mostly just CSS and some images, nothing that should really be getting in the way. Here is a paste of my PAGE_CONTAINER. Here is a list of my addons.

The error in question is below:

Code:
Uncaught TypeError: r.getClientRects is not a function
    offset jQuery
    dimensions https://fortreeforums.xyz/js/xf/core-compiled.js?_v=af9924fb:25
    insertMessages https://fortreeforums.xyz/js/xf/message.min.js?_v=af9924fb:35
    insertMessages https://fortreeforums.xyz/js/xf/message.min.js?_v=af9924fb:4
    setupHtmlInsert https://fortreeforums.xyz/js/xf/core-compiled.js?_v=af9924fb:62
    c https://fortreeforums.xyz/js/xf/core-compiled.js?_v=af9924fb:103
    setupHtmlInsert https://fortreeforums.xyz/js/xf/core-compiled.js?_v=af9924fb:61
    insertMessages https://fortreeforums.xyz/js/xf/message.min.js?_v=af9924fb:4
    insertMessages https://fortreeforums.xyz/js/xf/message.min.js?_v=af9924fb:35
    afterSubmit https://fortreeforums.xyz/js/xf/message.min.js?_v=af9924fb:34
    proxy https://fortreeforums.xyz/js/xf/core-compiled.js?_v=af9924fb:87
    jQuery 7
    submitResponse https://fortreeforums.xyz/js/xf/core-compiled.js?_v=af9924fb:260
    proxy https://fortreeforums.xyz/js/xf/core-compiled.js?_v=af9924fb:87
    n https://fortreeforums.xyz/js/xf/core-compiled.js?_v=af9924fb:54
    jQuery 6
    ajax https://fortreeforums.xyz/js/xf/core-compiled.js?_v=af9924fb:55
    submit https://fortreeforums.xyz/js/xf/core-compiled.js?_v=af9924fb:259
    setTimeout handler*submit https://fortreeforums.xyz/js/xf/core-compiled.js?_v=af9924fb:259
    proxy https://fortreeforums.xyz/js/xf/core-compiled.js?_v=af9924fb:87
    jQuery 2

Please let me know if I need to share more information.
 
Solution
The template edits you need to look at relate to the posts themselves. Looking at your site, I can see modifications to the post HTML. Specifically, if I had to guess, it's actually the "chunky borders" comment that I can see in the code.

Mike

XenForo developer
Staff member
The template edits you need to look at relate to the posts themselves. Looking at your site, I can see modifications to the post HTML. Specifically, if I had to guess, it's actually the "chunky borders" comment that I can see in the code.
 
Solution

apathy

Active member
The template edits you need to look at relate to the posts themselves. Looking at your site, I can see modifications to the post HTML. Specifically, if I had to guess, it's actually the "chunky borders" comment that I can see in the code.
I see, youre right theres several post/message edits but since they dont interact with JS i figured they'd be irrelevant.

The chunky borders are light theme only, but it happens on the light and dark - either way, ill remove all my edits one by one when I'm back home and let you know how I get on. Thanks a lot!

EDIT: Looks like you were spot on @Mike, it was the chunky borders - it seems jQuery doesnt like for divs to be wrapped around the article tags, so I gotta find another way to do the borders. Thank you so much for your help.
 
Last edited:
Top