Andyman53 Posted November 26, 2003 Posted November 26, 2003 Whenever i try to add an image i can't. I tried going through browse and going to my network places and going to the ftp and linking to it. The image for that product shows up but it becomes the image for all the products. I tried linking to it but it doesn't work. the path is public_html/store/images/bridal_#1/image.gif if i put bridal_#1/image.gif it shows the path as public_html/store/admin/images/bridal_#1 and says it cannot be found. What can i do to link to my images properly?
FIMBLE Posted November 26, 2003 Posted November 26, 2003 Hi, Drop the # then it will work Sometimes you're the dog and sometimes the lamp post [/url] My Contributions
Andyman53 Posted November 26, 2003 Author Posted November 26, 2003 Tried changing both the images and the folder. Doesn't work. I am typing bridal1/#2286.gif into the image field. (Changed the folder name). Warning: move_uploaded_file(/home/bettywal/public_html/store/images/bridal1/2286.gif): failed to open stream: No such file or directory in /home/bettywal/public_html/store/admin/includes/functions/general.php on line 789 Warning: move_uploaded_file(): Unable to move '/tmp/phpNvXmMb' to '/home/bettywal/public_html/store/images/bridal1/2286.gif' in /home/bettywal/public_html/store/admin/includes/functions/general.php on line 789 and BTW the path on the FTP is exactly: public_html/store/images/Bridal1/#2286.gif
FIMBLE Posted November 26, 2003 Posted November 26, 2003 I am not sure by your answer if you have renamed the .giif from #2286.gif to plain 2286.gif the # means something in PHP language Sometimes you're the dog and sometimes the lamp post [/url] My Contributions
Andyman53 Posted November 27, 2003 Author Posted November 27, 2003 i renamed the folder from bridal_#1 to bridal1 i also trie renaming some pics from #2286.gif and #2284.gif to 2286.gif and 2284.gif. Didn't make a difference.
Jeremy at oddly enough Posted November 27, 2003 Posted November 27, 2003 Did you try accessing admin on the machine the original gif is on, and browsing for it? Alternately, you could ftp the image named just 2286.gif into the images folder. Then you database needs to be set so that products_image for that particular product is set to 2286.gif in the products table. I'm not positive if you can do that from admin, I just manipulate the database itself. Jeremy
Jeremy at oddly enough Posted November 27, 2003 Posted November 27, 2003 As a separate issue, you might consider switching from .gifs to .jpgs . I was curious so I converted a jpg to gif and it more than doubled in size for the same picture (63 kb vs 25 for jpg). Jeremy Any expert opinions on this out there?
Andyman53 Posted November 27, 2003 Author Posted November 27, 2003 Yeah...these gifs were on the old server that we migrated from (yahoo store) (pshhht..n00b style) from a while ago...also i'd like to keep the gif's in a seperate folder but if worst comes to worst i guess i can just put them all in the images folder. I want to keep them sort of organized. So just put all the images in the /store/images folder?
Andyman53 Posted November 27, 2003 Author Posted November 27, 2003 now i put them in the /images folder. Still doesn't work. Added read permissions for all users, group and owner, nothing changed. Checked the path to be the same. EXACT SAME PATH. OMGG
Andyman53 Posted November 27, 2003 Author Posted November 27, 2003 BTW reading your post twice...The images can be browsed by me on my machine and on the ftp server. Somehow OsCommerce doesn't like the way i'm linking to them. It gives me an error message telling me that the file doesn't exist and gives me the exact path in the error message....Very Confusing...
Jeremy at oddly enough Posted November 27, 2003 Posted November 27, 2003 Strange. Gotta love these computers! How about you post the exact error messages you get?
Andyman53 Posted November 27, 2003 Author Posted November 27, 2003 Tried changing both the images and the folder. Doesn't work. I am typing bridal1/#2286.gif into the image field. (Changed the folder name). Warning: move_uploaded_file(/home/bettywal/public_html/store/images/bridal1/2286.gif): failed to open stream: No such file or directory in /home/bettywal/public_html/store/admin/includes/functions/general.php on line 789 Warning: move_uploaded_file(): Unable to move '/tmp/phpNvXmMb' to '/home/bettywal/public_html/store/images/bridal1/2286.gif' in /home/bettywal/public_html/store/admin/includes/functions/general.php on line 789 and BTW the path on the FTP is exactly: public_html/store/images/Bridal1/#2286.gif Posted. Heh.
Andyman53 Posted November 28, 2003 Author Posted November 28, 2003 Basically the above message means that i am providing the correct path but oscommerce doesn't think so.
Jeremy at oddly enough Posted November 28, 2003 Posted November 28, 2003 I thought you had removed all # signs. Start from scratch: in catalog/images create a folder and call it bridal1 in this folder place the gif for #2286, and name it 2286.gif edit your database directly, in the products table change the entry for products_image to bridal1/2286.gif you can do that inphpmyadmin, or with a mysql command: UPDATE products products_image='bridal1/2286.gif' WHERE products_id=the product id number of the item in question try that out. You won't be able to get the pictures in a separate folder using the admin interface, you need to modify the database directly if you want to add in the extra path level. Jeremy
Andyman53 Posted November 28, 2003 Author Posted November 28, 2003 I even put all the images in the /images folder for the hell of it. I typed 2286.gif in the image field and still got that error message. I guess i can do that PHP thing. And where is this inphpmyadmin? I usually edited php files in notepad.
Andyman53 Posted November 28, 2003 Author Posted November 28, 2003 EPpp...I found the phpmyadmin stuff. LoL. thx. But still. That path should work in the images folder. I'm much more comfortable using the admin interface than a command line interface (php text).
Andyman53 Posted November 28, 2003 Author Posted November 28, 2003 In trying that out...It seems that there is no products_image field. I see a products_description, product_id, product_name...etc. And the image path i am entering in seems persistent to go into the product url field.
Jeremy at oddly enough Posted November 28, 2003 Posted November 28, 2003 Are you using 2.2? My database has 46 tables, the products table has the products_image field in the fourth column, the products_url is in a different table, products_description. It seems odd that it's going into products url, there must be a setting in admin that controls that function, There's nothing in my products url fields. Jeremy
Recommended Posts
Archived
This topic is now archived and is closed to further replies.