A couple of weeks ago, I updated my blog (http://blog.dave.org.uk/) to MT5. A few days later I took the step of moving all of my web site (http://dave.org.uk/) to MT5. Previously the main web site was a few hacked together pages of HTML that were generated with some Perl code and the Template Toolkit and the blog was the only section powered by MT.
As part of this change, I moved the /mt directory from within the blogs subdomain so that it now lives within the top level domain.
But something, somewhere has gone wrong. It appears that cookies aren't being set correctly. There are currently two symptoms of this:
1/ No-one can comment on the blog. When you click the "sign in" link on the blog, you just get the spinner, which never stops spinning.
2/ Within the dashboard of the site, I'm prompted for my username and password on every HTTP request.
For dave.org.uk I can see an mt_user cookie and for blog.dave.org.uk I can see an mt_blog_user_cookie. But for some reason MT doesn't register that the cookies are being set.
Does anyone have any advice or recommendations?
Cheers,
Dave...
Reported on Movable Type 5
Dave,
I just gave it a try, and it seems to be working (at least it didn't spin forever, although it didn't really want me to sign up so I could comment). Have you changed something since you originally posted?
Ah, no. I haven't changed anything - just misremembering the symptoms when I wrote my original report.
It doesn't spin forever, it completes the request but doesn't log you in. That's why I thought it was a cookie problem.
Sorry for the confusion.
Dave...
Given my experience on your site, I don't think it's a cookie problem, but a configuration problem - a script that is forwarding incorrectly, something that doesn't have the right permissions, something that isn't executing... something like that. Your issue seems to be with sessions, and them potentially not being logged. This would explain why your site keeps asking you to log in, and why nobody can register (since it claimed I took too long to confirm my own registration on your site (which I did within seconds of getting the email to confirm it)).
For future reference, it's normally a cookie problem when your "remember me" options don't work, but this sure seems like sessions just aren't being logged to your database correctly.
For what it's worth, I'm not seeing any errors in the error log.
If it's caused by a configuration problem, that would make sense. I had to tweak a few settings in the mt-config.cgi in order to get it working. I needed to make sure that some of the settings were absolute URLs.
CGIPath http://dave.org.uk/mt/
StaticWebPath http://dave.org.uk/mt/mt-static/
If anyone has any suggestions for things that I can check, I'd be really happy to see them.
Dave...
I have got to the bottom of this with a little out-of-band help from an MT expert.
My mt_session table was corrupt. A quick 'check table mt_session' followed by 'repair table mt_session' and all seems to be working fine again.
Hope this information is useful to someone.
Dave...
Glad I was at least in the right ballpark for you.