How To Migrate an OsCommerce Store

F91ACF13-7A7E-4213-9A97-7B6E3F00C25C.jpg 721E1829-E28E-470B-A3A6-DBC855089C6B.jpg

I recently moved an oscommerce store I host from one server to another. But when I did this I wanted to change some of the core elements, such as making the domain http://www.address.com instead of http://www.address.com/catalog which looks messy.
So after I migrated the site using my favorite FTP program for the Mac, TRANSMIT (Big Up!), I made sure to change all the obvious settings in my admin/includes/configure file as well as my includes/configure.php file.

After a bit more fiddling with porting over the SQL database the store was running great, however the ADMIN section was having heaps of problems, beginning with the images directory. I kept getting the following error.
Error: Catalog images directory does not exist:

Problem: this directory DOES exist.
Fix: change the admin/includes/configure.php file to reflect the following…

old: define(‘DIR_WS_CATALOG_IMAGES’, DIR_WS_CATALOG . ‘images/’);
new: define(‘DIR_WS_CATALOG_IMAGES’, ‘../images/’);
old: define(‘DIR_WS_CATALOG_IMAGES’, DIR_WS_CATALOG . ‘images/’);
new: define(‘DIR_FS_CATALOG_IMAGES’,’../images/’);

reload the admin page and the error will disappear.

_The Sheik

  • Trackback are closed
  • Comments (0)
  1. No comments yet.

You must be logged in to post a comment.