Warning: Illegal string offset

Hello,

On my clients West Pro based site this warning appeared yesterday:

Warning: Illegal string offset ‘code_version’ in /customers/2/7/8/wayout.fi/httpd.www/wp-content/plugins/live-composer-page-builder/includes/display-functions.php on line 958

This is the code on display-functions.php file on line 958:

		// Add a marker indicating that this module
		// was imported from shortcode format.
		$decoded['code_version'] = 1;
	}

What could cause this problem and is it theme based or Live Composer related? On Live Composer support they say to contact theme developer (aThemes).

Any help? I tried overriding the display-functions.php file with the original one but the warning did not dissapear.

The site is: www.wayout.fi

This warning is showing on every site except front page.

And here is the full code on that section:

	// Base64 successfull?
	if ( ! $decoded_base64 ) {
		// 2. it's old code containing both shortocodes + base64
		// We can do nothing with it, so return FALSE.
		return false;
	} else {
		// 1. it's old code of the module settings serialized + base64.
		// Get array out of it.
		$decoded = maybe_unserialize( $decoded_base64 );

		// Add a marker indicating that this module
		// was imported from shortcode format.
		$decoded['code_version'] = 1;
	}
} else {
	// Decode JSON.
	$decoded = json_decode( $raw_code, true );
}

return $decoded;

}

Hello there,

I am sorry to hear that you’ve run into issue. Could you please confirm if you’ve been running the latest version of the Live Composer plugin?

Regards,
Kharis

Yes, I am running the latest version.

Hello there,

Thank you for the followup. If you’ve been running WP debug mode, please disable it. Let me know if it changes anything.

Regards,
Kharis