Forum Archive - Widgetkit and GTranslate problem

Widgetkit and GTranslate problem
Aug 27, 2015 9:59 am by claesbas
http://alanyapenthouse.net/ Please check the Slideset we built with YOOtheme.com Widgetkit 1 ... Its on start page. Guest book thing., When clicking on any other language this is empty ... ? Is there a way to fix this?
Re: Widgetkit and GTranslate problem
Aug 28, 2015 12:18 pm by Edvard
Hi, When I check the javascript error log I can see this: XMLHttpRequest cannot load http://alanyapenthouse.net/media/widgetkit/widgets/lightbox/js/lightbox.js?wkv=1.4.9?wkv=1.4.9. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://en.alanyapenthouse.net' is therefore not allowed access. (index):1 XMLHttpRequest cannot load http://alanyapenthouse.net/media/widgetkit/widgets/mediaplayer/mediaelement/mediaelement-and-player.js?wkv=1.4.9?wkv=1.4.9. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://en.alanyapenthouse.net' is therefore not allowed access. (index):1 XMLHttpRequest cannot load http://alanyapenthouse.net/media/widgetkit/widgets/spotlight/js/spotlight.js?wkv=1.4.9?wkv=1.4.9. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://en.alanyapenthouse.net' is therefore not allowed access. (index):1 XMLHttpRequest cannot load http://alanyapenthouse.net/media/widgetkit/widgets/slideset/js/slideset.js?wkv=1.4.9?wkv=1.4.9. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://en.alanyapenthouse.net' is therefore not allowed access. You need to add Access-Control-Allow-Origin in your .htaccess for those files or for all js files like this: <FilesMatch "\.(js)$"> Header set Access-Control-Allow-Origin "*" </FilesMatch>
Re: Widgetkit and GTranslate problem
Aug 30, 2015 9:18 pm by claesbas
Ok tried adn added that to .htaccess... still no luck there. Does it take time for it to recache? Or shoudl it work directly?
Re: Widgetkit and GTranslate problem
Aug 31, 2015 1:35 pm by claesbas
Widgetkit must be pretty common thing on Joomla sites? You never encountered this problem before? https://yootheme.com/
Re: Widgetkit and GTranslate problem
Aug 31, 2015 5:09 pm by Edvard
It looks good for me. Please use Ctrl+F5 to reload your page. Thanks!
Re: Widgetkit and GTranslate problem
Aug 31, 2015 7:46 pm by claesbas
No its not working. It works in the original language Swedish whcih the website is built in. Go to http://alanyapenthouse.net/ and look in the bottom of the content area. You will se a slide set animating text (this is Widgetkit Slideset from Yootheme). Now try any other langyage: http://en.alanyapenthouse.net/ and you see its empty... We have this Guest book comments on other pages too and same result: http://alanyapenthouse.net/priser - working fine in original. See here in german: http://de.alanyapenthouse.net/priser
Re: Widgetkit and GTranslate problem
Aug 31, 2015 7:50 pm by Edvard
Please clear your browser cache. After your changes I do not see the errors and it works for me. Thanks!
Re: Widgetkit and GTranslate problem
Sep 1, 2015 6:52 am by claesbas
Hmm seems to be a Firefox issue. Chrome works fine. But in Firefox it does not work... the other languages get empty
Re: Widgetkit and GTranslate problem
Sep 1, 2015 4:06 pm by claesbas
Can you confirm that it does not work in Firefox?
Re: Widgetkit and GTranslate problem
Sep 1, 2015 5:13 pm by Yana
Yes, it doesn't work with Firefox.
Re: Widgetkit and GTranslate problem
Sep 2, 2015 10:17 am by claesbas
Ok, you have any idea where I can find help for this? Should I go to Firefox forums or do you think you are able to find a fix?
Re: Widgetkit and GTranslate problem
Sep 2, 2015 10:19 am by claesbas
Also it does not work in Internet Explorer 11 on my machine. It also does not work in Safari. So it seems it is a Gtranslate problem ... or Apple, Microsoft and Mozilla has got all their webbrowsers wrong.
Re: Widgetkit and GTranslate problem
Sep 2, 2015 10:50 pm by Edvard
Hi, I have went into the source code of your website and want to try the following. I can see this file which tries to load the javascript files for the slideshow, etc. which is widgetkit: http://alanyapenthouse.net/cache/widget ... 7a1e0a1.js It is the cached version, probably there should be the original version or it is being generated somehow, but first we can modify the cached version to find out if it works. So open that file and replace: /media/widgetkit with http://alanyapenthouse.net/media/widgetkit and let's see what happens. It seems that Firefox do not want to load javascript files which have redirects. Let me know when it is done, so I can check. Edit: The next thing I would like to try is change $.ajax({dataType:"script",cache:true,url:url}) into $.ajax({dataType:"script",cache:true,url:url,crossDomain:true}) inside the same file. Do not do this for now. Thnaks!
Re: Widgetkit and GTranslate problem
Apr 17, 2017 2:31 pm by Edvard
Setting this in your .htaccess file should fix the issue: <FilesMatch "\.(js)$"> Header set Access-Control-Allow-Origin "*" Header set Access-Control-Allow-Headers "X-Requested-With" </FilesMatch>

SIMILAR TOPICS

Gtranslate MultisiteFeb 12, 2019 7:27 amReplies: 1Post by: infact_dat
Gtranslate: Error with numberFeb 20, 2019 1:20 amReplies: 1Post by: infact_dat
GTranslate 3.7.4, Joomla 3.9.3 - doGTranslate is not definedFeb 22, 2019 12:34 pmReplies: 1Post by: oase
Add-on gtranslate no longer worksFeb 2, 2019 6:01 amReplies: 1Post by: DarylDixon
Joomshaper Pagebuilder buttons Link edit problemJan 11, 2019 10:04 amReplies: 1Post by: kumatest

Try GTranslate with a free 15 day trial