Support » Plugin: WooCommerce » Endless refund loading

  • Resolved gabrieldelpech

    (@gabrieldelpech)


    Hello,

    The website I’m managing is up-to-date (Woo 5.0.0), and even with version 3.8.0, we had issues with refunds: when we validate a refund, we can see the loading picture, and it never ends. But the refund works as the customer does receive a notification, and if we force the loading to stop by exiting the page, we can see that the order has been refunded.

    Any idea about what to do? I red it could be related to the theme and unfortunately, this one is tailored, so no updates except if I can know what to modify.

    Thanks!

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Support 3 Sons Development – a11n

    (@3sonsdevelopment)

    Hi @gabrieldelpech,

    That is an interesting situation. Here’s one thing you could do to shed some light on what’s going on.

    Next time you need to issue a refund, open up the browser tools prior to issuing the refund. Select the network tab. This will show the communication between the site and the server and can often show us an error message that helps pinpoint the problem.

    The key here is the network tab has to be open before issuing the refund. Otherwise, it won’t have any information to show.

    If you don’t see any errors in the network tab, then I would suggest setting up a staging site. That’s a copy of the live site for testing. You could then switch themes and disable all plugins except for WooCommerce and Stripe. Then see if you’re able to issue refunds without issue. If they still give you trouble, then it could be a server issue. Perhaps the host is blocking some types of communication.

    If it does work, then that points to a code issue. Try enabling your theme and test again. Then continue to do that by turning on plugins, one by one, testing as you go. The last one activated before the problem starts again is likely the cause.

    Let us know what you find out.

    I had this problem yesterday. It was happening with refunds, but it was also happening any time I tried to change the status of an order. It would just time out and eventually give me a “page not found” error.

    I used the Health Check plugin to test the site. It has a troubleshooting mode that allows you to turn all plugins off and then turn them back on one at a time – but only for logged in administrators.

    For regular site visitors, the site appears normal.

    In my case, the conflict was a plugin called Woocommerce Recommendation Engine. I turned it off and the problem went away.

    Thread Starter gabrieldelpech

    (@gabrieldelpech)

    Thank you @essmeier and @3sonsdevelopment, I will try that and keep you informed.

    Thread Starter gabrieldelpech

    (@gabrieldelpech)

    Hi @3sonsdevelopment, just did the following test:

    – place a new order with payment by check, so that I can check if it is related with Stripe or Paypal

    – refund the order

    Result : same problem, never ending loading. Network analysis doesn’t show any error but I can see it keeps “launching” the line POST admin-ajax.php by jquery, with the request data%5Bwp-refresh-post-lock%5D%5Bpost_id%5D=5607&data%5Bwp-refresh-post-lock%5D%5Block%5D=1613572478%3A8&data%5Bwp-refresh-post-nonces%5D%5Bpost_id%5D=5607&data%5Bclient%5D=wplc_heartbeat&interval=15&_nonce=4794bfe9c5&action=heartbeat&screen_id=shop_order&has_focus=false

    Screenshot with part of the network tracking can be seen here: https://ibb.co/3BpnY2v

    Thread Starter gabrieldelpech

    (@gabrieldelpech)

    @essmeier and @3sonsdevelopment, I’m using Health check plug-in. Woocommerce & the theme don’t seem to be responsible as refunds are working, so I have to pursue my invetisgations with other plug-ins… will tell you!

    Thread Starter gabrieldelpech

    (@gabrieldelpech)

    Culprit found! It’s seems to be related to certishopping plug-in, used for collecting reviews.

    I guess the solution is on their side, I will check with them.

    Thanks a lot for your help and tips.

    Thread Starter gabrieldelpech

    (@gabrieldelpech)

    For info, it had to do with an Action of the refund status in the plug-in code. Comment on the line and the problem is gone.

    aldrinvallespin23

    (@aldrinvallespin23)

    Hi @gabrieldelpech,

    You said “For info, it had to do with an Action of the refund status in the plug-in code. Comment on the line and the problem is gone.”

    Can you please explain how you do it? I had the same issue it says that 500 Internal Server Error upon clicking the refund button.

    Please any help.

    Thank you

    Thread Starter gabrieldelpech

    (@gabrieldelpech)

    Hello @aldrinvallespin23,

    Are you also talking about certishopping plug-in? My issue was related to it.

    aldrinvallespin23

    (@aldrinvallespin23)

    Hi @gabrieldelpech,

    Not on that plugin, failed to load resource: the server responded with a status of 500 (Internal Server Error) /wp-admin/admin-ajax.php?_fs_blog_admin=true:1

    After clicking refund the ajax spinner spins endlessly. Still, the order has been refunded successfully, only that the page keeps on loading.

    Thank you.

    Thread Starter gabrieldelpech

    (@gabrieldelpech)

    Then I’m sorry I’ll be no help because in my case, it was related to that plug-in, in which I had to put in comment some code.

    Hope somebody else can help you, but first if you didn’t do it yet, create a copy of your website, switch to another theme and try to reproduce the issue. Do the same with plug-ins by deactivating all of them, and check if it works, and if so then activate one by one so as to identify who is responsible.

    aldrinvallespin23

    (@aldrinvallespin23)

    No worries @gabrieldelpech, I will do your recommendation.

    Thank you again.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Endless refund loading’ is closed to new replies.