Jump to content

installing prestashop into a directory fails when load adminstration page


Recommended Posts

Hi there

curoius if anyone knows how to correct this error. on my personaly webserver i have to install prestashop into a directory ie http://domain.com/store.

the problem being you can not log into the admistration panel the website works fine just the adminstration does not..

 

I tried differening version of prestashop and all the same problem. in the older versions i would get the login screen but after you login it would fail to load. in newest version you do not even get the login screen

 

but I move prestashop to the root of the web directory it then works fine. it seems your code is a bit fudged up it not taking into consideration of directories above root,

 

hence probably why alot of people are getting this same error of not being able to log into adminstration page from time to time . depending probably on how the web server translates it..

 

any help would be appreciated

Link to comment
Share on other sites

humm okay I see prestashop 14 will work after the login times out and you have to log in again then you canaccess the adminstration panel

 

the newest one nope still can not

 

but I see in the set up option you can define the the url directory just not at setup, so I assume the prestashop newest it probably not determining the directory properly. and that maybe where the problem lies for the admintration page

Link to comment
Share on other sites

You can also reset the admin login detail.

 

1) Login into your Hosting Control Panel and open PHPMyAdmin tool (or the tool which is used for managing databases). If you’re not sure how to locate and open it, please consult with your Hosting Provider.

2) From the list in the left pane, you should select the database which you created for your Prestashop CMS.

3) You should see a list of tables that are used in the selected database, but we don’t need to work with any of them directly. Click on the SQL tab

4) Now paste the following line of code into “Run SQL query/queries” text area

UPDATE `ps_employee` SET `passwd` = MD5(‘<_COOKIE_>password’) WHERE `ps_employee`.`id_employee` = 1;

Before pressing the GO button to execute this query, you need to modify it a bit:

- replace the <_COOKIE_> with the actual cookie code, which you can find in the /config/settings.inc.php file of your Prestashop engine. The code value will be different for your site, as this is unique key generated for the store during installation

 

 

<?php

define('__PS_BASE_URI__', '/gordon/presta135/');
define('_THEME_NAME_', 'theme065');
define('_DB_NAME_', 'gordon_presta135');
define('_DB_SERVER_', 'localhost');
define('_DB_USER_', 'root');
define('_DB_PREFIX_', 'ps_');
define('_DB_PASSWD_', '');
define('_DB_TYPE_', 'MySQL');
define('_COOKIE_KEY_', 'WRhw145L5k724dJEFti0a0nHuDjC8AWvbioCWOjA2cebIbv48VjEfzX2');
define('_COOKIE_IV_', 'mPBcrcuj');
define('_PS_VERSION_', '1.3.5.0');

?>
[font="Courier New"]

[/font]

 

Replace anything you want.

 

Now press the GO button to execute the query.

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