JK1 Posted December 12, 2012 Share Posted December 12, 2012 Hi All, I discovered that my site had gone down, and after a little investigation I found that the settings.inc.php file was empty. I have reset the password on my database, but foolishly don't have a backup of that file. I've tried to re-create it, but I still can't get the site back up nor can I get into the backoffice area. Please help Thanks John Link to comment Share on other sites More sharing options...
El Patron Posted December 13, 2012 Share Posted December 13, 2012 what version of PS? PLEASE always tell the community this...else..well...we wander off...consider this a pity response... Link to comment Share on other sites More sharing options...
JK1 Posted December 13, 2012 Author Share Posted December 13, 2012 what version of PS? PLEASE always tell the community this...else..well...we wander off...consider this a pity response... Sorry about that. I don't actually know. Installed about June 2011 ish. Is there a way I can find out? Link to comment Share on other sites More sharing options...
El Patron Posted December 13, 2012 Share Posted December 13, 2012 you can look at your mysql table 'configuration' field PS_VERSION_DB, this will tell you your version....let's assume it's 1.4.6..see below for an example...see YOUR for information you will need to update....the KEY's, well you are screwed here, so all customers, will need to request lost password....nor will your back office password work...you can search this forum (use google search) to change admin password via mysql db. note: you may need to change other things like theme name..version etc... good luck <?php define('_DB_SERVER_', 'YOURDBSERVERNAME'); define('_DB_TYPE_', 'MySQL'); define('_DB_NAME_', 'YOURDBNAME'); define('_DB_USER_', 'YOURDBUSER'); define('_DB_PASSWD_', 'YOURDBPASSWORD'); define('_DB_PREFIX_', 'YOURDBPREFIX_'); define('_MYSQL_ENGINE_', 'InnoDB'); define('__PS_BASE_URI__', '/FOLDERNAME IF NOT ROOT/'); define('_PS_CACHING_SYSTEM_', 'MCached'); define('_PS_CACHE_ENABLED_', '0'); define('_MEDIA_SERVER_1_', ''); define('_MEDIA_SERVER_2_', ''); define('_MEDIA_SERVER_3_', ''); define('_THEME_NAME_', 'prestashop'); define('_COOKIE_KEY_', 'MiwJsDdQrNfrYHLr9F43kXeT5jPQWhsWWk2fw4sqFkzQOWzQmnpLWKU7'); define('_RIJNDAEL_KEY_', 'PXhSZshymPm0oay7RdMxSXzH8PgjzZcV'); define('_COOKIE_IV_', 'nFtUjswj'); define('_RIJNDAEL_IV_', 'Bt5snM5BS9LcjpMq1xCspw=='); define('_PS_CREATION_DATE_', '2012-08-15'); define('_PS_VERSION_', '1.4.6.2'); ?> Link to comment Share on other sites More sharing options...
JK1 Posted December 13, 2012 Author Share Posted December 13, 2012 Thanks for that. I've managed to get the shop up again, but now can't get into the backoffice at all. I'm not even getting the Username request. Any clues? Link to comment Share on other sites More sharing options...
El Patron Posted December 13, 2012 Share Posted December 13, 2012 when you say you got the shop back up...are you saying you can see the front office? and when you say you are not getting the username request...well what are you getting? try screen shots...a picture is worth a 1000 worlds Link to comment Share on other sites More sharing options...
JK1 Posted December 13, 2012 Author Share Posted December 13, 2012 when you say you got the shop back up...are you saying you can see the front office? and when you say you are not getting the username request...well what are you getting? try screen shots...a picture is worth a 1000 worlds Yes, I've got the front office up again (although can turn it on and off directly from mysql. When I go to the admin page all I get is a blank screen. Link to comment Share on other sites More sharing options...
El Patron Posted December 13, 2012 Share Posted December 13, 2012 try this.. config/config.inc.php set errors on... @ini_set('display_errors', 'on'); define('_PS_DEBUG_SQL_', true); Link to comment Share on other sites More sharing options...
JK1 Posted December 13, 2012 Author Share Posted December 13, 2012 Ok I get: Warning: Cannot modify header information - headers already sent by (output started at /data/www/amphibian/santi-store/config/settings.inc.php:24) in /data/www/amphibian/santi-store/adminjk/header.inc.php on line 15 Warning: Cannot modify header information - headers already sent by (output started at /data/www/amphibian/santi-store/config/settings.inc.php:24) in /data/www/amphibian/santi-store/adminjk/header.inc.php on line 16 Warning: Cannot modify header information - headers already sent by (output started at /data/www/amphibian/santi-store/config/settings.inc.php:24) in /data/www/amphibian/santi-store/adminjk/header.inc.php on line 17 Warning: Cannot modify header information - headers already sent by (output started at /data/www/amphibian/santi-store/config/settings.inc.php:24) in /data/www/amphibian/santi-store/adminjk/header.inc.php on line 18 Warning: Cannot modify header information - headers already sent by (output started at /data/www/amphibian/santi-store/config/settings.inc.php:24) in /data/www/amphibian/santi-store/classes/Cookie.php on line 261 Warning: Cannot modify header information - headers already sent by (output started at /data/www/amphibian/santi-store/config/settings.inc.php:24) in /data/www/amphibian/santi-store/classes/Tools.php on line 54 Link to comment Share on other sites More sharing options...
El Patron Posted December 13, 2012 Share Posted December 13, 2012 warnings are just that...warnings...they should not keep you from getting your login screen... maybe clear your browser cache and cookies..that is the new 'have you tried turn your computer off and back on" if that does not work....then it may be due to the keys in settings.inc.php...but I 'may' be out of guesses... Link to comment Share on other sites More sharing options...
JK1 Posted December 13, 2012 Author Share Posted December 13, 2012 Thanks for your help so far. Clearing cache/cookies doesn't seem to have helped so hopefully someone else might have more guesses. Link to comment Share on other sites More sharing options...
ritesh.cis Posted December 2, 2013 Share Posted December 2, 2013 Hello guys, Please help me .I copied my old prestashop extension to new server and run by changing in database and setting.inc.php file it run fine with no issue,but i am not able to login my backoffice. I login if i used the old setting.inc.php file of old server.How can i solve this issue without sibmitting the request for forgot password. 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