• Resolved sofiabsilva

    (@sofiabsilva)


    Hello, I just noticed that I’m getting an error when trying to subscribe for the newsletter. It seems like it might have been caused by an update a while ago, but I only noticed it now.
    Here’s the error description in debug:

    Uncaught Error: Cannot use object of type TNP_User as array in […]/wp-content/plugins/wp-multilang/includes/integrations/class-wpm-newsletter.php:82 Stack trace: #0 […]/wp-includes/class-wp-hook.php(287): WPM\Includes\Integrations\WPM_Newsletter->save_profile_20() #1 […]/wp-includes/plugin.php(206): WP_Hook->apply_filters() #2 […]/wp-content/plugins/newsletter/subscription/subscription.php(563): apply_filters() #3 […]/wp-content/plugins/newsletter/subscription/subscription.php(151): NewsletterSubscription->subscribe2() #4 […]/wp-includes/class-wp-hook.php(287): NewsletterSubscription->hook_newsletter_action() #5 […]/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters() #6 […]/wp-includes/plugin.php(478): WP_Hook->do_action() #7 […]/wp-content/plugins/newsletter/plugin.php(270): do_action() #8 […] in […]/wp-content/plugins/wp-multilang/includes/integrations/class-wpm-newsletter.php on line 82

    Any fix for this?

    • This topic was modified 3 years, 11 months ago by sofiabsilva.
Viewing 1 replies (of 1 total)
  • Thread Starter sofiabsilva

    (@sofiabsilva)

    Hello, got this issue resolved with the help of the Newsletter plugin support.
    In the “class-wpm-newsletter” file found in: wp-content/plugins/wp-multilang/includes/integrations

    Change this code:

    
    	public function save_profile_20( $data ) {
    		$data['profile_20'] = wpm_get_language();
    
    		return $data;
    	}
    
    

    to this:

    
    	public function save_profile_20( $data ) {
    		$data->profile_20 = wpm_get_language();
    
    		return $data;
    	}
    
Viewing 1 replies (of 1 total)
  • The topic ‘New Newsletter plugin update has made WPMultilang incompatible?’ is closed to new replies.