Server issue 'History' opens new page

CFMack

Active member
Affected version
2.0.2
Just now on my forums, when I clicked on 'History' (edit history) of a member's post, it opened a new page. It did it 3 out of 4 tries.

macOS 10.13.3 Safari 11.0.3

Screen Shot 2018-02-07 at 12.01.22 PM.webp
 
Can’t reproduce that here. I’d check to see if there are any errors logged in the browser console that coincide with clicking it and also try it on an unmodified default style.

Note that because XF2 loads its JS in the footer it’s sometimes possible to activate certain things before JS has fully loaded and so stuff like this or overlays can open fully rather than through an AJAX request.

Probably worth trying it with any browser extensions disabled too. Especially Adblock and other script blockers.
 
Thanks, Chris. I have no browser extensions installed. My default style has very few modifications; just one entry in extra.less and 2 add-ons. I don't usually click on 'History' too often, so I guess it's not a huge deal. I found "Show JavaScript Console" in my Developer menu. If I'm reading it correctly, there are no errors. Not sure if that is the only console to check.

Screen Shot 2018-02-07 at 12.23.25 PM.webp
 
That's the correct console, though it may clear itself when you load a new page. To solve that, click the cog icon (to the right of the Console tab) and ensure this is checked:

1518024971177.webp

Also keep the console open when you try it again.

However, I've just been on your site. Are you experiencing performance issues right now? It seems to be loading certain assets very slowly, especially javascript, which ties in with what I was saying before about the javascript not loading fully, which would explain certain links loading in a new page load.
 
I just tried what you suggested. That box was checked already. No errors reported.

No performance issues at all. My site is super quick on my Mac. Since I upgraded to XF2 early last month, all has been great. No issues really whatsoever. Every now and then the log in opens in a new page, instead of an overlay, however that hasn't happened for awhile.
 
Unfortunately I can only pin this down on some sort of bottleneck. Everything you've described is indicative of the JS not loading fully and I was experiencing a similar issue earlier on your site on the Login and Register overlays opening in a new page, which according to the Network tab did seem to be because it hadn't loaded the JS yet.

So although the pages might seem to be loading quickly, they seem to be not loading the JS quite so fast. I don't have a particular explanation for that, but ultimately it will be some sort of bottleneck in the server (PHP and XF isn't even involved at this point because it's just a script request).
 
Top Bottom