Problem: If you're encountering a PHP Fatal Error when trying to access the WPML admin page, it might be due to a conflict with the Visual Composer PRO plugin, which registers a custom post type without proper labels. Solution: First, ensure you back up your database and website. We recommend trying one of the following workarounds: Workaround 1 (recommended): Add the following code to your theme’s functions.php file:
Workaround 2: Manually edit the plugin file at /wp-content/uploads/visualcomposer-assets/addons/themeEditor/themeEditor/PostTypeController.php. Replace the existing register_post_type function with:
protected function registerPostType()<br />{<br /> if (!isset($this->postNamePlural)){<br /> $this->postNamePlural = $this->postNameSlug;<br /> }<br /> register_post_type(<br />}
Note that this change might be lost if the plugin updates. We also recommend reporting this issue to the Visual Composer PRO team for a permanent fix.
If this solution does not apply to your case, or if it seems outdated, please check the related known issues and confirm that you have installed the latest versions of themes and plugins. If the problem persists, we highly recommend opening a new support ticket with us for further assistance.
Problem: You are trying to edit the 'Theme and Plugins Localization' section on your WordPress site and encountered an E_ERROR in wpml-string-translation plugin due to an unknown format specifier 't'. Solution: This issue is recognized as a known problem. Although the specific plugin mentioned in the errata might not be in use, another active plugin could be registering a text domain improperly, leading to this error. For more information and potential solutions, please refer to the errata page: https://wpml.org/errata/flux-checkout-fatal-error-uncaught-valueerror-unknown-format-specifier-t/.
If this solution does not apply to your case, or if it seems outdated, we recommend opening a new support ticket. We also highly suggest 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. For further assistance, please visit our support forum: WPML Support Forum.