Magento – Broken image links from Wysiwyg’s shortcodes on category and product pages not translating on Magento website

ce-1.9.2.2magento-1.9patcheswysiwyg

Broken Links from wysiwyg on frontend of Magento store.

The URL's on broken pages are like below:

Admin –

<img src="{{media url="wysiwyg/image.png"}}" alt="image" />

Frontend –

<img src="{{media url=" wysiwyg="" image.png"}}"="" alt="image">

My Urls created from Wysiwyg seem to be fine within admin and are only broken on category and product pages where the shortcodes seem to fail. however they still seem to be working on CMS Pages.

I have looked at the template files and am wondering if they need changing since recent SUPEE 6822 update (however I updated months ago and it didn't seem to be a problem then initially). As other questions have been solved by processing html content like below in the case of a cms page:

    $html_content = $content_from_db['content'];$html_content =          Mage::helper('cms')->getPageTemplateProcessor()->filter($html_content); echo $html_content;`

Also have considered that the permissions introduced in SUPEE 6822 may be effecting parts of the pages ability to translate shortcodes like in this issue with static blocks however I feel the category and product pages should have permission as default:

https://community.magento.com/t5/Technical-Issues/Static-block-shortcodes-not-working-1-9-2-2/td-p/20096

Best Answer

Check that System -> Configuration -> Catalog -> Frontend -> "Allow Dynamic Media URLs in Products and Categories" is set to YES.

Related Topic