Incompatibility between Multisite Language Switcher and All inone event calendar
-
Hi,
I am wondering if anyone has any ideas for this error?
I am currently using the version 0.9.8. of Multisite Language Switcher, along the last version (1.9.1.) of the All-in-one-calendar by Timely.
When I hit the button to publish a new event, this error message appears (the event is still published).
Catchable fatal error: Argument 3 passed to MslsMain::save() must be an array, string given, called in /homez.42/jerezlec/www/wp-content/plugins/multisite-language-switcher/includes/MslsMetaBox.php on line 144 and defined in /homez.42/jerezlec/www/wp-content/plugins/multisite-language-switcher/includes/MslsMain.php on line 41
Those lines refer to those pieces of code:
public function set( $post_id ) { if ( ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) || wp_is_post_revision( $post_id ) || !isset( $_POST['msls_noncename'] ) || !wp_verify_nonce( $_POST['msls_noncename'], MSLS_PLUGIN_PATH ) ) return; if ( 'page' == $_POST['post_type'] ) if ( !current_user_can( 'edit_page' ) ) return; else if ( !current_user_can( 'edit_post' ) ) return; $arr = $_POST['msls']; $arr[$this->blogs->get_current_blog()->get_language()] = $post_id; $this->save( $post_id, 'MslsOptionsPost', $arr ); } and class MslsAutoloader { /** * Static loader method * @param string $cls */ public static function load( $cls ) { if ( 'Msls' == substr( $cls, 0, 4 ) ) require_once dirname( __FILE__ ) . '/includes/' . $cls . '.php'; }
[Please post code or markup snippets between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]
I am using the version 3.5 of WordPress.
I disabled the Multisite Language Switcher and the error message does not appear any more, making me think of that there is an incompatibility between the two plugins.
Any suggestion about what might cause the problem and how to fix it? I would be very appreciative of any ideas!
https://www.ads-software.com/extend/plugins/multisite-language-switcher/
- The topic ‘Incompatibility between Multisite Language Switcher and All inone event calendar’ is closed to new replies.