How to remove security reasons Error in Prestashop


For security reasons, you cannot connect to the Back Office until after you have:

– delete the /install folder
– renamed the /admin folder (eg. /admin318)

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 /admin/login.php where 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’))

then you can updated file and refesh admin
Thanks

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s