Here’s a strange and exasperating problem - even more so than usual.
I have installed SMF connector on a site during development (not my site, I just got hired for some SMF stuff). After deployment to a different URL I ran the SMF repair settings script and have reset all theme paths/urls. This all seems fine.
The Admin Center link works fine for me - except on one single occasion with Opera on my laptop, but its since worked fine on that so I can’t say more about that other than it being a very transient glitch. On
all other browsers I’ve checked (Opera, Firefox, IE on a VM, Epiphany on a remote Debian machine via VNC) its worked fine all the time every time. In general I’ve been testing on the same physical machine with the same internet connection - hence the latter test via VNC as I’m now clutching at straws.
So why the overkill and why the problem you may well ask? Well the client cannot get it to work at all - ever. We’ve exchanged screen recordings to convince each other and it certainly looks to not be working! She has tried it on three other machines (I’m awaiting a reply to indicate if there might be any things in common between these machines that might give a clue) and it doesn’t work there either.
The problem is that instead of arriving at the SMF admin page, logged in as per the SMF module config, she ends up arriving at SMF as a ’Guest’. The same thing appeared to happen on the one time I had a fail as referred to above. After some exchange of emails with info from Firebug being sent back, it appears that the request headers to the SMF index.php?action=admin contain no cookies, which then makes it hardly surprising nothing works as the server cannot identify her admin session.
Any ideas?
thanks (more so than you can imagine!) in advance
Tim.
Edit: This is now fixed. I think the problem was that the client’s MODx site worked on both the www.<site> domain and the ’no-www’ version. On my own sites I ensure that one or other of these redirects to the other one.
SMF on the other hand has to live on one subdomain only. As cookies are by default set to work on one subdomain also, the connector only ’worked’ when MODx was running on this subdomain.
Put another way, SMF was at sitename.org. If MODx was run at sitename.org, great. If MODx was run at www.sitename.org, the cookies were set on this domain and hence the user was not logged on at sitename.org which SMF uses.
In this latter case, the first request to SMF at www.sitename.org worked, but SMF made its internal links go to sitename.org, at which point the user would not appear to be logged on.
I’ve advised the client to decide whether the site as a whole should live on the www or no-www address, and in general make sure that on all sites one redirects to the other as general good practice.