I just added the Fotomoto script to the local dev copy of my website, but am getting a javascript error:
fotomoto-min.js:23 Uncaught Error: INVALID_STATE_ERR: DOM Exception 11
If I change the js display to pretty print (in Google Chrome), it shows the error being on line 5561, which is
j.innerHTML = c;
I think possibly the problem may be related to my website being served as XHTML+XML.
I am also using the jquery library on my site, along with jquery-ui and some custom js.
I have added the domain I am using to access the local dev copy of my site to the sites list in Fotomoto settings.
-
Hi showerheadsuk,
It's most likely that Fotomoto isn't working because you're looking at a local dev copy of your site. Could you post a test page on a production server and confirm whether it works there? If you still see errors in this case please do send us the URL and we'll be happy to take a look.
Thanks and kind regards,
Derek -
-
Hi Derek
I have uploaded a test page to the live website, but am still getting the same error. You can check the page here: http://www.davidkennardphotography.co... -
-
Hi showerheadsuk,
Thank you for providing the link to a test page. We're taking a look in to this for you and will get back to you as soon as possible. This is not an error I've seen before so the issue appears to be something unique to your page, perhaps the .xhtml extension but I'm really not sure.
Kind regards,
Derek -
-
Hi showerheadsuk,
We did some substantial investigation on your site and the issue does appear to the the .xhtml extension on your URL. All things being the same, if you switch your file extension to .html, Fotomoto should work with no error.
Our engineers are now aware of this, but I can't guarantee that anything will be done to change how our system works in the near future.
Thanks for the post and kind regards,
Derek -
-
Hi Derek
I changed the settings on my local dev copy of the site to serve the page as text/html instead of application/xhtml and this did fix the error. However, I am now getting a warning message in the javascript console:
event.layerX and event.layerY are broken and deprecated in WebKit. They will be removed from the engine in the near future.
This message does not appear with the fotomoto script disabled. It looks like you are bundling an old version of jquery (v1.6.2) with the fotomoto script that causes this error. According to this post: http://stackoverflow.com/questions/78... the issue is fixed with jquery 1.7.1.
Since my website already uses jquery, I don't know if there is any way I can load fotomoto without it loading its own copy of jquery as well? -
-
Hi showerheadsuk,
Way to pay close attention =)
We are in the process of updating jQuery so this should go away in the near future, but I can't promise exactly when.
Kind regards,
Derek -