ผู้ใช้นี้ไม่มีหัวข้อที่ชื่นชอบ.
หัวข้อฟอรัมที่ชื่นชอบ
หัวข้อฟอรัมที่สร้าง
| สถานะ |
หัวข้อ
|
ผู้สนับสนุน | เสียง | โพสต์ | ความใหม่ |
|---|---|---|---|---|---|
|
conflict between SitePress and Elementor,
เริ่มโดย: andrewS-45
ใน: English Support
Problem: sitepress-multilingual-cms plugin. The error message indicates a problem with the WPMLPBElementorDataConvert::serialize() function, where it expects an array but receives null. serialize function in the plugin to handle cases where the data is not an array. Here’s how you can adjust the function: public static function serialize( $data, $escape = true ) {<br /> if ( ! is_array( $data ) ) {<br /> return wp_json_encode([]); // returns empty array if null or something else<br /> }<br /> $data = wp_json_encode( $data );<br /> if ( $escape ) {<br /> $data = wp_slash( $data );<br /> }<br /> return $data;<br />}This adjustment ensures that the function returns an empty array when it receives a null or an unexpected value, preventing the PHP Fatal error. Please note that this solution might be outdated or not applicable to your specific case. We highly recommend 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. If the issue persists, please open a new support ticket with us for further assistance at WPML Support Forum. |
|
0 | 7 | 8 months, 1 week มาแล้ว | |
|
Search results do not return posts in the right language
เริ่มโดย: andrewS-45 ใน: English Support |
|
2 | 4 | 2 years, 9 months มาแล้ว |