Soporte » Plugins y Hacks » WooCommerce » PHP Warning woocommerce-gateway-stripe

  • Resuelto newcelic

    (@newcelic)


    Hi everyone,

    I recently activated Google Pay and Apple Pay in the Stripe configuration and since then I have 2 problems:

    First problem, in my error_log file I am looking forward to this warning: [10-Jan-2020 19:07:40 UTC] PHP Warning: preg_match (): Unknown modifier ‘& amp;’ in /home2/descalificado/public_html/wp-content/plugins/woocommerce-gateway-stripe/includes/payment-methods/class-wc-stripe-payment-request.php on line 988
    [10-Jan-2020 21:44:35 UTC] PHP Warning: preg_match (): Unknown modifier ‘& amp;’ in /home2/descalificado/public_html/wp-content/plugins/woocommerce-gateway-stripe/includes/payment-methods/class-wc-stripe-payment-request.php on line 975
    [10-Jan-2020 21:44:35 UTC] PHP Warning: preg_match (): Unknown modifier ‘& amp;’ in /home2/descalificado/public_html/wp-content/plugins/woocommerce-gateway-stripe/includes/payment-methods/class-wc-stripe-payment-request.php on line 988.

    The second problem, I do not understand why, the button (Buy now) of Google Pay on the cart page works worldwide, on PC and mobile devices, except me, which only works on mobile devices, on PC NO It works for me, I tried everything, browsing incognito, clearing cache, I have checked all the Google pay settings from top to bottom, I can pay in my store with the mobile but the button does not appear on the PC. I’ve also tried on different computers and nothing, it doesn’t work. I have opened the Google inspector and I see these display: none.

    <p id = «wc-stripe-payment-request-button-separator» style = «margin-top: 1.5em; text-align: center; display: none;»> – O – </p>

    <div id = «wc-stripe-payment-request-wrapper» style = «clear: both; padding-top: 1.5em; display: none;»>
    <div id = «wc-stripe-payment-request-button»>
    <! – A Stripe Element will be inserted here. ->
    </div>
    </div>

    In Stripe support I have been told to contact woocommerce support.

    Can you help me?

    Thank you.

Viendo 1 respuesta (de un total de 1)
  • Iniciador del debate newcelic

    (@newcelic)

    Hola a todos,

    Recientemente activé Google Pay y Apple Pay en la configuración de Stripe y desde entonces tengo 2 problemas:

    Primer problema, en mi archivo error_log veo constantemente esta advertencia:

    [10-Jan-2020 19:07:40 UTC] Advertencia de PHP: preg_match (): Modificador desconocido ‘& amp;’ en / home2 / descalificado / public_html / wp-content / plugins / woocommerce-gateway-stripe / incluye / payment-method / class-wc-stripe-payment-request.php en la línea 988
    [10-Ene-2020 21:44:35 UTC] Advertencia PHP: preg_match (): Modificador desconocido ‘& amp;’ en / home2 / descalificado / public_html / wp-content / plugins / woocommerce-gateway-stripe / incluye / pago -methods / class-wc-stripe-payment-request.php en la línea 975
    [10-Ene-2020 21:44:35 UTC] Advertencia PHP: preg_match (): Modificador desconocido ‘& amp;’ en / home2 / descalificado / public_html / wp-content / plugins / woocommerce-gateway-stripe / incluye / pago -methods / class-wc-stripe-payment-request.php en la línea 988.

    El segundo problema, no entiendo por qué, el botón (Comprar ahora) de Google Pay en la página del carrito funciona a todo el mundo, en PC y dispositivos móviles, excepto a mí, que solo me funciona en dispositivos móviles, en PC NO me Funciona, lo he Intentado todo, navegué de incógnito, borré la caché del navegador, verifiqué todas las configuraciones de pago de Google de arriba a abajo, puedo pagar en mi tienda con el móvil, pero el botón no aparece en el PC. También probé en diferentes ordenadores y nada, no funciona. Abrí el inspector de Google y veo estos display:none:

    <p id = «wc-stripe-payment-request-button-separator» style = «margin-top: 1.5em; alinear texto: centro; display: none; »> – O – </p>

    <div id = «wc-stripe-payment-request-wrapper» style = «clear: ambos; relleno superior: 1.5em; pantalla: ninguna; »>
    <div id = «wc-stripe-payment-request-button»>
    <! – Aquí se insertará un elemento Stripe. ->
    </div>
    </div>

    En el soporte de Stripe, me dijeron que me pusiera en contacto con el soporte de woocommerce.

    ¿Me podéis ayudar?

    Gracias.

Viendo 1 respuesta (de un total de 1)
  • El debate ‘PHP Warning woocommerce-gateway-stripe’ está cerrado a nuevas respuestas.