Where the problem occurred: Write here the product (Store Builder or Multi-Vendor) and its version. The version can be found in the admin panel by adding the ?version parameter to the end of the address (for example, https://example.com/admin.php?version). If the problem is on our online demos, then a link is enough for us.
product: Store Builder
version: 4.20.1
Details of the problem: Write what the problem is. A screenshot will help a lot (if you can see the problem). It is desirable that the entire browser window be in the picture, and not just a specific part of the page.
I have updated CS-Cart to its last version. After that, I tried to upload images to a variant product (not the main product) and I couldn’t (screenshot attaced).
How to reproduce the problem: Describe the sequence of actions and circumstances that lead to the problem. Any additional information can help: your browser, operating system (important for Android and iOS mobile devices), PHP version on your server, etc.
PHP version: 8.3
In order to confirm and fix the issue, we first need to replicate it on our store or demo (without any 3rd party add-ons and themes). If this fails, we will ask you to contact us via Help Desk for further investigation.
I have already replaced one line of code inside app/functions/fn.products.php - line 4569:
replace this:
$new_categories = array_unique($new_data['category_ids']) ?? [];
to this:
$new_categories = array_unique($new_data['category_ids'] ?? []);
parentheses of array_unique are wrapped all the value
