Checkout returning customer error Warning: Undefined variable $action

This topic has 4 replies, 2 voices, and was last updated 5 months, 1 weeks ago ago by chrisbond

  • Avatar: chrisbond
    chrisbond
    Participant
    July 4, 2025 at 12:51

    Hi ,
    after recent upgrades, we encounter an error on the checkout page, when user is not logged in:

    Warning: Undefined variable $action in */wp-content/themes/xstore/woocommerce/global/form-login.php on line 34
    style="display:none;">

    Cleared cache, no change.

    I digged just a little more, and added the following code (temporary) in the form-login.php file and it works for the moment:

    $action   = $action   ?? '';
    $hidden   = $hidden   ?? false;
    $message  = $message  ?? '';
    $redirect = $redirect ?? '';

    after

    if ( get_query_var( 'et_is-loggedin', false) )
    	return;

    I know this isn’t a long-run solution, but I am asking what could cause this error and what is your solution?

    Thanks team!

    Files is visible for topic creator and
    support staff only.
    3 Answers
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    July 4, 2025 at 14:58

    Dear @chrisbond,

    We kindly ask you to install the latest patch (#9510607) at your earliest convenience. Should you require any further assistance, please provide us with the correct wp-admin and FTP access credentials via the private area, so we can investigate the issue and help you find a solution.

    For your reference, you may consult our documentation on how to use the XStore Patcher here:
    https://www.8theme.com/documentation/xstore/xstore-features/how-to-use-xstore-patcher/

    Best regards,
    Jack Richardson
    The 8Theme Team

    Avatar: chrisbond
    chrisbond
    Participant
    July 5, 2025 at 10:56

    Hi Jack,
    now it is working well.

    Thanks and keep up the good job!

    Avatar: chrisbond
    chrisbond
    Participant
    July 5, 2025 at 10:56

    Thanks for the support! My topic “checkout returning customer error Warning: Undefined variable $action” has been successfully resolved.

  • Viewing 4 results - 1 through 4 (of 4 total)

The issue related to '‘checkout returning customer error Warning: Undefined variable $action’' has been successfully resolved, and the topic is now closed for further responses

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.