October 24, 2012 at 5:09 pm #17302
We use WPML at our website. When entering the website through http://www.botonhome.es WPML shows the Spanish version (default) of our website and when entering through http://www.thehomebutton.com it shows the English version of it.
As you can see, when you enter through http://www.thehomebutton.com, the images of the portfolio will never load. Do you know what could be wrong? The path to the images are yet the same (and they show) as you can check in the code.
Thanks.October 25, 2012 at 6:47 am #94904
Firebug gives me following error:
SecurityError: The operation is insecure.
var imgPixels = ctx.getImageData(0, 0, canvas.width, canvas.height);
– please try to update Angular to version 1.4. Hopefully this will get rid if the security error too because Kriesi changed the way how the greyscale/canvas thumbnails are generated (instead of js/jquery he now uses php). You can download the latest version from http://themeforest.netOctober 26, 2012 at 1:11 am #94905
Thanks for your reply. I updated Angular to version 1.4 but it didn’t work. I had to compare every file with FileMerge to make sure I wasn’t modifying anything I added to the template. I made sure I didn’t forgot any file, but, just in case, could you tell me which files are the one that were modified to change the way the greyscale/canvas thumbnails are generated?
Can you think of another possible fix?
Thanks.October 26, 2012 at 6:29 am #94906October 26, 2012 at 5:44 pm #94907October 28, 2012 at 9:59 am #94908
Maybe you can find something useful to get portfolio work from different domaind with WPML from this thread:
I fixed that with Choices theme: http://www.nuforms.com
I think Angular has similar framework and could be fixed too.
AleksandrOctober 29, 2012 at 3:49 pm #94909
Thanks for the additional input Aleksandr :)
Hopefully this helps enriquebp.
DevinOctober 30, 2012 at 4:36 pm #94910
Canvas images can not be created from images that are located on different domains so the only ad hoc solution I can think of is to turn of the greyscaling function in your portfolios.
KriesiOctober 31, 2012 at 7:16 pm #94911
Thanks for the reply.
I have one idea but I’m not sure it’ll work.
(I am sorry about my English, I might not have explained my idea very clear)November 2, 2012 at 6:24 pm #94913
Hm, you might want to ask the WPML support team if this is easily possible, maybe with the help of a domain filter function…
We have something similar for our other themes, maybe it also works in this case. You can give it a shot by adding this scripts to the end of your functions.php file:
Before doing that please update to the latest theem version, which should be available within the next 24 hours
The topic ‘Portfolio wont load when entering the website from our alternate domain (WPML)’ is closed to new replies.