Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Need help..


Irata0062

Recommended Posts

I accidently unloaded the default catalog/includes/configure.php file and now my site is screwed. Is there a way to fix this without having to redo everything?

 

Sure...you have a backup right?

Link to comment
Share on other sites

:idea: :arrow: :shock:

 

:!: Personal Note so i remember.

 

:idea: Make daily backups of my database makeing sure to keep at least one day back and any current if i am editing, so i have 2 . :lol:

 

:!: Make sure i also make a second copy of all my .php pges in case i forget Rules. :lol:

 

:!: And last make sure i keep the newely backed up database and the newly backed up .php pages together so i do not get confused. :roll:

 

End personal note.

 

"I decided to store my backups on my hosts server and i lost everything when they went down" :!:

 

:idea: store the locally :P

:!: first rule: Allways make a backup of a file before you change it. & All code is CASE Sensitive

:!: second rule: Never copy and paist code unless you know it works.

:!: third rule: If you do not know ask.

:!: final rule: Have patience.

Link to comment
Share on other sites

Hi there,

 

 

If you lost your catalog/includes/configure file.....and want to fix it up, if you still have the admin side includes/config file, you can look to it and see what you need to place back in.....you can not use it on the cat side, but it will give you a good idea of what your catalog configure file is supposed to contain....

 

 

cheers,

Peter McGrath

-----------------------------

See my Profile (click here) for more information and to contact me for professional osCommerce support that includes SEO development, custom development and security implementation

Link to comment
Share on other sites

Backups would be good idea, huh? :oops:

 

Anyway, I got it back up but the nav menu in the top left corner is missing the link for "Top". Since the storefront is buried, top went to the main site index.

 

I am trying to find the link but not sure what file I need to be looking for.

 

Anyone want to help?

Link to comment
Share on other sites

Backups would be good idea, huh? :oops:

 

Anyway, I got it back up but the nav menu in the top left corner is missing the link for "Top". Since the storefront is buried, top went to the main site index.

 

I am trying to find the link but not sure what file I need to be looking for.

 

Anyone want to help?

 

Here's my configure.php, if it helps *Note, i am using a 3/31/2003 snapshot, and your paths will be slightly different*:

 

<?php

/*

 osCommerce, Open Source E-Commerce Solutions

 http://www.oscommerce.com



 Copyright (c) 2003 osCommerce



 Released under the GNU General Public License

*/



// Define the webserver and path parameters

// * DIR_FS_* = Filesystem directories (local/physical)

// * DIR_WS_* = Webserver directories (virtual/URL)

 define('HTTP_SERVER', 'http://www.domain.com'); // eg, http://localhost - should not be empty for productive servers

 define('HTTPS_SERVER', 'https://www.domain.com'); // eg, https://localhost - should not be empty for productive servers

 define('ENABLE_SSL', true); // secure webserver for checkout procedure?

 define('DIR_WS_CATALOG', '/'); // absolute path required

 define('DIR_WS_IMAGES', 'images/');

 define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');

 define('DIR_WS_INCLUDES', 'includes/');

 define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');

 define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');

 define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');

 define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');

 define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');



 define('DIR_WS_DOWNLOAD_PUBLIC', DIR_WS_CATALOG . 'pub/');

 define('DIR_FS_DOCUMENT_ROOT', '/home/domain/public_html');

 define('DIR_FS_CATALOG', '/home/domain/public_html/');

 define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

 define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');



// define our database connection

 define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers

 define('DB_SERVER_USERNAME', 'domain_db');

 define('DB_SERVER_PASSWORD', 'password');

 define('DB_DATABASE', 'domain_db');

 define('USE_PCONNECT', 'false'); // use persistent connections?

 define('STORE_SESSIONS', ''); // leave empty '' for default handler or set to 'mysql'

?>

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...