magento2-page-builder
magento2-page-builder copied to clipboard
Template Preview Images Incorrectly Saved to Media Directory
Preconditions (*)
- Adobe Commerce
2.4.4
(or greater) - Page Builder
2.2.2
(or greater) -
bin/magento config:set cms/pagebuilder/enabled 1
Steps to Reproduce (*)
- Click on any Page Builder-enabled field (doesn't have to be empty)
- Click Save as Template
- Define a Template Name ("Example" in my case)
- Click Save
- Verify that you see, "The current contents of Page Builder has been successfully saved as a template."
- Click Apply Template
- Inspect the Preview Image path (can be full-size or thumbnail) from the template you just saved
Expected Result (*)
- Image(s) are stored under
~/pub/media/.template-manager/
- https://app.magento2.test/pub/media/.template-manager/example63da278ce04a0-thumb.jpg
Actual Result (*)
- Image(s) are stored under
~/pub/media/
but contain.template-manager
in the name, implying missing DS- https://app.magento2.test/pub/media/.template-managerexample63da278ce04a0-thumb.jpg
Notes
- Directory is defined in: https://www.github.com/magento/magento2-page-builder/blob/develop/app/code/Magento/PageBuilder/etc/config.xml#L37
- This appears to be an issue with
Magento\PageBuilder\Controller\Adminhtml\Template\Save::storePreviewImage
Big thanks to @karlasa and other @vaimo team members who quickly helped me to validate this on various platforms, configurations, etc. 🙏🏻
Hi @bluemwhitew. Thank you for your report. To speed up processing of this issue, make sure that you provided sufficient information.
Add a comment to assign the issue: @magento I am working on this
- Join Magento Community Engineering Slack and ask your questions in #github channel.
@magento I am working on this