Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Images are not showing up


myfirststore

Recommended Posts

Posted

Hi all,

 

I have looked for related topics and I have found a good number but I couldnt exactly find the solution to the problem.

 

The image that is uploaded when a new product is entered in the admin site, is not visible to the customer. It is visible in the preview before insert and not after insert.

 

If I see whether the image is there on the server, it is saved in the images folder.

 

Thanks for the help

Vivek

Posted

check the path to your root directory of your oscommerce installtion.

Please read this line: Do you want to find all the answers to your questions? click here. As for contribution database it's located here!

8 people out of 10 don't bother to read installation manuals. I can recommend: if you can't read the installation manual, don't bother to install any contribution yourself.

Before installing contribution or editing/updating/deleting any files, do the full backup, it will save to you & everyone here on the forum time to fix your issues.

Any issues with oscommerce, I am here to help you.

Posted
Can you please be more specific

 

DIR_FS_CATALOG_IMAGES path is correctly pointing to the right directory

but i dont see the images showing up

Posted
DIR_FS_CATALOG_IMAGES path is correctly pointing to the right directory

but i dont see the images showing up

 

If you are using additional images, make sure that the setting in configuration is :

Product Info: Product Image Behavior popup

Product Info: Group parent with sub-images true

 

and if you set Product Info: Product Image Behavior product_info

then set Product Info: Group parent with sub-images false.

 

that is what i do when my images is not showing up.

Rocdy

 

Beginner in php programming and still learning from this forums.

Special thanks for Oscommerce Community Forums that help me a lot. :-)

Posted
If you are using additional images, make sure that the setting in configuration is :

Product Info: Product Image Behavior popup

Product Info: Group parent with sub-images true

 

and if you set Product Info: Product Image Behavior product_info

then set Product Info: Group parent with sub-images false.

 

that is what i do when my images is not showing up.

 

 

These are not extra images.

As every product carries with it an image, these are just those images.

 

It says the file upload was successful when the images are uploaded for the preview of new product entry.

When I insert the product entry, I dont see the image in the customer site.

However the image is getting stored in the catalog/images folder

 

Please help!

Posted
These are not extra images.

As every product carries with it an image, these are just those images.

 

It says the file upload was successful when the images are uploaded for the preview of new product entry.

When I insert the product entry, I dont see the image in the customer site.

However the image is getting stored in the catalog/images folder

 

Please help!

What permissions do you have on the images directory?

Posted
What permissions do you have on the images directory?

 

 

777 - All permissions

 

ANd also I can see that the owner of the new images uploaded is "apache" rather than my username

these images have rw-r-r

 

default images of oscommerce are under my username with the same permissions

both the product images and the default images are in the same images folder

Posted
777 - All permissions

 

ANd also I can see that the owner of the new images uploaded is "apache" rather than my username

these images have rw-r-r

 

default images of oscommerce are under my username with the same permissions

both the product images and the default images are in the same images folder

That's a mistake.

 

With it set like that it's only a matter of time until you get hacked.

:o

 

It's just a question of "When?" and "How bad?"

:blush:

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Posted
That's a mistake.

 

With it set like that it's only a matter of time until you get hacked.

:o

 

It's just a question of "When?" and "How bad?"

:blush:

 

Yeah, I know that. But I wanted to tell that even with 777 permissions I couldnt see what I want.

Posted

It'd be a lot easier to help if you gave a URL.

 

If you don't want posts here to show up in searches for you site give the URL like:

 

yoursite

 

DOT

 

com

 

/catalog

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Posted
It'd be a lot easier to help if you gave a URL.

 

If you don't want posts here to show up in searches for you site give the URL like:

 

yoursite

 

DOT

 

com

 

/catalog

 

I actually dont want to give the URL - so please bear with me.

I will repeat the problem again.

 

- When I upload an image at the time of product entry through admin, I can see the image on the preview page - saying image upload was succesdful.!

- But when I insert the new product into database, its not showing on the customer site!

- The product images are sitting on the server in the catalog/images folder

- The images which are entered through admin, are having apache as their owner, rather than my username - is this a problem?

- What should be the permissions for images folder and the images inside it?

 

I would be really kind to have some help soon -

with greats thanks

vivek

Posted

Hey vivek,

 

Not having a URL to actually see what's going on will make helping rather difficult.

 

Try this test; type the image address into the URL and see if shows up or what error message you receive.

Something like this - http://yourdomain.com/catalog/images/imagename.jpg

 

You might possibly have something defined wrong in one of your configure.php files.

 

catalog > includes > configure.php

define('DIR_WS_IMAGES', 'images/');

define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/');

 

catalog > admin > includes > configure.php

define('DIR_WS_IMAGES', 'images/');

define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/');

 

I am not sure why apache would be listed as the owner and not you, that doesn't sound right and might be a problem.

 

Permissions:

Image folder = 755

Image files = 644

- :: Jim :: -

- My Toolbox ~ Adobe Web Bundle, XAMPP & WinMerge | Install ~ osC v2.3.3.4 -

Posted
Hey vivek,

 

Not having a URL to actually see what's going on will make helping rather difficult.

 

Try this test; type the image address into the URL and see if shows up or what error message you receive.

Something like this - http://yourdomain.com/catalog/images/imagename.jpg

 

You might possibly have something defined wrong in one of your configure.php files.

 

catalog > includes > configure.php

define('DIR_WS_IMAGES', 'images/');

define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/');

 

catalog > admin > includes > configure.php

define('DIR_WS_IMAGES', 'images/');

define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/');

 

I am not sure why apache would be listed as the owner and not you, that doesn't sound right and might be a problem.

 

Permissions:

Image folder = 755

Image files = 644

 

Hey Jim,

 

I can see the image when I type its address in the browser.

The configure.php files look fine.

 

With 755 permissions, I will get an error saying the /images folder is not writable

 

I can actually see all the default images in the images folder on the customer site, except for the ones which I am adding.

Posted
Hey Jim,

 

I can see the image when I type its address in the browser.

The configure.php files look fine.

 

With 755 permissions, I will get an error saying the /images folder is not writable

 

I can actually see all the default images in the images folder on the customer site, except for the ones which I am adding.

 

Hey vivek,

 

Gee, I have no problem with 755 folder permissions. 777 leaves you open for hackers. There has been discussions here before pertaining to folder permissions, especially 777. You might want to search for some of those. From what I've browsed through, osC is fine with 755 and it's usually a host thing. Can you upload images to the image folder with permissions set to 744, 764 or 644?

 

If you weren't able to see the image after typing in the direct URL, I would have taken a quess that you might have hotlink protection activated at your host cPanel. But, now you have me stumped.

 

When at your site, right click over a broken image and chose Properties. Check the exact url address that displays. Does that address allow you to see the image? Reason I ask, maybe something is getting added to the image location code as it displays on the page.

- :: Jim :: -

- My Toolbox ~ Adobe Web Bundle, XAMPP & WinMerge | Install ~ osC v2.3.3.4 -

Posted
Hey vivek,

 

Gee, I have no problem with 755 folder permissions. 777 leaves you open for hackers. There has been discussions here before pertaining to folder permissions, especially 777. You might want to search for some of those. From what I've browsed through, osC is fine with 755 and it's usually a host thing. Can you upload images to the image folder with permissions set to 744, 764 or 644?

 

If you weren't able to see the image after typing in the direct URL, I would have taken a quess that you might have hotlink protection activated at your host cPanel. But, now you have me stumped.

 

When at your site, right click over a broken image and chose Properties. Check the exact url address that displays. Does that address allow you to see the image? Reason I ask, maybe something is getting added to the image location code as it displays on the page.

 

I can upload an image only with 777 now.

when I right click for properties on the image - I see correct location for image - http://domain/x/catalog/images

 

:( :(

Archived

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

×
×
  • Create New...