Karlin Posted September 10, 2003 Posted September 10, 2003 I am having the exact same problem, and am also running MS2.2. Did you ever get this problem resolved? If so, please explain how. I sure could use the help! Thanks, Karlin
Guest Posted September 10, 2003 Posted September 10, 2003 I am having the exact same problem? what problem exactly? and maybe a url so we can check The_Bear
Karlin Posted September 10, 2003 Author Posted September 10, 2003 The URL is http://www.karlin.com/scripts/OS_Commerce_...script/catalog/ But the problem I am having is in the Admin panel. I can't get the images to load when adding a New Product. I have uploaded all images to the /catalog/images directory via FTP, and file permissions are set to 777, so I am don't think I am having a permissions problem. When adding the product through the Admin panel, I try to put the name of the image in the box. But it only wants my local computer name, not the name of the image on the server. I don't know if this is related or not, but when I go into File Manager, I see this: File Manager .../OS_Commerce_Shopping_script/catalog//images What file should I modify to fix the // problem? I have poured over my configure.php files, but can't seem to find any misconfiguration. I am really frustrated! Any help would be greatly appreciated. Regards, Karlin
Guest Posted September 10, 2003 Posted September 10, 2003 in your configure.php do have it like this define('DIR_WS_IMAGES', 'images/'); or like this define('DIR_WS_IMAGES', '/images/'); ? The_Bear
Karlin Posted September 10, 2003 Author Posted September 10, 2003 admin/includes/configure.php: define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/');
Guest Posted September 10, 2003 Posted September 10, 2003 When you insert product, in Products Image: do you write> images/your image.jpg ? The_Bear
Karlin Posted September 10, 2003 Author Posted September 10, 2003 I tried that, but when I click Preview, I receive a message at the top of the page saying: Warning: No file uploaded. The image still shows the red X.
Guest Posted September 10, 2003 Posted September 10, 2003 The Warning: No file uploaded.is just a notice to say that you did not upload a file from your computer to your serverAre your images on your computer in the same folder as where you want them on your server (when you use the browse button) ? The_Bear
Karlin Posted September 10, 2003 Author Posted September 10, 2003 The images on my local computer are in this directory: C:Karlin EnterprisesPHP ScriptsOS Commerce Shopping Cartimages On the server, they are located at: .../OS_Commerce_Shopping_script/catalog/images
Karlin Posted September 10, 2003 Author Posted September 10, 2003 I moved the images folder on my local directory to correspond with the server directory structure, and voila! Now it works. I had no idea the folders had to be in the same places between server and local machine. Thank you, now I can get on with business! Yeah! Regards, Karlin
Karlin Posted September 10, 2003 Author Posted September 10, 2003 Well, I still have the problem with the // in the path in File Manager: File Manager .../OS_Commerce_Shopping_script/catalog//images Anyone know how to resolve this?
rgcote Posted September 17, 2003 Posted September 17, 2003 I was having problems similar to what you reported. I tried to upload an image as part of creating a new product and I got the "File not uploaded" message and a broken image. What I ended up discovering after way too many hours was that osCommerce appears to depend on the presence of a directory named "tmp" in the document root directory. I did not have one there but once I added it, the product creation and image upload worked fine. Hope this helps.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.