Jump to content

[Solved]Cannot Access Admin / Backend


Recommended Posts

Hello

 

I have been a trustfull user of Prestashop since 2013 and have been very happy with it, as well as the modules for the system. 

 

However, yesterday when i tried to access my admin page i get this page, after typing in the correct information, although i get the same page even if its a wrong email - i dont get the page if it isnt a valid email.

wuiCCrK.jpg

 

So far i have tried:

 

- Deleting smartychache (cache & compile)

- Deleting cookies on my computer

- Using my phone / different computer

I still get the above page.

 

I haven't changed anything, updated or deleted a module in at least a month.

Any ideas? Help is very much appreciated! 


**Solution**
My .htaccess file had no php version assigned. Adding the newest version to the file, fixed the problem.

Edited by arleren (see edit history)
Link to comment
Share on other sites

In the config folder turn on error reporting edit defines.inc.pgp and change false to true as below. see if it now shows an error.

Post that back here and we may be able to help.

 

 

/* Debug only */
if (!defined('_PS_MODE_DEV_')) {
define('_PS_MODE_DEV_', true);
}
Link to comment
Share on other sites

If you have not altered any files in the classes or controllers folder try uploading those again overwriting the existing files and see if you can log in.

If not upload the Admin folder again and see if you can log in.

 

What was the last module or customization you may have done. 

Link to comment
Share on other sites

The last module i have used was a slide on my front page.

The last updated, i really dont remember, since i go by a mantra, if it works why update (this might have been bad?)

My last backup is at least half a year ago. Will i loose the customer purchases in this time, if i simply upload the admin folder?

Edited by arleren (see edit history)
Link to comment
Share on other sites

Upload a fresh copy of Admin, Classes and Controllers these would be the main files that would have to do with BO.

Do not use a backup for now if you do not have the unzipped original version download it unzip and use those folder and files.

Link to comment
Share on other sites

The last module i have used was a slide on my front page.

 

The last updated, i really dont remember, since i go by a mantra, if it works why update (this might have been bad?)

 

My last backup is at least half a year ago. Will i loose the customer purchases in this time, if i simply upload the admin folder?

Delete your slide module from ftp.

Link to comment
Share on other sites

That was in the nest round if this did not work I am assuming since the shop was working that the module was not the issue.

 

If the core file did not get things going again upload your backup of just the folders you uploaded, Admin, Classes, Controllers and Core.

 

 

Then we will see whats next.

Link to comment
Share on other sites

What version of prestahsop are you using.

Try to install another shop is a sub folder.

Then go to the database and export both as backups, now import the datbase from the original store to the new install database.

See if you can login to the new install if so test the FO but first go to Preferences, Seo & Urls and change the url to point to the sub folder.

 

Do this abd we wil go from here.

 

Also was the store working after the last install of the slider or did this start after that, if it started after do as suggsted above and go to the modules folder and delete the module, worth a try.

Link to comment
Share on other sites

I have just tried copying the classes, controllers and admin folder from my last backup, i got the same blank white box, with no error.

I still get the "index.php?controller=AdminDashboard&token=b1a147d205ad09c6ab9e57c442feecfc" Could this be the cause?

 

I didnt change anything in two weeks up to now. So i don't suspect it to be the cause.

Edited by arleren (see edit history)
Link to comment
Share on other sites

With out access there is not much I can do, you will have to try what I mentioned above and install a test store.

 

When you uploaded the files from the fresh version what it the same version that you have installed or was it from 1.6.1.4

Link to comment
Share on other sites

I had this same issue. What worked for me was replacing everything in my adapter, admin, class, config, controllers, and core folders with the default files from those folders included in a fresh copy of the presta version you are using. Then going into phpadmin and restoring my presta from an SQL backup of when I was last able to log in. After that, I completely cleared my browser cache and was able to log in again. I still don't know what caused the issue or exactly which one of those folders fixed it, but I assumed I had probably accidentally messed up something in one of those folders and that was the only way to resolve my issue. I'm using 1.6.1.4. Hope that helps!

 

 

Hello

 

I have been a trustfull user of Prestashop since 2013 and have been very happy with it, as well as the modules for the system. 

 

However, yesterday when i tried to access my admin page i get this page, after typing in the correct information, although i get the same page even if its a wrong email - i dont get the page if it isnt a valid email.

wuiCCrK.jpg

 

So far i have tried:

 

- Deleting smartychache (cache & compile)

- Deleting cookies on my computer

- Using my phone / different computer

I still get the above page.

 

I haven't changed anything, updated or deleted a module in at least a month.

Any ideas? Help is very much appreciated! 

Link to comment
Share on other sites

So i have found a solution.

 

I talked to my hosting provider and asked if they had changed anything and explained my problem. They then told me that my .htaccess file didnt have a php version defined - simply adding 5.6 fixed the problem.

Thanks everyone for the support! Very much appreciated! 

Link to comment
Share on other sites

So explain a little more maybe show what you added in case someone else has the same issue.

 

Interesting that this only started recently, had they upgraded their PHP version/s.

 

Just incase I took a look at my .htaccess file and see nothing that defines the PHP version. ???

Link to comment
Share on other sites

  • 2 weeks later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...