protogabe Posted September 19, 2005 Posted September 19, 2005 This has got to be the biggest hurdle I'm having so far installing OSC . I searched and read every topic on this on the forums. I migrated the site from my local machine to my remote server and the catalog works but in admin I can't upload any images and get this error: Error: Catalog images directory does not exist: http://mysite.com/newsite/images/ Here were the fixes from other threads (none on which worked): 1.CHMOD images directory to 755 or 755. Did not work. 2.Deleted images directory and mkdir images again, repeat step 1. Did not work. 3.Ask my hosting company to release the folder. It's not locked and they would not freeze a folder. I'm running lots of sites. Apparantly, this might be due to my configure.php file so here's the meat of it, nothing looks out of whack, I've inserted and reinserted paths for days now. $proto1 = "mysite.com/newsite"; // Define the webserver and path parameters // * DIR_FS_* = Filesystem directories (local/physical) // * DIR_WS_* = Webserver directories (virtual/URL) define('HTTP_SERVER', 'http://' . $proto1 .''); // eg, http://localhost - should not be empty for productive serv$ define('HTTP_CATALOG_SERVER', 'http://' . $proto1 . ''); define('HTTPS_CATALOG_SERVER', 'http://' . $proto1 . ''); define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module define('DIR_FS_DOCUMENT_ROOT', '/home/levinej/public_html/newsite/catalog/'); // where the pages are define('DIR_WS_ADMIN', '/admin/'); // absolute path required define('DIR_FS_ADMIN', 'home/levinej/public_html/newsite/admin/'); // absolute pate required define('DIR_WS_CATALOG', '/'); // absolute path required define('DIR_FS_CATALOG', 'http://mysite.com/newsite/'); // 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/'); Lastly, the oddest part is that if you do upload a picture, sometimes it goes to the root on the sites directory beneath the public_html directory. Strange. Also, if you try to upload, the admin tell you: Warning: Image not uploaded. but displays the image in the preview product section assuming you had manually put the image in the images folder. This is confusing and leaving me with a brain aneurysm. Any help appreciated. Yes, the path is a variable $proto1, which doesn't affect it if I hard-coded or not.
Guest Posted September 19, 2005 Posted September 19, 2005 you have no http://www.domain.com listed at all in your configure.php file. are you 'running' lots of osCommerce sites?
protogabe Posted September 19, 2005 Author Posted September 19, 2005 you have no http://www.domain.com listed at all in your configure.php file. are you 'running' lots of osCommerce sites? <{POST_SNAPBACK}> If you look at the code you will see the domain listed (without the WWW of course, which shouldn't matter). By the way, i put the WWW in there and still the error. No, this is the only osC site.
Guest Posted September 23, 2005 Posted September 23, 2005 Just solved this problem, and found out that it has to do with the following: define('DIR_FS_ADMIN', 'home/levinej/public_html/newsite/admin/'); // absolute pate required define('DIR_WS_CATALOG', '/'); // absolute path required define('DIR_FS_CATALOG', 'http://mysite.com/newsite/'); // absolute path required The last line should be an absolute path, and no http:/// something. So in your case it should look like: define('DIR_FS_CATALOG','home/levinej/public_html/newsite/'); Or something like where your catalog directory is. hope it helps
Recommended Posts
Archived
This topic is now archived and is closed to further replies.