OrdaSoft forum
Welcome, Guest
Please Login or Register.    Lost Password?
Joomla Translate works on one site, on other not (0 viewing) 

Joomla Translate component support

Go to bottom Favoured: 0

Joomla Translate works on one site, on other not

edinstven (User)
Fresh Boarder
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
Joomla Translate works on one site, on other not 1 Year ago
Karma: 0  
Joomla Translate (free version) works on one site, on other site (tested both paid and free version) its not working. The message in console is :
Code:

The resource from “https://translate-pa.googleapis.com/v1/supportedLanguages?%5Bobject%20Map%20Iterator%5D=%5Bobject%20Map%20Iterator%5D” was blocked due to MIME type (“application/json”) mismatch (X-Content-Type-Options: nosniff)


I remove Header always set X-Content-Type-Options "nosniff" in htaccess - no difference. Can you help us to get working pro version?

Translate API - Google.
Google API Key - entered in config, but the key not shown on page html code.
Logged Logged
Last Edit: 2023/11/30 09:55 By edinstven.
The administrator has disabled public write access.
admin (Admin)
Admin
Posts: 8367
graph
User Offline Click here to see the profile of this user
Re:Joomla Translate works on one site, on other not 1 Year ago
Karma: 102  
Hello

Could you give to us
full FTP and supper admin access
and our team will find solution special for You, FTP and admin access You can send to our contact form.
ordasoft.com/contact-us-form

We need:

Link to website.

Detail description: How reproduce error. Step by step. Detail description: how we may reproduce this.

Site Super Admin:
username
password

FTP:
FTP host
FTP username
FTP password


Thanks,
OrdaSoft team.
P.S. Please do site backup 2 times per month, it will save you a lot of problems in the future.
Logged Logged
The administrator has disabled public write access.
edinstven (User)
Fresh Boarder
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
Re:Joomla Translate works on one site, on other not 1 Year ago
Karma: 0  
I can't give you FTP and supper admin access, this is government site - website of bulgarian city - municipality. You can see your module working here:
Code:

https://bansko.bg/bg/за-община-банско/образование


The message in console:
Code:

The resource from “https://translate-pa.googleapis.com/v1/supportedLanguages?%5Bobject%20Map%20Iterator%5D=%5Bobject%20Map%20Iterator%5D” was blocked due to MIME type (“application/json”) mismatch (X-Content-Type-Options: nosniff)


If you open link, the message is:
Method doesn't allow unregistered callers (callers without established identity). Please use API Key or other form of API consumer identity to call this API

But Google translate API key entered in component config. And API key configuration is ok.
Logged Logged
Last Edit: 2023/12/01 07:45 By edinstven.
The administrator has disabled public write access.
edinstven (User)
Fresh Boarder
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
Re:Joomla Translate works on one site, on other not 1 Year ago
Karma: 0  
Tested with both paid and free version - with or without API key, the same error message. And I don't see API key in html code.

Where in code we can see the API key?

We are webdesign company, so we can do any code changes you send us to your translate component.
Logged Logged
The administrator has disabled public write access.
admin (Admin)
Admin
Posts: 8367
graph
User Offline Click here to see the profile of this user
Re:Joomla Translate works on one site, on other not 1 Year ago
Karma: 102  
Hello

1. Last Google APi not work together with Mootools. Please Turn off mootools,
In Joomla exist plugins for disable mootools,
Or you may simply rename mootols js files at
/media/system/js/mootools-core.js
/media/system/js/mootools-more.js

2. Also problem may in , in yours site security configuration
I've seen servers where everything is prohibited in htaccess
Please return Joomla Default htaccess file. If after translate start work - please find in your htaccess file - what forbid access to Google API

3. If you open your site in chrome, Press F12, and go to network tab, for request:
translate-pa.googleapis.com/v1/supportedLanguages?[object Map Iterator]=[object Map Iterator]
Your site return: Referrer Policy: strict-origin-when-cross-origin

This usually happens with your site/host denying access to the other site,
- error may resolve or as I described in point 2
- error may resolve if you wrote to your host provider
- or like described here: stackoverflow.com/questions/13421463/hta...control-allow-origin

Regards
OrdaSoft team
Logged Logged
The administrator has disabled public write access.
edinstven (User)
Fresh Boarder
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
Re:Joomla Translate works on one site, on other not 1 Year ago
Karma: 0  
Disabled mootools in frontend and now all works, thank you!
Logged Logged
The administrator has disabled public write access.
Go to top
»