[Resolved] Updating failed. You are probably offline.
This thread is resolved. Here is a description of the problem and solution.
Problem:
I am trying to:
Add a translation to a post/page.
1. Write the post title and content for a new post.
2. Click Save Draft or Publish.
3. Add a translation to that post.
4. Click the plus icon on language.
5. WordPress opens the translation page
6. Write the title and content.
7. Press Save Draft or Publish.
I expected to see:
Draft saved or post published.
Instead, I got:
Updating failed. You are probably offline.
- - -
I added a screenshot with the console log. It seems that WPML can't connect with the REST API and it fails. GET shows the REST url, but it's missing a slash.
1. Write the post title and content for a new post.
2. Click Save Draft or Publish.
3. Add a translation to that post.
4. Click the plus icon on language.
5. WordPress opens the translation page
6. Write the title and content.
7. Press Save Draft or Publish.
I expected to see:
Draft saved or post published.
Instead, I got:
Updating failed. You are probably offline.
- - -
I added a screenshot with the console log. It seems that WPML can't connect with the REST API and it fails. GET shows the REST url, but it's missing a slash.
I allready have the latest WPML installed and the class-wpml-url-converter-subdir-strategy.php file allready has the patch.
I also tried to force the trailing slash through wp-config.php by adding:
define( 'WP_HOME', 'hidden link' );
define( 'WP_SITEURL', 'hidden link' );
but WordPress seems to remove them by default.
- - -
The WPML plug-ins and versions I have installed:
WPML Multilingual CMS Version 4.4.9
WPML String Translation Version 3.1.7
WPML Translation Management Version 2.10.5
WPML Media Version 2.6.3
Languages: English (English )Spanish (Español )German (Deutsch )
Timezone: Europe/Madrid (GMT+02:00)
Hi,
may you have a staging site where I could take a look?
I would eventually also need to request temporary access (WP-Admin and FTP) to your site
– preferably to a test site where the problem has been replicated if possible –
in order to be of better help and check if some configurations might need to be changed
Your next answer will be private which means only you and I have access to it.
❌ Please backup your database and website ❌
✙ I would additionally need your permission to de-activate and re-activate Plugins and the Theme, and to change configurations on the site. This is also a reason the backup is really important.
✙ Please add the Links to the […] Edit Screen, the Page/Post where you insert the […] and the corresponding Front End Page/Screen
Languages: English (English )Spanish (Español )German (Deutsch )
Timezone: Europe/Madrid (GMT+02:00)
Hi,
thanks, I was able to reproduce it on your test site.
I configured a new Sandbox environment and tried it with a default Post and I can't reproduce the issue here using the same Permalink settings: hidden link
Please try if you can reproduce it on our isolated Sandbox environment. Try first to add your CPT to our default Theme in functions.php and try to reproduce this way. If the error doesn't occur there, try to install your full Theme to exclude any error in your theme code.
Please let me know.
Best Regards
Marcel
Manage Cookie Consent
We use cookies to optimize our website and services. Your consent allows us to process data such as browsing behavior. Not consenting may affect some features.
Functional
Always active
Required for our website to operate and communicate correctly.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
We use these to analyze the statistics of our site. Collected information is completely anonymous.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
These cookies track your browsing to provide ads relevant to you.