Please make sure to update to WPML 4.3.4 before reporting any issue

Hi, Amit here, I am the WPML Support Manager, our current ticket queue is high, update your WPML plugins and make sure you meet the minimal requirements for running WPML before reporting an issue please - many tickets are resolved doing that

Please look at our updated list of Known Issues and you can also use our support search to find helpful information and of course review our documentation before opening a ticket.

If you do need to open a ticket please make sure to provide us with all the needed information as described in this page

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

Tagged: 

This topic contains 12 replies, has 2 voices.

Last updated by danC-23 1 month ago.

Assigned support staff: Bobby.

Author Posts
October 4, 2019 at 12:18 pm #4695699

danC-23

Hello,

I had Language URL format using: Different languages in directories.
Now I noticed that this is not working anymore.
Unfortunately I can't edit the .htacess file because I have Managed WordPress and I am not allowed to change this file.
So I changed the "Language URL format" to "Language name added as a parameter".
But this doesn't work.

Can you please help me with this issue?

Thank you!

October 4, 2019 at 9:28 pm #4698673

Bobby
Supporter

Languages: English (English )

Timezone: America/Los_Angeles (GMT-08:00)

Hello,

At the moment if I understand correctly, both URL Formats Different languages in directories and Language name added as a parameter , are not working.

Do you get an error or a blank page in the front end?

If possible provide me with some additional information on the issue you are facing so I can better understand the issue.

October 8, 2019 at 1:40 pm #4715975

danC-23

Hello,

That is correct, both URL formats are not working.
This is what I get:

1. When "Different languages in directories" is selected:
If I go to hidden link, I get redirected to hidden link

2. When "Language name added as a parameter" is selected:
If I go to hidden link, I get a page saying "Keine Ergebnisse gefunden" - no results found

In case you need more info, please let me know. We have an event coming soon and we need this page translated to German as soon as possible.

Thank you,
Dan

October 8, 2019 at 5:40 pm #4717469

Bobby
Supporter

Languages: English (English )

Timezone: America/Los_Angeles (GMT-08:00)

Hello,

I have run a redirect check on your /de/ url and can see that there is an activate 301 Redirect.

<em><u>hidden link</u></em>

HTTP/2 301 
date: Tue, 08 Oct 2019 17:36:23 GMT
content-type: text/html; charset=UTF-8
set-cookie: __cfduid=d3f1e3349c551e8b6ff05d3822c36f4231570556180; expires=Wed, 07-Oct-20 17:36:20 GMT; path=/; domain=.ecograndprix.com; HttpOnly; Secure
x-powered-by: PHP/7.3.9
x-cf-powered-by: WP Rocket 3.3.7
expires: Wed, 11 Jan 1984 05:00:00 GMT
cache-control: no-cache, must-revalidate, max-age=0
x-redirect-by: WordPress
location: <em><u>hidden link</u></em>
cf-cache-status: DYNAMIC
expect-ct: max-age=604800, report-uri="<em><u>hidden link</u></em>"
server: cloudflare
cf-ray: 5229e0630e5f931c-SJC

1. Are you aware of this 301 redirect?

2. Do you have any custom contents within your .htaccess file that could change the structure of the url '/' ? If possible share the contents or a screenshot of the file with me.

October 9, 2019 at 8:23 am #4720651

danC-23

Hello,

I think the redirect was caused by Cloudflare.
I disabled Cloudflare now but the page hidden link still doesn't show. I get redirected to hidden link

This is weird because I did a translation a few weeks ago and it works:
This is the original in English: hidden link
This is the translated page in Spanish: hidden link

This is the content of .htaccess:

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE text/cache-manifest
AddOutputFilterByType DEFLATE text/javascript
AddOutputFilterByType DEFLATE text/vcard
AddOutputFilterByType DEFLATE text/vnd.rim.location.xloc
AddOutputFilterByType DEFLATE text/vtt
AddOutputFilterByType DEFLATE text/x-component
AddOutputFilterByType DEFLATE text/x-cross-domain-policy
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript
AddOutputFilterByType DEFLATE application/json
AddOutputFilterByType DEFLATE application/ld+json
AddOutputFilterByType DEFLATE application/atom+xml
AddOutputFilterByType DEFLATE application/manifest+json
AddOutputFilterByType DEFLATE application/rdf+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/schema+json
AddOutputFilterByType DEFLATE application/vnd.geo+json
AddOutputFilterByType DEFLATE application/vnd.ms-fontobject
AddOutputFilterByType DEFLATE application/x-font-ttf
AddOutputFilterByType DEFLATE application/x-javascript
AddOutputFilterByType DEFLATE application/x-web-app-manifest+json
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE font/eot
AddOutputFilterByType DEFLATE font/opentype
AddOutputFilterByType DEFLATE image/bmp
AddOutputFilterByType DEFLATE image/svg+xml
AddOutputFilterByType DEFLATE image/vnd.microsoft.icon
AddOutputFilterByType DEFLATE image/x-icon
</IfModule>

<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType text/css A2419200
ExpiresByType text/x-component A2419200
ExpiresByType application/x-javascript A2419200
ExpiresByType application/javascript A2419200
ExpiresByType text/javascript A2419200
ExpiresByType text/x-js A2419200
ExpiresByType text/html A3600
ExpiresByType text/richtext A3600
ExpiresByType image/svg+xml A3600
ExpiresByType text/plain A3600
ExpiresByType text/xsd A3600
ExpiresByType text/xsl A3600
ExpiresByType text/xml A3600
ExpiresByType video/asf A2419200
ExpiresByType video/avi A2419200
ExpiresByType image/bmp A2419200
ExpiresByType application/java A2419200
ExpiresByType video/divx A2419200
ExpiresByType application/msword A2419200
ExpiresByType application/vnd.ms-fontobject A2419200
ExpiresByType application/x-msdownload A2419200
ExpiresByType image/gif A2419200
ExpiresByType application/x-gzip A2419200
ExpiresByType image/x-icon A2419200
ExpiresByType image/jpeg A2419200
ExpiresByType application/json A2419200
ExpiresByType application/vnd.ms-access A2419200
ExpiresByType audio/midi A2419200
ExpiresByType video/quicktime A2419200
ExpiresByType audio/mpeg A2419200
ExpiresByType video/mp4 A2419200
ExpiresByType video/mpeg A2419200
ExpiresByType application/vnd.ms-project A2419200
ExpiresByType application/x-font-otf A2419200
ExpiresByType application/vnd.ms-opentype A2419200
ExpiresByType application/vnd.oasis.opendocument.database A2419200
ExpiresByType application/vnd.oasis.opendocument.chart A2419200
ExpiresByType application/vnd.oasis.opendocument.formula A2419200
ExpiresByType application/vnd.oasis.opendocument.graphics A2419200
ExpiresByType application/vnd.oasis.opendocument.presentation A2419200
ExpiresByType application/vnd.oasis.opendocument.spreadsheet A2419200
ExpiresByType application/vnd.oasis.opendocument.text A2419200
ExpiresByType audio/ogg A2419200
ExpiresByType application/pdf A2419200
ExpiresByType image/png A2419200
ExpiresByType application/vnd.ms-powerpoint A2419200
ExpiresByType audio/x-realaudio A2419200
ExpiresByType image/svg+xml A2419200
ExpiresByType application/x-shockwave-flash A2419200
ExpiresByType application/x-tar A2419200
ExpiresByType image/tiff A2419200
ExpiresByType application/x-font-ttf A2419200
ExpiresByType application/vnd.ms-opentype A2419200
ExpiresByType audio/wav A2419200
ExpiresByType audio/wma A2419200
ExpiresByType application/vnd.ms-write A2419200
ExpiresByType application/font-woff A2419200
ExpiresByType application/vnd.ms-excel A2419200
ExpiresByType application/zip A2419200
</IfModule>

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

AddHandler x-mapp-php5.5 .php

Thank you,
Dan

October 9, 2019 at 5:16 pm #4724809

Bobby
Supporter

Languages: English (English )

Timezone: America/Los_Angeles (GMT-08:00)

Hi Dan,

Within your .htaccess file it looks like you have the following twice.

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

Also while checking the redirect i was able to see that the 301 redirect still exists.

HTTP/2 301 
content-type: text/html; charset=UTF-8
content-length: 0
location: <em><u>hidden link</u></em>
date: Wed, 09 Oct 2019 17:13:58 GMT
server: Apache
x-powered-by: PHP/7.3.10
expires: Wed, 11 Jan 1984 05:00:00 GMT
cache-control: no-cache, must-revalidate, max-age=0
x-redirect-by: WordPress

What are your results when Yoast is deactivated?

Note : You can check for redirects here hidden link

October 15, 2019 at 9:49 am #4755947

danC-23

Hi Bobby,

I disabled Yoast and WP Rocket and still WPML is not working for hidden link
while hidden link is working.

I used hidden link and I got the following:

ecograndprix.com

HTTP/1.1 200 OK
Content-Type: text/html; charset=UTF-8
Transfer-Encoding: chunked
Connection: keep-alive
Keep-Alive: timeout=15
Date: Tue, 15 Oct 2019 09:45:26 GMT
Server: Apache
X-Powered-By: PHP/7.3.10
Link: ; rel="hidden link", ; rel=shortlink

What can I do to get WPML to work?

Thank you,
Dan

October 15, 2019 at 11:29 pm #4760741

Bobby
Supporter

Languages: English (English )

Timezone: America/Los_Angeles (GMT-08:00)

Thank you for updating me.

If possible please contact your host provider and let me know their feedback on the 301 redirects.

Additionally, the private information for the site has been removed I have enabled the private field reply so i can get a closer look at the backend again to perform more tests.

October 16, 2019 at 6:43 pm #4768095

Bobby
Supporter

Languages: English (English )

Timezone: America/Los_Angeles (GMT-08:00)

Thank you for the access details!

The translation of your homepage is not 100% completed, which is why you were getting a 301 redirect.

When the translation of a page is not 100% completed it will not display in the front end.

After clicking on the "gear icon" I have completed the translation of the page to 100% by checking the boxes "Translation is complete" and saved it.

Note that I simply copied all fields from the original language but feel free to overwrite them with your translation.

Please verify with me that it shows as expected now without a redirect:
=>hidden link

October 17, 2019 at 9:16 am #4771511

danC-23

Hi Bobby,

I still encounter the same error on this page:
hidden link

I am redirected to hidden link
although this page 100% translated as shown in the attached screenshot.

The credentials for the German translation are:
[removed]

Can you please check this?

Thank you!

October 17, 2019 at 4:49 pm #4776061

Bobby
Supporter

Languages: English (English )

Timezone: America/Los_Angeles (GMT-08:00)

This is happening because the permalink for the DE translation is not /de/germany-24h but
/de/die-24-stunden-von-deutschland-2019 .

You can see the page live here hidden link

1. Edit the default language
2. Use the top header language switcher and switch to German(dismiss the warning)
3. Review the permalink on the right side of the page and edit it if needed.

October 18, 2019 at 12:01 pm #4781661

danC-23

Hi Bobby,

Thank you very much for your help and patience.
This was the issue, it's working now.

All the best,
Dan

October 18, 2019 at 12:05 pm #4781733

danC-23

My issue is resolved now. Thank you!