2

If I add a media node to the page builder and try to select an image from the gallery, then nothing happens. Normally the gallery should load.

enter image description here

I get this in the network console

https://company.de/backendlogin/cms/wysiwyg_images/index/key/095a7a5f8e56bbf90e8337f93695509fa2e57b0863e15518e17b60f110f3779b/target_element_id/BCP3YMC/store/1/type/image/?isAjax=true&current_tree_path=d3lzaXd5Zw--
    
{"error":true,"message":"You entered an invalid Secret Key. Please refresh the page."}

enter image description here

I flushed the cache and deleted all browser cookies, but it does not help.

The project is in production mode.

2
  • Could you fix this issue? I'm facing the same problem. Commented May 27, 2021 at 19:59
  • 1
    @MarceloRodovalho, Yes, I added an answer.
    – Black
    Commented May 28, 2021 at 7:58

2 Answers 2

4

There is a patch that should resolve the reported issue available in the Magento Quality Patches package (MQP).

Patch Summary:

Page builder config is now cached per user session if secret key is enabled in backend URLs. (for v2.4.2)

To apply the patch using MQP, please follow the steps below:

  1. Install the MQP package: ./composer require magento/quality-patches
  2. Apply the patch: ./vendor/bin/magento-patches apply MDVA-32133
  3. Clean the cache: ./bin/magento cache:clean

Additional documentation on how to use the MQP tool.

https://devdocs.magento.com/cloud/project/project-patch.html

1
0

May be your secret key got expired, please use postman to test if your API and secret key is working properly there and you are getting proper JSON response.

4
  • I am not using an API. This is standard magento 2. I also deleted cookies as mentioned, so the session is fresh.
    – Black
    Commented Apr 27, 2021 at 13:02
  • May you try to delete session also Commented Apr 27, 2021 at 13:09
  • It may be helpful - docs.magento.com/user-guide/cms/media-gallery.html Commented Apr 27, 2021 at 13:12
  • 1
    How is a user guide going to help me with the bug?
    – Black
    Commented Apr 27, 2021 at 13:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.