Community Forums

Images Not Being Added

General support for technical problems with OpenCart v0.x

Images Not Being Added

Postby Andrew_M » Sun Jan 04, 2009 5:48 pm

Images do not display when I try to upload them.  ::)

Also, how do you make the image full size or a large thumbnail on the product's page?

Thanks.
Andrew_M
 
Posts: 31
Joined: Fri Jan 02, 2009 5:38 pm

Re: Images Not Being Added

Postby Qphoria » Sun Jan 04, 2009 9:57 pm

Does following this FAQ help: http://forum.opencart.com/index.php/topic,2626.0.html ?

The image thumbnail size is set on the 'image' tab of Admin->Configuration->Setting
Image Image
Donate!|OpenCart Basics|GeoZones
Help me get more development cloud storage - Click Here to get DropBox
User avatar
Qphoria
Administrator
 
Posts: 18212
Joined: Mon Jul 21, 2008 7:02 pm
Donate to Qphoria

Re: Images Not Being Added

Postby Andrew_M » Mon Jan 05, 2009 3:12 am

Qphoria wrote:Does following this FAQ help: http://forum.opencart.com/index.php/topic,2626.0.html ?

The image thumbnail size is set on the 'image' tab of Admin->Configuration->Setting

If the image is bigger than the 100x100 default, will it just not display?

Doesn't it automatically re-size it?

The permissions of the /images and /images/cache are both 755.

Please help. Thanks.
Andrew_M
 
Posts: 31
Joined: Fri Jan 02, 2009 5:38 pm

Re: Images Not Being Added

Postby fido-x » Mon Jan 05, 2009 6:25 am

Andrew_M wrote:If the image is bigger than the 100x100 default, will it just not display?

The image will be resized to the size you set in the admin. If the image is larger than the size you set, it will be reduced to that size.

Permissions on /image and /image/cache should be set to 777. You will also need to address this issue http://forum.opencart.com/index.php/topic,2510.msg12993.html#msg12993 in /library/filesystem/upload.php.
Image
If you're not living on the edge ... you're taking up too much space!
Multi-Vendor Plugin for OpenCart 1.5.1.x
Have I helped you?
User avatar
fido-x
 
Posts: 1960
Joined: Fri Jun 27, 2008 5:09 pm
Location: Tasmania, Australia

Re: Images Not Being Added

Postby Qphoria » Mon Jan 05, 2009 10:54 am

fido-x wrote:Permissions on /image and /image/cache should be set to 777.


Many hosts won't allow 777. I think 755 should be as high as anyone needs to go
Image Image
Donate!|OpenCart Basics|GeoZones
Help me get more development cloud storage - Click Here to get DropBox
User avatar
Qphoria
Administrator
 
Posts: 18212
Joined: Mon Jul 21, 2008 7:02 pm
Donate to Qphoria

Re: Images Not Being Added

Postby Andrew_M » Mon Jan 05, 2009 2:09 pm

The images still are not displaying.

They are uploaded though because I can see them in the /image directory.

I set the permissions to 777 but I'm still not seeing the images.

Help?

Thanks.
Andrew_M
 
Posts: 31
Joined: Fri Jan 02, 2009 5:38 pm

Re: Images Not Being Added

Postby Qphoria » Mon Jan 05, 2009 2:17 pm

Where are you not seeing them?

When you insert them in the Image area of the admin panel, do you see the new image in the list with a little thumbnail?
if yes....
When you add a new product and select the image from the dropdown, do you see a little thumbnail there?
if yes....
Do you see them on the store front in the product page?
Image Image
Donate!|OpenCart Basics|GeoZones
Help me get more development cloud storage - Click Here to get DropBox
User avatar
Qphoria
Administrator
 
Posts: 18212
Joined: Mon Jul 21, 2008 7:02 pm
Donate to Qphoria

Re: Images Not Being Added

Postby Andrew_M » Tue Jan 06, 2009 12:39 am

Qphoria wrote:When you insert them in the Image area of the admin panel, do you see the new image in the list with a little thumbnail?


No.
Qphoria wrote:When you add a new product and select the image from the dropdown, do you see a little thumbnail there?


No.
Qphoria wrote:Do you see them on the store front in the product page?


No.
Andrew_M
 
Posts: 31
Joined: Fri Jan 02, 2009 5:38 pm

Re: Images Not Being Added

Postby fido-x » Tue Jan 06, 2009 1:06 am

fido-x wrote:Permissions on /image and /image/cache should be set to 777. You will also need to address this issue http://forum.opencart.com/index.php/topic,2510.msg12993.html#msg12993 in /library/filesystem/upload.php.


The save function in the aforementioned file has a problem in that it doesn't set permissions on the uploaded image file correctly. Follow the link and make the necessary changes.
Image
If you're not living on the edge ... you're taking up too much space!
Multi-Vendor Plugin for OpenCart 1.5.1.x
Have I helped you?
User avatar
fido-x
 
Posts: 1960
Joined: Fri Jun 27, 2008 5:09 pm
Location: Tasmania, Australia

Re: Images Not Being Added

Postby shughey » Tue Jan 06, 2009 7:02 pm

Anyone know why when I add an image it is not being added?  The only way I can add the image is to first add it to the cart as it is normally done, then save the image to a file on my PC and then copy the image into the image folder.

Thanks,
Sam
shughey
 
Posts: 45
Joined: Sun Oct 26, 2008 4:02 pm

Re: Images Not Being Added

Postby Qphoria » Tue Jan 06, 2009 7:26 pm

Give the fix that fido-x points to a try. This has been addressed in the next RC version (6), scheduled for release tonight
Image Image
Donate!|OpenCart Basics|GeoZones
Help me get more development cloud storage - Click Here to get DropBox
User avatar
Qphoria
Administrator
 
Posts: 18212
Joined: Mon Jul 21, 2008 7:02 pm
Donate to Qphoria

Re: Images Not Being Added

Postby shughey » Fri Jan 09, 2009 7:12 pm

fido-x wrote:
fido-x wrote:Permissions on /image and /image/cache should be set to 777. You will also need to address this issue http://forum.opencart.com/index.php/topic,2510.msg12993.html#msg12993 in /library/filesystem/upload.php.


The save function in the aforementioned file has a problem in that it doesn't set permissions on the uploaded image file correctly. Follow the link and make the necessary changes.



I'm a little confused about this.  Are you stating the following:

function save($key, $file) {
if (file_exists($file)) @unlink($file);
$status=@copy($_FILES[$key]['tmp_name'], $file);
if ($status) @unlink($_FILES[$key]['tmp_name']);
return $status;
}

should be changed to this:

function save($key, $file)
{
if (file_exists($file))
{
@unlink($file);
}
$status = @copy($_FILES[$key]['tmp_name'], $file);
if ($status)
{
@chmod($file, 0644);
@unlink($_FILES[$key]['tmp_name']);
}
return $status;
}


Thanks,
Sam
shughey
 
Posts: 45
Joined: Sun Oct 26, 2008 4:02 pm

Re: Images Not Being Added

Postby Qphoria » Fri Jan 09, 2009 7:23 pm

Yea try that
Image Image
Donate!|OpenCart Basics|GeoZones
Help me get more development cloud storage - Click Here to get DropBox
User avatar
Qphoria
Administrator
 
Posts: 18212
Joined: Mon Jul 21, 2008 7:02 pm
Donate to Qphoria

Re: Images Not Being Added

Postby shughey » Fri Jan 09, 2009 7:59 pm

Qphoria wrote:Yea try that


That worked.

Thanks,
Sam
shughey
 
Posts: 45
Joined: Sun Oct 26, 2008 4:02 pm

Re: Images Not Being Added

Postby hm2k » Sat Jan 10, 2009 3:40 pm

UK Web Hosting
And Gadgets - LIVE and OpenCart powered!

Have we helped you? please donate
User avatar
hm2k
Global Moderator
 
Posts: 583
Joined: Tue Mar 11, 2008 1:06 am
Location: UK


Return to General Support

Who is online

Users browsing this forum: No registered users and 4 guests

Hosted by Arvixe Web Hosting