Jump to content

settings.inc.php file is gone blank


Recommended Posts

Hello,

 

I'm sorry if this topic is already discussed before. I've searched but nothing came with the problem I have. Somehow my settings.inc.php file is gone blank. There is no script in it. I don't know how this could happened. As I can remember, since my disk space quota in my hosting provider is over limit, I changed the theme of my prestashop. An since then, I have my settings.inc.php file gone blank.

 

However, I can restore some data such as database name, database user, password, but how can I get data for these files:

_COOKIE_KEY_,

_COOKIE_IV_

_RIJNDAEL_KEY_

_RIJNDAEL_IV_

 

Is there any chance that I get data for that? Can I reset/restore that data?

 

I'll very appreciates every suggestions from you to solve this problems, since it's being stressful for me to figure it out.

 

Thank you.

Link to comment
Share on other sites

As far as I know, there is no way to restore those, if you don't have a backup of the shop (shame on you), you are in serious trouble.

You may be able restore your products, categories orders, etc, but none of the passwords (customers or backoffice) will work.

 

You can try to make a new install of the exactly same version of PS, then copy the old /themes/ /img/ and /modules/ from the old site, to the new site.

Also copy over all the database tables

 

You will have to reset the backoffice password, and all your customer would also have to use the password reminder in order to get a new password, but at least all their order history and info will still be there.

 

Edit:

You may be able to simply copy the settings.inc.php from the new install to the old install and just reset the passwords.

 

 

Finally, do yourself a favor and get a proper backup in place, you can check out http://www.presto-ch...hop-backup.html which lets you automatically backup your site in 3 locations, locally, via email, or on Amazon S3 cloud server, with 3 layers of protection, you will never have this issue again....

  • Like 1
Link to comment
Share on other sites

yes, back up is a good idea, though we hate to hear it after it's gone. :)

 

You could just load a new settings.inc.php file, update you db information there, and reset your back office admin password, if you decide to go that way we can help you fix you admin password but you will need phpmyadmin access. as for your customer pwds, without the proper key, you would need to email them to login using lost password.

 

you are looking in config/settings.inc.php yes?

 

Suerte!

Link to comment
Share on other sites

  • 11 months later...

Hi,

 

I had the same problem twice. The settings.inc file turns blank by itself... Does anybody no why?

I back-up regularly my site so i can put this file back whenever i want but never know when this file will go blank again...

 

Thanks

Ben

Link to comment
Share on other sites

  • 10 months later...
×
×
  • Create New...