Accidentally overwrote config.php

My site’s all messed up now. I tried to restore it by copying and pasting the config.php from my local environment and then setting the proper values for db connection. This didn’t work at first because I kept getting this error:


[QUOTE]Fatal error: Call to undefined function: mysqli_connect() in /home/nbomike/public_html/core/db_mysql41.php on line 25[/QUOTE]



So I changed the “Database layer” in config.php from “mysql41” to “mysql” and I guess it’s working (I’m not getting that error any more)? The site is skinless and imageless. Can someone please help?! :confused:



I have a couple of questions that might help me figure it out. In config.php, there’s this line of code:


@include_once($cscart_dir . DS . 'local_conf.php');



Can somebody tell me where local_conf.php is located? I can’t find it anywhere. I even tried doing a search for the file on my local machine and it’s not there. Also, does anybody know where $cscart_dir is initialized? I noticed that the paths for many of the subsequent variables (including local_conf.php) are set using this variable. Maybe $cscart_dir is causing the paths to be set to the wrong values…

I can’t find it too. Is it developer setting?

If it is then why does it stay in release pack?

  1. If you don’t have the original files from the file area at the helpdesk, download them.
  2. Inside the zip folder is a config.php that you can use.

I ran into a similar problem when I tried to rename my site…thought I could just rename it and change the config (and possibly run the install), but didnt happen and messed everything up, I ended up having to start fresh and reinstall, wouldnt even let me upload a new config file. Hopefully you will find a better solution and not have to go through the reinstall again!