Post by maffe » Mon Dec 30, 2024 7:53 pm

Hello,
I have a clean installation of OpenCart 3.0.4.0 and imported all products from (my old) OpenCart 2.0.3.2 into the 3.0.4.0 database.
I can upload and replace the first product image without any issues.
However, when I try to add additional images to an existing product, both on localhost (WAMP) and on an online test shop with Linux, it doesn't work.
Instead, I get the default OpenCart blue product picture.
This is not a permissions issue, nor a caching issue. What could be causing this?
When I create a new product, it works fine and can add a second pica.
Last edited by maffe on Sat Feb 01, 2025 12:35 am, edited 1 time in total.

Active Member

Posts

Joined
Sun Jun 12, 2011 5:21 am
Location - Lelystad

Post by paulfeakins » Mon Dec 30, 2024 8:38 pm

maffe wrote:
Mon Dec 30, 2024 7:53 pm
This is not a permissions issue, nor a caching issue. What could be causing this?
Are you out of space? Are the images you're uploading too big? Are they they wrong file type or colour space?

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Legendary Member

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

Post by maffe » Mon Dec 30, 2024 9:33 pm

paulfeakins wrote:
Mon Dec 30, 2024 8:38 pm
maffe wrote:
Mon Dec 30, 2024 7:53 pm
This is not a permissions issue, nor a caching issue. What could be causing this?
Are you out of space? Are the images you're uploading too big? Are they they wrong file type or colour space?
Hello Paul,
Offcourse not, there is lot of space online on the linux host and on my local WAMP.
Images are fine (settings in system updated tot 1 MB (default was 300kB).
Just normal product images as always...

But strange thing. Picture nummer 3 and 4 i can upload and are oke. Only picture nr 2 not?!
When i delete picture 2 afterwards for workarround is oke.
This must be a bug somewhere.

Active Member

Posts

Joined
Sun Jun 12, 2011 5:21 am
Location - Lelystad

Post by paulfeakins » Tue Dec 31, 2024 7:16 pm

What about the filenames of the images?

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Legendary Member

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

User avatar
Guru Member

Posts

Joined
Wed Dec 05, 2007 3:38 am


Post by maffe » Fri Jan 03, 2025 5:14 pm

No corrupted images, no strange filenames... Guys, come on. We are, of course, using JPG images. Nothing special.
I tried with small images, with/without spaces, underscores, and dashes. The second picture can be uploaded but is does not show up in the backend.
The third and fourth pictures are fine, and then we delete the second one.
Very strange, must be a bug somewhere

Active Member

Posts

Joined
Sun Jun 12, 2011 5:21 am
Location - Lelystad

Post by JNeuhoff » Fri Jan 03, 2025 7:25 pm

When you imported your products to the new OC 3.0.4.0, did you make sure to use the correct image paths, they are different compared to OC 2.0.3.2. Assuming you were using our Export/Import tool, the values in the 'image' column in worksheet 'AdditionalImages' usually start with 'catalog/'. And the image files are usually stored in the 'image/catalog' folder.

Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig


User avatar
Guru Member

Posts

Joined
Wed Dec 05, 2007 3:38 am


Post by maffe » Fri Jan 03, 2025 11:44 pm

The original intention was this:
Export all products from the live shop OC2303 without images.
Because we wanted to redo all the images neatly.
We performed these queries on the old environment:

Remove default pictures with:
UPDATE `oc_product` SET `image` = NULL;

Remove additional pictures with:
DELETE FROM `oc_product_image`;

Then, we exported all `oc_product*` tables using phpMyAdmin.
Afterwards, we imported these `oc_product*` tables back into the new OC3040 shop using phpMyAdmin.
However, when we try to add the first extra (i.e. second) image, it doesn't work.
Did something go wrong in this process?

Active Member

Posts

Joined
Sun Jun 12, 2011 5:21 am
Location - Lelystad

Post by JNeuhoff » Sat Jan 04, 2025 1:17 am

I can't see anything wrong with this approach, except you should have used

Code: Select all

TRUNCATE `oc_product_image`
instead of

Code: Select all

DELETE FROM `oc_product_image`

User avatar
Guru Member

Posts

Joined
Wed Dec 05, 2007 3:38 am


Post by maffe » Mon Jan 27, 2025 12:37 am

In the meantime, this issue has been resolved.
Unfortunately, the problem was in an extension.
Thanks to everyone who responded: I appreciate your input and effort. The default OpenCart is fine.

Active Member

Posts

Joined
Sun Jun 12, 2011 5:21 am
Location - Lelystad

Post by paulfeakins » Mon Jan 27, 2025 8:19 pm

maffe wrote:
Mon Jan 27, 2025 12:37 am
In the meantime, this issue has been resolved.
If your issue is now solved, please add [SOLVED] to the start of this topic title.

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Legendary Member

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom
Who is online

Users browsing this forum: Bing [Bot], Semrush [Bot] and 13 guests