phantom309 Posted September 8, 2016 Share Posted September 8, 2016 I have just updated my shop to V, 1.6.1.7 and now can't login to back office I have tried to reset My password but bought fields keep clearing My Back office URL is https://southsidevacuum.com/admin-1426952052/index.php?controller=AdminLogin&token=92d14c10c6c96f32ce6f4e1172acf600&redirect=AdminProducts If I put the Wrong password in I get a Error There is one error. The Employee does not exist, or the password provided is incorrect. Link to comment Share on other sites More sharing options...
Bella81 Posted September 8, 2016 Share Posted September 8, 2016 Hi there Ive been stuck in this problem after upgrade. Make sure key '_COOKIE_KEY_' in file config/settings.inc.php Link to comment Share on other sites More sharing options...
phantom309 Posted September 8, 2016 Author Share Posted September 8, 2016 I am not sure what I am supposed to be looking for in the settings.inc.php ? Link to comment Share on other sites More sharing options...
rocky Posted September 8, 2016 Share Posted September 8, 2016 You should see lines like the following in config/settings.inc.php: define('_COOKIE_KEY_', '<long_string_of_characters>'); define('_COOKIE_IV_', '<short_string_of_characters>'); If those lines don't exist or they have changed, add them from a backup of the old website. Link to comment Share on other sites More sharing options...
imugur Posted October 23, 2016 Share Posted October 23, 2016 You should see lines like the following in config/settings.inc.php: define('_COOKIE_KEY_', '<long_string_of_characters>'); define('_COOKIE_IV_', '<short_string_of_characters>'); If those lines don't exist or they have changed, add them from a backup of the old website. Hello, I am having the same issue as reported above but the lines in settings.inc.php are the same. any other suggestions? Thanks Link to comment Share on other sites More sharing options...
jetway Posted October 23, 2016 Share Posted October 23, 2016 HI, may i ask from which version you upgraded from? Link to comment Share on other sites More sharing options...
imugur Posted October 23, 2016 Share Posted October 23, 2016 from 1.6.0.5 to 1.6.1.7 Link to comment Share on other sites More sharing options...
jetway Posted October 23, 2016 Share Posted October 23, 2016 (edited) I just did some testing to test the behavior you guys described. One question, are your customers still able to sign in with existing accounts created before upgrading? If not then the _COOKIE_KEY_ appears to have changed. If they still are able to sign in and you have access to the database we could reset your password like that. Edited October 23, 2016 by jetway (see edit history) Link to comment Share on other sites More sharing options...
imugur Posted October 23, 2016 Share Posted October 23, 2016 Store is in maintenance mode and I don't know how to make it live without back office access. Link to comment Share on other sites More sharing options...
jetway Posted October 23, 2016 Share Posted October 23, 2016 if you have access to the database you can enable it from there. in the ps_configuration table there is a value called PS_SHOP_ENABLED, its set to 0 in your case, that value needs to be changed to 1. But again, if anybody tries this, please be very careful when going into databases. (see attachment) Link to comment Share on other sites More sharing options...
imugur Posted October 23, 2016 Share Posted October 23, 2016 no, customer cannot login Link to comment Share on other sites More sharing options...
jetway Posted October 23, 2016 Share Posted October 23, 2016 (edited) 1st: If you create a new customer does it work? Can you sign in with the new account? 2nd: before you updated to 1.6.1.7 did you back up your files? If so, can you go into config/settings.inc.php and see if the current _COOKIE_KEY_ value is exactly the same as the backed up one? If that's not the case, please take the backed up one and overwrite the current one but before doing that make a copy of the current file just in case. When done try signing in with an account that was created before upgrading. Edited October 23, 2016 by jetway (see edit history) Link to comment Share on other sites More sharing options...
imugur Posted October 23, 2016 Share Posted October 23, 2016 yes, I can create a new user and yes, I did the backup and the values are identical. Just to mention that BO login page is not fully loaded the login text on login button is missing and the forgot password is not displayed. also on the browser console after the login I get the following error: jquery-1.11.0.min.js:4 POST http://e-cadouri.net/lucru/ajax-tab.php?rand=1477227292043 500 (Internal Server Error) Link to comment Share on other sites More sharing options...
jetway Posted October 23, 2016 Share Posted October 23, 2016 (edited) Did the update process run until the end without any errors? If an already existing customer requests a new password is it sent and does login work again. Edited October 23, 2016 by jetway (see edit history) Link to comment Share on other sites More sharing options...
imugur Posted October 23, 2016 Share Posted October 23, 2016 yes the upgrade process run without any errors. When an existing user tries to recover password there is an error. for the new user it sends the recovery link and password can be changed Link to comment Share on other sites More sharing options...
jetway Posted October 23, 2016 Share Posted October 23, 2016 (edited) if you go into ps_employee do you see your admin account? Edited October 23, 2016 by jetway (see edit history) Link to comment Share on other sites More sharing options...
imugur Posted October 23, 2016 Share Posted October 23, 2016 yes, it's there Link to comment Share on other sites More sharing options...
jetway Posted October 23, 2016 Share Posted October 23, 2016 is the value active set to 1? Link to comment Share on other sites More sharing options...
imugur Posted October 23, 2016 Share Posted October 23, 2016 yes Link to comment Share on other sites More sharing options...
jetway Posted October 23, 2016 Share Posted October 23, 2016 (edited) ok well lets try to reset your password in the database and see if that works: (see attachment) Please copy paste the current encrypted password into a file for backup and then Copy the _COOKIE_KEY_ value key into the value field of the password followed by your new password. if you key is 1234567890 then copy that into the value field followed by your password1234567890Testtesttesttest or whatever the function muss be MD5. And save.... Look if you can sign in again. Please see attachments Edited October 23, 2016 by jetway (see edit history) Link to comment Share on other sites More sharing options...
imugur Posted October 23, 2016 Share Posted October 23, 2016 I don't think it's a password issue Link to comment Share on other sites More sharing options...
imugur Posted October 23, 2016 Share Posted October 23, 2016 after I press login I don't get a password error but a jquery error: jquery-1.11.0.min.js:4 POST http://e-cadouri.net/lucru/ajax-tab.php?rand=1477230671365 500 (Internal Server Error) Link to comment Share on other sites More sharing options...
jetway Posted October 23, 2016 Share Posted October 23, 2016 (edited) Im pretty sure its because the values are missing. Login. The string given to jquery probably wants a value which it doesnt get. Edited October 23, 2016 by jetway (see edit history) Link to comment Share on other sites More sharing options...
imugur Posted October 23, 2016 Share Posted October 23, 2016 what values are missing? Link to comment Share on other sites More sharing options...
jetway Posted October 23, 2016 Share Posted October 23, 2016 (edited) If you go into translation -> Back office translation -> your language and go to the section Adminlogin, is there a translation for Sign in or Login? If so does it have any special characters like '^? Edited October 23, 2016 by jetway (see edit history) Link to comment Share on other sites More sharing options...
imugur Posted October 23, 2016 Share Posted October 23, 2016 should this be done in BO? I cannot access BO :-) Link to comment Share on other sites More sharing options...
jetway Posted October 23, 2016 Share Posted October 23, 2016 (edited) If you have access to the folders on the server then in: translations-> your language there is a file called admin.php. If you open it and go to $_LANGADM['AdminLoginbffe9a3c9a7e00ba00a11749e022d911'] there should be a translation for Login. Or do you only have the english language enabled? If so please make sure a value exists there for Login. Edited October 23, 2016 by jetway (see edit history) Link to comment Share on other sites More sharing options...
imugur Posted October 23, 2016 Share Posted October 23, 2016 OK, changed the values. I see the text now but still I cannot login Link to comment Share on other sites More sharing options...
jetway Posted October 23, 2016 Share Posted October 23, 2016 (edited) By the way what's the exact error you get? if you request a password, do you get it? Edited October 23, 2016 by jetway (see edit history) Link to comment Share on other sites More sharing options...
imugur Posted October 23, 2016 Share Posted October 23, 2016 Yes, I get a new password. As such there is no error. I can see it only in the Chrome console. The error is related to jquery: jquery-1.11.0.min.js:4 POST http://e-cadouri.net/lucru/ajax-tab.php?rand=1477233641266 500 (Internal Server Error) Link to comment Share on other sites More sharing options...
imugur Posted October 23, 2016 Share Posted October 23, 2016 more exactly: Failed to load resource: http://e-cadouri.net...d=1477233641266 the server responded with a status of 500 (Internal Server Error) Link to comment Share on other sites More sharing options...
jetway Posted October 23, 2016 Share Posted October 23, 2016 Any indication on what resource could not be loaded? Link to comment Share on other sites More sharing options...
imugur Posted October 23, 2016 Share Posted October 23, 2016 ajax-tab.php... Link to comment Share on other sites More sharing options...
jetway Posted October 23, 2016 Share Posted October 23, 2016 if you go into your admin folder, i believe its lucru for you, is there a file called ajax-tab.php in there? Link to comment Share on other sites More sharing options...
imugur Posted October 23, 2016 Share Posted October 23, 2016 of course it is :-) Link to comment Share on other sites More sharing options...
imugur Posted October 23, 2016 Share Posted October 23, 2016 is there a way to change BO language to English without accessing the BO? from config or tables? Link to comment Share on other sites More sharing options...
jetway Posted October 23, 2016 Share Posted October 23, 2016 (edited) in ps_employee you can set the back office language for the admin user. id_lang needs to be adjusted. Normally 1 is english. Edited October 23, 2016 by jetway (see edit history) Link to comment Share on other sites More sharing options...
imugur Posted October 23, 2016 Share Posted October 23, 2016 (edited) Didn't help changing the language. I started a new thread with a screenshot and a resume of my issue: https://www.prestashop.com/forums/topic/563100-login-to-back-office-is-not-working-after-upgrade-to-1617-from-1605/ Fix is related to translations-> your language -> admin.php. there are missing translations most probalby. change it with default English file found in translations/en folder and should work Edited October 26, 2016 by imugur (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now