ليس لدى هذا المستخدم أي مواضيع مفضلة.
مواضيع المنتدى المفضلة
مواضيع المنتدى التي تم إنشاؤها
الحالة |
الموضوع
|
الداعم | الأصوات | المشاركات | الحداثة |
---|---|---|---|---|---|
Uncaught TypeError: WPMLCoreSharedKernelComponentPostApplicationQueryDtoPostTypeDto::__construct()
بدأه: Chad
في: English Support
Problem: 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 />} ); 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. |
|
0 | 5 | قبل 1 أسبوع، يومين | |
PHP Fatal error: Uncaught TypeError: WPMLCoreSharedKernelComponentPostApplicationQuery…
بدأه: Chad في: English Support |
|
0 | 3 | قبل 1 شهر، 1 أسبوع |