Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
The client is experiencing a 404 error when trying to use the Advanced Translation Editor with BeTheme, even though the documentation states that the theme is fully compatible with WPML.
Solution:
We recommend the following steps to resolve the issue:
1. Verify that the Site URL and WordPress URL in "Settings > General" match the actual domain you see in the browser's URL bar. If these fields are not editable, update the URL from the database or by following this article.
2. Ensure that the REST API is enabled on your site, as it is necessary for WPML's API to function correctly. If your site is in Maintenance mode, please disable it before proceeding.
3. If the 404 error persists, contact your hosting provider to check if the REST API access to your site is blocked. If so, request them to unblock it and then clear the caches from your site and browser before trying again.

If these steps do not resolve the issue or if the solution seems irrelevant due to being outdated or not applicable to your case, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. Should you need further assistance, please do not hesitate to open a new support ticket in our support forum.

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 6 replies, has 2 voices.

Last updated by Prosenjit Barman 1 year, 2 months ago.

Assisted by: Prosenjit Barman.

Author Posts
March 14, 2024 at 8:32 am #15408108

janneR-5

Thanks! Now I am able to register WPML Plugin.

But now I have other problem. I am using BeTheme and documentation says that theme is fully compatible with WPML, but when using Advanced Translation Editor I am getting 404 error when translating page.

March 14, 2024 at 11:28 am #15409414

Prosenjit Barman
WPML Supporter since 03/2023

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Hello There,
Thanks for contacting WPML Support.

The issue you're having could be due to the corrupted permalink structure. Would you please try the following and check if that helps in solving the issue?

- Please go to "Settings > Permalink" from your WordPress Dashboard
- Save the permalink structure without making any changes
- Try to access the translation editor.

If you're still having issues accessing the translation editor, please also try the following:

- Please go to "WPML > Support > Troubleshooting"
- Click on the following buttons:
-- Clear the cache in WPML
-- Synchronize local job ids with ATE jobs
-- Synchronize translators and translation managers with ATE
-- Assign translation status to duplicated content
-- Set language information
- Once done, please open any page in the default language and make a small change in the title.
- Save the changes and try to add the translation.

Please let me know if these steps help in solving the issue or if you need further assistance in this matter. I will be happy to help.

Best regards.
Prosenjit

March 14, 2024 at 12:41 pm #15409922

janneR-5

Still getting same error:

hidden link 404 (Not Found)

Can I provide some more information to you?

March 15, 2024 at 3:45 am #15412656

Prosenjit Barman
WPML Supporter since 03/2023

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Hi There,
Thank you for the update.

From the WPML Debug Info, I noticed that the REST API is currently not enabled on your site and that could be causing the issue with ATE. You can also check that by going to "WPML > Support" and scrolling down to the "WordPress" section. If you try to access hidden link, you should receive a JSON response, which is not happening in your case.

Could you please enable the REST API on your site and try again? If you're not sure about how you can enable it, you can check this article: hidden link

You can also reach out to the Hosting provider for assistance in enabling the REST API.

After enabling the REST, please go to WPML > Translation Management > Jobs and cancel the in-progress jobs by clicking the Trash icon. Once done, make a small update on the default page and then try to add the translation.

Please let me know how it goes. I will be happy to help if you need further assistance in this matter.

Best regards,
Prosenjit

March 15, 2024 at 6:33 am #15412730

janneR-5

Hi!

hidden link is working if I am logged in. I am using Be Theme under construction page, so people without access see under construction page.

Even If I disable that under construction page and do those steps, Advanced editor is not working.

If I open WPML->Translation Management I see error "The Advanced Editor jobs synchronization has failed"

I even did "Reset" for WPML, but still same problem.

March 15, 2024 at 8:44 am #15413184

Prosenjit Barman
WPML Supporter since 03/2023

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Thank you for the update.

In that case, a closer inspection will be required to understand the root cause of the issue.

I would like to request temporary access (wp-admin and FTP) to your site to take a better look at the issue. It would be better to have a testing site where the issue is replicated.

You will find the needed fields below the comment area when you log in to leave your next reply. The information you will enter is private which means only you and I can see and have access to it.

Maybe I'll need to replicate your site locally. For this, I’ll need to temporarily install a plugin called “Duplicator” or "All in One WP Migration" on your site. This will allow me to create a copy of your site and your content. Once the problem is resolved I will delete the local site. Let me know if this is ok with you.

IMPORTANT
-Please backup site files and database before providing us access.
-If you do not see the wp-admin/FTP fields this means your post & website login details will be made PUBLIC. DO NOT post your website details unless you see the required wp-admin/FTP fields. If you do not, please ask me to enable the private box. The private box looks like this:
hidden link

Looking forward to your response.

Best Regards,
Prosenjit

March 18, 2024 at 4:27 am #15419110

Prosenjit Barman
WPML Supporter since 03/2023

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Hello There,
I hope you're doing well. Sorry for the delay in responding due to the weekend.

Upon review, I discovered that the Base URL for the Advanced Translation Editor is being replaced with your website's domain which leads to the 404 error. There could be different reasons behind this but upon inspecting further, I found that both the Site URL and WordPress URL are set to 'hidden link', yet your site's main domain is "hidden link". As the first step to solving the issue, please try the following:

- Please go to "Settings > General" and update the Site URL and WordPress URL with the actual domain that you see in the URL Bar of the Browser. If the fields are not editable, you can either update the URL from the Database or by following this article: hidden link

- Once updated, please ensure that the REST API is enabled for the site otherwise the API of WPML will not work correctly. If it is required to disable the Maintenance mode, please disable it and then try to add translation.

- If you still seeing the 404 error, please reach out to your hosting provider and ask them to check if REST API access to your site is opened or Blocked. If it is blocked please ask them to open it, clear the caches from your site and browser then try again.

Please let me know how it goes. I will be happy to help if you need further assistance in this matter.

Best regards,
Prosenjit

March 18, 2024 at 2:40 pm #15421747

janneR-5

Thank you. I get rid of that hostinger preview-domain and it is working.

So that was the problem whole time.