Title: Deprecated: Non-static method
Last modified: January 23, 2023

---

# Deprecated: Non-static method

 *  Resolved [segamaze](https://wordpress.org/support/users/segamaze/)
 * (@segamaze)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/deprecated-non-static-method-3/)
 * Hi,
 * I have the following error when I want to access a product page. 
   Using the Avada
   Theme Version 7.6.1 and all other plugins are the newest version.
 *     ```wp-block-code
       Deprecated: Non-static method WooCommerce\PayPalCommerce\Button\Assets\SmartButton::button_renderer() should not be called statically in /html/xx/wp-includes/class-wp-hook.php on line 308
   
       Fatal error: Uncaught Error: Using $this when not in object context in /html/xx/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-button/src/Assets/SmartButton.php:562 Stack trace: #0 /html/xx/wp-includes/class-wp-hook.php(308): WooCommerce\PayPalCommerce\Button\Assets\SmartButton::button_renderer('') #1 /html/xx/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters('', Array) #2 /html/xx/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #3 /html/xx/wp-content/plugins/fusion-builder/shortcodes/components/woo-cart.php(457): do_action('awb_after_woo_a...') #4 /html/xx/wp-content/plugins/fusion-builder/shortcodes/components/woo-cart.php(402): FusionTB_Woo_Cart->get_cart() #5 /html/wordpress-esportfactory/wp-includes/shortcodes.php(355): FusionTB_Woo_Cart->render(Array, '', 'fusion_tb_woo_c...') #6 [internal function]: do_shortcode_tag(Array) #7 /html/xx/wp-incl in /html/xx/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-button/src/Assets/SmartButton.php on line 562
       ```
   

Viewing 1 replies (of 1 total)

 *  Plugin Support [Syde Niklas](https://wordpress.org/support/users/niklasinpsyde/)
 * (@niklasinpsyde)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/deprecated-non-static-method-3/#post-16402935)
 * Hi [@segamaze](https://wordpress.org/support/users/segamaze/),
 * I suggest updating the Avada theme and also the Avada Builder plugin to the latest
   version. Older versions of this theme (and specifically the Builder plugin) were
   causing compatibility issues with PayPal Payments. 
   But this should be working
   well with the latest Avada versions.
 * Kind regards,
   Niklas

Viewing 1 replies (of 1 total)

The topic ‘Deprecated: Non-static method’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce-paypal-payments/assets/icon-256x256.png?rev=
   3234615)
 * [WooCommerce PayPal Payments](https://wordpress.org/plugins/woocommerce-paypal-payments/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-paypal-payments/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-paypal-payments/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-paypal-payments/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-paypal-payments/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-paypal-payments/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Syde Niklas](https://wordpress.org/support/users/niklasinpsyde/)
 * Last activity: [3 years, 4 months ago](https://wordpress.org/support/topic/deprecated-non-static-method-3/#post-16402935)
 * Status: resolved