I have just updated from 4.5 to 4.7 (w/o 4.6 in between). There were several errors, all of which have been resolved. The remaining problem is that when someone clicks on login they are directed to http://user/login. Obviously, this should be http://www.example.com/user/login.

Any suggestions?

Comments

mentor’s picture

I will post again in hope of a reply. I will upgrade again with the next release in the hope that this will be fixed by a clean upgrade. For now, the problem remains. My guess is this is an easy fix, but I can't seem to figure it out. Can anyone offer a suggestion?

VM’s picture

have you read through and double checked all settings in sites/default/settings.php ?

specifically base url ?

mentor’s picture

I am posting this for the record, in case others have a similar problem. I have resolved this issue.

First, thanks to VeryMisunderstood for the reply.

This settings.php file was the first thing I checked and all seems fine. Everything else works without problems. Some history - login under the old version was a bit shaky. I have seen references to this in older posts but nothing quite like my current problem. The old login page would work, but when I entered login information the login page was redisplayed - as if nothing happened. When I clicked to another page I could tell that I was, in fact, logged in. Probably unrelated, but my history with login has been problematic.

Another clue was that the page source included two slashes in front of user/login:

"//user/login">login
"/sitemenu">site map
"/forum">forums

Here is the solution:

Click Administration>Menus>Edit the login menu item. Be sure there is no leading slash before "user/login" on the path field.

That's it. I know this may seem very simple, but previous versions of Drupal didn't have the same problem with the extra slash so the error was somewhat hidden.