למשתמש זה אין נושאים מועדפים.
נושאי פורום מועדפים
נושאי פורום שנוצרו
| סטטוס |
נושא
|
תומך | קולות | פוסטים | עדכניות |
|---|---|---|---|---|---|
|
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 | לפני חודש 7, שבוע 4 | |
|
Search results do not return posts in the right language
נפתח על ידי: andrewS-45 ב: English Support |
|
2 | 4 | לפני שנה 2, חודש 9 | |
|
My website doesn't seem to allow searching in French
נפתח על ידי: andrewS-45 ב: Chat Support |
|
1 | 2 |
לפני שנה 2, חודש 9
|