Jump to content

Backoffice - login screen keeps appearing


Recommended Posts

The installation itself went very smooth, and the frontend works like a charm. However, I managed to login to the backend once and after that I keep getting the loginscreen.

I don't get any errors and the login doesn't fail, but after logging in I keep getting the login screen and I don't get the backoffice anymore :(

Anyone have any clue?

Server has: IIS
PHP 5
MySql 4

Link to comment
Share on other sites

Hi,
Did you check your config/setting.inc.php file and define('__PS_BASE_URI__', '/');

If prestashop is not installed at the root folder you have to change this value.

I succeed in resolving this problem thanks to that one time.

Regards

Link to comment
Share on other sites

  • 2 weeks later...

Having a similar problem, sometimes we get in to BO and can stay there for several minutes. At other times it throws you back immediately, it seems very random.

Same problem for FO, even products in the cart don't stay there as they should.

Link to comment
Share on other sites

I have made a new installation of Prestashop where I didn't specify the email/mail servers up front and I haven't experienced any problems anymore.

When I did another install where I did inter the email/ mail servers during installation, I had the same error again.

Link to comment
Share on other sites

s'up okay i'm new to prestashop but i have a rough idea of what you are talking about and it's irritating/ annoying so well this worked for me on other problems and issues whilst i was creating other websites... umm okay here are the steps you shld follow.


1). Firefox has a known issue v3 that cause your login to go back to the Login page again. Change browsers. Try either safari or IE (the latest one). If it fails, try doing this in step 2.


2). Go to tools and clear all cookies/ cache. Many a times , your cookies/ cache are having problems and they log you in like a target system as not logged in yet. Clearing the cookies and cache may work and this should save you some time and for many, hours wasted.


3). Okay, If all else fails, you might be suffering from a malware/spyware that acts as a data logger. As such, certain servers that i know are able to register this and deem your access as a malware/keylogger issue denying you access to the admin page (as your stuff is in the root folder, it MAY affect their servers. They wanna take precautions against this). Check for malware/ keyloggers using stuff like adware free or Avast! and remove the issues. Not really sure about this cause i keep my computer clean and not inject dlls. and stuff randomly into my computer. Try this 3 steps first. Failing which, read around and ask the pros (: hope that helped.

Link to comment
Share on other sites

chances are as you guys mention about the server smtp. issue, the wrong ports keyed in and wrong encryption might lead to repercussions that are annoying. Check with your hosting provider for accurate details. Most of the time this can be found in your CP -> server information/settings. I used the same method as you guys giving them my smtp. information. been logged on to backoffice for the last 3 hours and it doesn't seem to be giving me problems.

Link to comment
Share on other sites

  • 3 weeks later...

We had this bug with prestashop when it was first released a few years back. Not sure if the fix would be the same, but it was to do with the url you were using to access your admin pages. If you used the url without the www prefix you would not be able to login, and everytime you tried it was asthough the screen had just refreshed. Using the www prefix would work fine.

An easy fix would be to use a 301 redirect from your htaccess file to redirect any addresses from http://mydomain.com to http://www.mydomain.com

Link to comment
Share on other sites

jhnstcks, it doesn't matter if I use the www prefix or not, the problem shows up anyway.
It's really annoying... the Prestashop team has been researching it but the fix is not ready.

Yesterday I installed the last test version, but it works the same way, after a couple of clicks I get logged out from the Back Office..

I just wonder, am I the only person in this world who is having this problem??? how did you all the rest who had this problem fix it?
I'm thinking about changing my host, but is it really a host or a Prestashop issue to resolve?

Link to comment
Share on other sites

  • 2 weeks later...
jhnstcks, it doesn't matter if I use the www prefix or not, the problem shows up anyway.
It's really annoying... the Prestashop team has been researching it but the fix is not ready.

Yesterday I installed the last test version, but it works the same way, after a couple of clicks I get logged out from the Back Office..

I just wonder, am I the only person in this world who is having this problem??? how did you all the rest who had this problem fix it?
I'm thinking about changing my host, but is it really a host or a Prestashop issue to resolve?


No you aren't. Atleast me and another guy seem to have the problem and still unsolved... Also with little searching a lot more turn out..

-NRJ
Link to comment
Share on other sites

  • 9 months later...

Same problem here. At first I tested PS in virtual private server and everything worked very well and quickly. Then I moved the site to Sigmatic, the production server, and got this very same logout problem. I thought something went wrong on moving, but that wasn't the problem as the same problem occurs on fresh install.

Have you find any cure for this? I've never had similar problem with other e-commerce products or sites. It's little bit frustrating to change the already paid hosting, just to get rid of this small but very annoying issue.

Link to comment
Share on other sites

Same problem here. At first I tested PS in virtual private server and everything worked very well and quickly. Then I moved the site to Sigmatic, the production server, and got this very same logout problem. I thought something went wrong on moving, but that wasn't the problem as the same problem occurs on fresh install.

Have you find any cure for this? I've never had similar problem with other e-commerce products or sites. It's little bit frustrating to change the already paid hosting, just to get rid of this small but very annoying issue.


Didn't find cure for this. Was also using Sigmatic. They do seem to have some problems with certain scripts.. Vtiger was another problematic script... Probably has to do with how the servers are connected to each other but I have no idea what's the cause of the problem. I decided to user another web hosting company from now on... It's just plain easier.
Link to comment
Share on other sites

  • 4 weeks later...
  • 2 weeks later...

Please help!
I've just uploaded my fully working version of PS 1.4.0.17 from my local host up to my server.
I've updated the config file with the PS_BASE_URI to correspond with my subfolder.
My prestashop was replacing my html static site which was working fine.

I get the login screen to my backend, but it redirects to the login screen even after inputting the correct password.
The front end wont load at all.

Can someone point me in the right direction?
THanks, Nik

Link to comment
Share on other sites

  • 5 weeks later...
  • 5 months later...
  • 1 month later...
  • 1 month later...

this problem often occurs in prestashop newest version.

All you have to do is to change some coding in cookie.php file, there are two changes that you have to do.

 

from your cpanel, cookie.php is located at prestashop/classes/Cookie.php (Prestashop=public html)

 

 

Step 1

Line 65, try to find this code:

$this->_expire = isset($expire) ? intval($expire) : (time() + 1728000);

 

change 172800 value into 3600, after you change, it must be like this:

$this->_expire = isset($expire) ? intval($expire) : (time() + 3600);

 

Step 2

Line 195, try to find this code:

AND (!isset($this->_content['remote_addr']) OR $this->_content['remote_addr'] == ip2long(Tools::getRemoteAddr()))

 

just add "//" (without quotes of course) exactly before "AND", so it would be like this:

//AND (!isset($this->_content['remote_addr']) OR $this->_content['remote_addr'] == ip2long(Tools::getRemoteAddr()))

 

then save your file, and try to refresh your browser. I Also have the cookie.php file in my blog so you can download it without change you file coding because I have modified it for you and it's FREE. Login page keeps appearing on Back office

Good Luck

Link to comment
Share on other sites

  • 6 months later...

I had the same problem after moving my server (a fysical shutdown).

I found the solution in the documentation of the php setcookie() function:

 

- Make sure your server time is correct. Mine wasn't and that caused the problem.....

 

O, and this may help others:

 

- IE8 and IE9 seem not to accept cookies from localhost or 127.0.0.1.

 

 

Regards,

 

Kjeld

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