1

i am using Magento 2.4.3-p1. i am facing issue block images duplicate show on email templates. Steps to reproduce issue.

  1. Add one custom block.and take image uploader control and add images on that block.

i.e https://i.imgur.com/lBfUOhC.png

  1. After that, add new email template and add that custom block on email templates.i.e

{{block class="Magento\Cms\Block\Block" area="frontend" block_id="164"}}

  1. After save email template configure in your system configuration order, customer or any else email template. i am seen duplicate Images.

https://i.imgur.com/w4W1Em9.png

I have tried to apply the below patch.but still it will not work for me..

https://experienceleague.adobe.com/docs/commerce-knowledge-base/kb/support-tools/patches/v1-0-24/mdva-36832-images-duplicates-on-pages-with-view-width-of-768px.html?lang=en

I have also tried to solve issue using css, but it will not working

@media (max-width: 768px) {.pagebuilder-mobile-hidden {display: none !important;}}
@media (min-width: 768px) {.pagebuilder-mobile-only {display: none !important;}}

2 Answers 2

1

It seems that you are facing an issue with duplicate images appearing on email templates in Magento 2.4.3-p1. You have already tried applying a patch and using CSS, but the problem persists. I'll try to help you with some additional steps you can take to address this issue.

Clear cache and reindex: Make sure to clear the cache and reindex your Magento installation after applying any changes or patches. This can be done through the command line or via the Magento admin panel.

Verify the block and template code: Double-check the code for the custom block and email template to ensure there are no errors or inconsistencies. Verify that the block ID you are using in the email template corresponds to the correct block.

Check for conflicting customizations or extensions: If you have made any customizations or have installed third-party extensions, there could be conflicts causing the duplicate image issue. Try disabling any customizations or extensions related to email templates or blocks and see if the problem persists. If the issue is resolved, you may need to investigate further to identify the conflicting customization or extension.

Test with a default email template: Create a new email template using only default Magento blocks and test if the duplicate image issue still occurs. This will help determine if the problem is specific to your custom block or if it is a more general issue with email templates.

Debug and log: Enable logging and debugging in your Magento installation to gather more information about the issue. Check the system logs and error logs for any relevant messages that could provide insights into the problem.

Reach out to Magento support or community: If you have exhausted all troubleshooting steps and the issue persists, it may be beneficial to seek assistance from the Magento community or Magento support. Provide them with detailed information about the steps you have taken and any relevant error messages or logs.

Remember to always back up your Magento installation before making any changes or applying patches to avoid any potential data loss or further issues.

1
  • I have already try to clear cache and reindex still it is not working May 22, 2023 at 8:37
0

I just tried reproducing your steps but I didn't get any duplicates of that images. Anyway, you can try this one.

Instead of giving two rows and two columns in each row, you can give two images in a single column like this

enter image description here

And you will get a output like this

enter image description here

I hope it works.

1
  • thank's for the update, i am facing issue on email template. not on cms pages or any other pages. i am trying to add CMS block on Email templates. May 22, 2023 at 8:36

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.