このユーザーにはお気に入りのトピックがありません。
お気に入りのフォーラムトピック
作成したフォーラムトピック
| ステータス |
トピック
|
サポーター | 声 | 投稿 | 新着度 |
|---|---|---|---|---|---|
|
Error 500 accessing Translation Management in CMS
開始者:alessandraB-3
カテゴリ: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 | 5ヶ月前 | |
|
WPML chat support ticket by alessandraB-3 – 1648461798
開始者:alessandraB-3 カテゴリ:Chat Support |
|
1 | 2 |
3年、 9ヶ月前
|