By giorg on
Hello everybody,
I have a production site that needs to be updated. I wanted to try it before to do it, so I copied files and db on my test machine but my users (either admin or others) cannot login: no errors, nothing in the log, nothing, I just am redirected to the login page without any error.
Any tip?
thanks
Andrea
Comments
There are various possible
There are various possible causes. You do not mention whether you followed the Documentation. If you followed one of the recommended methods (or repeat the site copying folllowing it) then post a little more about what you did that might provide a clue.
When the site is being redirected watch out for things like rewrite base in .htaccess and base url or cookie domain settings in settings.php
Oh - the link to the documentation: I looked it up for you to save you time: http://drupal.org/node/776864
Digit Professionals specialising in Drupal, WordPress & CiviCRM support for publishers in non-profit and related sectors
Hey John, thanks a lot for
Hey John,
thanks a lot for your answer. What I exactly did was to compress the whole original directory, and copied both that and the database on the new server, then changed ofc the settings.php file. Didn't follow the documentation (couldnt think this could be THAT hard) at all. Will try to follow it step by step now, thank you again.
Andrea
Hi, I did follow the
Hi,
I did follow the Documentation, but still have the problem. The site is there (except for a new error in the login page), but users cannot login. All of this started because the Upload button disappeared from the editor when the user is not admin, any other tip about this?
Thank you very much
Odd about the upload button.
Odd about the upload button. I wonder whether the database is corrupt. I mentioned the documentation because you said you 'copied' the database, and of course directly copying a database does not usually work. But since you followed documentation, I take it you created a new database and imported a dump, which would be correct.
Note that when importing database there is also a problem if you forget to set the 'no auto increment' option (a point also made in the documentatino). In Phpmayadmin normally this option is used by default, so should not be a problem.
The documentation mentions emptying cache tables, whcih is important but you can also clear the cache after the migration.
Also the check for cookie_domain in settings.php is mentioned in the documentation.
Generally when importing a database, also, if the server is under-resourced this increases the chance of random corruption.
On the other hand maybe there is a problem with the server's cookie handling. Another thing to try is setting up a clean Drupal site on the server to see whether you can login. This will test to ensure that the server is OK for Drupal as login can often be a server problem.
Digit Professionals specialising in Drupal, WordPress & CiviCRM support for publishers in non-profit and related sectors