Post by Andrew_M » Mon Jan 05, 2009 1:48 am

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.

New member

Posts

Joined
Sat Jan 03, 2009 1:38 am

Post by Qphoria » Mon Jan 05, 2009 5:57 am

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


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by Andrew_M » Mon Jan 05, 2009 11: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.

New member

Posts

Joined
Sat Jan 03, 2009 1:38 am

Post by fido-x » Mon Jan 05, 2009 2:25 pm

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/top ... l#msg12993 in /library/filesystem/upload.php.

Image
Modules for OpenCart 2.3.0.2
Homepage Module [Free - since OpenCart 0.7.7]
Multistore Extensions
Store Manager Multi-Vendor/Multi-Store management tool

If you're not living on the edge ... you're taking up too much space!


User avatar
Expert Member

Posts

Joined
Sat Jun 28, 2008 1:09 am
Location - Tasmania, Australia

Post by Qphoria » Mon Jan 05, 2009 6:54 pm

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


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by Andrew_M » Mon Jan 05, 2009 10: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.

New member

Posts

Joined
Sat Jan 03, 2009 1:38 am

Post by Qphoria » Mon Jan 05, 2009 10: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


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by Andrew_M » Tue Jan 06, 2009 8: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.

New member

Posts

Joined
Sat Jan 03, 2009 1:38 am

Post by fido-x » Tue Jan 06, 2009 9: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/top ... l#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
Modules for OpenCart 2.3.0.2
Homepage Module [Free - since OpenCart 0.7.7]
Multistore Extensions
Store Manager Multi-Vendor/Multi-Store management tool

If you're not living on the edge ... you're taking up too much space!


User avatar
Expert Member

Posts

Joined
Sat Jun 28, 2008 1:09 am
Location - Tasmania, Australia

Post by shughey » Wed Jan 07, 2009 3:02 am

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

New member

Posts

Joined
Mon Oct 27, 2008 12:02 am

Post by Qphoria » Wed Jan 07, 2009 3:26 am

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


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by shughey » Sat Jan 10, 2009 3:12 am

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/top ... l#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

New member

Posts

Joined
Mon Oct 27, 2008 12:02 am

Post by Qphoria » Sat Jan 10, 2009 3:23 am

Yea try that

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by shughey » Sat Jan 10, 2009 3:59 am

Qphoria wrote: Yea try that
That worked.

Thanks,
Sam

New member

Posts

Joined
Mon Oct 27, 2008 12:02 am

User avatar
Global Moderator

Posts

Joined
Tue Mar 11, 2008 9:06 am
Location - UK
Who is online

Users browsing this forum: No registered users and 2 guests