Hi Everyone

I've encountered some issues yesterday on my site after attempting to implement the Bakery module between 2 separate installs/databases on the same domain, www.psychnurse.co.uk and www.interact.psychnurse.co.uk . The issue may not actually be because of Bakery and that just may be a red herring but is the first time I encountered the issue/s.

Firstly I was unable to login via the Administrator account, luckily I had another account on the site and was able to change the user role via phpmyadmin.

I then realised that the web browser was directing to psychnurse.co.uk rather than www.psychnurse.co.uk. When login in via psychnurse.co.uk it would allow me access, however when trying to log in via www.psychnurse.co.uk I was/am getting access denied pages, even with the correct credentials. Also when going www.psychnurse.co.uk the facebook connect was throwing up a error.

I'm aware that in order for your domain to go to www you need to ensure the following is uncommented in the .htaccess file:

# RewriteCond %{HTTP_HOST} .
# RewriteCond %{HTTP_HOST} !^www\. [NC]
# RewriteRule ^ http%{ENV:protossl}://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

I attempted to do this, which worked in as much as to direct the browser to www, however I am finding I can not log in via www or via facebook connect. Maybe it my aspergians but i prefer the browser to say www. This seems like one issue, but with several consequences.

If anybody has any ideas on how I can rectify this issue. BTW I have disabled the bakery module on www.psychnurse.co.uk.

Regards

Shaun

Comments

Hello,

Have you uncommented the $base_url option within the sites/default/settings.php file? Quite a strange issue but you can try forcing the use of www from there and then logging into your website again.

Best of luck.

www.tmdhosting.com
---------------------
Drupal Hosting, Free Drupal Installations, Free Module and Theme Installations, Free Upgrades, Free Drupal

Yeh, I have tried that and the issue still occurs :(

I should add, that using the htaccess and settings methods will force the domain to go to www but when I log in or trying and use the facebook connect I get access denied.

Hello,

I would suggest that you try the following next:

1. Check the $cookie_domain variable in the settings.php file and make sure it is commented out, or set with www.domain.com
2. Truncate the sessions table of your database.
3. Clear the all of the cache tables of your database.
4. Clear your browser's cache as well and then try logging in again.

Best Regards

www.tmdhosting.com
---------------------
Drupal Hosting, Free Drupal Installations, Free Module and Theme Installations, Free Upgrades, Free Drupal

It appeared to start working randomly, but I have done all of your suggestions. There was no $cookie_domain in the settings btw. For now its working, but my drupal likes to act out of turn every now and then!!