WYSIWYG editor in the admin panel _sometimes_ hangs up upon opening an image upload dialog. The "Please wait..." spinner animation does not go away (until you refresh the page and have more luck next time).
Dialog "Select Images" shows up with "Please wait..." infinite spinner animation

Refreshing the page and repeating the steps sometimes fixes the issue
There're no JavaScript errors in the developer console
Hi @sshymko. Thank you for your report.
To help us process this issue please make sure that you provided the following information:
Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:
@magento give me 2.3-develop instance - upcoming 2.3.x release
For more details, please, review the Magento Contributor Assistant documentation.
@sshymko do you confirm that you were able to reproduce the issue on vanilla Magento instance following steps to reproduce?
@magento give me 2.3-develop instance
Hi @sshymko. Thank you for your request. I'm working on Magento 2.3-develop instance for you
Hi @sshymko, here is your Magento instance.
Admin access: https://i-23966-2-3-develop.instances.magento-community.engineering/admin
Login: admin Password: 123123q
Instance will be terminated in up to 3 hours.
Confirmed the issue is reproducible on the vanilla 2.3-develop instance provided above.
It took multiple page refreshes ~5-10 to reproduce the issue.

The bug causes instability of the following MFTF tests:
E AdminAddImageToWYSIWYGBlockTestCest: Admin add image to wysiwyg block test (64.08s)
E AdminAddImageToWYSIWYGCMSTestCest: Admin add image to wysiwygcms test (36.67s)
E AdminAddImageToWYSIWYGCatalogTestCest: Admin add image to wysiwyg catalog test (34.74s)
E AdminAddImageToWYSIWYGNewsletterTestCest: Admin add image to wysiwyg newsletter test (32.48s)
[Facebook\WebDriver\Exception\TimeOutException]
The image upload issue affects all instances of WYSIWYG editor in the admin panel.
Hi @krishprakash. Thank you for working on this issue.
In order to make sure that issue has enough information and ready for development, please read and check the following instruction: :point_down:
Issue: Format is valid will be added to the issue automatically. Please, edit issue description if needed, until label Issue: Format is valid appears.[ ] 2. Verify that issue has a meaningful description and provides enough information to reproduce the issue. If the report is valid, add Issue: Clear Description label to the issue by yourself.
[ ] 3. Add Component: XXXXX label(s) to the ticket, indicating the components it may be related to.
[ ] 4. Verify that the issue is reproducible on 2.3-develop branchDetails
- Add the comment @magento give me 2.3-develop instance to deploy test instance on Magento infrastructure.
- If the issue is reproducible on 2.3-develop branch, please, add the label Reproduced on 2.3.x.
- If the issue is not reproducible, add your comment that issue is not reproducible and close the issue and _stop verification process here_!
[ ] 5. Add label Issue: Confirmed once verification is complete.
[ ] 6. Make sure that automatic system confirms that report has been added to the backlog.
@magento give me 2.3-develop instance
Hi @krishprakash. Thank you for your request. I'm working on Magento 2.3-develop instance for you
Hi @krishprakash, here is your Magento instance.
Admin access: https://i-23966-2-3-develop.instances.magento-community.engineering/admin
Login: admin Password: 123123q
Instance will be terminated in up to 3 hours.
Hi @sshymko,
I'm not able to reproduce this issue as provided steps by you.
Is there any specific case in which you phase this issue ?
@krishprakash
The provided steps are precisely exact steps. The issue is random and does not always reproduce. It took me 5-10 page refreshes to reproduce it on the provided instance (the screenshot above). Could you please try to refresh the page and repeat the steps as many times as you can?
@sshymko I have exactly the same problem, it occurs at irregular intervals. So far I haven't been able to see a fixed pattern to reproduce the problem.
The issue may be caused by race condition of JavaScript callbacks toggling "Please wait..." spinner.
Occurrence of the issue depends on the timing of AJAX calls and alignment of stars :)
@sshymko @ju2kr I have tried several times but couldn't reproduce the issue.
It may be browser specific issue.
Can you please share the browser detail in which you produce this issue.
Thanks
@krishprakash it's not enough to try 2-3 times. It literally takes 10 or sometimes more test case repetitions with the page refresh (Ctrl+R) in between. See the exact browser version in the preconditions.
:white_check_mark: Confirmed by @krishprakash
Thank you for verifying the issue. Based on the provided information internal tickets MC-18861 were created
Issue Available: @krishprakash, _You will be automatically unassigned. Contributors/Maintainers can claim this issue to continue. To reclaim and continue work, reassign the ticket to yourself._
Hello @sshymko ,
I think this issue might be fixed in https://github.com/magento/magento2/pull/23621. Can you please test with the mention pull request
Thanks
@konarshankar07
I can confirm #23621 fixes this issue. The bug is no longer reproducible with the patch. Thanks!
Hello @sshymko
Please close this issue if you are not getting this issue any more
Thanks
@konarshankar07
I can no longer reproduce the issue manually, but the corresponding automated MFTF tests still intermittently fail although less frequently than before. I don't think the issue is fully resolved.
@sshymko
Can you please provide me which MFTF testing you are getting the error?
Thanks
@konarshankar07
Failing MFTF tests are listed in my comment above https://github.com/magento/magento2/issues/23966#issuecomment-517079435
Hi @p-bystritsky. Thank you for working on this issue.
Looks like this issue is already verified and confirmed. But if you want to validate it one more time, please, go though the following instruction:
Component: XXXXX label(s) to the ticket, indicating the components it may be related to.[ ] 2. Verify that the issue is reproducible on 2.3-develop branchDetails
- Add the comment @magento give me 2.3-develop instance to deploy test instance on Magento infrastructure.
- If the issue is reproducible on 2.3-develop branch, please, add the label Reproduced on 2.3.x.
- If the issue is not reproducible, add your comment that issue is not reproducible and close the issue and _stop verification process here_!
[ ] 3. If the issue is not relevant or is not reproducible any more, feel free to close it.
@sshymko can you please provide detailed steps to reproduce test failures?
@engcom-Foxtrot
Preconditions:
bash
php bin/magento config:set cms/wysiwyg/enabled disabled
php bin/magento config:set admin/security/admin_account_sharing 0
php bin/magento config:set admin/security/use_form_key 0
Steps to reproduce:
bash
php bin/magento indexer:reindex
php bin/magento cache:flush
bash
java -jar selenium-server-standalone-3.141.5.jar
bash
vendor/bin/mftf generate:tests
bash
vendor/bin/codecept run functional -c dev/tests/acceptance/codeception.yml
Actual result:
Tests: 473, Assertions: 4323, Errors: 7, Failures: 31, Skipped: 26.
Hi @sshymko. Thank you for your report.
The issue has been fixed in magento/magento2#24333 by @p-bystritsky in 2.3-develop branch
Related commit(s):
The fix will be available with the upcoming 2.3.4 release.
Hi @sshymko. Thank you for your report.
The issue has been fixed in magento/magento2#25556 by @engcom-Golf in 2.3-develop branch
Related commit(s):
The fix will be available with the upcoming 2.3.5 release.
Most helpful comment
@sshymko I have exactly the same problem, it occurs at irregular intervals. So far I haven't been able to see a fixed pattern to reproduce the problem.