0

someone knows why, if I look at the HTML code of one page from my Magento website, I see the Translator var two times, with the same values?

First time:

<script type="text/javascript">//<![CDATA[
        var Translator = new Translate({"HTML tags are not allowed":"...

Second time:

<script type="text/javascript">
//<![CDATA[
optionalZipCountries = ["IE","PA","HK","MO"];
//]]>
</script>
<script type="text/javascript">//<![CDATA[
        var Translator = new Translate({"HTML tags are not allowed":"...
  • Can you add the page name who provided that? – Nolwennig Nov 14 '17 at 10:43
  • Can you add the numbers of lines where these tags are present? – Nolwennig Nov 14 '17 at 10:43
  • It's in all the pages of Magento, line 82 and 92. – Roberto Bianchi Nov 14 '17 at 11:00
  • It's seems be a duplicate call from several layout (.xml) files. Used you a specific theme? – Nolwennig Nov 14 '17 at 14:31
  • No, I modified the 'rwd' theme. Tomorrow I'll try to control the changement that I made on the xml files. Thank you so much. – Roberto Bianchi Nov 14 '17 at 19:31
1

I solved the problem deleting this line of code that I've put into the page.xml file:

<block type="page/html_head" name="before_head_end" as="before_head_end" />

I've placed this custom code before the structural block after_body_start.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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