Prestashop 1.4.3 cannot login to admin error after installation.

July 6, 2011 | In: ecommerce, online store, prestashop

Yes, you read it right, just after you successfully installed Prestashop 1.4.3 and when you try logging into your admin panel to do some, well administrative tasks for your e-store, it will present you the following error message:

“For security reasons, you cannot connect to the Back Office until after you have:
– deleted the /install folder
– renamed the /admin folder (eg. /admin302)

Please then access this page by the new url (eg. http://www.domain.tld/admin302)”

First, we will delete the “install” folder just what the message told us.

Next on the renaming folder, what i did is a different route. Open the file <install_dir>/admin/login.php where <install_dir> is the full path where you installed prestashop.

At around line 147, look for the code :

if(file_exists(PS_ADMIN_DIR.'/../install')) OR file_exists(PS_ADMIN_DIR.'/../admin'))

and replace it with

if(file_exists(PS_ADMIN_DIR.'/../install'))

and that’s it. HTH!

**UPDATE**
– (10-28-2012) According to Michael (see his comment below), in PrestaShop 1.5.1, it is moved to /controllers/admin/AdminLoginController.php on line 73. Thank you sir.

– In prestashop 1.4.7.3, the line to edit in the file(admin/login.php) is at ‘line 148’ .



5 Responses to Prestashop 1.4.3 cannot login to admin error after installation.

Avatar

Egor

October 13th, 2011 at 10:25 pm

спасибо!!!

thank you very much!

Avatar

Michael Storgaard

October 23rd, 2012 at 11:14 pm

In PrestaShop 1.5.1, it is moved to /controllers/admin/AdminLoginController.php on line 73.

Avatar

zeratool

October 25th, 2012 at 10:43 am

I haven’t checked that version yet, thanks for the info though.

Avatar

tas

January 12th, 2015 at 4:45 pm

How to login ? PleaSe help me

Avatar

zeratool

January 27th, 2015 at 2:26 pm

@tas, please read the blog post and follow carefully, you can do it.

Comment Form