Cet utilisateur n'a aucun sujet favori.
Sujets de forum favoris
Sujets de forum créés
| Statut |
Sujet
|
Support | Voix | Messages | Fraîcheur |
|---|---|---|---|---|---|
|
Error 500 accessing Translation Management in CMS
Commencé par : alessandraB-3
dans : English Support
Problem: PostTypeDto::__construct() with Visual Composer PRO plugin, this might be due to the plugin registering a custom post type without proper labels, causing a conflict with WPML. add_filter( 'wpml_post_type_dto_filter', function ( $postTypeObject ) {<br /> if ( is_object( $postTypeObject ) ) {<br /> $default = $postTypeObject->name ?? '';<br /> if ( ! isset( $postTypeObject->labels ) || ! is_object( $postTypeObject->labels ) ) {<br /> $postTypeObject->labels = new stdClass();<br /> }<br /> if ( empty( $postTypeObject->name ) ) {<br /> $postTypeObject->name = $default;<br /> }<br /> if ( empty( $postTypeObject->labels->name ) ) {<br /> $postTypeObject->labels->name = $default;<br /> }<br /> if ( empty( $postTypeObject->labels->singular_name ) ) {<br /> $postTypeObject->labels->singular_name = $default;<br /> }<br /> }<br /> return $postTypeObject;<br />} );2. Alternatively, manually edit the plugin file at /wp-content/uploads/visualcomposer-assets/addons/themeEditor/themeEditor/PostTypeController.php to ensure proper post type registration. |
|
0 | 7 | Il y a 5 mois | |
|
WPML chat support ticket by alessandraB-3 – 1648461798
Commencé par : alessandraB-3 dans : Chat Support |
|
1 | 2 |
Il y a 3 années et 9 mois
|