Skip Navigation

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.

Sun Mon Tue Wed Thu Fri Sat
- 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 -
- 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 -

Supporter timezone: Asia/Ho_Chi_Minh (GMT+07:00)

This topic contains 4 replies, has 2 voices.

Last updated by Long Nguyen 1 year, 7 months ago.

Assisted by: Long Nguyen.

Author Posts
June 2, 2023 at 12:02 pm #13761391

Jose

My website uses /es for Spanish , /pt for Portugues and /en for English content.

The front office is working ok but the back office got broken and when I try to visit
hidden link
I get redirected to this 404 Page:
hidden link

I think we have something odd going on... perhaps in our .htaccess ?

Since I don't have access to our WP Panel I can't share the Debug Info either.

But let me share our .htaccess with you here:

#Begin Really Simple Security
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTPS} !=on [NC]
RewriteRule ^(.*)$ hidden link{HTTP_HOST}/$1 [R=301,L]
</IfModule>

Options -Indexes
#End Really Simple Security
# BEGIN WordPress
# Las directivas (líneas) entre «BEGIN WordPress» y «END WordPress» son
# generadas dinámicamente y solo deberían ser modificadas mediante
# filtros de WordPress.
# Cualquier cambio en las directivas que hay entre esos marcadores
# serán sobrescritas.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

#Redirect 301 /es/wp-login hidden link

# END WordPress

As you can see, I tried creating a 301 redirection to fix this but it didn't work so I commented that line.

Looking forward to hearing back from you.

June 4, 2023 at 7:58 am #13765375

Jose

I disable sitepress cms plugin (the main WPML plugin) by adding an underscore in FTP (like this: _sitepress_cms).
This gave me access to my back office again.
Then I want to my WP settings and I noticed that my WP was in ENGLISH while my main WPML language is SPANISH.
So I changed WP to Spanish and removed the underscore in the plugin (to make it enable again) and this solved my issue.

So apparently WPML main language MUST be the same as your WP language.

I hope this might be of help to others with similar issues.

June 5, 2023 at 4:06 pm #13773273

Jose

hello again,

I thought I had fixed my problem but it "came back".

I disabled sitepress-multilingual-cms plugin and could get back into the back end of my WP.

By the way, I have checked and the Settings Language were still in Spanish and my wp-config.php mentions ES too:
define( 'WPLANG', 'es_ES' );

If I enable sitepress-multilingual-cms plugin again, I lose access to the back end because visiting /wp-admin redirects me to hidden link
and shows a 404 error page

BTW, this is my .htaccess in case it's helpful information:

#Begin Really Simple Security
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTPS} !=on [NC]
RewriteRule ^(.*)$ hidden link{HTTP_HOST}/$1 [R=301,L]
</IfModule>

Options -Indexes
#End Really Simple Security
# BEGIN WordPress
# Las directivas (líneas) entre «BEGIN WordPress» y «END WordPress» son
# generadas dinámicamente y solo deberían ser modificadas mediante
# filtros de WordPress.
# Cualquier cambio en las directivas que hay entre esos marcadores
# serán sobrescritas.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

#Redirect 301 /es/wp-login hidden link

# END WordPress

# BEGIN DS-XML-RPC-API
# Las directivas (líneas) entre «BEGIN DS-XML-RPC-API» y «END DS-XML-RPC-API» son
# generadas dinámicamente y solo deberían ser modificadas mediante filtros de WordPress.
# Cualquier cambio en las directivas que hay entre esos marcadores serán sobrescritas.

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^hidden link [NC]
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?google.com [NC]
RewriteRule \.(jpg|jpeg|png|gif)$ – [NC,F,L]

<Files xmlrpc.php>
order deny,allow
deny from all

Allow from 122.248.245.244/32
Allow from 54.217.201.243/32
Allow from 54.232.116.4/32
Allow from 192.0.80.0/20
Allow from 192.0.96.0/20
Allow from 192.0.112.0/20
Allow from 195.234.108.0/22
Allow from 192.0.96.202/32
Allow from 192.0.98.138/32
Allow from 192.0.102.71/32
Allow from 192.0.102.95/32
</Files>

# END DS-XML-RPC-API

June 6, 2023 at 6:42 pm #13781059

Jose

Apparently I fixed my back office issue by unchecking the option WPML > Settings > Allow login page translation (see the attached screen capture)

But I got a new big problem on the Front End: my images don't show up and instead I only see their Alt Text (see the attached screen capture)

I've highlighted an image that has this code in my Homepage:
<img data-tf-not-load="1" decoding="async" src="hidden link" class="wp-post-image wp-image-2698" title="Derm-nix__9988" alt="Derm-nix__9988" srcset="hidden link 1920w, hidden link 150w, hidden link 300w, hidden link 225w, hidden link 900w, hidden link 768w, hidden link 1152w, hidden link 1536w" sizes="(max-width: 1920px) 100vw, 1920px" width="1920" height="2560">

So in theory it's hosted here, right?
hidden link
And that URL works fine to me, so why isn't it loading on the website?

Captura de pantalla 2023-06-06 a las 20.40.09.png
Captura de pantalla 2023-06-06 a las 20.36.13.png
June 7, 2023 at 3:07 am #13781861

Long Nguyen
Supporter

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi Jose,

Thank you for contacting WPML support, I'd be happy to help you with this issue.

>> So in theory it's hosted here, right?
Yes, WPML does not duplicate the media file on your site, only the entry in the database is duplicated. Please read more in the documentation https://wpml.org/documentation/getting-started-guide/media-translation/#id5

Please try to follow some steps below and see if it helps:

1. Enable a minimal environment:
- Deactivate all non-WPML plugins
- Switch to a standard theme of WordPress
❌ IMPORTANT: Please backup your database and website before proceeding ❌

2. Make a small change to the page title/content > save changes > update the translation.

I also need more information on your site by sharing the debug info. If you don’t know how to share the debug info, please follow this article
https://wpml.org/faq/provide-debug-information-faster-support/
Your next reply is enabled to share the debug info.

Look forward to your reply.
Thanks

The topic ‘[Closed] I get a 404 error with I try to log into wp-admin’ is closed to new replies.