Drupal Login Problem

kadaver

New Member
Messages
51
Reaction score
0
Points
0
Any one got any ideas how to fix a problem with the new drupal 5.7.
I recently changed my base_url from http://ehcsah.x10hosting.com to http://ehcsah.uni.cc and cant login I keep getting sent back to the main page with the login box still there and no admin menu selection. I'm also using the phpbb3 connector thing wich allows you to see whos logged in to the forum on the main page and it says that im logged in even though im not.
???? any ideas?
If I switch back to the original base_url then I dont get this problem.
 

kkenny

Active Member
Messages
1,950
Reaction score
0
Points
36
Try looking around drupal/phpbb3 to see a base url setting
change that to your new domain and see if it fixes it (joomla, vb, and wordpres have it)
 

kadaver

New Member
Messages
51
Reaction score
0
Points
0
After expirimentation I figured out what the problem for me was.
You have to set the cookie setting in the forum the same as drupal otherwise you get the problem of not being logged in, in my case because I was using the phpbb3 module for drupal. When I disabled it I had no problems with login, but I wanted to use it anyways.

first makeshure that your drupal config file has the, (drupal dir/sites/default/settings.php) must chmod it to atleast 644 to edit it, drupal sets it to 444 for read only.
$base_url = 'http://ehcsah.uni.cc'; // NO trailing slash!
replace http://ehcsah.uni.cc with your current domain, no trailing slash.
Second,
$cookie_domain = 'ehcsah.uni.cc';
replace ehcsah.uni.cc with your domain excluding the "http://".

Last go to your forum, login, go to admin panel, on the bottom left on the first page click Cookie Settings, and change Cookie Domain to exactly the same as what you put for the cookie setting above.

This worked for me.

If you really need to make shure that visitors get to the right place, you can also edit the .htaccess file, I havent tried it though. Change the wrong settings in here and you'll break your site.
Look for this section to force redirect to www or the main domain or whatever your address is.
# If your site can be accessed both with and without the 'www.' prefix, you
# can use one of the following settings to redirect users to your preferred
# URL, either WITH or WITHOUT the 'www.' prefix. Choose ONLY one option:
#
# To redirect all users to access the site WITH the 'www.' prefix,
# (http://example.com/... will be redirected to http://www.example.com/...)
# adapt and uncomment the following:
# RewriteCond %{HTTP_HOST} ^example\.com$ [NC]
# RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301]
#
# To redirect all users to access the site WITHOUT the 'www.' prefix,
# (http://www.example.com/... will be redirected to http://example.com/...)
# adapt and uncomment the following:
#RewriteCond %{HTTP_HOST} ^www\.example\.com$ [NC]
#RewriteRule ^(.*)$ http://example.com/$1 [L,R=301]
 
Top