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.

This topic contains 24 replies, has 4 voices.

Last updated by Bruno 3 years, 9 months ago.

Assisted by: Bruno.

Author Posts
June 23, 2020 at 4:58 pm #6437151

Bobby
Supporter

Languages: English (English )

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

To fully remove WPML and its data you will need to go to WPML->Support->Troubleshooting->RESET WPML

This will wipe the database and remove any additional content created from WPML.

If anything is left such as page/post you will need to manually remove it. It seems that possibly WPML wasn't tracking these pages due to removing the old original language, there could of been a mix up in the database.

July 1, 2020 at 4:11 pm #6497373

keithS-10

Hi – regarding this thread we have still persevered with WPML.

Having some success setting up new content for a new language. However the system has once again crashed. It seems to happen whilst trying to either edit a page 'independently' of a duplicate or if you try and delete a translated page. As you can see the site has hit a 404 error: hidden link . In the backend we get 'Updating failed. The response is not a valid JSON response.' upon trying to edit with Elementor on a page.

I can supply a login within a private reply. This glitch is worrying because the live site will do the same should our client try to repeat the actions above.

July 1, 2020 at 5:51 pm #6498229

Bobby
Supporter

Languages: English (English )

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

A private link has been provided

July 2, 2020 at 8:20 pm #6508103

Bobby
Supporter

Languages: English (English )

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

Thank you for the access details!

The issue is coming from your htaccess file, which is being rewritten with the directory within it

# BEGIN WordPress
# The directives (lines) between `BEGIN WordPress` and `END WordPress` are
# dynamically generated, and should only be modified via WordPress filters.
# Any changes to the directives between these markers will be overwritten.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /gb/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /gb/index.php [L]
</IfModule>

# END WordPress

Please review the following documentation:

https://wpml.org/errata/htaccess-is-rewritten-with-language-folder/

July 2, 2020 at 9:13 pm #6508337

keithS-10

Ah ok, thanks – although can you indicate how to fix the site now WPML has clashed with another plugin. Do we change something in htaccess file, or apply the temporary code to the functions php from the link you provided (why is this temporary?). We will need to find that third party culprit to ensure this doesn't happen to the live site. Are you able to advise?

July 2, 2020 at 10:43 pm #6508539

Bobby
Supporter

Languages: English (English )

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

I actually advise to do the following

1. Apply the code in the functions.php file of the theme

2. Fix the htaccess file, as it has /gb/ within it causing a redirection, you can see what a standard htaccess file should look like (NOTE: Just for the part of WP excluding the workforce additions)

https://wordpress.org/support/article/htaccess/

Additionally, you can try to locate which third party plugin might cause this but the above steps will help you resolve the issue now.

If you locate the plugin then we recommend reaching out to their developers as this is not caused by our plugin, rather our plugin is affected by it along with the site.

That should fix that issue, and you can apply the same solution on the live site as well.

Let me know your results, please.

July 3, 2020 at 8:02 am #6511337

keithS-10

Thanks for the guidance Bobby. Although those procedures haven't resolved the staging site from being down. I wonder could this whole issue be down to an A record pointing incorrectly?.. to just the /gb site? Our client instructed the host previously so i'm wondering why the htaccess had changed.

The language url format (seen in the screenshot attached) isn't letting us click 'languages in directories', which i believe is what we need for the site. The client requires language code after the main url – ie, /gb or /au etc.

Although... reviewed the live site, the url format is set to 'language in directories' without the error message, and the htaccess file is as it should be. So potentially the test site is an isolated issue... but one that needs to be resolved because it will override the live site once fixed.

Screenshot 2020-07-03 at 08.48.14.png
July 6, 2020 at 7:39 am #6527743

keithS-10

Please could you advise?

July 6, 2020 at 11:59 am #6529935

Itamar
Supporter

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+03:00)

This issue of this ticket was just handled in a chat.
https://wpml.org/forums/topic/wpml-chat-support-ticket-by-keiths-10-1594027650/
Please close this ticket. In our forum, we try to keep one issue per ticket. Continuing with one ticket per issue helps the supporters to focus on one issue.

Regards,
Itamar.

July 6, 2020 at 12:12 pm #6530061

Bruno

Hello,

As mentioned by Itamar, this ticket was resolved on another ticket. For this reason, we are closed on this ticket.

Any other questions you may have, please open a new ticket.

Thank you.

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.