BenAWH Posted August 1, 2022 Share Posted August 1, 2022 Hello everyone, I had to do a prestashop website migration, to a new domain name and new hosting provider. The front just works fine, but when I try to log as and admin, if the password or something is wrong it displayed a message error, if everything is correct, if refresh the page, but I’m not logged in and there’s no error displayed. I know a lot of people have had a similar issue, so I digged into this and tried many things described below, but it still doesn’t work. The website : rfamilyvape.fr Migration process I used : I copied the files and the database, changed the nameservers, updated /dev/app/config/parameters.php with new db credentials changed ps_shop_url with domain : rfamilyvape.fr domain ssl : rfamilyvape.fr physical uri : / Changed all rewrite cond and rules in htaccess with the new domain name rfamilyvape.fr deleted var/cache/dev deleted var/cache/prod cleared cache folder (only index.php remained) After this process, everything worked fine on the front, but I can’t connect and I get no error message. My Prestashop version is 1.7.7.3 What I tried : - Switching from PHP 7.3 to 7.2 (got back to 7.3) - Cleared browser cache, used several browsers - Deleted htaccess (I puted it back after the test) - Activate Debug mode with error messages on (still active, no error displayed) - Tried incognito mode - Clear cache files on ftp (again) - Tried with https/without with www/without Would say something is wrong with /controllers/admin/AdminLoginController.php... But I really don’t know what to do If someone can help… Thank you in advance, Regards Link to comment Share on other sites More sharing options...
Nickz Posted August 1, 2022 Share Posted August 1, 2022 try to rename htaccess to htacess_ and try again. Link to comment Share on other sites More sharing options...
BenAWH Posted August 1, 2022 Author Share Posted August 1, 2022 (edited) Thanks for your help @ndiaga Debug mode is set to true (and error messages is on), but there's absolutely no error message displayed on BO login page. After entering the login and password, if they are wrong the usual "wrong password or wrong email" is displayed, if they are right, nothing is displayed the page simply refresh and nothing happens: the login page appears again, without any error message (not from "classic" error messages, nor from debug mode), and I'm not on the BO. @Nickz Tried several times to rename htaccess (and even delete it) but problem remains. I just tried again after your answer, renaming it to htaccess_, then cleaned browser cache (not usefull in this case, in theory, but well...), and I still can't log in. Finaly found something that might help, my dev error log display these errors, clearly after each login attempt: translation.WARNING: Translation not found. {"id":"KerAwen","domain":"messages","locale":"fr-FR"} [] translation.WARNING: Translation not found. {"id":"AN Blog Management","domain":"messages","locale":"fr-FR"} [] doctrine.DEBUG: SELECT name FROM ps_module WHERE active = 1 [] [] "KerAwen" is a module... Could it cause the login to fail? Sounds strange to me (sorry for my english... and thx again for your help) Edited August 1, 2022 by BenAWH (see edit history) Link to comment Share on other sites More sharing options...
diana622 Posted March 21, 2024 Share Posted March 21, 2024 Hello Ben, I found your post. I'm experiencing the same issue. Have you managed to resolve it? If so, could you kindly share the solution? Thank you. Link to comment Share on other sites More sharing options...
Nickz Posted March 21, 2024 Share Posted March 21, 2024 9 hours ago, diana622 said: Hello Ben, I found your post. I'm experiencing the same issue. Have you managed to resolve it? If so, could you kindly share the solution? Thank you. You need to tell us a few details: When did the BO issue occur? Did you do anything or did the server update something? Link to comment Share on other sites More sharing options...
diana622 Posted March 22, 2024 Share Posted March 22, 2024 13 hours ago, Nickz said: You need to tell us a few details: When did the BO issue occur? Did you do anything or did the server update something? HI nickz, Thanks for your quick reply. I just tried to copy my website to dev server :"dev.domainename.com". I did everything which recomanded by forum : changed ps_shop_url , domain,domain ssl, physical uri, cleaned the cache and disable the cookie IP check from database. renamed the htaccess file ... The website works, however when i tried to login into admin, after i put the correct username and password, the page refresh and redirect to login in page again without any error. (I actived also debug mode). My prestashop version is 1.7.8.10. Link to comment Share on other sites More sharing options...
Nickz Posted March 22, 2024 Share Posted March 22, 2024 8 hours ago, diana622 said: The website works, however when i tried to login into admin, after i put the correct username and password, the page refresh and redirect to login in page again without any error. (I actived also debug mode). I think somewhere in the DB there could be still a old URL. Download the Database and search. Link to comment Share on other sites More sharing options...
ricardopxl Posted March 23, 2024 Share Posted March 23, 2024 Hi! I think maybe is a good idea try deleting cache directly from the server and rename the htaccess. when your website back to work remember you need regenerate the htaccess Link to comment Share on other sites More sharing options...
diana622 Posted March 26, 2024 Share Posted March 26, 2024 On 3/23/2024 at 1:06 PM, ricardopxl said: Hi! I think maybe is a good idea try deleting cache directly from the server and rename the htaccess. when your website back to work remember you need regenerate the htaccess On 3/22/2024 at 6:11 PM, Nickz said: I think somewhere in the DB there could be still a old URL. Download the Database and search. Hi, What do you mean by old URL ? I tried to search in the database, all the images url are still with domaine name, is this cause a problem ? Link to comment Share on other sites More sharing options...
diana622 Posted March 26, 2024 Share Posted March 26, 2024 On 3/23/2024 at 1:06 PM, ricardopxl said: Hi! I think maybe is a good idea try deleting cache directly from the server and rename the htaccess. when your website back to work remember you need regenerate the htaccess Hi Thanks for your help, I did already deleting cache from server and rename htaccess unfortunately still can not login in to admin Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now