Jump to content

Cannot login to backoffice


Recommended Posts

Guys

This seems to get a real bug ....

this is the second time my login to back office dissapears

I tried all the solutions from this forum but without luck.

The only thing that helps is reinstalling prestashop....

This is not a minor problem i worked hard to get the shop started and now i have to start all over again.

I made 3 accounts and none of them work anymore.

Plz fix a good module to recover admin passwords

Kind regards Patrick

Link to comment
Share on other sites

try this..

go to /admin/
rename password.php to password.old

download the file in this message, upload it to your /admin/ dir
run restore password feature.

delete password.php
rename password.old to password.php

forgot to mention that the new password will be 12345678 :) (in case you didn't get a email from the shop)

password.php

Link to comment
Share on other sites

Maybe i/we could rewrite a login script ... ???
Something like this ??

>
<?
require_once("index.php");
session_start();
mysql_connect("localhost","name_db", "password");
mysql_select_db("name_db");

if ($_GET['actie'] == 'uitloggen'){
   session_unset();
}
if ($_POST['loginuser'] && $_POST['loginpassword']){
   $getUser = mysql_query("select * from user where username='$_POST[loginuser]' and password='" . md5($_POST['loginpassword']) . "' and active='1'");

   if (mysql_num_rows($getUser) == 1){
       $_SESSION['username'] = $_POST['loginuser'];
       $_SESSION['password'] = md5($_POST['loginpassword']);        
       $inloggen = false;
   } else {
       print("
           ERROR user or password is not correct.

       ");
       $inloggen = true;
   }
}
print_r($_COOKIE[username]);

if (isset($_SESSION['username']) && isset($_SESSION['password'])){
   $query = "select * from user where username='$_SESSION[username]' and password='$_SESSION[password]' and active='1'";
   //print($query);
   $getUser = mysql_query($query);
   if (mysql_num_rows($getUser) <= 0){
       $inloggen = true;
       //print("niet ingelogd");
   } else {
       //print("ingelogd");
   }
} else {
   $inloggen = true;
}

if ($inloggen == true){
   print("


<form action='index.php?p=message' method='post'>
</pre>
<table border="0" align="center">Username<input type='text' name='loginuser'></td>
Password<input type='password' name='loginpassword'></td>
</table>
<br><br><br><center><input type='submit' name='submit' value='Login'>
       </form><br>







   ");
   exit;
}
?>
</ce

Link to comment
Share on other sites

ok... some more info...
maybe this helps....

After your password recovery file i get a redirect ( same as before )

but the difference is when i fill in another pass ( which i made up )
i does give me an error employee or password unknown...


so the pass is ok ... or should be...

but what else could it be ...


i tried safari / firefox and ie

emptied everything cache cookies the whole shabang ;-))

no luck!!

Link to comment
Share on other sites

I think i have no other solution then to reinstall

for the third time........ in maybe 2 weeks time

if it fails again ( which i hope doesn't happen.... )

i need to find another solution and it realy stinks i like prestashop

But i cant start all over again and again because of this error

grrr %$#@#$

Link to comment
Share on other sites

well i give up...

will backup reinstall

load my files ( which i added and changed )
will upload the old version mysql db but without the section for ps_employee .... )

i will fix a daily backup so when it happens again i will load a backup very annoying but i don't have another solution :down:

Link to comment
Share on other sites

Okay... i know this really s#cks

I reinstalled the whole thing, but i copied all the directories admin and others to my harddrive i deleted all config files like settings.inc.php in the admin config directory

and did the install process again after that i copied all the files back with FTP

This way i saved a lot of translations and settings and layout styles

i did loose the products and categories but... thats was one off my least of worries

it's probably not the answer you were waiting for but it did help me ;-)

( i use cron job in direct admin to fix me a daily backup )

So if this happens again i will use the backup from a day before

Link to comment
Share on other sites

I see this after login:

Address Not Found

Firefox can't find the server at admin1.

The browser could not find the host server for the provided address.

* Did you make a mistake when typing the domain? (e.g. "ww.mozilla.org" instead of "www.mozilla.org")
* Are you certain this domain address exists? Its registration may have expired.
* Are you unable to browse other sites? Check your network connection and DNS server settings.
* Is your computer or network protected by a firewall or proxy? Incorrect settings can interfere with Web browsing.

Link to comment
Share on other sites

<?php
define('_DB_SERVER_', 'localhost');
define('_DB_TYPE_', 'MySQL');
define('_DB_NAME_', 'ujeskuvoiruha');
define('_DB_USER_', 'ujeskuvoiruha');
define('_DB_PASSWD_', 'xxxxxxxxx');
define('_DB_PREFIX_', 'ps_');
define('__PS_BASE_URI__', '/');
define('_THEME_NAME_', 'prestashop');
define('_COOKIE_KEY_', 'RyIk2FCvd8BRKqsvmJMvbO1D2TH28Gyc1yHduFE5W0q3R0Pn9Eo5VOuw');
define('_COOKIE_IV_', 'hTE7Lrvz');
define('_PS_CREATION_DATE_', '2009-10-16');
define('_PS_VERSION_', '1.2.4.0');
?>

Link to comment
Share on other sites

<?php
define('_DB_SERVER_', 'localhost');
define('_DB_TYPE_', 'MySQL');
define('_DB_NAME_', 'ujeskuvoiruha');
define('_DB_USER_', 'ujeskuvoiruha');
define('_DB_PASSWD_', 'xxxxxxxxx');
define('_DB_PREFIX_', 'ps_');
define('__PS_BASE_URI__', '/');
define('_THEME_NAME_', 'prestashop');
define('_COOKIE_KEY_', 'RyIk2FCvd8BRKqsvmJMvbO1D2TH28Gyc1yHduFE5W0q3R0Pn9Eo5VOuw');
define('_COOKIE_IV_', 'hTE7Lrvz');
define('_PS_CREATION_DATE_', '2009-10-16');
define('_PS_VERSION_', '1.2.4.0');
?>



I have something like
<?php

define('__PS_BASE_URI__', '/shopdir/');

but i read posts only a / should also work ...

whats in your mysql db ?

ps_configuration also / ??
Link to comment
Share on other sites

31    PS_ORDER_RETURN_NB_DAYS    7
32 PS_MAIL_TYPE 3
33 PS_PRODUCT_PICTURE_MAX_SIZE 131072
34 PS_PRODUCT_PICTURE_WIDTH 64
35 PS_PRODUCT_PICTURE_HEIGHT 64
36 PS_INVOICE_PREFIX IN
37 PS_INVOICE_NUMBER 2
38 PS_DELIVERY_PREFIX DE
39 PS_DELIVERY_NUMBER 1
40 PS_INVOICE 1
41 PS_PASSWD_TIME_BACK 360
42 PS_PASSWD_TIME_FRONT 360
43 PS_DISP_UNAVAILABLE_ATTR 1
44 PS_VOUCHERS 1
45 PS_SEARCH_MINWORDLEN 3
46 PS_SEARCH_BLACKLIST
47 PS_SEARCH_WEIGHT_PNAME 6
48 PS_SEARCH_WEIGHT_REF 10
49 PS_SEARCH_WEIGHT_SHORTDESC 1
50 PS_SEARCH_WEIGHT_DESC 1
51 PS_SEARCH_WEIGHT_CNAME 3
52 PS_SEARCH_WEIGHT_MNAME 3
53 PS_SEARCH_WEIGHT_TAG 4
54 PS_SEARCH_WEIGHT_ATTRIBUTE 2
55 PS_SEARCH_WEIGHT_FEATURE 2
56 PS_SEARCH_AJAX 1
57 PS_TIMEZONE 374
58 PS_THEME_V11 0
59 PS_CARRIER_DEFAULT 2
60 PAYPAL_BUSINESS [email protected]
61 PAYPAL_SANDBOX 0
62 PAYPAL_CURRENCY customer
63 BANK_WIRE_CURRENCIES 2,1
64 CHEQUE_CURRENCIES 2,1
65 PRODUCTS_VIEWED_NBR 2
66 BLOCK_CATEG_DHTML 1
67 BLOCK_CATEG_MAX_DEPTH 3
68 MANUFACTURER_DISPLAY_FORM 1
69 MANUFACTURER_DISPLAY_TEXT 1
70 MANUFACTURER_DISPLAY_TEXT_NB 5
71 NEW_PRODUCTS_NBR 5
72 STATSHOME_YEAR_FROM 2009
73 STATSHOME_MONTH_FROM 10
74 STATSHOME_DAY_FROM 16
75 STATSHOME_YEAR_TO 2009
76 STATSHOME_MONTH_TO 10
77 STATSHOME_DAY_TO 16
78 PS_TOKEN_ENABLE 1
79 PS_STATS_RENDER graphxmlswfcharts
80 PS_STATS_OLD_CONNECT_AUTO_CLEAN never
81 PS_STATS_GRID_RENDER gridextjs
82 BLOCKTAGS_NBR 10
83 PS_SHOP_NAME ujeskuvoiruha.hu
84 PS_SHOP_EMAIL [email protected]
85 PS_MAIL_METHOD 1
/code]
Link to comment
Share on other sites

I have the same problem. I installed 2 times from 0 and I could not enter the Back Office.

I am installing the version 1.2.4

The error is as follows:
employee does not exist, or bad password

Check the table and there appears ps_employes record with the account recording in step 4 of the installer.

Juan Carlos Garcia
Medellin-Colombia-Sur America

Link to comment
Share on other sites

  • 1 month later...

I've just installed the latest version of prestashop and I also immediatey experienced this problem of not being able to access my admin page. After clearing my cookies, i can reaccess my admin page however always with the same notice ''Path is not the same between your browser and your server''.

Link to comment
Share on other sites

  • 4 weeks later...

We had this exact same problem after moving prestashop from our local server to our webserver. The problem was 2-fold:

1) /prestashop/config/settings.inc.php -> define('__PS_BASE_URI__', '/prestashop/'); was wrong.
2) A table had data that was wrong: ps_employee had the wrong password due to how we preformed the move.

Worked for us, hope this can help others.

Link to comment
Share on other sites

  • 4 weeks later...

Hope I don't misunderstand your topic but I told you to search forum for newadmin.php file .
Now use the attached file, put it in your admin folder and open it with your browser.
I got this file from this forum.It helps.

newadmin.php

Link to comment
Share on other sites

  • 1 year later...

no need to make a new install if you lost the admin password


Had the same problem but it easy to fix.. You have to do it in the data base....

Step 1: make a consumer accound on your site mail adress and password (write it down;)
Step 2: Go to your database and find Tabel: ps_customerand press the tab explore.
You will find the password string you just made with your user accound. but then as a string of letters and numbers. Copy this password string.
Step 3:Your still in the data base and go to Tabel: ps_employee And press explore tab. And then press the edit pensil off your old admin you will see your old email login.. Now paste the paswordstring into the passwd varchar(32) and push the save button...

And go now to you admin login page of your site use the admin email and password you changed and you can login!!!

So no need to make a new install..

Ohyeah don't use google chrome for database editing explorer works the best...

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