JS Error While Attempting Logout On Subdomain

TheBigK

Well-known member
I'm posting this question on behalf of our developer. Our setup is as follows :-

XF Installation: www.domain.com/community/
Subdomain: subdomain.domain.com/ -> this is where the add-on will display pages.

When the user is on the subdomain, logout doesn't work. Following JS error is thrown after clicking 'Log Out', instead of showing the overlay that asks for logout confirmation -

Code:
Attempted to call XenForo.OverlayLoader.show() for
logout/  before overlay is created
 
Sorry for bumping, but just want to know if the question is complete. Is there any information I need to provide? Thanks!
 
I'm not sure about the nature of that js error.

Is your forum accessible via multiple subdomains? Normally you would enforce just one subdomain. If you need it to be accessible on multiple then be sure to change your cookie domain to work on all subdomains:

http://xenforo.com/community/threads/xenforos-handing-of-cookie-domains.15260/#post-200173

And when making this change you will probably also want to change the cookie prefix to invalidate existing cookies in the old scope to prevent possible overlap which can cause logout problems.
 
Do other AJAX calls work for you on the sub-domain?
Unfortunately, nope. The ajax calls aren't working on subdomain. CSS runs on the subdomain; but JS URLs are all pointing to the main domain.

I'm not sure about the nature of that js error.

Is your forum accessible via multiple subdomains? Normally you would enforce just one subdomain. If you need it to be accessible on multiple then be sure to change your cookie domain to work on all subdomains:

http://xenforo.com/community/threads/xenforos-handing-of-cookie-domains.15260/#post-200173

And when making this change you will probably also want to change the cookie prefix to invalidate existing cookies in the old scope to prevent possible overlap which can cause logout problems.

The problem we're facing is the 'logout' pop-up isn't working; which we believe is a JS related issue. By the way, user stays logged in while browsing the sub-domain.
 
Top Bottom