• Resolved saracomin

    (@saracomin)


    Hi, I use the Elementor widget to view the user’s account. I noticed that when there is an order in refound (of any user), if I enter Elementor to modify the page, it gives me a fatal error. (i have test mode active per stripe)

    Here are the logs:
    Automattic\WooCommerce\Admin\Overrides\OrderRefund::get_payment_method() in /nas/content/live/siamoaboca1stg/wp-content/plugins/woocommerce-gateway-stripe/includes/class-wc-gateway-stripe.php:829#012Stack trace:#012#0 /nas/content/live/siamoaboca1stg/wp-content/plugins/woocommerce-gateway-stripe/includes/class-wc-gateway-stripe.php(759): WC_Gateway_Stripe->verify_intent_after_checkout(Object(Automattic\WooCommerce\Admin\Overrides\OrderRefund))#012#1 /nas/content/live/siamoaboca1stg/wp-includes/class-wp-hook.php(324): WC_Gateway_Stripe->check_intent_status_on_order_page(199)#012#2 /nas/content/live/siamoaboca1stg/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(”, Array)#012#3 /nas/content/live/siamoaboca1stg/wp-includes/plugin.php(517): WP_Hook->do_action(Array)#012#4 /nas/content/live/siamoaboca1stg/wp-content/plugins/elementor-pro/modules/woocommerce/widgets/my-account.php(1968): do_action(‘woocommerce_acc…’, 199)#012#5 /nas/content/live/siamoaboca1stg/wp-content/plugins/elementor-pro/modules/woocommerce/widgets/my-account.php(1785): ElementorPro\Modules\Woocommerce\Widgets\My_Account->render_html_editor()#012#6 /nas/content/live/siamoaboca1stg/wp-content/plugins/elementor/includes/base/controls-stack.php(2297): ElementorPro\Modules\Woocommerce\Widgets\My_Account->render()#012#7 /nas/content/live/siamoaboca1stg/wp-content/plugins/elementor/includes/base/widget-base.php(614): Elementor\Controls_Stack->render_by_mode()#012#8 /nas/content/live/siamoaboca1stg/wp-content/plugins/elementor/includes/base/widget-base.php(738): Elementor\Widget_Base->render_content()#012#9 /nas/content/live/siamoaboca1stg/wp-content/plugins/elementor/includes/base/element-base.php(551): Elementor\Widget_Base->get_raw_data(true)#012#10 /nas/content/live/siamoaboca1stg/wp-content/plugins/elementor/core/base/document.php(1023): Elementor\Element_Base->get_raw_data(true)#012#11 /nas/content/live/siamoaboca1stg/wp-content/plugins/elementor/core/base/document.php(679): Elementor\Core\Base\Document->get_elements_raw_data(Array, true)#012#12 /nas/content/live/siamoaboca1stg/wp-content/plugins/elementor/includes/base/controls-stack.php(1042): Elementor\Core\Base\Document->get_initial_config()#012#13 /nas/content/live/siamoaboca1stg/wp-content/plugins/elementor/core/editor/loader/common/editor-common-scripts-settings.php(34): Elementor\Controls_Stack->get_config()#012#14 /nas/content/live/siamoaboca1stg/wp-content/plugins/elementor/core/editor/loader/v1/editor-v1-loader.php(76): Elementor\Core\Editor\Loader\Common\Editor_Common_Scripts_Settings::get()#012#15 /nas/content/live/siamoaboca1stg/wp-content/plugins/elementor/core/editor/editor.php(358): Elementor\Core\Editor\Loader\V1\Editor_V1_Loader->enqueue_scripts()#012#16 /nas/content/live/siamoaboca1stg/wp-includes/class-wp-hook.php(324): Elementor\Core\Editor\Editor->enqueue_scripts(”)#012#17 /nas/content/live/siamoaboca1stg/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(”, Array)#012#18 /nas/content/live/siamoaboca1stg/wp-includes/plugin.php(517): WP_Hook->do_action(Array)#012#19 /nas/content/live/siamoaboca1stg/wp-includes/script-loader.php(2262): do_action(‘wp_enqueue_scri…’)#012#20 /nas/content/live/siamoaboca1stg/wp-includes/class-wp-hook.php(324): wp_enqueue_scripts(”)#012#21 /nas/content/live/siamoaboca1stg/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(”, Array)#012#22 /nas/content/live/siamoaboca1stg/wp-includes/plugin.php(517): WP_Hook->do_action(Array)#012#23 /nas/content/live/siamoaboca1stg/wp-includes/general-template.php(3052): do_action(‘wp_head’)#012#24 /nas/content/live/siamoaboca1stg/wp-content/plugins/elementor/includes/editor-templates/editor-wrapper.php(31): wp_head()#012#25 /nas/content/live/siamoaboca1stg/wp-content/plugins/elementor/core/editor/loader/v1/editor-v1-loader.php(110): include(‘/nas/content/li…’)#012#26 /nas/content/live/siamoaboca1stg/wp-content/plugins/elementor/core/editor/editor.php(163): Elementor\Core\Editor\Loader\V1\Editor_V1_Loader->print_root_template()#012#27 /nas/content/live/siamoaboca1stg/wp-includes/class-wp-hook.php(324): Elementor\Core\Editor\Editor->init(”)#012#28 /nas/content/live/siamoaboca1stg/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(”, Array)#012#29 /nas/content/live/siamoaboca1stg/wp-includes/plugin.php(517): WP_Hook->do_action(Array)#012#30 /nas/content/live/siamoaboca1stg/wp-admin/admin.php(419): do_action(‘admin_action_el…’)#012#31 /nas/content/live/siamoaboca1stg/wp-admin/post.php(12): require_once(‘/nas/content/li…’)#012#32 {main}#012 thrown in /nas/content/live/siamoaboca1stg/wp-content/plugins/woocommerce-gateway-stripe/includes/class-wc-gateway-stripe.php on line 829″,
    “uuid”: “40fccac0-252f-45a6-bbe2-fd78068bf9d9”
    }

    I have already contacted Elementor and they told me to write to you, because by deactivating your plugin, the problem will not arise

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Zubair Zahid (woo-hc)

    (@doublezed2)

    Hello saracomin,

    Thank you for reaching out to WooCommerce support about the issue you’re encountering when using the Elementor widget to view the user’s account, particularly when there’s an order in refund status.

    To help you resolve this issue more efficiently, could you please provide a screenshot of the page where this error occurs? Capturing any error messages or issues visible on your screen will greatly assist in diagnosing the problem. For taking and sharing screenshots, I recommend using https://snipboard.io.

    Additionally, a copy of your site’s System Status Report would be very helpful for further investigation. Here’s how you can get this report:
    1. Go to WooCommerce > Status in your WordPress dashboard.
    2. Click on ‘Get system report’.
    3. Then click on ‘Copy for support’.

    After copying the report, please paste it into a Gist at https://gist.github.com and share the link to the Gist in your reply.
    This report can provide valuable information about your environment that could be related to the fatal error.

    Thank you for your cooperation, and I look forward to your response so we can work through this problem together. ??

    Best regards.

    Thread Starter saracomin

    (@saracomin)

    Plugin Support Zubair Zahid (woo-hc)

    (@doublezed2)

    Hello saracomin

    Thank you for your reply.

    I reviewed the website’s SSR and everything appears alright in the report.

    I have also checked your screenshot and I do not see the Fatar Error.
    Can you please share a screenshot that shows the Fatal Error?

    It would be very helpful if you could provide a copy of the fatal error log. You can find this under WooCommerce > System Status > Logs.

    With this information, I will be better able to investigate and understand what might be causing this issue on your site.

    Looking forward to you response ??

    Thread Starter saracomin

    (@saracomin)

    HI,

    Yes, if you see at the end of the screenshot it says (in Italian), ‘a fatal error has occurred…’

    Log

    2024-01-19T07:24:38+00:00 CRITICAL Uncaught Error: Call to undefined method Automattic\WooCommerce\Admin\Overrides\OrderRefund::get_payment_method() in /nas/content/live/siamoaboca1stg/wp-content/plugins/woocommerce-gateway-stripe/includes/class-wc-gateway-stripe.php:829 Stack trace: #0 /nas/content/live/siamoaboca1stg/wp-content/plugins/woocommerce-gateway-stripe/includes/class-wc-gateway-stripe.php(759): WC_Gateway_Stripe->verify_intent_after_checkout(Object(Automattic\WooCommerce\Admin\Overrides\OrderRefund)) #1 /nas/content/live/siamoaboca1stg/wp-includes/class-wp-hook.php(324): WC_Gateway_Stripe->check_intent_status_on_order_page(198) #2 /nas/content/live/siamoaboca1stg/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(”, Array) #3 /nas/content/live/siamoaboca1stg/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #4 /nas/content/live/siamoaboca1stg/wp-content/plugins/elementor-pro/modules/woocommerce/widgets/my-account.php(1968): do_action(‘woocommerce_acc…’, 198) #5 /nas/content/live/siamoaboca1stg/wp-content/plugins/elementor-pro/modules/woocommerce/widgets/my-account.php(1785): ElementorPro\Modules\Woocommerce\Widgets\My_Account->render_html_editor() #6 /nas/content/live/siamoaboca1stg/wp-content/plugins/elementor/includes/base/controls-stack.php(2297): ElementorPro\Modules\Woocommerce\Widgets\My_Account->render() #7 /nas/content/live/siamoaboca1stg/wp-content/plugins/elementor/includes/base/widget-base.php(614): Elementor\Controls_Stack->render_by_mode() #8 /nas/content/live/siamoaboca1stg/wp-content/plugins/elementor/includes/base/widget-base.php(738): Elementor\Widget_Base->render_content() #9 /nas/content/live/siamoaboca1stg/wp-content/plugins/elementor/includes/base/element-base.php(551): Elementor\Widget_Base->get_raw_data(true) #10 /nas/content/live/siamoaboca1stg/wp-content/plugins/elementor/core/base/document.php(1023): Elementor\Element_Base->get_raw_data(true) #11 /nas/content/live/siamoaboca1stg/wp-content/plugins/elementor/core/base/document.php(679): Elementor\Core\Base\Document->get_elements_raw_data(Array, true) #12 /nas/content/live/siamoaboca1stg/wp-content/plugins/elementor/includes/base/controls-stack.php(1042): Elementor\Core\Base\Document->get_initial_config() #13 /nas/content/live/siamoaboca1stg/wp-content/plugins/elementor/core/editor/loader/common/editor-common-scripts-settings.php(34): Elementor\Controls_Stack->get_config() #14 /nas/content/live/siamoaboca1stg/wp-content/plugins/elementor/core/editor/loader/v1/editor-v1-loader.php(76): Elementor\Core\Editor\Loader\Common\Editor_Common_Scripts_Settings::get() #15 /nas/content/live/siamoaboca1stg/wp-content/plugins/elementor/core/editor/editor.php(358): Elementor\Core\Editor\Loader\V1\Editor_V1_Loader->enqueue_scripts() #16 /nas/content/live/siamoaboca1stg/wp-includes/class-wp-hook.php(324): Elementor\Core\Editor\Editor->enqueue_scripts(”) #17 /nas/content/live/siamoaboca1stg/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(”, Array) #18 /nas/content/live/siamoaboca1stg/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #19 /nas/content/live/siamoaboca1stg/wp-includes/script-loader.php(2262): do_action(‘wp_enqueue_scri…’) #20 /nas/content/live/siamoaboca1stg/wp-includes/class-wp-hook.php(324): wp_enqueue_scripts(”) #21 /nas/content/live/siamoaboca1stg/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(”, Array) #22 /nas/content/live/siamoaboca1stg/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #23 /nas/content/live/siamoaboca1stg/wp-includes/general-template.php(3052): do_action(‘wp_head’) #24 /nas/content/live/siamoaboca1stg/wp-content/plugins/elementor/includes/editor-templates/editor-wrapper.php(31): wp_head() #25 /nas/content/live/siamoaboca1stg/wp-content/plugins/elementor/core/editor/loader/v1/editor-v1-loader.php(110): include(‘/nas/content/li…’) #26 /nas/content/live/siamoaboca1stg/wp-content/plugins/elementor/core/editor/editor.php(163): Elementor\Core\Editor\Loader\V1\Editor_V1_Loader->print_root_template() #27 /nas/content/live/siamoaboca1stg/wp-includes/class-wp-hook.php(324): Elementor\Core\Editor\Editor->init(”) #28 /nas/content/live/siamoaboca1stg/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(”, Array) #29 /nas/content/live/siamoaboca1stg/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #30 /nas/content/live/siamoaboca1stg/wp-admin/admin.php(419): do_action(‘admin_action_el…’) #31 /nas/content/live/siamoaboca1stg/wp-admin/post.php(12): require_once(‘/nas/content/li…’) #32 {main} thrown in /nas/content/live/siamoaboca1stg/wp-content/plugins/woocommerce-gateway-stripe/includes/class-wc-gateway-stripe.php alla riga 829

    Hey, @saracomin!

    Thanks for the information.

    Just to confirm, did this issue started to happen recentely?

    If so, have you made any recent changes to the site recently? This could be things like adding or updating plugins, updating or changing the theme, adding custom code, etc.

    Please also make sure your theme and all plugins are updated.

    Can you please run a conflict test to make sure there’s anything else interfering?

    To test, you’ll first want to change the theme on your site to Storefront, then check to see if the issue is still present. If that resolves the issue, you’ll want to get in touch with your theme’s developer and see if they have an update or fix for you.

    If changing the theme doesn’t help, you’ll want to deactivate all plugins except for WooCommerce and take a look. If that fixes the problem, re-enable the other plugins one by one (gradually), checking after each, to see where the issue is coming from.

    — Be sure you have a good backup in place of your full site and database. You can ask your host for backup functionality or you can consider using a service like Jetpack. If something goes wrong, you will be able to restore it.

    — Also, you can consider using a plugin like Health Check & Troubleshooting. This is a plugin developed by the WordPress community and it is helpful to disable plugins without affecting your current site visitors.

    — It is important to consider as well a staging functionality in case you would not like to touch your production site (you can ask your host if they offer this service), or you can use WP Staging for quickly spinning up a new test site.

    You can find more about this in this guide.

    Please let us know your findings.

    Have a wonderful day!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Fatal error – widget elementor myaccount when there is a refound order’ is closed to new replies.