Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

New Product Image Don't Show


lincy

Recommended Posts

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

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

 

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

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

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

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

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

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

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

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

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

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

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

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...