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 21 replies, has 4 voices.

Last updated by Raja Mohammed 3 years, 2 months ago.

Assisted by: Raja Mohammed.

Author Posts
November 24, 2020 at 3:40 pm #7518399

patriciaS-18

I am trying to edit content in backend using elementor

I expected to see the elementor editor

Instead, I got an error in the console as a rest api endpoint needed by the elementor editor is not working:

if tries to access this:
hidden link
which returns a 404, it works if it would use the
hidden link

but somehow, it does not work on the /nl subfolder which is created by WPML.

This is a huge blocking problem that is occuring on most of our website, we are stuck editing our websites because of this!

Screenshot 2020-11-24 at 16.37.08.jpg
November 25, 2020 at 6:10 pm #7528253

Raja Mohammed
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello there,

The issue seems to be similar to the one that is already resolved with the latest version of WPML. Can you please confirm the version of WPML used in your site the latest version is 4.4.6. If not already update please goto Plugins > Add New > Commercial , Click on "Check for Updates" and complete the update process.

Errata reference : https://wpml.org/errata/rest-api-endpoint-issue-when-permalink-structure-is-missing-a-final-slash/

In case if you donot see any updates, Better try to update using the manual update process.

* Steps to manual update
-- Backup your site and database
-- Deactivate and remove the WPML plugin from WP dashboard plugins section, This won't delete any data
-- Download a fresh copy of WPML plugin from you WPML account dashboard https://wpml.org/account/downloads/
-- Upload a fresh copy of the newer version of WPML multilingual CMS plugin to your site
-- Activate the plugin and register if required
-- Update the rest of the WPML plugin from plugins > Add New > Commercial Tab

Let me know if that helps

Regards
Raja

November 26, 2020 at 10:46 am #7533525

Izzi Hassan

Hi,

Thank you for reaching out to WPML Support.

As my colleague Raja is away today, I wanted to request a Duplicator or other backup of your website so that we can take a closer look.

Best,
Izzi

November 26, 2020 at 11:07 am #7533779

Janneke

I have the same issue, as described here.
https://wpml.org/forums/topic/wpml-changes-rest-api-urls-which-result-in-endless-loading-elementor-editor/

WPML changes the rest api url which does break Elementor plugin but also the redirection plugin and shows errors under /tools/site health and shows an error under wpml own support page.

This issue has impact on multiple items and needs a fix.

November 30, 2020 at 1:07 pm #7559747

patriciaS-18

I'm still having the issue after trying your fix.

December 1, 2020 at 4:21 am #7566181

Raja Mohammed
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

It would be better if you can send me a snapshot copy of your site so that I can debug the issue without disturbing your site.

You can use the Duplicator plugin to create a snapshot of the site and share the package link with me http://wordpress.org/plugins/duplicator/. Alternatively you can also use All in one Migration plugin to create a copy of your site https://wordpress.org/plugins/all-in-one-wp-migration/

December 2, 2020 at 2:26 pm #7579877

patriciaS-18

that will be complicated as we have 200 websites on it, the export is close to 200G...

We also have noticed that WPML has broken many rest api routes from other plugins.

right now, we have partially fixed the issue with a .htaccess redirection but it's just a patch and did not fix the broken rest api routes.

I can give you access temporarly on our preprod server if this would help ?

December 3, 2020 at 4:11 am #7583669

Raja Mohammed
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

You can send us a snapshot of a single site where the issue still persists. The duplicator and the migration plugin will only create a copy of the site in which it is installed can you please give it a try.

I am not sure access to the site might help as we need to debug this case.

December 7, 2020 at 4:06 pm #7609763

patriciaS-18

how can I send you the snapshot ?

December 8, 2020 at 5:22 am #7612721

Raja Mohammed
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

You can use any of plugin mentioned here to create a copy of the site https://wpml.org/forums/topic/rest-api-broken-after-update/#post-7566181

Once done upload it to a file sharing service like dropbox or gdrive and share the link here

December 15, 2020 at 10:08 am #7666825

Izzi Hassan

Hi,

Please see this Known Issue and try the workaround suggested:
https://wpml.org/errata/elementor-editor-does-not-load-due-to-a-rest-api-error/

I believe it should resolve your issue. Please also make sure all your plugins are updated and WPML is on v4.4.8.

Thank you!

December 16, 2020 at 1:03 pm #7677389

patriciaS-18

I tried to export with the plugins you told me but it just crashes, I guess I have too much data, even on one website...
So it is not possible for me to export the website!

On the other hand, I can probably find ways to give you access to our preprod environment in order for you to debug.

I have to tell you that we have been using WPML for a year and most of our problems came from it. WPML is poorly written, slow downs everything and breaks our website almost each updates and I'm getting really tired of it.

Right now, we cannot use Elementor when we are on 4.4.8 as WPML is breaking the rest api of it (and other plugins!) and rolling back to 4.4.3 breaks the translation manager, so we are stuck with a broken website and we know that it is WPML provoking those issues as deactivating it solves all issues!

Could you please help us more efficiently than thru this forum?

December 16, 2020 at 5:10 pm #7679843

Raja Mohammed
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Please try the workaround suggested here https://wpml.org/errata/elementor-editor-does-not-load-due-to-a-rest-api-error/

In case if you are unsure about how to apply the workaround please share access to the site along with FTP details. I can apply those fixes on your site. Your next reply will be private to securely share the details.

December 21, 2020 at 12:44 pm #7709559

patriciaS-18

I did, it did not change anything

December 21, 2020 at 1:19 pm #7709805

Raja Mohammed
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Please share access to your site, Preferably access to the staging site where i can see the issue. I am enabling private fields to securely share the details.

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