One special part of work is here / A mirror without glass and silver / With software instead / Developed by Matthias Haase [Software Developer and Optometrist]. / Germany / Erzgebirge / Annaberg
Within the last days I got an ugly Javascript error (missing ‘;’ at line 25619), only using MSIE 8 for Magento’s detailed product view… Thinking about the latest changes done I was able to find the reason: It was a combination of the enabled Javascript merge function of Magento together with Google’s mod-pagespeed extension for Apache.
The line number 25619 of the merged Javascript file was in reality line number 564 of js/varien/product.js…
There we have this:
this.skipCalculate = config.skipCalculate;//@deprecated after 1.5.1.0
The comment on this line is problematic for MSIE and the setting, described on top, I think especially the ‘@’ was the reason for the error.
I have removed the comment completely:
this.skipCalculate = config.skipCalculate;
The error is gone now even with Magento’s Javascript merging enabled.
Over this dark day – we got our first big snow here – I have written some code to embed Virtual Mirror into Hikashop, an extension for Joomla. While I have written our own e-commerce system in past using Perl and while I’m very familiar with Magento since the last year this was a new experience.
The best documentation of Hikashop is the php code of Hikashop
Over this day I have added mod_pagespeed including some fine tuning for Magento. After enabling it (lastest stable x86_84 for Fedora 17 / CentOS) I got a lot xml errors. At first this was very confusing.
However I was able to fix all of these errors.
The convert_meta_tags filter of mod_pagespeed has changed the whole initial site definition to xml even it is still html because of this meta, added in past for the semantic web extension: