(Apologies if this comes through twice--a spam filter was messing with my attempt to subscribe, and the first may not have made it.)
Hello
I have been searching with google and other tools for the last couple of hours, and can not find any similar situations.
Problem: Drupal in a multisites configuration, does not seem to be sending cookies to the browser.
Symptom and Steps: I first logged in to https://sub.domain.com/install.php, to get the database populated, etc.. Note that I am using SSL, and a basic auth .htaccess requiring a username and password, to protect the drupal directory. All of that seems to be working fine.
That done, I selected the "create admin account" (or similarly named) link, entered "admin" as the user name, and my email address. When selecting "create account", I was presented with a 403 forbidden error. However, the email with password was sent, and when I entered the username and password, the "create admin account" step was gone from the initial page.
The link to configure the system now generates a 403 and the message "You are not authorized to access this page." if I do not log in. Also, between the time of selecting that link, and actually getting the page, nearly 20 seconds passes for some reason--nothing else it does takes that long. If I attempt to log in from there, it appears that the login is successful, and it attempts to redirect to the page after a successful login, but when it reloads the page it ends up with the same 403.
No cookies are being sent at any point during this process, which is almost certainly my problem.
Environment: Ubuntu Feisty Apache 2 PHP 5 MySQL 5 Drupal 5.1
I checked the sessions table, and do see a single session for admin.
I have not tried this with the "default" installation of Drupal, because I have no intent to use, and therefore have not bothered to configure, that version.
I would appreciate greatly any advice on this issue.
Thanks and regards,
Luke
Luke wrote:
No cookies are being sent at any point during this process, which is almost certainly my problem.
Environment: Ubuntu Feisty Apache 2 PHP 5 MySQL 5 Drupal 5.1
Since you're doing a fresh install, is there some reason you're not using the latest version of Drupal 5 (currently on 5.7)? I seem to recall several login/cookie issues with Drupal 5.1 that were fixed in later versions.
-Jonathan
On Thu, 21 Feb 2008, Jonathan Hedstrom wrote:
Since you're doing a fresh install, is there some reason you're not using the latest version of Drupal 5 (currently on 5.7)? I seem to recall several login/cookie issues with Drupal 5.1 that were fixed in later versions.
Oh great.:(
The reason I'm using 5.1, is that 5.1 is the highest version that is packaged for Ubuntu Feisty.
Btw, the browser I am using is lynx.
Luke
On Thu, 21 Feb 2008, Luke wrote:
Btw, the browser I am using is lynx.
Okay, now this is interesting. I have since tried it with links2 (javascript support enabled, not that that should matter), and am able to get to the admin page.
I get this notice: "One or more problems were detected with your Drupal installation. Check the status report for more information."
The status report has no more information--no notices or warnings of any kind.
So maybe this is a lynx problem? But why then would I receive cookies from other drupal installations?
Theory: 5.1 detects the browser as lynx, assumes that it can't handle cookies, and reverts to session IDs passed via URL, which is no longer supported. Is that a possibility? If so, changing lynx to fake the useragent would be a way around it, although a very inconvenient one.
Luke
May I ask why you would want to use the version packaged with ubuntu, especially if it is old and known to have problems and it's so simple to download a newer version?
Also why are you browsing with lynx? Do you have a specific requirement to support lynx browsers on your site?
imho unless there's a reason you absolutely and only need to have it work with a standard install and with lynx, you should try using an updated version of drupal with a standard and modern web browser (eg firefox). then at least you'll be seeing what everyone else is seeing before trying esoteric combinations and claiming it's drupal that isn't working.
.s
Luke wrote:
On Thu, 21 Feb 2008, Luke wrote:
Btw, the browser I am using is lynx.
Okay, now this is interesting. I have since tried it with links2 (javascript support enabled, not that that should matter), and am able to get to the admin page.
I get this notice: "One or more problems were detected with your Drupal installation. Check the status report for more information."
The status report has no more information--no notices or warnings of any kind.
So maybe this is a lynx problem? But why then would I receive cookies from other drupal installations?
Theory: 5.1 detects the browser as lynx, assumes that it can't handle cookies, and reverts to session IDs passed via URL, which is no longer supported. Is that a possibility? If so, changing lynx to fake the useragent would be a way around it, although a very inconvenient one.
Luke
On Fri, 22 Feb 2008, sander-martijn wrote:
May I ask why you would want to use the version packaged with ubuntu, especially if it is old and known to have problems and it's so simple to download a newer version?
In a word: Dependencies.
However, since it only depends upon libgd2-xpm and php5-gd, it wouldn't be that hard to break dep tracking in this instance. If I had checked the version on the site before I installed, I may have tried the non-ubuntu version. Frankly, Ubuntu is usually not *that* far behind in its versions.
Also why are you browsing with lynx? Do you have a specific requirement to support lynx browsers on your site?
Yes, in fact I do. Multiple users using text consoles, with no available alternative.
imho unless there's a reason you absolutely and only need to have it work with a standard install and with lynx, you should try using an updated version of drupal with a standard and modern web browser (eg firefox). then at least you'll be seeing what everyone else is seeing before trying esoteric combinations and claiming it's drupal that isn't working.
1. I can try a newer version of Drupal. 2. I can not change to other than text based browsers--I know Firefox et al work with it, but I must support console based operations as well.
As a side note: changing the useragent to something other than Lynx, appears to have no effect, which would seem to blow my theory as to what is going on.
Luke
On Thursday 21 February 2008 8:25:15 pm Luke wrote:
I get this notice: "One or more problems were detected with your Drupal installation. Check the status report for more information."
The status report has no more information--no notices or warnings of any kind.
That is normal. You probably have not done a cron run, but you probably also do not have a files directory setup. Probably the reason you can't see any more information, is because the error state is usually indicated by being shown in red, but there should be some wording to give you a clue, also.