magento / magento2

Prior to making any Submission(s), you must sign an Adobe Contributor License Agreement, available here at: https://opensource.adobe.com/cla.html. All Submissions you make to Adobe Inc. and its affiliates, assigns and subsidiaries (collectively “Adobe”) are subject to the terms of the Adobe Contributor License Agreement.
http://www.magento.com
Open Software License 3.0
11.55k stars 9.32k forks source link

Category image deletes after initial upload and category save v2.3.3 #25099

Closed davygxyz closed 5 years ago

davygxyz commented 5 years ago

Triage Note

Preconditions (*)

  1. Magento Version 2.3.3
  2. PHP version 7.2
  3. Apache 2.4
  4. Magento Default Theme

Steps to reproduce (*)

  1. Installed with composer: composer create-project --repository=https://repo.magento.com/ magento/project-community-edition
  2. Installed and logged into the admin
  3. Click on catalog > categories
  4. Upload category image
  5. Save category
  6. Save category again

Expected result (*)

  1. After the initial category image upload and save, if you save the category again without changing the image. The category should retain the original category image.

Screen Shot 2019-10-16 at 12 45 00 PM

Actual result (*)

  1. Instead, after my initial category image upload and save. The image disappears if I save the category.

Screen Shot 2019-10-16 at 12 50 35 PM

alex-james commented 3 years ago

@timh5690 Anything showing up in your PHP error log, Magento system log or your browser console log? Have you looked in the media folder where the images are bing stored to see if here are any files being created / updated?

timh5690 commented 3 years ago

Hi Alex,

The files are showing in the media folder. I don't see any related in the error or system logs.

Error messages from console:

GET https://www.*********.com/pub/static/version1607041079/frontend/Smartwave/porto_child/en_US/Magento_Catalog/images/product/placeholder/.jpg 404

VM4714:3 Fallback to JQueryUI Compat activated. Your store is missing a dependency for a jQueryUI widget. Identifying and addressing the dependency will drastically improve the performance of your site.

Thank you

alex-james commented 3 years ago

@timh5690 The JQueryUI thing is because Magento now allows you to add just the UI components you need (in this case widget) rather that the whole library so a warning but not the cause of the issue

The fact that you don't have a filename before the .jpg with your placeholder is odd and a worry

If the files are getting added to the media folder then your POST is working, but for some reason they are not being rendered in the B/E, if it was me I'd start by disabling any third party modules, running a setup:upgrade and trying again, if that doesn't work then you will need to start stepping through the code that is rendering the page to see what is going on