Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Moving Directories


Guest

Recommended Posts

Hi

 

Can anyone assist with 'Moving Directories'?

 

I have moved every file from 'catalog' into my root (public_html) which took forever as my ftp program didn't do it and my file manager in cpanel only does one file/folder at a time.

 

Anyway, all moved and took out a couple of references in url's within includes/configure.php and admin/includes/configure.php

 

so where it said;

 

'define('DIR_FS_CATALOG', '/public_html/catalog');

 

now says;

 

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

 

BUT now the category links actually go to the product pages upon first click, BUT next time clicking the links, trys to go to the old address with 'catalog' in the path??

 

Really wierd, as the images on the page don't do it??

 

Can anyone help or tell me if i missed something.

 

Many thanks

 

Jaz

www.jaztec.co.uk

Link to comment
Share on other sites

post your configure.php files without the database connection info

 

Here is includes/configure.php;

<?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.jaztec.co.uk'); // eg, http://localhost - should not be empty for productive servers
 define('HTTPS_SERVER', ''); // eg, https://localhost - should not be empty for productive servers
 define('ENABLE_SSL', false); // secure webserver for checkout procedure?
 define('HTTP_COOKIE_DOMAIN', 'www.jaztec.co.uk');
 define('HTTPS_COOKIE_DOMAIN', '');
 define('HTTP_COOKIE_PATH', '/');
 define('HTTPS_COOKIE_PATH', '');
 define('DIR_WS_HTTP_CATALOG', '/');
 define('DIR_WS_HTTPS_CATALOG', '');
 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', 'pub/');
 define('DIR_FS_CATALOG', '/****/****/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', '*****_*****);
 define('DB_SERVER_PASSWORD', '*******');
 define('DB_DATABASE', '*****_*****');
 define('USE_PCONNECT', 'false'); // use persistent connections?
 define('STORE_SESSIONS', ''); // leave empty '' for default handler or set to 'mysql'
?>

 

HERE IS admin/includes/configure.php;

<?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.jaztec.co.uk'); // eg, http://localhost - should not be empty for productive servers
 define('HTTP_CATALOG_SERVER', 'http://www.jaztec.co.uk');
 define('HTTPS_CATALOG_SERVER', '');
 define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module
 define('DIR_FS_DOCUMENT_ROOT', '/****/*****/public_html/'); // where the pages are located on the server
 define('DIR_WS_ADMIN', '/admin/'); // absolute path required
 define('DIR_FS_ADMIN', '/****/*****/public_html/admin/'); // absolute pate required
 define('DIR_WS_CATALOG', '/'); // absolute path required
 define('DIR_FS_CATALOG', '/****/****/public_html/'); // absolute path required
 define('DIR_WS_IMAGES', 'images/');
 define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
 define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/');
 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_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/');
 define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/');
 define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');
 define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');
 define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');

// define our database connection
 define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers
 define('DB_SERVER_USERNAME', '****_*****');
 define('DB_SERVER_PASSWORD', '*******');
 define('DB_DATABASE', '****_****);
 define('USE_PCONNECT', 'false'); // use persisstent connections?
 define('STORE_SESSIONS', ''); // leave empty '' for default handler or set to 'mysql'
?>

 

thank you

 

Jaz

Link to comment
Share on other sites

forgot to mention, i have cleared all cookies, history and on/offline temp files/folders - numerous times.

 

Jaz

 

check if you have another configure file in your includes/local folder

:-)

Monika

 

addicted to writing code ... can't get enough of databases either, LOL!

 

my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum

 

Interactive Media Award July 2007 ~ category E-Commerce

my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ...

Link to comment
Share on other sites

I seemed to have fixed the problem by going into admin and deleting a category then re-entering it. This has solved the problem but I would like to know why this happened and how to prevent it if I move files again as i may not always be in a position to remove a category easily in the future.

 

Also can anyone tell me a quicker way of moving my files to a different directory.

Link to comment
Share on other sites

I seemed to have fixed the problem by going into admin and deleting a category then re-entering it. This has solved the problem but I would like to know why this happened and how to prevent it if I move files again as i may not always be in a position to remove a category easily in the future.

 

Also can anyone tell me a quicker way of moving my files to a different directory.

 

I could only begin to guess why that occurred, since your configure files look to be correct.

 

The only thing I can say in preparation for the future updates or moving, is don't use CPANEL to upload files, especially oscommerce. Get yourself a good FTP program instead. There are tons of them you can get online for free, or even awesome ones like Cute FTP or our program of choice, Smart FTP that has an unlimited trial on it.

 

Your typical FTP program offers two column view which shows your local files and the directory files on your hosting account, which makes it easy to then select all files locally, and drag n drop to the remote location.

 

CPANEL doesn't offer this and if you don't pay attention, you can easily accidentally upload a folder like /INCLUDES/ to the wrong location.

 

Just a quick tip. :thumbsup:

Sincerely,

Bruce

 

19 contributions submitted

Link to comment
Share on other sites

I could only begin to guess why that occurred, since your configure files look to be correct.

 

The only thing I can say in preparation for the future updates or moving, is don't use CPANEL to upload files, especially oscommerce. Get yourself a good FTP program instead. There are tons of them you can get online for free, or even awesome ones like Cute FTP or our program of choice, Smart FTP that has an unlimited trial on it.

 

Your typical FTP program offers two column view which shows your local files and the directory files on your hosting account, which makes it easy to then select all files locally, and drag n drop to the remote location.

 

CPANEL doesn't offer this and if you don't pay attention, you can easily accidentally upload a folder like /INCLUDES/ to the wrong location.

 

Just a quick tip.  :thumbsup:

 

 

I use WSFTP PRO all the time the only reason for moving in cpanel was due to ftp wouldnt do it after i selected all files and folders in catalog >move>public_html done nothing.

If one of the configure files was put in the wrong place the site would not have been operational apart from this one hiccup.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...