News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Top bar Control interaction issue

Started by stoo23, September 24, 2023, 11:01:56 PM

Previous topic - Next topic

stoo23

Hi guys,

Just wondering if there is some sort of 'Timing' or 'Time Out' feature on the Standard Menu controls on the Top Bar.
I Only ask this ecause of one of my Members experiencing a repeatable and reasonably consistent issue when interacting with them.

In His words (with Pic):
QuoteI would like to tell you about a behaviour of the SMF SW that I have noticed since the beginning of the new version.
At first I thought it was due to my PC, but I have recently used other computers and the behaviour is the same.

When you click on one of the 3 top buttons (see snapshot) a popup appears with the legend "Loading..." and nothing happens anymore. It never disappears again.
I help myself by right clicking and selecting "Open in new tab". That works.


Our forum is 'Hosted' on a pretty damn fast Centos VPS and is Very fast (especially here in Aus'), but is apparently pretty 'snappy' for Most of out overseas members.

This member is also No 'idiot' and is one of our longer term senior programmers, (and Global Moderator), so is partly why I am slightly concerned  ;)  :)

I have Only occasionally even Seen what he experiences (extremely briefly), until it changes to the desired and selected Control, so am simply wondering if there could be a 'timing' issue due to the tyranny of distance or whether there may be some Other underlying process causing the issue ??

Any thoughts or suggestions ??

Thanks  :)
Stewart

Kindred

It's a problem with the user's browser.

Probably javascript disabled

What browser?
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Diego Andrés


SMF Tricks - Free & Premium Responsive Themes for SMF.

stoo23

QuoteIt's a problem with the user's browser.
Probably javascript disabled
What browser?

OK, Not sure, I will 'check' Both with him :)

We had posted about the SSL Changes etc on our forum, after we changed, reconfigured and updated the Server and Upgraded the forum version, but maybe he is not 'addressing' the Forum correctly.

Will check Our settings and His and get back to you,.. Thanks  :)

live627

The request may be blocked by a browser extension. Have the user show us any errors or warnings in their JavaScript console.

stoo23

Info' from the User:
Quote- Chrome Version 116.0.5845.188 (Offizieller Build) (64-Bit)
- Windows 10 Enterprise 22H2
- Javascript enabled

The problem was triggered erratically. Today it seems to work. :undecided:
This type of issues are the best  :dazzled:

I must admit, I'm somewhat intrigued as to Why he can 'Right Click' and Open in a New Tab and All is good and OK ??

I'll check with him about Errors but he did suggest it has happened on more than one PC.

stoo23

Further from my User:

QuoteI'm getting this error on the JS console:

Access to XMLHttpRequest at 'https://masm32.com/board/index.php?action=profile;area=alerts_popup;counter=3;u=24' from origin 'https://www.masm32.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
jquery.min.js:2    GET https://masm32.com/board/index.php?action=profile;area=alerts_popup;counter=3;u=24 net::ERR_FAILED 302
send @ jquery.min.js:2
ajax @ jquery.min.js:2
E.<computed> @ jquery.min.js:2
updateAlerts @ minified_8c5c3c63fe705521109cd0609542d3cc.js?smf214_1694438488:607
setTimeout (async)
updateAlerts @ minified_8c5c3c63fe705521109cd0609542d3cc.js?smf214_1694438488:619


Could this perhaps be related to 'cookies' stored previously on the Users Machine ?? or using the older incorrect address ??


Sesquipedalian

The answer is in the first line of that error message. The user is at https://www.masm32.com, but your forum's canonical domain is https://masm32.com and therefore the AJAX requests are being sent to the latter.

Because those are not the same domain, this counts as a "cross-origin" request. Cross-origin requests trigger a bunch of security measures that you probably don't care about the details of, but the upshot is that sometimes such requests will be denied.

The solution would be to use an .htaccess file to redirect browsers from https://www.masm32.com to https://masm32.com. Then anyone initially trying to go to the www subdomain will be automatically redirected to the main domain, and all further interactions with the server will take place on the main domain without any cross-origin requests happening.
I promise you nothing.

Sesqu... Sesqui... what?
Sesquipedalian, the best word in the English language.

stoo23

QuoteThe user is at https://www.masm32.com, but your forum's canonical domain is https://masm32.com and therefore the AJAX requests are being sent to the latter.

Yes, I noticed that and had mean't to mention it both here and to the Member.

QuoteThe solution would be to use an .htaccess file to redirect browsers from https://www.masm32.com to https://masm32.com. Then anyone initially trying to go to the www subdomain will be automatically redirected to the main domain, and all further interactions with the server will take place on the main domain without any cross-origin requests happening.

Yes, understood.
I thought we had Already deal't with and accommodated that around the time we re-configured the Server and upgraded the SMF software to the latest version,.. I will have to check.

We had a few issues wih some users with addresses being stored locally but invariably clearing Cookies and Cache's seemed to fix that.
All appears to have been fine of late, so was somewhat surprised by this member reporting the error, Now !!

Thanks for the input and suggestions etc  ;)
cheers,
Stewart  :)


Advertisement: