Cannot post article comments

Status
Not open for further replies.

fyo

Ars Tribunus Militum
1,739
My login only works for the OpenForum. The site regards me as logged out everywhere else.

Steps to reproduce:

-> Click login (anywhere, but let's use the front page "login/join".
-> Enter username and password.

If I enter the correct username/password combo, I am returned to the front page, but the menu still says login/join. If I enter an incorrect username/password, I get the standard error notices (password && username). If I go to the OpenForums, I am logged in, so the login did work -- just not detected anywhere else.

If click on the "Leave a comment" link on a story, I get sent to the bottom of the page where there's a "You must login or create an account to comment" form. If I enter my username/password (again), the page reloads exactly like it was (with "You must login..."). If I enter an incorrect password, I get the standard error notices as before.

Ticking the "keep logged in" box makes no difference to the behavior observed above.

Clearing cookies also had no effect.

Have tried on Firefox 3.5.9 and Chrome 5.0.342
 

Clintology

Ars Legatus Legionis
15,566
Subscriptor
So I temporarily changed your password and I was able to successfully login as you and I left a comment (and deleted it). So the account itself seems to work fine. This was in Chrome 5.0.396.0 which is a dev channel release, but I doubt the browser is the culprit.

The fact that you can login on the forums means everything is working fine, that is, they're all using the same system. The front page comments and login box and stuff are powered by the forums, they just look different on the articles.

I'm a bit stumped, to be honest. So you're obviously logged in here, are you saying that if you load up arstechnica.com it still asks you to login in the navbar?
 

fyo

Ars Tribunus Militum
1,739
Works now.

Just logged in. Same browser, same everything.

Since this is the first time I've used my password since "the change" (although I've posted here for almost 10 years with this account, I very, very rarely post), I suspect something was off and reseting the password fixed it.

I tried maybe 20 times yesterday (which logs should verify, if you guys keep those) and it didn't matter what I did: It logged in fine for the Open Forums, but everything else regarded me as logged out.

It's hard to speculate as to what was wrong without knowing the internals of the Ars site. My initial speculation would be that the login script has two separate logins - one for the main site & comments, and one for the phpBB-powered Open Forum. Does Ars Main use the same password lookup as phpBB? If not, the likely culprit is that one password was changed, the other either not changed or "expired" somehow (like I said, it's been a long, long time since I've logged in last) and the script was only reporting the success of phpBB-login and not the simultaneous failure of the Ars Main login.

Idle speculation without knowing the details ;)
 

Clintology

Ars Legatus Legionis
15,566
Subscriptor
There's nothing different about the two, they're the same form. When you login from the front page you get sent to ucp.php?mode=login, the inline form you see at the bottom of the comments is the same form, just included via ESI and the post method of that form goes to the same place as the others.

They all operate off the same phpbb database and use the same cookies, etc.
 

fyo

Ars Tribunus Militum
1,739
Clintology":2cpuhkf4 said:
There's nothing different about the two, they're the same form. When you login from the front page you get sent to ucp.php?mode=login, the inline form you see at the bottom of the comments is the same form, just included via ESI and the post method of that form goes to the same place as the others.

They all operate off the same phpbb database and use the same cookies, etc.

You misunderstand what I was trying to say...

All the login forms worked. They just only logged me into the forums. The login was not "registered" by the front page and comments.

Since the main site doesn't use phpBB, it MUST be using a different login code -- even if it is just a wrapper around the phpBB login (i.e. the main site could check the phpBB cookie / use the phpBB-set session variables). It would be tempting, however, when merging such a two-headed, single-login site to just keep whatever login system each had and call both login functions (with the script at ucp.php?mode=login). This would require slightly modifying the account creation (basically calling one from the other), but would otherwise work fine -- unless something goes wrong ;)
 

fyo

Ars Tribunus Militum
1,739
Okay, I had the problem again.

Same symptoms, but this time I figured out the problem and it is a bug on your end ;)

Turns out, the root cause is I've been around too long and I'm too stubborn. I still access Ars via "ars-technica.com", with a hyphen. However, logging in from this domain does NOT set the phpBB cookies, only the main site cookies. Why? No idea.

Using the site via arstechnica.com works and the phpBB cookies are set when logging in.

One reason for my initial confusion was that the Open Forum link, unlike all the other links on the site, is hard-coded to arstechnica.com/civis/, regardless of domain used.

If you "force" the issue and access the Open Forums via ars-technica.com/civis/, you'll wind up with the same problems; when attempting to log in, the phpBB cookies are not set.

Further confusing the issue is that accessing the login script from the main site leads to a different URL than when accessing from the Open Forums:

main site access: http://ars-technica.com/civis/ucp.php?m ... Findex.php
open forum access: http://ars-technica.com/civis/ucp.php?mode=login&sid=[redacted]&autoredirect=1&return_to=%2Fcivis%2F

Some (apparent) hard-coding in the Open Forum software sets the domain portion of the url to arstechnica.com when "return_to == /civis/", regardless of what url was used to access.

The result of that particular little twist is that attempting to login via the Open Forum fails on the first attempt (on two counts: doesn't set cookies and forwards to a new domain where the cookies would not be readable, even if they had been set), but works on subsequent attempts (since everything works if accessing without the hyphenated domain name).

Sorry for being such a stubborn fool ;). I've had a similar issue with another of my favorite tech sites: tech-report.com aka "The Tech Report... there is no hyphen in The Tech Report, damnit!" They actually used that as the html title for a long while, at least when accessed via the hyphen. These days, accessing via tech-report.com just forwards to techreport.com (yet I still stubbornly use the hyphen).
 

fyo

Ars Tribunus Militum
1,739
Clintology":18fsze81 said:
I forgot that domain even existed. It should definitely be redirecting people to the right domain. We'll get it fixed.

I'd just like to point out that ars-technica.com was the original domain! The non-hyphenated domain wasn't created until four and a half months later.

While I'm at it... Okay, so I'll admit I don't recall exactly when I started reading Ars, but sometime mid to late 1998 is probably a good guess (and I was reading pretty much from day 1). Certainly after August first (I moved that day, so it's a good reference for me).

Now, the original (hyphenated) domain was first registered in August that year (supported my recollection).

So how come you guys have been "serving the technologist for 1.1942 × 10^-1 centuries"?

That's 12 years minus less than a month. I'm missing about 2 months (minimum) for the math to add up... The "1.1942 * 10^-1 centuries" looks script generated (yeah, I'm assuming no one actually modifies it manually on a daily basis). So what date are you guys using as your "birth date"?
 
Status
Not open for further replies.