Jump to content

cant log into back office admin area redirects back to log in screen


Recommended Posts

i have installed prestashop 1.4.0.17. i changed the admin folder deleted the readme files. i go to the log in section for admin put in my email and password hit log in and it just takes me back to the log in screen no errors. i have tried this 3 different times deleting everything and redoing it nothing seems to work. i hit forget password it emails me a new password try to log in with that and nothing. i can not get to the back office admin area. i have tried this with chrome ff and IE clearing the cookies and caches in each one before trying again. no go. is it possible something on the server side or something i am missing causing this?

Link to comment
Share on other sites

Same problem here. When I try to go directly to the storefront the page won't load and I get an error from FireFox saying "Firefox has detected that the server is redirecting the request for this address in a way that will never complete."

Glad I'm not the only one who can't get the new install to work.

Link to comment
Share on other sites

Ok, I found why the problem occur and I need to know if the fix willl work for people having the same problem.
Can you print me the variable $_SERVER using the var_dump or print_r debug function ?

var_dump($_SERVER);




Here is the fix if your $_SERVER['PHP_SELF'] isn't correctly set :

Edit the file : YOUR_PRESTASHOP_DIRECTORY/YOUR_ADMIN_DIRECTORY/login.php

Go to the line 43 and change the $_SERVER['PHP_SELF'] to $_SERVER['REQUEST_URI'] variable.

This seems to appear when the apache server version s older than 2.0 or 2.2, I advice you to upgrade your php and apache version if you can.

If the session still doesn't work and your PHP_SELF variable is correct, a fix will be deployed on the SVN for another problem liable to the session.

I hope this help

Regards

Link to comment
Share on other sites

Hi there,

I've just uploaded my PS 1.4.0.17 to my server, after developing it in the usual way on Localhost.
I keep getting redirected to the login screen after typing in my password correctly in the Backend.
The front end wont load at all.
" Not Found The requested URL /woodbridgefruittrees/index.html was not found on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request."

It is hosted in a subfolder. My static site was there and was working fine, as I had setup the .htaccess file to redirect to the subfolder.

I've updated the config file with the PS_BASE_URI to correspond with my subfolder.

Any chance you can help me with this?

Thanks Nik (hobart, tasmania)

my site is:

www.woodbridgefruittrees.com.au

Here are my config settings (changed slightly for privacy)

<?php

define('__PS_BASE_URI__', '/woodbridgefruittrees/');
define('_MEDIA_SERVER_1_', '');
define('_MEDIA_SERVER_2_', '');
define('_MEDIA_SERVER_3_', '');
define('_PS_CACHING_SYSTEM_', 'MCached');
define('_PS_CACHE_ENABLED_', '0');
define('_THEME_NAME_', 'wft-theme');
define('_DB_NAME_', 'omitted_woodbridgefruittreesDB');
define('_MYSQL_ENGINE_', 'InnoDB');
define('_DB_SERVER_', 'localhost');
define('_DB_USER_', 'omitted_wftuser');
define('_DB_PREFIX_', 'ps_');
define('_DB_PASSWD_', 'password');
define('_DB_TYPE_', 'MySQL');
define('_COOKIE_KEY_', 'Basdofihadfoi');
define('_COOKIE_IV_', 'sdfasdvsdvasdv');
define('_RIJNDAEL_KEY_', 'cvadsv90d0fjiqwejfdncvonikx');
define('_RIJNDAEL_IV_', 'ooaspdFINOPIIENASDOVINDSasdffbr);
define('_PS_VERSION_', '1.4.0.17');

?>



Here is the .htaccess file that's in my public_html folder.

# Bluehost.com
# .htaccess main domain to subdirectory redirect
# Copy and paste the following code into the .htaccess file
# in the public_html folder of your hosting account
# make the changes to the file according to the instructions.
# Do not change this line.
RewriteEngine on
# Change yourdomain.com to be your main domain.
RewriteCond %{HTTP_HOST} ^(www.)?woodbridgefruittrees.com.au$
# Change 'subdirectory' to be the directory you will use for your main domain.
RewriteCond %{REQUEST_URI} !^/woodbridgefruittrees/
# Don't change this line.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# Change 'subdirectory' to be the directory you will use for your main domain.
RewriteRule ^(.*)$ /woodbridgefruittrees/$1
# Change yourdomain.com to be your main domain again.
# Change 'subdirectory' to be the directory you will use for your main domain
# followed by / then the main file for your site, index.php, index.html, etc.
RewriteCond %{HTTP_HOST} ^(www.)?woodbridgefruittrees.com.au$
RewriteRule ^(/)?$ woodbridgefruittrees/index.html [L]

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