This is the technical support forum for WPML - the multilingual WordPress plugin.
Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.
This thread is resolved. Here is a description of the problem and solution.
WP Client can't be activated due to following error "Fatal error: Uncaught TypeError: Argument 1 passed to WPML_Custom_Columns::__construct() must be an instance of SitePress, instance of wpdb given"
- Go to wp-content/plugins/wp-client/includes/class-wpc-3p-compatibility.php on line 153 and replace the following code
global $sitepress; $custom_columns = new WPML_Custom_Columns( $sitepress->wpdb, $sitepress );
global $sitepress; $custom_columns = new WPML_Custom_Columns( $sitepress );