• Resolved Ingrid Azéma

    (@grigrid)


    Hi,

    I’m using WooCommerce 9.1.3 with WooCommerce Stripe Payment Gateway 8.8.2, WordPress 6.4.5 on a server running php 8.2

    When I try to edit a post, WP crashes with the following error :

    PHP Fatal error:  Uncaught ValueError: Unknown format specifier "i" in /mysitepath/plugins/woocommerce-gateway-stripe/includes/payment-methods/class-wc-stripe-upe-payment-method-sepa.php:55

    Can you please look into it?

    Best regards,

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Ingrid Azéma

    (@grigrid)

    The file causing the fatal contains :

    sprintf(
    /* translators: 1) HTML strong open tag 2) HTML strong closing tag 3) HTML anchor open tag 2) HTML anchor closing tag */
    esc_html__( '%1$sTest mode:%2$s use the test account number AT611904300234573201. Other payment methods may redirect to a Stripe test page to authorize payment. More test card numbers are listed %3$shere%4$s.', 'woocommerce-gateway-stripe' ),
    '', '',
    '', ''
    );

    If I add a space after the first argument in the sprintf() function like this %1$s Test it fixes the error

    Zee

    (@doublezed2)

    Hello Ingrid Azéma,

    Thank you for contacting WooCommerce support.

    I understand you’re experiencing a crash when editing a post, caused by a PHP fatal error due to an invalid format specifier in the WooCommerce Stripe Payment Gateway plugin.

    It is good to know that you have found a temporary fix by adding a space after the first argument in the sprintf() function %1$s Test.

    To better understand the issue, could you share the System Status Report of your site? This report will help me reproduce the issue on my end and determine if this is a bug in the code.

    Looking forward to your response. 🙂

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Fatal error’ is closed to new replies.