1b.app
Link copied -

In XML, uploads a photo that is not available (upload to a socket / ROZETKA)

In CML, here is a link to the photo http://baza.cn.ua/media/shop/a0/fb/product-Topolino-225727-721541_a0fb546b244f7d...
For this product https://baza.cn.ua/admin/shop/products/63998/edit/
On the site, the product shows nominally (the photo is displayed) https://baza.cn.ua/product/63998/
Download link here https://baza.cn.ua/admin/shop/priceplaces/?id=6
I tried re-uploading the photo, it didn't work.
I already noticed a similar problem 5 times (re-filling solved the problem)
Why so go out what is the reason?
Original question is available on version: ru

Answers:

Can you provide the source of the photo you are trying to re-upload?
05.03.2021, 13:10
Original comment available on version: ru

Куприян Владислав Валерьевич
Baza.cn.ua / Integrator (FOP Kupriyan)
I don’t remember anymore, but here are two files that seem to be source codes
05.03.2021, 22:21
Original comment available on version: ru

Now in the specified upload file there are 6 images corresponding to the product and all are available.
Re-uploaded the photo and everything was OK? Perhaps the problem with the rights to the directories, which has already been discussed earlier?
09.03.2021, 14:24
Original comment available on version: ru

Куприян Владислав Валерьевич
Baza.cn.ua / Integrator (FOP Kupriyan)
11.03.2021, 18:44
Original comment available on version: ru

Куприян Владислав Валерьевич
Baza.cn.ua / Integrator (FOP Kupriyan)

Kupriyan Vladislav Valerievich
Baza.cn.ua / Integrator (FOP Kupriyan) wrote:
Here is another example found in XML
Here https://baza.cn.ua/media/export/6.xml
Here is the link http://baza.cn.ua/media/shop/a9/e7/product-Pepperts-305303-134-140_a9e700a2d0962...
Here is the product https://baza.cn.ua/admin/shop/products/63990/edit/

Please give some kind of reaction, since I specifically left an example of a product with an error, I need you to fix the error and start solving it, and after you fix it, I will correct the photo and send it to the outlet for verification
16.03.2021, 22:36
Original comment available on version: ru


Please give some kind of reaction, since I specifically left an example of a product with an error, I need you to fix the error and start solving it, and after you fix it, I will correct the photo and send it to the outlet for verification

To your regret, I cannot specify the exact reason why (or after what actions) this happened.
I can assume that earlier you have repeatedly experienced problems with the rights to the directories of media files, and therefore there were problems with accessing files - probably this is from the same "opera".
Especially as you say - re-uploading the photo solves the problem (because the path to the media file changes).
17.03.2021, 08:50
Original comment available on version: ru

Куприян Владислав Валерьевич
Baza.cn.ua / Integrator (FOP Kupriyan)

Tyndyk Maxim Vadimovich wrote:

Please give some kind of reaction, since I specifically left an example of a product with an error, I need you to fix the error and start solving it, and after you fix it, I will correct the photo and send it to the outlet for verification

To your regret, I cannot specify the exact reason why (or after what actions) this happened.
I can assume that earlier you have repeatedly experienced problems with the rights to the directories of media files, and therefore there were problems with accessing files - probably this is from the same "opera".
Especially as you say - re-uploading the photo solves the problem (because the path to the media file changes).

Let's deal with facts
If the system has "problems with rights to directories", then why does the system write files to these directories, logically, if there are no rights, why does it write ?
I uploaded an image from the admin panel and the system recorded the file in the directory and then made a thumbnail from this file
18.03.2021, 16:38
Original comment available on version: ru


Let's deal with facts
If the system has "problems with rights to directories", then why does the system write files to these directories, logically, if there are no rights, why does it write ?

Let's operate with facts - specify where and what image can I upload to cause this problem?
Unfortunately, I do not know how to look into the past as a result of what actions this happened.
18.03.2021, 16:59
Original comment available on version: ru

Куприян Владислав Валерьевич
Baza.cn.ua / Integrator (FOP Kupriyan)
Here is the file https://baza.cn.ua/media/shop/a9/e7/product-Pepperts-305303-134-140_a9e700a2d096...
You need to go to SSH and take it and try to upload
19.03.2021, 18:14
Original comment available on version: ru

Unfortunately, I do not physically observe such a file on your server. There is a crop version https://baza.cn.ua/media/shop/a9/e7/product-Pepperts-305303-134-140-cropper-_a9e...
Perhaps you have an example of a product and a physical image, which, when added - the photo will be uploaded and not available?
I see in your automations there is an action to delete images for remote products - perhaps this image was used in another remote product (duplicate)?
22.03.2021, 14:06
Original comment available on version: ru

Куприян Владислав Валерьевич
Baza.cn.ua / Integrator (FOP Kupriyan)

Tyndyk Maxim Vadimovich wrote:
Perhaps you have an example of a product and a physical image, which, when added - the photo will be uploaded and not available?

This happens very rarely once for 50-300 products, it is difficult to track

Tyndyk Maxim Vadimovich wrote:
I see in your automations there is an action to delete images for remote products - perhaps this image was used in another remote product (duplicate)?

Not used in the given
But here I have a question, what if I have 2 products with the same image and I delete one of the products, then the image from the second product will also be deleted in my case (is this normal, there must be some kind of check before deleting, not Is there a link to this file for another product that is not in stock)?
In search of the cause and the original image, I came across a situation that may help in solving
In general, the chronology of events was as follows
First, a product was created (which I set as problematic)
Here is this https://baza.cn.ua/admin/shop/products/63990/edit/
And in XML, the system put a link on it https://baza.cn.ua/media/shop/a9/e7/product-Pepperts-305303-134-140_a9e700a2d096...
For a file that doesn't exist
Photos have been uploaded in the product
Next, a new product was created through the copy functionality https://baza.cn.ua/admin/shop/products/copy/
The product differed only in size, that is, the images remained the same
Here is the product https://baza.cn.ua/admin/shop/products/63991/edit/
So there is no problem with it in XML
Here is an image of it:
http://baza.cn.ua/media/shop/a9/e7/product-Pepperts-305303-146-152_a9e700a2d0962...
http://baza.cn.ua/media/shop/df/c9/product-Pepperts-305303-134-140_dfc9ac6ba87db...
http://baza.cn.ua/media/shop/d1/eb/product-Pepperts-305303-134-140_d1eb6f076d8ba...
http://baza.cn.ua/media/shop/af/62/product-Pepperts-305303-134-140_af62f640c21b2...
That is, according to the logic, the original photo that is needed and with which the problem is
From the names of the images, you can see that the main image has changed for the new product (that is, the new size is 146-152, but the additional photo remains 134-140)
That is, there is also some kind of violation of logic, the link to the main image has changed, but to the additional one. the links remained the same as in the product from which they copied, why the main thing did not remain old or why the additional ones did not change
In short, it’s somehow incomprehensible, I admit that perhaps the problem occurs when copying
22.03.2021, 23:46
Original comment available on version: ru


But here I have a question, what if I have 2 products with the same image and I delete one of the products, then the image from the second product will also be deleted in my case (is this normal, there must be some kind of check before deleting, not Is there a link to this file for another product that is not in stock)?

in action in the description it is written about it

In search of the cause and the original image, I came across a situation that may help in solving
In general, the chronology of events was as follows
First, a product was created (which I set as problematic)
Here is this https://baza.cn.ua/admin/shop/products/63990/edit/
And in XML, the system put a link on it https://baza.cn.ua/media/shop/a9/e7/product-Pepperts-305303-134-140_a9e700a2d096...
For a file that doesn't exist
Photos have been uploaded in the product
Next, a new product was created through the copy functionality https://baza.cn.ua/admin/shop/products/copy/
The product differed only in size, that is, the images remained the same
Here is the product https://baza.cn.ua/admin/shop/products/63991/edit/
So there is no problem with it in XML
Here is an image of it:
http://baza.cn.ua/media/shop/a9/e7/product-Pepperts-305303-146-152_a9e700a2d0962...
http://baza.cn.ua/media/shop/df/c9/product-Pepperts-305303-134-140_dfc9ac6ba87db...
http://baza.cn.ua/media/shop/d1/eb/product-Pepperts-305303-134-140_d1eb6f076d8ba...
http://baza.cn.ua/media/shop/af/62/product-Pepperts-305303-134-140_af62f640c21b2...
That is, logically, the original photo that is needed and with which the problem is http://baza.cn.ua/media/shop/a9/e7/product-Pepperts-305303-146-152_a9e700a2d0962...
From the names of the images, you can see that the main image has changed for the new product (that is, the new size is 146-152, but the additional photo remains 134-140)
That is, there is also some kind of violation of logic, the link to the main image has changed, but to the additional one. the links remained the same as in the product from which they copied, why the main thing did not remain old or why the additional ones did not change
In short, it’s somehow incomprehensible, I admit that perhaps the problem occurs when copying

Have you tried making a copy to check if this is true or not?
I'm not interested in assumptions, but in a specific sequence of actions - then I can correct the error, if any.
24.03.2021, 17:35
Original comment available on version: ru

Куприян Владислав Валерьевич
Baza.cn.ua / Integrator (FOP Kupriyan)

Tyndyk Maxim Vadimovich wrote:
Have you tried making a copy to check if this is true or not?
I'm not interested in assumptions, but in a specific sequence of actions - then I can correct the error, if any.

The situation I described was repeated on these products:
https://baza.cn.ua/admin/shop/products/64186/edit/
https://baza.cn.ua/admin/shop/products/64187/edit/
That is, the first image for product 64186 is not available
Here is https://baza.cn.ua/media/shop/1c/72/product-Kurtka-doshchovik-Lupilu-307991-86-9...
And the second one is available https://baza.cn.ua/media/shop/1c/72/product-Kurtka-doshchovik-Lupilu-307991-122-...
Apparently this is a problem that occurs during the copying process.
Please review the copy procedure and correct the error
24.03.2021, 18:03
Original comment available on version: ru

Ok, I will analyze the above as time permits.
Might be able to catch it.
25.03.2021, 14:02
Original comment available on version: ru

Куприян Владислав Валерьевич
Baza.cn.ua / Integrator (FOP Kupriyan)

Tyndyk Maxim Vadimovich wrote:
Ok, I will analyze the above as time permits.
Might be able to catch it.

1. Can you give an approximate decision time?
2. Can you somehow select problematic products (for which the link returns 404)?
29.03.2021, 11:17
Original comment available on version: ru

No.
As there will be some result - I will immediately inform you.
30.03.2021, 16:50
Original comment available on version: ru

Куприян Владислав Валерьевич
Baza.cn.ua / Integrator (FOP Kupriyan)
the issue is not resolved yet
06.04.2021, 23:14
Original comment available on version: ru

Please join the conversation. If you have something to say - please write a comment. You will need a mobile phone and an SMS code for identification to enter. Log in and comment