lincy Posted April 19, 2003 Share Posted April 19, 2003 HI ! I am newbid. After installl 2.2 CVS Daily Snapshots (04/18/2003). I can run and test the sample site. But, after I try to add new product into my store. The product image can't show. Any attrib(URI) for product image was ........./catalog/images/. I don't know why I can't upload image while append new product. Anyone can help ?? Thanks. Link to comment Share on other sites More sharing options...
rubygirl Posted April 19, 2003 Share Posted April 19, 2003 is your image directory CHMOD 777? Link to comment Share on other sites More sharing options...
Guest Posted April 20, 2003 Share Posted April 20, 2003 Try this also: http://www.oscommerce.com/forums/viewtopic.php?t=41670 Link to comment Share on other sites More sharing options...
lincy Posted April 20, 2003 Author Share Posted April 20, 2003 is your image directory CHMOD 777? Yes, my catalog/images directory already chmod 777 after installed. It's possible php's setting problem ? Here is my server info : PHP Version 4.3.1 (Zend:1.3.0) Database MySQL 3.23.41 Http Server : Apache/1.3.27 (Unix) OS : Linux 2.4.8-26mdk Link to comment Share on other sites More sharing options...
lincy Posted April 20, 2003 Author Share Posted April 20, 2003 Try this also: http://www.oscommerce.com/forums/viewtopic.php?t=41670 Yes, I am using admin->categories/products and browse image file to upload them. I have try to upload fine via ftp too, But I don't know where can add the uri of those image files for product. By the way, All image for sample data after install osCommerce are working fine. I can see the product's image. Only the new product I add can't see the image. Link to comment Share on other sites More sharing options...
Guest Posted April 20, 2003 Share Posted April 20, 2003 could be your document_root setting in configuration.php Link to comment Share on other sites More sharing options...
rubygirl Posted April 20, 2003 Share Posted April 20, 2003 what is the error message that you are receiving when trying to add the products? Link to comment Share on other sites More sharing options...
lincy Posted April 20, 2003 Author Share Posted April 20, 2003 what is the error message that you are receiving when trying to add the products? Actully, when I press preview button. Havn't see any error message at following page, It's looking no any problem. But only have "X" mark (g) in the product image. After press insert buttion. Still havn't receive any error message. And succed to insert the new product. Link to comment Share on other sites More sharing options...
Ajeh Posted April 20, 2003 Share Posted April 20, 2003 When you get these errors ... are the images already uploaded to the site? If so, what happens on a new image that has never been uploaded to the site? Link to comment Share on other sites More sharing options...
lincy Posted April 20, 2003 Author Share Posted April 20, 2003 could be your document_root setting in configuration.php The DIR_FS_DOCUMENT_ROOT set to the root of website : /....../htdocs The path was same as httpd.conf document root setting. Should I set it to : /...../htdocs/catalog ?? Link to comment Share on other sites More sharing options...
Guest Posted April 20, 2003 Share Posted April 20, 2003 I have generally found that '$document_root' works fine on Apache... if not then whatever is under '_SERVER["DOCUMENT_ROOT"] under 'PHP Variables' when you run phpinfo Link to comment Share on other sites More sharing options...
Guest Posted April 20, 2003 Share Posted April 20, 2003 Should I set it to : /...../htdocs/catalog ?? No... should be /..whatever.../htdocs/ Link to comment Share on other sites More sharing options...
Ajeh Posted April 20, 2003 Share Posted April 20, 2003 Be careful on that / on the end of the path. Depending on your settings in the configure.php file, most often that is not included. Link to comment Share on other sites More sharing options...
lincy Posted April 20, 2003 Author Share Posted April 20, 2003 When you get these errors ... are the images already uploaded to the site? If so, what happens on a new image that has never been uploaded to the site? mmm, You are right, The images havn't upload........ Any idea ? :cry: Link to comment Share on other sites More sharing options...
lincy Posted April 20, 2003 Author Share Posted April 20, 2003 Be careful on that / on the end of the path. Depending on your settings in the configure.php file, most often that is not included. I am also try to add the "/" at end of path. The result was same. mmmm :x Link to comment Share on other sites More sharing options...
Ajeh Posted April 20, 2003 Share Posted April 20, 2003 Do you have a URL we can peek at? Link to comment Share on other sites More sharing options...
lincy Posted April 20, 2003 Author Share Posted April 20, 2003 Do you have a URL we can peek at? Sorry, Here is the url. http://shop.lincy.com/catalog/ :shock: Link to comment Share on other sites More sharing options...
Guest Posted April 21, 2003 Share Posted April 21, 2003 That doesn't appear to be a valid URL..... oh, and sorry 'bout the trailing slash... slip of the keyboard :roll: Link to comment Share on other sites More sharing options...
lincy Posted April 21, 2003 Author Share Posted April 21, 2003 That doesn't appear to be a valid URL..... oh, and sorry 'bout the trailing slash... slip of the keyboard :roll: Ooops, Look like DNS problem. I add this dns entry at 4/19. It's need 24-72hours to update world wide. :D Link to comment Share on other sites More sharing options...
lincy Posted April 21, 2003 Author Share Posted April 21, 2003 That doesn't appear to be a valid URL..... oh, and sorry 'bout the trailing slash... slip of the keyboard :roll: Ooops, Look like DNS problem. I add this dns entry at 4/19. It's need 24-72hours to update world wide. :D It's work now. Please have a look. Thanks 8) Link to comment Share on other sites More sharing options...
Guest Posted April 21, 2003 Share Posted April 21, 2003 Make sure that file_uploads=on in php.ini Link to comment Share on other sites More sharing options...
Guest Posted April 21, 2003 Share Posted April 21, 2003 Ok... uploads are on... try these settings in your configure.php files rather than what you have... first the admin: define('DIR_FS_DOCUMENT_ROOT', $DOCUMENT_ROOT); // where your pages are located on the server. if $DOCUMENT_ROOT doesnt suit you, replace with your local path. (eg, /usr/local/apache/htdocs) define('DIR_WS_ADMIN', '/admin/'); define('DIR_FS_ADMIN', DIR_FS_DOCUMENT_ROOT . DIR_WS_ADMIN); define('DIR_WS_CATALOG', '/catalog/'); define('DIR_FS_CATALOG', DIR_FS_DOCUMENT_ROOT . DIR_WS_CATALOG); and your catalog: define('DIR_FS_DOCUMENT_ROOT', $DOCUMENT_ROOT); // where your pages are located on the server. if $DOCUMENT_ROOT doesnt suit you, replace with your local path. (eg, /usr/local/apache/htdocs) define('DIR_FS_CATALOG', DIR_FS_DOCUMENT_ROOT . DIR_WS_CATALOG); You have trailing slashes on both your document_root settings... they definitely must go (I made a typo) Link to comment Share on other sites More sharing options...
lincy Posted April 21, 2003 Author Share Posted April 21, 2003 Ok... uploads are on... try these settings in your configure.php files rather than what you have... first the admin: You have trailing slashes on both your document_root settings... they definitely must go (I made a typo) Both file are change, But still won't work. And I received some warning message about session_start() funciotn. Any idea ? :roll: Link to comment Share on other sites More sharing options...
Guest Posted April 21, 2003 Share Posted April 21, 2003 there is whitespace at the end of the files you just edited... put your cursor after the last '?>' and hit your delete key until there is no whitespace Link to comment Share on other sites More sharing options...
lincy Posted April 21, 2003 Author Share Posted April 21, 2003 Both file are change, But still won't work. And I received some warning message about session_start() funciotn. Any idea ? :roll: Mmmmm, this message was cause by some blank line in configure.php. I already remove those blank line. :oops: Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.