Heya

I moved my working drupal installation to my localhost on mac osX (10.5.6). Site works like a charm. I see all i need to see, brwosing the website is working as intended. So database is working, htaccess is working.

But i would no be posting here had i no problem at all...

I cannot log in. (I have the same with a WordPress website: works locally but cannot log in. Just nothng happens when i try).

This is what happes when i log in: http://sitename.site/user is still in he address bar. The login screen does not disappear, no messages are posted on the screen, no messages in the watchdog table except for 'cannot find file print.css'. So it is possible to write to the database.

Cookies ARE created when i try to log in.

Anyone has any idea whatsover about this? Could very well be a config of localhost problem, and not a drupal prob, bcs i have it with WP too. Been at it for 2 days now. Looking for help desperately!

Thanks a lot

Comments

greylogic’s picture

Does your localhost have clean urls enabled? I had a similar problem because mod_rewrite was not installed in my local apache server.

Can you try to login using the drupal default path (with query strings )?

--------------------------------------------------------------
My attempt with Drupal - Jaanlo.com

kimmeehh’s picture

Greylogic
Thanks for your reply

The thing is, viewing of the website works like a charm. I get to each page i want to get. With clean urls enabled, and i got mod_rewrite working and my htaccess is used. I tried using he ?q=user already, just to be sure, but it did not make a difference. I still stay on the same page with nothing changing, no messages etc.

kjl’s picture

Have you tried emptying the sessions table?

kimmeehh’s picture

No. I have not, kjl.
Thanks for suggesting that. I will try to find it and then truncate it.

kimmeehh’s picture

i emptied it, restarted server, but no luck.

kimmeehh’s picture

- i do not get any messages in my php-errorlog other than
PHP Warning: PHP Startup: Unable to load dynamic library './php_mcrypt.dll' - (null) in Unknown on line 0
which is considered a bogus warning (http://bugs.php.net/search.php?cmd=display&status=Bogus&phpver=0&bug_typ...)?

- i do not get any messages in my sql-log

kjl’s picture

You could try these things:

1. Check to make sure there is a user ID "0" in your user table.

2. Truncate all _cache tables in the DB

3. Check your php version and php.ini file for the configuration directives mentioned here:
http://drupal.org/requirements

4. try setting a base url in settings.php

5. try setting a cookie domain in settings.php

6. Try setting a rewrite base in htaccess if you are installed in a subdirectory

7. make sure that you aren't switching from example.com to www.example.com when logging in

jwilson3’s picture

these solution steps are GOLDEN. thankyou.

cggaurav’s picture

Hye KJL.

Not so much of a techie. Please can you explain the solution in simple terms

I am facing the same problem.

1. localhost/site/user is giving me a Object 404 error.
2. Some of the picture on my site are not showing.

Although the main aspects of the site are intact.

Thanks.

aidil’s picture

Or you could try using MAMP for mac or XAMP for win... solved my problem.. :)

jlanaux’s picture

I was having the same problem loggin into the site I transferred to my local laptop to work on at home. I had the login box, but when I would enter my credentials and click login, nothing would happen. I clicked on the wamp icon in my systray, clicked on Apache, and clicked on Apache modules. I scrolled down to rewrite_module and clicked on it to turn it on. Viola! All is well.

I hope this helps any beginner. Sometimes the answers on this site are very vague and hard to follow. :)