Post by KandC » Mon Jun 26, 2023 6:18 pm

When I upload images to the Image folder for banners or product the new version duplicates all the images in the overlay. How do I fix this?
I've attached a screen shot. As you can see I only uploaded 3 images but the Image Manager shows 6.

Version 4.0.2.1 - Fresh install
Theme - Default Theme
Extensions installed is Paypal.

Attachments

Image_Manager_opencart.JPG

Image_Manager_opencart.JPG (127.33 KiB) Viewed 1149 times

Last edited by KandC on Tue Jun 27, 2023 6:21 am, edited 1 time in total.

Active Member

Posts

Joined
Sun Jun 11, 2023 7:14 am

Guru Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom

Post by KandC » Tue Jun 27, 2023 5:58 am

I found the file filemanager.php in admin\controller\common

Changed this line of code:
$paths = glob($directory . $filter_name . '*{/,.ico,.jpg,.jpeg,.png,.gif,.webp,.JPG,.JPEG,.PNG,.GIF}', GLOB_BRACE);
to:
$paths = glob($directory . $filter_name . '*{/.,.ico,.jpg,.jpeg,.png,.gif,.webp,.JPG,.JPEG,.PNG,.GIF}', GLOB_BRACE);

This fixes the issue. thanks for you help.

Active Member

Posts

Joined
Sun Jun 11, 2023 7:14 am
Who is online

Users browsing this forum: No registered users and 4 guests