• Resolved boemmelmw

    (@boemmelmw)


    Hey, i received a fatal error message and to contact the support immediately.
    WooCommerce Support send me to your support, cause the error is made by WPML (???). Can you help me?

    Uncaught Error: Call to a member function get_items() on boolean in /var/www/server-user/html/myWebsite/wp-content/plugins/woocommerce-multilingual/compatibility/class-wcml-wc-subscriptions.php:435 Stack trace: #0 /var/www/server-user/html/myWebsite/wp-includes/class-wp-hook.php(288): WCML_WC_Subscriptions->filter_subscription_items(false) #1 /var/www/server-user/html/myWebsite/wp-includes/plugin.php(206): WP_Hook->apply_filters(false, Array) #2 /var/www/server-user/html/myWebsite/wp-content/plugins/woocommerce-subscriptions/wcs-functions.php(90): apply_filters('wcs_get_subscri...', false) #3 /var/www/server-user/html/myWebsite/wp-content/plugins/woocommerce-subscriptions/includes/gateways/paypal/includes/class-wcs-paypal-standard-ipn-handler.php(80): wcs_get_subscription(26257) #4 /var/www/server-user/html/myWebsite/wp-content/plugins/woocommerce-subscriptions/includes/gateways/paypal/includes/class-wcs-paypal-standard-ipn-handler.php(66): WCS_PayPal_Stan

Viewing 8 replies - 1 through 8 (of 8 total)
  • Hello,
    which version of WooCommerce Multilingual you’re using? It should be fixed in 4.8.0

    Regards,

    Thread Starter boemmelmw

    (@boemmelmw)

    Hey Sergey,
    i use version 4.8.0 & all other plugins are “up-to-date”.
    Maybe there is a problem with my PHP 7.1.33?
    best wishes,

    From you debug log I see you’re not using 4.8.0 version because on line 435 we have a checking now https://plugins.trac.www.ads-software.com/browser/woocommerce-multilingual/trunk/compatibility/class-wcml-wc-subscriptions.php

    Can you please try re-install our plugin one more time and share a correct debug log?

    Thanks in advance!

    Thread Starter boemmelmw

    (@boemmelmw)

    In the plugin directory version 4.8 was shown…now i deleted the plugin & re-installed it – same problem.

    
    Last recorded error:Uncaught Error: Call to a member function get_items() on boolean in /var/www/server/html/mywebsite/wp-content/plugins/woocommerce-multilingual/compatibility/class-wcml-wc-subscriptions.php:435 Stack trace: #0 /var/www/server/html/mywebsite/wp-includes/class-wp-hook.php(288): WCML_WC_Subscriptions->filter_subscription_items(false) #1 /var/www/server/html/mywebsite/wp-includes/plugin.php(206): WP_Hook->apply_filters(false, Array) #2 /var/www/server/html/mywebsite/wp-content/plugins/woocommerce-subscriptions/wcs-functions.php(90): apply_filters('wcs_get_subscri...', false) #3 /var/www/server/html/mywebsite/wp-content/plugins/woocommerce-subscriptions/includes/gateways/paypal/includes/class-wcs-paypal-standard-ipn-handler.php(80): wcs_get_subscription(26257) #4 /var/www/server/html/mywebsite/wp-content/plugins/woocommerce-subscriptions/includes/gateways/paypal/includes/class-wcs-paypal-standard-ipn-handler.php(66): WCS_PayPal_Stan
    To see the full error, view the?wcs-ipn-failures
    
    • This reply was modified 4 years, 10 months ago by boemmelmw.
    • This reply was modified 4 years, 10 months ago by Yui. Reason: please use CODE button for proper formatting

    I wonder how you can get an error on line 435 as we have
    if ( $subscription instanceof WC_Subscription ) { there now…

    Can you please check files on FTP and make sure you see following code at the end of the file \woocommerce-multilingual\compatibility\class-wcml-wc-subscriptions.php ?

    public function filter_subscription_items( $subscription ) {
    
    		if ( $subscription instanceof WC_Subscription ) {
    			$this->woocommerce_wpml->orders->adjust_order_item_in_language( $subscription->get_items() );
    		}
    
    		return $subscription;
    	}
    Thread Starter boemmelmw

    (@boemmelmw)

    Hey Sergey,
    i checked the file via ftp & i can see this code at the end of the file.
    So this should be the current plugin version 4.8.
    ??!

    Yes, but debug log displays wrong line in this case which is strange…

    Can you please open a support ticket on our forum with all these details so our supporters can ask temporary access to your site and check what is wrong there?

    Thread Starter boemmelmw

    (@boemmelmw)

    I did, thanks!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Fatal Error with WooCommerce Subscription’ is closed to new replies.