We are currently facing two critical issues regarding Gutenberg Template Parts on our WPVIP (WordPress VIP) environment. These issues affect all secondary languages (non-default). We would appreciate your assistance in resolving these:
1. 404 Error on Saving Template Parts in Secondary Languages
When attempting to create or save a Gutenberg Template Part in any language other than the default, the editor returns a 404 Not Found error.
This occurs during the save/update process for translated versions.
The default language saves without issues.
Given our WPVIP infrastructure, please let us know if there are specific REST API requirements or rewrite rules we need to adjust to ensure translated Template Parts are reachable.
2. Incomplete Translation of Header Template Part (Missing CTA Block)
When translating our "Header" template part via the Translation Editor, WPML only detects the Navigation Block.
The Issue: The header also contains a CTA Button block which is being ignored by the translation package.
Current Status: We have already translated the button text via WPML String Translation, but the translated text does not render on the front end for secondary languages.
The translation interface for the Template Part does not display the CTA block attributes for editing.
WPVIP Support Reply:
This is a WPML bug that needs to be reported to the plugin support team. When contacting WPML, you can share the following:
Issue: Creating/updating/deleting template parts fails with 404 when using non-default languages.
Environment: WordPress multisite with subdirectories, using "Different languages in directories" URL format.
Cause: The rest_url filter in class-wpml-url-converter-subdir-strategy.php incorrectly prepends the language directory (/de/, /ja/, etc.) to REST API URLs.
Expected behavior: REST API URLs should not include the language directory prefix.
WPML Add-ons: String Translation and Translation Management are active.
Could you please provide guidance on why secondary language Template Parts are triggering 404s and how to ensure all blocks within a Template Part (specifically the CTA button) are correctly registered for translation?
The issue is escalated to the second tier support. Is there a way to deactivate plugins in WPVIP so we can check the WPML behavior in an isolated manner?
I am writing to inform you that we are scheduled to update WPML to version 4.9.2. I will send a follow-up notification once the update has been successfully completed.