• Hi my site uses a custom single product layout and crashes when activating payflex. I have to deactivate it before editing my single product layout.

    Error Details
    =============
    An error of type E_ERROR was caused in line 988 of the file /usr/www/users/littlmkmwy/wp-content/plugins/woocommerce/includes/wc-product-functions.php. Error message: Uncaught Error: Call to a member function get_price() on null in /usr/www/users/littlmkmwy/wp-content/plugins/woocommerce/includes/wc-product-functions.php:988
    Stack trace:
    #0 /usr/www/users/littlmkmwy/wp-content/plugins/payflex-payment-gateway/partpay.php(1294): wc_get_price_including_tax(NULL)
    #1 /usr/www/users/littlmkmwy/wp-content/plugins/payflex-payment-gateway/partpay.php(1278): woo_payflex_frontend_widget()
    #2 /usr/www/users/littlmkmwy/wp-includes/shortcodes.php(356): widget_shortcode_content(”, ”, ‘payflex_widget’)
    #3 [internal function]: do_shortcode_tag(Array)
    #4 /usr/www/users/littlmkmwy/wp-includes/shortcodes.php(228): preg_replace_callback(‘/\\[(\\[?)(payfle…’, ‘do_shortcode_ta…’, ‘[payflex_widget…’)
    #5 /usr/www/users/littlmkmwy/wp-content/plugins/elementor/includes/widgets/shortcode.php(130): do_shortcode(‘[payflex_widget…’)
    #6 /usr/www/users/littlmkmwy/wp-content/plugins/elementor/includes/base/controls-stack.php(2268): Elementor\Widget_Shortcode->render()
    #7 /usr/www/users/littlmkmwy/wp-content/plugins/elementor/includes/base/widget-base.php(609): Elementor\Controls_Stack->render_by_mode()
    #8 /usr/www/users/littlmkmwy/wp-content/plugins/elementor/includes/base/widget-base.php(733): Elementor\Widget_Base->render_content()
    #9 /usr/www/users/littlmkmwy/wp-content/plugins/elementor/includes/base/element-base.php(536): Elementor\Widget_Base->get_raw_data(true)
    #10 /usr/www/users/littlmkmwy/wp-content/plugins/elementor/includes/base/element-base.php(536): Elementor\Element_Base->get_raw_data(true)
    #11 /usr/www/users/littlmkmwy/wp-content/plugins/elementor/includes/base/element-base.php(536): Elementor\Element_Base->get_raw_data(true)
    #12 /usr/www/users/littlmkmwy/wp-content/plugins/elementor/includes/base/element-base.php(536): Elementor\Element_Base->get_raw_data(true)
    #13 /usr/www/users/littlmkmwy/wp-content/plugins/elementor/core/base/document.php(977): Elementor\Element_Base->get_raw_data(true)
    #14 /usr/www/users/littlmkmwy/wp-content/plugins/elementor/core/base/document.php(643): Elementor\Core\Base\Document->get_elements_raw_data(Array, true)
    #15 /usr/www/users/littlmkmwy/wp-content/plugins/elementor/includes/base/controls-stack.php(1021): Elementor\Core\Base\Document->get_initial_config()
    #16 /usr/www/users/littlmkmwy/wp-content/plugins/elementor/core/editor/config-providers/editor-common-client-settings.php(36): Elementor\Controls_Stack->get_config()
    #17 /usr/www/users/littlmkmwy/wp-content/plugins/elementor/core/editor/config-providers/editor-common-configs.php(169): Elementor\Core\Editor\Config_Providers\Editor_Common_Client_Settings::get_client_settings()
    #18 /usr/www/users/littlmkmwy/wp-content/plugins/elementor/core/editor/config-providers/editor-v1-config-provider.php(46): Elementor\Core\Editor\Config_Providers\Editor_Common_Configs::get_client_settings()
    #19 /usr/www/users/littlmkmwy/wp-content/plugins/elementor/core/editor/editor-loader.php(57): Elementor\Core\Editor\Config_Providers\Editor_V1_Config_Provider->get_client_settings()
    #20 /usr/www/users/littlmkmwy/wp-content/plugins/elementor/core/editor/editor.php(357): Elementor\Core\Editor\Editor_Loader->print_client_settings()
    #21 /usr/www/users/littlmkmwy/wp-includes/class-wp-hook.php(307): Elementor\Core\Editor\Editor->enqueue_scripts(”)
    #22 /usr/www/users/littlmkmwy/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(”, Array)
    #23 /usr/www/users/littlmkmwy/wp-includes/plugin.php(474): WP_Hook->do_action(Array)
    #24 /usr/www/users/littlmkmwy/wp-includes/script-loader.php(2115): do_action(‘wp_enqueue_scri…’)
    #25 /usr/www/users/littlmkmwy/wp-includes/class-wp-hook.php(307): wp_enqueue_scripts(”)
    #26 /usr/www/users/littlmkmwy/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(”, Array)
    #27 /usr/www/users/littlmkmwy/wp-includes/plugin.php(474): WP_Hook->do_action(Array)
    #28 /usr/www/users/littlmkmwy/wp-includes/general-template.php(3042): do_action(‘wp_head’)
    #29 /usr/www/users/littlmkmwy/wp-content/plugins/elementor/includes/editor-templates/editor-wrapper.php(31): wp_head()
    #30 /usr/www/users/littlmkmwy/wp-content/plugins/elementor/core/editor/editor-loader.php(135): include(‘/usr/www/users/…’)
    #31 /usr/www/users/littlmkmwy/wp-content/plugins/elementor/core/editor/editor.php(162): Elementor\Core\Editor\Editor_Loader->print_root_template()
    #32 /usr/www/users/littlmkmwy/wp-includes/class-wp-hook.php(307): Elementor\Core\Editor\Editor->init(”)
    #33 /usr/www/users/littlmkmwy/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(”, Array)
    #34 /usr/www/users/littlmkmwy/wp-includes/plugin.php(474): WP_Hook->do_action(Array)
    #35 /usr/www/users/littlmkmwy/wp-admin/admin.php(419): do_action(‘admin_action_el…’)
    #36 /usr/www/users/littlmkmwy/wp-admin/post.php(12): require_once(‘/usr/www/users/…’)
    #37 {main}
    ?thrown

  • The topic ‘Error with integration on single product’ is closed to new replies.