I am trying to: Create a new template / change template content for English (second language, first is German).
Link to a page where the issue can be seen: See attached screenshot
I expected to see: Successfully saving the template
Instead, I got: "Saving failed." on page save.
This issue occurs only when WPML is active. If deactivated, there is no issue.
However, this error only occurs if you select "English" in the WP admin menu and then go into the site editor. Neither creating a new nor changing existing templates is working here. The error is always "Saving failed." If language is German and we try the same, it works just fine.
Your default language is DE, correct? And you can edit and update templates in German without any problems, but trying to edit/update templates in English is not working, yes?
Your intention is not to use the translation editors to translate the template from DE to EN, and instead to use the normal WordPress editor, switch between languages, yes?
The templates are a feature of your theme? It looks like you are using a custom theme.
Would it be possible to get a copy of the theme (you can zip up the theme files and share a link to dropbox, wetransfer or similar here, the links are automatically hidden).
What kind of template were you editing when having this problem? (Or does it not matter?)
"Your default language is DE, correct? And you can edit and update templates in German without any problems, but trying to edit/update templates in English is not working, yes?"
That's correct.
"Your intention is not to use the translation editors to translate the template from DE to EN, and instead to use the normal WordPress editor, switch between languages, yes?"
Also correct, we manually translate each page via WP editor.
"The templates are a feature of your theme? It looks like you are using a custom theme.
Would it be possible to get a copy of the theme (you can zip up the theme files and share a link to dropbox, wetransfer or similar here, the links are automatically hidden)."
Yes, we are using a custom theme. However, when switching to a standard WP theme, the error still persists. In this regard I don't think it is necessary to share the theme.
"What kind of template were you editing when having this problem? (Or does it not matter?)"
Our goal is to have a "standard" template for english pages. At the moment, we can not create a template in the site editor which is then available to select when editing an english page. From our understanding, the only way to have that template available when editing an english page is by creating it in the site editor after selecting english in the admin menu.
I tested on my local test site with twentytwentythree theme and can reproduce the problem.
I searched and found an internal ticket about this, we have had two reports of some variation of this in the past. I'm adding this thread to that ticket, which should help bump the priority.
Note that this only occurs when WordPress is installed in a sub-directory (which is the case on my local site and appears to be with your site).
But if you want a different layout on different languages (rather than just translating texts that appear in the template) that's currently not possible.
I'll let you know when there are any updates from the developers relating to this.
Actually you are right, it does also not work over 'Quick Edit'. You say that the issue only appears to occur when WP is installed in sub-directoy. Can you confirm that it works when it is in the root. For us it is hightly important that we can use specific templates for the secondary language. Hopefully it can be fixed soon. Please keep us updated. Thanks!
Hi there, after one year I am wondering whether this problem is still not resolved and why it is still not possible to have different templates or template parts when the site is in a sub-directory? Thanks for any feedback.
I reviewed the internal tickets and you are correct to note that it is not resolved.
You are probably aware that there is a major upgrade of WPML in the works (version 4.7, of which a beta is available), which has been the principal focus of the development team for much of this year. This reported problem is open and scheduled to be looked at after the production release of 4.7.
In the meantime, I reconfirm that the problem only happens when WordPress is installed in a sub-directory, and note from the other reports that, in that case, it can be avoided if the settings are to add the language via a url parameter.
When I see progress in the internal ticket I will share it with you.
I'm sorry it hasn't been possible to resolve the problem already.
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.