1

I need urgent help as to how to log into my admin page. Everything is working fine after migration but admin page refuses to log me in. I have tried so many suggestions here. But not is working for me. I use Magento V2.2.3

11
  • any error in logs? what is the error message you are getting during login? Apr 2, 2018 at 5:04
  • No error log or message. It just rolls and stops with cleared form values.. basically just refreshes.
    – Daniel
    Apr 2, 2018 at 5:05
  • 2
    is there any cookie domain set in configuration? Apr 2, 2018 at 5:06
  • try different browser , there would be cookies issue. Apr 2, 2018 at 5:08
  • it was configured on xampp and migrated... i don't know much about magento as i am new to it
    – Daniel
    Apr 2, 2018 at 5:08

5 Answers 5

1

Directly in database, Edit web/secure/base_url in core_config_data table.

Please set HTTP instead of https.

I hope this will work for you.

1

I opened app/etc/env.php file and changed the name of the shop backend .

'backend' => [ 'frontName' => 'new_admin_backend_name' ]

Should clear up anything related to the old backend name.

0

In my case I had a cookie domain set to the new host name.

I managed to correct this with the following steps on database level:

UPDATE core_config_data
SET value='new-domain.example.com'
WHERE path = 'web/cookie/cookie_domain';

And then it worked! Thanks for the hint @Kalyan Chakravarthi V

0

Check for the following path in the core_config_data table. They should have the correct URL.

web/unsecure/base_url
web/secure/base_url
web/unsecure/base_link_url
web/secure/base_link_url
0

I changed my base urls with: php bin/magento setup:store-config:set --base-url="http://new_url/" then cleared cache with php bin/magento cache:flush

I tried to log in to admin but no success. Then I tried to change web/secure/base_url to http manually in the database but this did not had any effect also.

What helped in the end was the answer from Bradley saying to change app/etc/env.php file and change the name of your admin url. I was then able to log in to backend.

'backend' => [ 'frontName' => 'new_admin_backend_name' ]

1
  • While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. - From Review
    – Eduardo
    Mar 3, 2022 at 2:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.