Jump to content

Back Office Issue : Automatically logout after select any back office menu


fiasgd

Recommended Posts

my problem is identical to

There is no solution posted to the post I linked above. When I log in to the backoffice I see these lines in the console

The resource https://junkyard.land/Backoffice/themes/default/public/b073f5972d9c4cc1b8ae8e071e441376.preload.woff2 was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it has an appropriate `as` value and it is preloaded intentionally.

jquery-3.5.1.min.js:2          POST https://junkyard.land/Backoffice/index.php/common/notifications?_token=TOKEN=XXXXX 403

jquery-3.5.1.min.js:2          POST https://junkyard.land/Backoffice/index.php/common/notifications?_token=TOKEN=XXXXX 403

DevTools failed to load source map: Could not load content for https://junkyard.land/js/jquery/jquery-migrate.min.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE

I don't know what I could've changed as the shop worked perfectly 3 days ago, and I haven't changed anything within the last 3 days.

 

GENERAL INFORMATION:

The shop is version 8.0.1

The shop is running off a ubuntu VPS

I have tried using my regular home IP

I have tried clearing cookies

 

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

solution was posted on another thread

"

Hi guys,

I know it's been a while since the last answer in this topic but I've been through this yesterday and wasted a couple of hours so I hope I could help anyone in the same situation than mine's.

My problem/environment
I've launched an AWS EC2 and installed Apache2 + PHP 7.2 + PrestaShop 1.7.6 and been through this error. The answer is the one pointed here (in another topics): you should disable the IP Checking on cookies in backoffice. What isn't clear anywhere is that at least in my case I couldn't change the option in the BO because I couldn't even login (any link I click logs me out again) to change the option.
I have an Elastic IP to my EC2 but at this very moment it wasn't associated yet. It may be the problem, but I've not tested.

My solution
Login in the mysql (with mysql CLI or phpMyAdmin) and update the configuration row PS_COOKIE_CHECKIP on table yourprefix_configuration like this:

UPDATE yourprefix_configuration SET value = 0 WHERE name = 'PS_COOKIE_CHECKIP';

Hope it helps.

Regards."

 

Link to comment
Share on other sites

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...